]> granicus.if.org Git - postgresql/blob - configure
Make pgbench use erand48() rather than random().
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.2devel.
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-2011, 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.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_additional_libs
676 python_libspec
677 python_libdir
678 python_includespec
679 python_configdir
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 WINDRES
697 DLLWRAP
698 DLLTOOL
699 AR
700 STRIP_SHARED_LIB
701 STRIP_STATIC_LIB
702 STRIP
703 RANLIB
704 ld_R_works
705 with_gnu_ld
706 LD
707 LDFLAGS_SL
708 LDFLAGS_EX
709 ELF_SYS
710 EGREP
711 GREP
712 with_zlib
713 with_system_tzdata
714 with_libxslt
715 with_libxml
716 XML2_CONFIG
717 with_ossp_uuid
718 with_selinux
719 with_openssl
720 with_bonjour
721 with_ldap
722 with_pam
723 krb_srvtab
724 with_krb5
725 with_gssapi
726 with_python
727 with_perl
728 with_tcl
729 enable_thread_safety
730 INCLUDES
731 autodepend
732 TAS
733 GCC
734 CPP
735 SUN_STUDIO_CC
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 enable_dtrace
744 DTRACEFLAGS
745 DTRACE
746 enable_coverage
747 GENHTML
748 LCOV
749 GCOV
750 enable_profiling
751 enable_debug
752 enable_rpath
753 enable_shared
754 default_port
755 WANTED_LANGUAGES
756 enable_nls
757 PORTNAME
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 PG_MAJORVERSION
767 configure_args
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_template
809 with_includes
810 with_libraries
811 with_libs
812 enable_integer_datetimes
813 enable_nls
814 with_pgport
815 enable_shared
816 enable_rpath
817 enable_spinlocks
818 enable_debug
819 enable_profiling
820 enable_coverage
821 enable_dtrace
822 with_blocksize
823 with_segsize
824 with_wal_blocksize
825 with_wal_segsize
826 with_CC
827 enable_depend
828 enable_cassert
829 enable_thread_safety
830 with_tcl
831 with_tclconfig
832 with_perl
833 with_python
834 with_gssapi
835 with_krb5
836 with_krb_srvnam
837 with_pam
838 with_ldap
839 with_bonjour
840 with_openssl
841 with_selinux
842 with_readline
843 with_libedit_preferred
844 with_ossp_uuid
845 with_libxml
846 with_libxslt
847 with_system_tzdata
848 with_zlib
849 with_gnu_ld
850 enable_largefile
851 enable_float4_byval
852 enable_float8_byval
853 '
854       ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 LDFLAGS_EX
864 LDFLAGS_SL
865 DOCBOOKSTYLE'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975    { (exit 1); exit 1; }; }
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158     ac_prev=sbindir ;;
1159   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160   | --sbi=* | --sb=*)
1161     sbindir=$ac_optarg ;;
1162
1163   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165   | --sharedst | --shareds | --shared | --share | --shar \
1166   | --sha | --sh)
1167     ac_prev=sharedstatedir ;;
1168   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171   | --sha=* | --sh=*)
1172     sharedstatedir=$ac_optarg ;;
1173
1174   -site | --site | --sit)
1175     ac_prev=site ;;
1176   -site=* | --site=* | --sit=*)
1177     site=$ac_optarg ;;
1178
1179   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180     ac_prev=srcdir ;;
1181   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182     srcdir=$ac_optarg ;;
1183
1184   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185   | --syscon | --sysco | --sysc | --sys | --sy)
1186     ac_prev=sysconfdir ;;
1187   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189     sysconfdir=$ac_optarg ;;
1190
1191   -target | --target | --targe | --targ | --tar | --ta | --t)
1192     ac_prev=target_alias ;;
1193   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194     target_alias=$ac_optarg ;;
1195
1196   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197     verbose=yes ;;
1198
1199   -version | --version | --versio | --versi | --vers | -V)
1200     ac_init_version=: ;;
1201
1202   -with-* | --with-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_useropt_orig=$ac_useropt
1226     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227     case $ac_user_opts in
1228       *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232          ac_unrecognized_sep=', ';;
1233     esac
1234     eval with_$ac_useropt=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289    { (exit 1); exit 1; }; } ;;
1290     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291   esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   # Remove trailing slashes.
1302   case $ac_val in
1303     */ )
1304       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305       eval $ac_var=\$ac_val;;
1306   esac
1307   # Be sure to have absolute directory names.
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313    { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328     If a cross compiler is detected then cross compile mode will be used." >&2
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344    { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347    { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392    { (exit 1); exit 1; }; }
1393         pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396   srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_env_${ac_var}_value=\$${ac_var}
1407   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415   # Omit some internal or obsolete options to make the list less imposing.
1416   # This message is too long to be a string in the A/UX 3.1 sh.
1417   cat <<_ACEOF
1418 \`configure' configures PostgreSQL 9.2devel to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428   -h, --help              display this help and exit
1429       --help=short        display options specific to this package
1430       --help=recursive    display the short help of all the included packages
1431   -V, --version           display version information and exit
1432   -q, --quiet, --silent   do not print \`checking...' messages
1433       --cache-file=FILE   cache test results in FILE [disabled]
1434   -C, --config-cache      alias for \`--cache-file=config.cache'
1435   -n, --no-create         do not create output files
1436       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439   --prefix=PREFIX         install architecture-independent files in PREFIX
1440                           [$ac_default_prefix]
1441   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                           [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452   --bindir=DIR            user executables [EPREFIX/bin]
1453   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454   --libexecdir=DIR        program executables [EPREFIX/libexec]
1455   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458   --libdir=DIR            object code libraries [EPREFIX/lib]
1459   --includedir=DIR        C header files [PREFIX/include]
1460   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463   --infodir=DIR           info documentation [DATAROOTDIR/info]
1464   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465   --mandir=DIR            man documentation [DATAROOTDIR/man]
1466   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1467   --htmldir=DIR           html documentation [DOCDIR]
1468   --dvidir=DIR            dvi documentation [DOCDIR]
1469   --pdfdir=DIR            pdf documentation [DOCDIR]
1470   --psdir=DIR             ps documentation [DOCDIR]
1471 _ACEOF
1472
1473   cat <<\_ACEOF
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of PostgreSQL 9.2devel:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-option-checking  ignore unrecognized --enable/--with options
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --disable-integer-datetimes
1492                           disable 64-bit integer date/time support
1493   --enable-nls[=LANGUAGES]
1494                           enable Native Language Support
1495   --disable-shared        do not build shared libraries
1496   --disable-rpath         do not embed shared library search path in
1497                           executables
1498   --disable-spinlocks     do not use spinlocks
1499   --enable-debug          build with debugging symbols (-g)
1500   --enable-profiling      build with profiling enabled
1501   --enable-coverage       build with coverage testing instrumentation
1502   --enable-dtrace         build with DTrace support
1503   --enable-depend         turn on automatic dependency tracking
1504   --enable-cassert        enable assertion checks (for debugging)
1505   --disable-thread-safety disable thread-safety in client libraries
1506   --disable-largefile     omit support for large files
1507   --disable-float4-byval  disable float4 passed by value
1508   --disable-float8-byval  disable float8 passed by value
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-template=NAME    override operating system template
1514   --with-includes=DIRS    look for additional header files in DIRS
1515   --with-libraries=DIRS   look for additional libraries in DIRS
1516   --with-libs=DIRS        alternative spelling of --with-libraries
1517   --with-pgport=PORTNUM   set default port number [5432]
1518   --with-blocksize=BLOCKSIZE
1519                           set table block size in kB [8]
1520   --with-segsize=SEGSIZE  set table segment size in GB [1]
1521   --with-wal-blocksize=BLOCKSIZE
1522                           set WAL block size in kB [8]
1523   --with-wal-segsize=SEGSIZE
1524                           set WAL segment size in MB [16]
1525   --with-CC=CMD           set compiler (deprecated)
1526   --with-tcl              build Tcl modules (PL/Tcl)
1527   --with-tclconfig=DIR    tclConfig.sh is in DIR
1528   --with-perl             build Perl modules (PL/Perl)
1529   --with-python           build Python modules (PL/Python)
1530   --with-gssapi           build with GSSAPI support
1531   --with-krb5             build with Kerberos 5 support
1532   --with-krb-srvnam=NAME  default service principal name in Kerberos
1533                           [postgres]
1534   --with-pam              build with PAM support
1535   --with-ldap             build with LDAP support
1536   --with-bonjour          build with Bonjour support
1537   --with-openssl          build with OpenSSL support
1538   --with-selinux          build with SELinux support
1539   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1540   --with-libedit-preferred
1541                           prefer BSD Libedit over GNU Readline
1542   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1543   --with-libxml           build with XML support
1544   --with-libxslt          use XSLT support when building contrib/xml2
1545   --with-system-tzdata=DIR
1546                           use system time zone data in DIR
1547   --without-zlib          do not use Zlib
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559   LDFLAGS_EX  extra linker flags for linking executables only
1560   LDFLAGS_SL  extra linker flags for linking shared libraries only
1561   DOCBOOKSTYLE
1562               location of DocBook stylesheets
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573   # If there are subdirs, report their specific --help.
1574   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575     test -d "$ac_dir" ||
1576       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577       continue
1578     ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584   # A ".." for each directory in $ac_dir_suffix.
1585   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586   case $ac_top_builddir_sub in
1587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589   esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597   .)  # We are building in place.
1598     ac_srcdir=.
1599     ac_top_srcdir=$ac_top_builddir_sub
1600     ac_abs_top_srcdir=$ac_pwd ;;
1601   [\\/]* | ?:[\\/]* )  # Absolute name.
1602     ac_srcdir=$srcdir$ac_dir_suffix;
1603     ac_top_srcdir=$srcdir
1604     ac_abs_top_srcdir=$srcdir ;;
1605   *) # Relative name.
1606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607     ac_top_srcdir=$ac_top_build_prefix$srcdir
1608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612     cd "$ac_dir" || { ac_status=$?; continue; }
1613     # Check for guested configure.
1614     if test -f "$ac_srcdir/configure.gnu"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617     elif test -f "$ac_srcdir/configure"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure" --help=recursive
1620     else
1621       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622     fi || ac_status=$?
1623     cd "$ac_pwd" || { ac_status=$?; break; }
1624   done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629   cat <<\_ACEOF
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1632
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637
1638 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   $as_echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776       *) $as_unset $ac_var ;;
1777       esac ;;
1778     esac
1779   done
1780   (set) 2>&1 |
1781     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782     *${as_nl}ac_space=\ *)
1783       sed -n \
1784         "s/'\''/'\''\\\\'\'''\''/g;
1785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786       ;; #(
1787     *)
1788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789       ;;
1790     esac |
1791     sort
1792 )
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800     echo
1801     for ac_var in $ac_subst_vars
1802     do
1803       eval ac_val=\$$ac_var
1804       case $ac_val in
1805       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806       esac
1807       $as_echo "$ac_var='\''$ac_val'\''"
1808     done | sort
1809     echo
1810
1811     if test -n "$ac_subst_files"; then
1812       cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817       echo
1818       for ac_var in $ac_subst_files
1819       do
1820         eval ac_val=\$$ac_var
1821         case $ac_val in
1822         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823         esac
1824         $as_echo "$ac_var='\''$ac_val'\''"
1825       done | sort
1826       echo
1827     fi
1828
1829     if test -s confdefs.h; then
1830       cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835       echo
1836       cat confdefs.h
1837       echo
1838     fi
1839     test "$ac_signal" != 0 &&
1840       $as_echo "$as_me: caught signal $ac_signal"
1841     $as_echo "$as_me: exit $exit_status"
1842   } >&5
1843   rm -f core *.core core.conftest.* &&
1844     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845     exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 # Predefined preprocessor variables.
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1880
1881
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1884 ac_site_file1=NONE
1885 ac_site_file2=NONE
1886 if test -n "$CONFIG_SITE"; then
1887   ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889   ac_site_file1=$prefix/share/config.site
1890   ac_site_file2=$prefix/etc/config.site
1891 else
1892   ac_site_file1=$ac_default_prefix/share/config.site
1893   ac_site_file2=$ac_default_prefix/etc/config.site
1894 fi
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1896 do
1897   test "x$ac_site_file" = xNONE && continue
1898   if test -r "$ac_site_file"; then
1899     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901     sed 's/^/| /' "$ac_site_file" >&5
1902     . "$ac_site_file"
1903   fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907   # Some versions of bash will fail to source /dev/null (special
1908   # files actually), so we avoid doing that.
1909   if test -f "$cache_file"; then
1910     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1912     case $cache_file in
1913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914       *)                      . "./$cache_file";;
1915     esac
1916   fi
1917 else
1918   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920   >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928   eval ac_new_set=\$ac_env_${ac_var}_set
1929   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930   eval ac_new_val=\$ac_env_${ac_var}_value
1931   case $ac_old_set,$ac_new_set in
1932     set,)
1933       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,set)
1937       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,);;
1941     *)
1942       if test "x$ac_old_val" != "x$ac_new_val"; then
1943         # differences in whitespace do not lead to failure.
1944         ac_old_val_w=`echo x $ac_old_val`
1945         ac_new_val_w=`echo x $ac_new_val`
1946         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949           ac_cache_corrupted=:
1950         else
1951           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953           eval $ac_var=\$ac_old_val
1954         fi
1955         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1956 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1957         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1959       fi;;
1960   esac
1961   # Pass precious variables to config.status.
1962   if test "$ac_new_set" = set; then
1963     case $ac_new_val in
1964     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965     *) ac_arg=$ac_var=$ac_new_val ;;
1966     esac
1967     case " $ac_configure_args " in
1968       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1969       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970     esac
1971   fi
1972 done
1973 if $ac_cache_corrupted; then
1974   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014
2015
2016
2017
2018 ac_aux_dir=
2019 for ac_dir in config "$srcdir"/config; do
2020   if test -f "$ac_dir/install-sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install-sh -c"
2023     break
2024   elif test -f "$ac_dir/install.sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install.sh -c"
2027     break
2028   elif test -f "$ac_dir/shtool"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/shtool install -c"
2031     break
2032   fi
2033 done
2034 if test -z "$ac_aux_dir"; then
2035   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050 configure_args=$ac_configure_args
2051
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 _ACEOF
2064
2065
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070    { (exit 1); exit 1; }; }
2071
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075   $as_echo_n "(cached) " >&6
2076 else
2077   ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083    { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088
2089 fi
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2093 *-*-*) ;;
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 build=$ac_cv_build
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_build
2101 shift
2102 build_cpu=$1
2103 build_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 build_os=$*
2108 IFS=$ac_save_IFS
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test "x$host_alias" = x; then
2118   ac_cv_host=$ac_cv_build
2119 else
2120   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125
2126 fi
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2129 case $ac_cv_host in
2130 *-*-*) ;;
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 host=$ac_cv_host
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_host
2138 shift
2139 host_cpu=$1
2140 host_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 host_os=$*
2145 IFS=$ac_save_IFS
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147
2148
2149
2150 template=
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2153
2154
2155
2156
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159   withval=$with_template;
2160   case $withval in
2161     yes)
2162       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164    { (exit 1); exit 1; }; }
2165       ;;
2166     no)
2167       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169    { (exit 1); exit 1; }; }
2170       ;;
2171     *)
2172
2173   case $withval in
2174     list)   echo; ls "$srcdir/src/template"; exit;;
2175     *)      if test -f "$srcdir/src/template/$with_template" ; then
2176               template=$withval
2177             else
2178               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180    { (exit 1); exit 1; }; }
2181             fi;;
2182   esac
2183
2184       ;;
2185   esac
2186
2187 else
2188
2189 # --with-template not given
2190
2191 case $host_os in
2192      aix*) template=aix ;;
2193     bsdi*) template=bsdi ;;
2194   cygwin*) template=cygwin ;;
2195   darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197     dgux*) template=dgux ;;
2198  freebsd*) template=freebsd ;;
2199     hpux*) template=hpux ;;
2200     irix*) template=irix ;;
2201  linux*|gnu*|k*bsd*-gnu)
2202            template=linux ;;
2203    mingw*) template=win32 ;;
2204   netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206  openbsd*) template=openbsd ;;
2207      osf*) template=osf ;;
2208      sco*) template=sco ;;
2209  solaris*) template=solaris ;;
2210    sunos*) template=sunos4 ;;
2211  sysv4.2*)
2212         case $host_vendor in
2213           univel) template=univel ;;
2214         esac ;;
2215    sysv4*) template=svr4 ;;
2216    sysv5*) template=unixware ;;
2217   ultrix*) template=ultrix4 ;;
2218 esac
2219
2220   if test x"$template" = x"" ; then
2221     { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2226
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this.  Include the above 'checking host system type...'
2229 line.
2230 *******************************************************************
2231 " >&5
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2237
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this.  Include the above 'checking host system type...'
2240 line.
2241 *******************************************************************
2242 " >&2;}
2243    { (exit 1); exit 1; }; }
2244   fi
2245
2246
2247 fi
2248
2249
2250
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2253
2254 PORTNAME=$template
2255
2256
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set).  This can be overridden by the template file
2259 # when it's executed.
2260 need_tas=no
2261 tas_file=dummy.s
2262
2263
2264
2265 ##
2266 ## Command line options
2267 ##
2268
2269 #
2270 # Add non-standard directories to the include path
2271 #
2272
2273
2274
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277   withval=$with_includes;
2278   case $withval in
2279     yes)
2280       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282    { (exit 1); exit 1; }; }
2283       ;;
2284     no)
2285       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287    { (exit 1); exit 1; }; }
2288       ;;
2289     *)
2290
2291       ;;
2292   esac
2293
2294 fi
2295
2296
2297
2298
2299 #
2300 # Add non-standard directories to the library search path
2301 #
2302
2303
2304
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307   withval=$with_libraries;
2308   case $withval in
2309     yes)
2310       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312    { (exit 1); exit 1; }; }
2313       ;;
2314     no)
2315       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317    { (exit 1); exit 1; }; }
2318       ;;
2319     *)
2320       LIBRARY_DIRS=$withval
2321       ;;
2322   esac
2323
2324 fi
2325
2326
2327
2328
2329
2330
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2333   withval=$with_libs;
2334   case $withval in
2335     yes)
2336       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338    { (exit 1); exit 1; }; }
2339       ;;
2340     no)
2341       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343    { (exit 1); exit 1; }; }
2344       ;;
2345     *)
2346       LIBRARY_DIRS=$withval
2347       ;;
2348   esac
2349
2350 fi
2351
2352
2353
2354
2355 #
2356 # 64-bit integer date/time storage: enabled by default.
2357 #
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2360
2361
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364   enableval=$enable_integer_datetimes;
2365   case $enableval in
2366     yes)
2367
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2370 _ACEOF
2371
2372       ;;
2373     no)
2374       :
2375       ;;
2376     *)
2377       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379    { (exit 1); exit 1; }; }
2380       ;;
2381   esac
2382
2383 else
2384   enable_integer_datetimes=yes
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2388 _ACEOF
2389
2390 fi
2391
2392
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2395
2396
2397 #
2398 # NLS
2399 #
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2402
2403
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406   enableval=$enable_nls;
2407   case $enableval in
2408     yes)
2409       :
2410       ;;
2411     no)
2412       :
2413       ;;
2414     *)
2415       enable_nls=yes
2416 WANTED_LANGUAGES=$enableval
2417       ;;
2418   esac
2419
2420 else
2421   enable_nls=no
2422 fi
2423
2424
2425
2426 if test "$enable_nls" = yes; then
2427
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2430 _ACEOF
2431
2432 fi
2433
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2436
2437
2438
2439 #
2440 # Default port number (--with-pgport), default 5432
2441 #
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2444
2445
2446
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449   withval=$with_pgport;
2450   case $withval in
2451     yes)
2452       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454    { (exit 1); exit 1; }; }
2455       ;;
2456     no)
2457       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459    { (exit 1); exit 1; }; }
2460       ;;
2461     *)
2462       default_port=$withval
2463       ;;
2464   esac
2465
2466 else
2467   default_port=5432
2468 fi
2469
2470
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2477 _ACEOF
2478
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2482 _ACEOF
2483
2484
2485
2486 #
2487 # Option to disable shared libraries
2488 #
2489
2490
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493   enableval=$enable_shared;
2494   case $enableval in
2495     yes)
2496       :
2497       ;;
2498     no)
2499       :
2500       ;;
2501     *)
2502       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504    { (exit 1); exit 1; }; }
2505       ;;
2506   esac
2507
2508 else
2509   enable_shared=yes
2510
2511 fi
2512
2513
2514
2515
2516 #
2517 # '-rpath'-like feature can be disabled
2518 #
2519
2520
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523   enableval=$enable_rpath;
2524   case $enableval in
2525     yes)
2526       :
2527       ;;
2528     no)
2529       :
2530       ;;
2531     *)
2532       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534    { (exit 1); exit 1; }; }
2535       ;;
2536   esac
2537
2538 else
2539   enable_rpath=yes
2540
2541 fi
2542
2543
2544
2545
2546 #
2547 # Spinlocks
2548 #
2549
2550
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553   enableval=$enable_spinlocks;
2554   case $enableval in
2555     yes)
2556       :
2557       ;;
2558     no)
2559       :
2560       ;;
2561     *)
2562       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564    { (exit 1); exit 1; }; }
2565       ;;
2566   esac
2567
2568 else
2569   enable_spinlocks=yes
2570
2571 fi
2572
2573
2574
2575 #
2576 # --enable-debug adds -g to compiler flags
2577 #
2578
2579
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582   enableval=$enable_debug;
2583   case $enableval in
2584     yes)
2585       :
2586       ;;
2587     no)
2588       :
2589       ;;
2590     *)
2591       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593    { (exit 1); exit 1; }; }
2594       ;;
2595   esac
2596
2597 else
2598   enable_debug=no
2599
2600 fi
2601
2602
2603
2604
2605 #
2606 # --enable-profiling enables gcc profiling
2607 #
2608
2609
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612   enableval=$enable_profiling;
2613   case $enableval in
2614     yes)
2615       :
2616       ;;
2617     no)
2618       :
2619       ;;
2620     *)
2621       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623    { (exit 1); exit 1; }; }
2624       ;;
2625   esac
2626
2627 else
2628   enable_profiling=no
2629
2630 fi
2631
2632
2633
2634
2635 #
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2637 #
2638
2639
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642   enableval=$enable_coverage;
2643   case $enableval in
2644     yes)
2645       for ac_prog in gcov
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652   $as_echo_n "(cached) " >&6
2653 else
2654   if test -n "$GCOV"; then
2655   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664     ac_cv_prog_GCOV="$ac_prog"
2665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2678 else
2679   { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684   test -n "$GCOV" && break
2685 done
2686
2687 if test -z "$GCOV"; then
2688   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692 for ac_prog in lcov
2693 do
2694   # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test -n "$LCOV"; then
2702   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709   for ac_exec_ext in '' $ac_executable_extensions; do
2710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711     ac_cv_prog_LCOV="$ac_prog"
2712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2725 else
2726   { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731   test -n "$LCOV" && break
2732 done
2733
2734 if test -z "$LCOV"; then
2735   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737    { (exit 1); exit 1; }; }
2738 fi
2739 for ac_prog in genhtml
2740 do
2741   # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$GENHTML"; then
2749   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_GENHTML="$ac_prog"
2759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2772 else
2773   { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778   test -n "$GENHTML" && break
2779 done
2780
2781 if test -z "$GENHTML"; then
2782   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786       ;;
2787     no)
2788       :
2789       ;;
2790     *)
2791       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793    { (exit 1); exit 1; }; }
2794       ;;
2795   esac
2796
2797 else
2798   enable_coverage=no
2799
2800 fi
2801
2802
2803
2804
2805 #
2806 # DTrace
2807 #
2808
2809
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812   enableval=$enable_dtrace;
2813   case $enableval in
2814     yes)
2815
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2818 _ACEOF
2819
2820 for ac_prog in dtrace
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$DTRACE"; then
2830   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_DTRACE="$ac_prog"
2840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2853 else
2854   { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859   test -n "$DTRACE" && break
2860 done
2861
2862 if test -z "$DTRACE"; then
2863   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865    { (exit 1); exit 1; }; }
2866 fi
2867
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   enable_dtrace=no
2881
2882 fi
2883
2884
2885
2886
2887 #
2888 # Block size
2889 #
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2892
2893
2894
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897   withval=$with_blocksize;
2898   case $withval in
2899     yes)
2900       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902    { (exit 1); exit 1; }; }
2903       ;;
2904     no)
2905       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907    { (exit 1); exit 1; }; }
2908       ;;
2909     *)
2910       blocksize=$withval
2911       ;;
2912   esac
2913
2914 else
2915   blocksize=8
2916 fi
2917
2918
2919 case ${blocksize} in
2920   1) BLCKSZ=1024;;
2921   2) BLCKSZ=2048;;
2922   4) BLCKSZ=4096;;
2923   8) BLCKSZ=8192;;
2924  16) BLCKSZ=16384;;
2925  32) BLCKSZ=32768;;
2926   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928    { (exit 1); exit 1; }; }
2929 esac
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2932
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2936 _ACEOF
2937
2938
2939 #
2940 # Relation segment size
2941 #
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2944
2945
2946
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949   withval=$with_segsize;
2950   case $withval in
2951     yes)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     no)
2957       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961     *)
2962       segsize=$withval
2963       ;;
2964   esac
2965
2966 else
2967   segsize=1
2968 fi
2969
2970
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2981 _ACEOF
2982
2983
2984 #
2985 # WAL block size
2986 #
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2989
2990
2991
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994   withval=$with_wal_blocksize;
2995   case $withval in
2996     yes)
2997       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999    { (exit 1); exit 1; }; }
3000       ;;
3001     no)
3002       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004    { (exit 1); exit 1; }; }
3005       ;;
3006     *)
3007       wal_blocksize=$withval
3008       ;;
3009   esac
3010
3011 else
3012   wal_blocksize=8
3013 fi
3014
3015
3016 case ${wal_blocksize} in
3017   1) XLOG_BLCKSZ=1024;;
3018   2) XLOG_BLCKSZ=2048;;
3019   4) XLOG_BLCKSZ=4096;;
3020   8) XLOG_BLCKSZ=8192;;
3021  16) XLOG_BLCKSZ=16384;;
3022  32) XLOG_BLCKSZ=32768;;
3023  64) XLOG_BLCKSZ=65536;;
3024   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026    { (exit 1); exit 1; }; }
3027 esac
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3034 _ACEOF
3035
3036
3037 #
3038 # WAL segment size
3039 #
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3042
3043
3044
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047   withval=$with_wal_segsize;
3048   case $withval in
3049     yes)
3050       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052    { (exit 1); exit 1; }; }
3053       ;;
3054     no)
3055       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057    { (exit 1); exit 1; }; }
3058       ;;
3059     *)
3060       wal_segsize=$withval
3061       ;;
3062   esac
3063
3064 else
3065   wal_segsize=16
3066 fi
3067
3068
3069 case ${wal_segsize} in
3070   1) ;;
3071   2) ;;
3072   4) ;;
3073   8) ;;
3074  16) ;;
3075  32) ;;
3076  64) ;;
3077   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079    { (exit 1); exit 1; }; }
3080 esac
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3083
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3087 _ACEOF
3088
3089
3090 #
3091 # C compiler
3092 #
3093
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3096 # variable.
3097
3098
3099
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3102   withval=$with_CC;
3103   case $withval in
3104     yes)
3105       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107    { (exit 1); exit 1; }; }
3108       ;;
3109     no)
3110       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112    { (exit 1); exit 1; }; }
3113       ;;
3114     *)
3115       CC=$with_CC
3116       ;;
3117   esac
3118
3119 fi
3120
3121
3122
3123 case $template in
3124   aix) pgac_cc_list="gcc xlc";;
3125  irix) pgac_cc_list="cc";; # no gcc
3126     *) pgac_cc_list="gcc cc";;
3127 esac
3128
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135   for ac_prog in $pgac_cc_list
3136   do
3137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169   { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174     test -n "$CC" && break
3175   done
3176 fi
3177 if test -z "$CC"; then
3178   ac_ct_CC=$CC
3179   for ac_prog in $pgac_cc_list
3180 do
3181   # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$ac_ct_CC"; then
3189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196   for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_ac_ct_CC="$ac_prog"
3199     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213   { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218   test -n "$ac_ct_CC" && break
3219 done
3220
3221   if test "x$ac_ct_CC" = x; then
3222     CC=""
3223   else
3224     case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230     CC=$ac_ct_CC
3231   fi
3232 fi
3233
3234
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241    { (exit 1); exit 1; }; }; }
3242
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 { (ac_try="$ac_compiler --version >&5"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254   (eval "$ac_compiler --version >&5") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265   (eval "$ac_compiler -v >&5") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276   (eval "$ac_compiler -V >&5") 2>&5
3277   ac_status=$?
3278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }
3280
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { (ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; then
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368   $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377    { (exit 77); exit 77; }; }; }
3378 fi
3379
3380 ac_exeext=$ac_cv_exeext
3381
3382 # Check that the compiler produces executables we can run.  If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389   if { ac_try='./$ac_file'
3390   { (case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
3404     else
3405         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413    { (exit 1); exit 1; }; }; }
3414     fi
3415   fi
3416 fi
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run.  If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438   (eval "$ac_link") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; then
3442   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3445 # `rm'.
3446 for ac_file in conftest.exe conftest conftest.*; do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451           break;;
3452     * ) break;;
3453   esac
3454 done
3455 else
3456   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462    { (exit 1); exit 1; }; }; }
3463 fi
3464
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3468
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3471 ac_exeext=$EXEEXT
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475   $as_echo_n "(cached) " >&6
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { (ac_try="$ac_compile"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500   (eval "$ac_compile") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; then
3504   for ac_file in conftest.o conftest.obj conftest.*; do
3505   test -f "$ac_file" || continue;
3506   case $ac_file in
3507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509        break;;
3510   esac
3511 done
3512 else
3513   $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522    { (exit 1); exit 1; }; }; }
3523 fi
3524
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562   (eval "$ac_compile") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } && {
3569          test -z "$ac_c_werror_flag" ||
3570          test ! -s conftest.err
3571        } && test -s conftest.$ac_objext; then
3572   ac_compiler_gnu=yes
3573 else
3574   $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577         ac_compiler_gnu=no
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3587   GCC=yes
3588 else
3589   GCC=
3590 fi
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596   $as_echo_n "(cached) " >&6
3597 else
3598   ac_save_c_werror_flag=$ac_c_werror_flag
3599    ac_c_werror_flag=yes
3600    ac_cv_prog_cc_g=no
3601    CFLAGS="-g"
3602    cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && {
3632          test -z "$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        } && test -s conftest.$ac_objext; then
3635   ac_cv_prog_cc_g=yes
3636 else
3637   $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640         CFLAGS=""
3641       cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664   (eval "$ac_compile") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest.$ac_objext; then
3674   :
3675 else
3676   $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679         ac_c_werror_flag=$ac_save_c_werror_flag
3680          CFLAGS="-g"
3681          cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_cv_prog_cc_g=yes
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729    ac_c_werror_flag=$ac_save_c_werror_flag
3730 fi
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734   CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736   if test "$GCC" = yes; then
3737     CFLAGS="-g -O2"
3738   else
3739     CFLAGS="-g"
3740   fi
3741 else
3742   if test "$GCC" = yes; then
3743     CFLAGS="-O2"
3744   else
3745     CFLAGS=
3746   fi
3747 fi
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751   $as_echo_n "(cached) " >&6
3752 else
3753   ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #include <stdarg.h>
3762 #include <stdio.h>
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3769      char **p;
3770      int i;
3771 {
3772   return p[i];
3773 }
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3775 {
3776   char *s;
3777   va_list v;
3778   va_start (v,p);
3779   s = g (p, va_arg (v,int));
3780   va_end (v);
3781   return s;
3782 }
3783
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3785    function prototypes and stuff, but not '\xHH' hex character constants.
3786    These don't provoke an error unfortunately, instead are silently treated
3787    as 'x'.  The following induces an error, until -std is added to get
3788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3789    array size at least.  It's necessary to write '\x00'==0 to get something
3790    that's true only with -std.  */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794    inside strings and character constants.  */
3795 #define FOO(x) 'x'
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 int argc;
3803 char **argv;
3804 int
3805 main ()
3806 {
3807 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 do
3815   CC="$ac_save_CC $ac_arg"
3816   rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_prog_cc_c89=$ac_arg
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext
3843   test "x$ac_cv_prog_cc_c89" != "xno" && break
3844 done
3845 rm -f conftest.$ac_ext
3846 CC=$ac_save_CC
3847
3848 fi
3849 # AC_CACHE_VAL
3850 case "x$ac_cv_prog_cc_c89" in
3851   x)
3852     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3854   xno)
3855     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3857   *)
3858     CC="$CC $ac_cv_prog_cc_c89"
3859     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 esac
3862
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own.  We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3874
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __INTEL_COMPILER
3886 choke me
3887 #endif
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900   (eval "$ac_compile") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && {
3907          test -z "$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        } && test -s conftest.$ac_objext; then
3910   ICC=yes
3911 else
3912   $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         ICC=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932 #ifndef __SUNPRO_C
3933 choke me
3934 #endif
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   SUN_STUDIO_CC=yes
3958 else
3959   $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962         SUN_STUDIO_CC=no
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
3967
3968
3969 unset CFLAGS
3970
3971 #
3972 # Read the template
3973 #
3974 . "$srcdir/src/template/$template" || exit
3975
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else:  If the template file set something, that is used.
3979 # else:  If coverage was enabled, don't set anything.
3980 # else:  If the compiler is GCC, then we use -O2.
3981 # else:  If the compiler is something else, then we use -O, unless debugging.
3982
3983 if test "$ac_env_CFLAGS_set" = set; then
3984   CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986   : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988   : # no optimization by default
3989 elif test "$GCC" = yes; then
3990   CFLAGS="-O2"
3991 else
3992   # if the user selected debug mode, don't use -O
3993   if test "$enable_debug" != yes; then
3994     CFLAGS="-O"
3995   fi
3996 fi
3997
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own.  Also check other compiler-specific flags here.
4002
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005   # These work in some but not all gcc versions
4006   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009   $as_echo_n "(cached) " >&6
4010 else
4011   pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } && {
4045          test -z "$ac_c_werror_flag" ||
4046          test ! -s conftest.err
4047        } && test -s conftest.$ac_objext; then
4048   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4049 else
4050   $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4059 fi
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4064 fi
4065
4066   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069   $as_echo_n "(cached) " >&6
4070 else
4071   pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081
4082 int
4083 main ()
4084 {
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098   (eval "$ac_compile") 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } && {
4105          test -z "$ac_c_werror_flag" ||
4106          test ! -s conftest.err
4107        } && test -s conftest.$ac_objext; then
4108   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4109 else
4110   $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113         pgac_cv_prog_cc_cflags__Wendif_labels=no
4114 fi
4115
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4119 fi
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123   CFLAGS="$CFLAGS -Wendif-labels"
4124 fi
4125
4126   # This was included in -Wall/-Wformat in older GCC versions
4127   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4128 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4129 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4130   $as_echo_n "(cached) " >&6
4131 else
4132   pgac_save_CFLAGS=$CFLAGS
4133 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4134 ac_save_c_werror_flag=$ac_c_werror_flag
4135 ac_c_werror_flag=yes
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142
4143 int
4144 main ()
4145 {
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4153 case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159   (eval "$ac_compile") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } && {
4166          test -z "$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        } && test -s conftest.$ac_objext; then
4169   pgac_cv_prog_cc_cflags__Wformat_security=yes
4170 else
4171   $as_echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174         pgac_cv_prog_cc_cflags__Wformat_security=no
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179 CFLAGS="$pgac_save_CFLAGS"
4180 fi
4181 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4182 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4183 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4184   CFLAGS="$CFLAGS -Wformat-security"
4185 fi
4186
4187   # Disable strict-aliasing rules; needed for gcc 3.3+
4188   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4189 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4190 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4191   $as_echo_n "(cached) " >&6
4192 else
4193   pgac_save_CFLAGS=$CFLAGS
4194 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4195 ac_save_c_werror_flag=$ac_c_werror_flag
4196 ac_c_werror_flag=yes
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h.  */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h.  */
4203
4204 int
4205 main ()
4206 {
4207
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220   (eval "$ac_compile") 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && {
4227          test -z "$ac_c_werror_flag" ||
4228          test ! -s conftest.err
4229        } && test -s conftest.$ac_objext; then
4230   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4231 else
4232   $as_echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4236 fi
4237
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_c_werror_flag=$ac_save_c_werror_flag
4240 CFLAGS="$pgac_save_CFLAGS"
4241 fi
4242 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4243 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4244 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4245   CFLAGS="$CFLAGS -fno-strict-aliasing"
4246 fi
4247
4248   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4249   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4250 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4251 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4252   $as_echo_n "(cached) " >&6
4253 else
4254   pgac_save_CFLAGS=$CFLAGS
4255 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281   (eval "$ac_compile") 2>conftest.er1
4282   ac_status=$?
4283   grep -v '^ *+' conftest.er1 >conftest.err
4284   rm -f conftest.er1
4285   cat conftest.err >&5
4286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } && {
4288          test -z "$ac_c_werror_flag" ||
4289          test ! -s conftest.err
4290        } && test -s conftest.$ac_objext; then
4291   pgac_cv_prog_cc_cflags__fwrapv=yes
4292 else
4293   $as_echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296         pgac_cv_prog_cc_cflags__fwrapv=no
4297 fi
4298
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_c_werror_flag=$ac_save_c_werror_flag
4301 CFLAGS="$pgac_save_CFLAGS"
4302 fi
4303 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4304 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4305 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4306   CFLAGS="$CFLAGS -fwrapv"
4307 fi
4308
4309 elif test "$ICC" = yes; then
4310   # Intel's compiler has a bug/misoptimization in checking for
4311   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4312   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4313 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4314 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4315   $as_echo_n "(cached) " >&6
4316 else
4317   pgac_save_CFLAGS=$CFLAGS
4318 CFLAGS="$pgac_save_CFLAGS -mp1"
4319 ac_save_c_werror_flag=$ac_c_werror_flag
4320 ac_c_werror_flag=yes
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (ac_try="$ac_compile"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4343 $as_echo "$ac_try_echo") >&5
4344   (eval "$ac_compile") 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } && {
4351          test -z "$ac_c_werror_flag" ||
4352          test ! -s conftest.err
4353        } && test -s conftest.$ac_objext; then
4354   pgac_cv_prog_cc_cflags__mp1=yes
4355 else
4356   $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359         pgac_cv_prog_cc_cflags__mp1=no
4360 fi
4361
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4364 CFLAGS="$pgac_save_CFLAGS"
4365 fi
4366 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4367 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4368 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4369   CFLAGS="$CFLAGS -mp1"
4370 fi
4371
4372   # Make sure strict aliasing is off (though this is said to be the default)
4373   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4374 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4375 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4376   $as_echo_n "(cached) " >&6
4377 else
4378   pgac_save_CFLAGS=$CFLAGS
4379 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4380 ac_save_c_werror_flag=$ac_c_werror_flag
4381 ac_c_werror_flag=yes
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405   (eval "$ac_compile") 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && {
4412          test -z "$ac_c_werror_flag" ||
4413          test ! -s conftest.err
4414        } && test -s conftest.$ac_objext; then
4415   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4416 else
4417   $as_echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4425 CFLAGS="$pgac_save_CFLAGS"
4426 fi
4427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4428 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4429 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4430   CFLAGS="$CFLAGS -fno-strict-aliasing"
4431 fi
4432
4433 elif test "$PORTNAME" = "aix"; then
4434   # AIX's xlc has to have strict aliasing turned off too
4435   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4436 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4437 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4438   $as_echo_n "(cached) " >&6
4439 else
4440   pgac_save_CFLAGS=$CFLAGS
4441 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4442 ac_save_c_werror_flag=$ac_c_werror_flag
4443 ac_c_werror_flag=yes
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467   (eval "$ac_compile") 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } && {
4474          test -z "$ac_c_werror_flag" ||
4475          test ! -s conftest.err
4476        } && test -s conftest.$ac_objext; then
4477   pgac_cv_prog_cc_cflags__qnoansialias=yes
4478 else
4479   $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482         pgac_cv_prog_cc_cflags__qnoansialias=no
4483 fi
4484
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_c_werror_flag=$ac_save_c_werror_flag
4487 CFLAGS="$pgac_save_CFLAGS"
4488 fi
4489 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4490 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4491 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4492   CFLAGS="$CFLAGS -qnoansialias"
4493 fi
4494
4495 elif test "$PORTNAME" = "hpux"; then
4496   # On some versions of HP-UX, libm functions do not set errno by default.
4497   # Fix that by using +Olibmerrno if the compiler recognizes it.
4498   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4499 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4500 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4501   $as_echo_n "(cached) " >&6
4502 else
4503   pgac_save_CFLAGS=$CFLAGS
4504 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4505 ac_save_c_werror_flag=$ac_c_werror_flag
4506 ac_c_werror_flag=yes
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522 rm -f conftest.$ac_objext
4523 if { (ac_try="$ac_compile"
4524 case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4529 $as_echo "$ac_try_echo") >&5
4530   (eval "$ac_compile") 2>conftest.er1
4531   ac_status=$?
4532   grep -v '^ *+' conftest.er1 >conftest.err
4533   rm -f conftest.er1
4534   cat conftest.err >&5
4535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && {
4537          test -z "$ac_c_werror_flag" ||
4538          test ! -s conftest.err
4539        } && test -s conftest.$ac_objext; then
4540   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4541 else
4542   $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4546 fi
4547
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4550 CFLAGS="$pgac_save_CFLAGS"
4551 fi
4552 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4553 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4554 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4555   CFLAGS="$CFLAGS +Olibmerrno"
4556 fi
4557
4558 fi
4559
4560 # supply -g if --enable-debug
4561 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4562   CFLAGS="$CFLAGS -g"
4563 fi
4564
4565 # enable code coverage if --enable-coverage
4566 if test "$enable_coverage" = yes; then
4567   if test "$GCC" = yes; then
4568     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4569   else
4570     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4571 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4572    { (exit 1); exit 1; }; }
4573   fi
4574 fi
4575
4576 # enable profiling if --enable-profiling
4577 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4578   if test "$GCC" = yes; then
4579
4580 cat >>confdefs.h <<\_ACEOF
4581 #define PROFILE_PID_DIR 1
4582 _ACEOF
4583
4584     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4585   else
4586     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4587 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4588    { (exit 1); exit 1; }; }
4589   fi
4590 fi
4591
4592 # We already have this in Makefile.win32, but configure needs it too
4593 if test "$PORTNAME" = "win32"; then
4594   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4595 fi
4596
4597 # Check if the compiler still works with the template settings
4598 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4599 $as_echo_n "checking whether the C compiler still works... " >&6; }
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h.  */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h.  */
4606
4607 int
4608 main ()
4609 {
4610 return 0;
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (ac_try="$ac_link"
4617 case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4622 $as_echo "$ac_try_echo") >&5
4623   (eval "$ac_link") 2>conftest.er1
4624   ac_status=$?
4625   grep -v '^ *+' conftest.er1 >conftest.err
4626   rm -f conftest.er1
4627   cat conftest.err >&5
4628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } && {
4630          test -z "$ac_c_werror_flag" ||
4631          test ! -s conftest.err
4632        } && test -s conftest$ac_exeext && {
4633          test "$cross_compiling" = yes ||
4634          $as_test_x conftest$ac_exeext
4635        }; then
4636   { $as_echo "$as_me:$LINENO: result: yes" >&5
4637 $as_echo "yes" >&6; }
4638 else
4639   $as_echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642         { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4644    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4645 $as_echo "$as_me: error: cannot proceed" >&2;}
4646    { (exit 1); exit 1; }; }
4647 fi
4648
4649 rm -rf conftest.dSYM
4650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4651       conftest$ac_exeext conftest.$ac_ext
4652
4653 # Defend against gcc -ffast-math
4654 if test "$GCC" = yes; then
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661
4662 int
4663 main ()
4664 {
4665 #ifdef __FAST_MATH__
4666 choke me
4667 #endif
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4679 $as_echo "$ac_try_echo") >&5
4680   (eval "$ac_compile") 2>conftest.er1
4681   ac_status=$?
4682   grep -v '^ *+' conftest.er1 >conftest.err
4683   rm -f conftest.er1
4684   cat conftest.err >&5
4685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } && {
4687          test -z "$ac_c_werror_flag" ||
4688          test ! -s conftest.err
4689        } && test -s conftest.$ac_objext; then
4690   :
4691 else
4692   $as_echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4696 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4697    { (exit 1); exit 1; }; }
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4710 # On Suns, sometimes $CPP names a directory.
4711 if test -n "$CPP" && test -d "$CPP"; then
4712   CPP=
4713 fi
4714 if test -z "$CPP"; then
4715   if test "${ac_cv_prog_CPP+set}" = set; then
4716   $as_echo_n "(cached) " >&6
4717 else
4718       # Double quotes because CPP needs to be expanded
4719     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4720     do
4721       ac_preproc_ok=false
4722 for ac_c_preproc_warn_flag in '' yes
4723 do
4724   # Use a header file that comes with gcc, so configuring glibc
4725   # with a fresh cross-compiler works.
4726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4727   # <limits.h> exists even on freestanding compilers.
4728   # On the NeXT, cc -E runs the code through the compiler's parser,
4729   # not just through cpp. "Syntax error" is here to catch this case.
4730   cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h.  */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h.  */
4736 #ifdef __STDC__
4737 # include <limits.h>
4738 #else
4739 # include <assert.h>
4740 #endif
4741                      Syntax error
4742 _ACEOF
4743 if { (ac_try="$ac_cpp conftest.$ac_ext"
4744 case "(($ac_try" in
4745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746   *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751   ac_status=$?
4752   grep -v '^ *+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } >/dev/null && {
4757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758          test ! -s conftest.err
4759        }; then
4760   :
4761 else
4762   $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765   # Broken: fails on valid input.
4766 continue
4767 fi
4768
4769 rm -f conftest.err conftest.$ac_ext
4770
4771   # OK, works on sane cases.  Now check whether nonexistent headers
4772   # can be detected and how.
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 #include <ac_nonexistent.h>
4780 _ACEOF
4781 if { (ac_try="$ac_cpp conftest.$ac_ext"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } >/dev/null && {
4795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796          test ! -s conftest.err
4797        }; then
4798   # Broken: success on invalid input.
4799 continue
4800 else
4801   $as_echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804   # Passes both tests.
4805 ac_preproc_ok=:
4806 break
4807 fi
4808
4809 rm -f conftest.err conftest.$ac_ext
4810
4811 done
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then
4815   break
4816 fi
4817
4818     done
4819     ac_cv_prog_CPP=$CPP
4820
4821 fi
4822   CPP=$ac_cv_prog_CPP
4823 else
4824   ac_cv_prog_CPP=$CPP
4825 fi
4826 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4827 $as_echo "$CPP" >&6; }
4828 ac_preproc_ok=false
4829 for ac_c_preproc_warn_flag in '' yes
4830 do
4831   # Use a header file that comes with gcc, so configuring glibc
4832   # with a fresh cross-compiler works.
4833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834   # <limits.h> exists even on freestanding compilers.
4835   # On the NeXT, cc -E runs the code through the compiler's parser,
4836   # not just through cpp. "Syntax error" is here to catch this case.
4837   cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 #ifdef __STDC__
4844 # include <limits.h>
4845 #else
4846 # include <assert.h>
4847 #endif
4848                      Syntax error
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853   *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } >/dev/null && {
4864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865          test ! -s conftest.err
4866        }; then
4867   :
4868 else
4869   $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872   # Broken: fails on valid input.
4873 continue
4874 fi
4875
4876 rm -f conftest.err conftest.$ac_ext
4877
4878   # OK, works on sane cases.  Now check whether nonexistent headers
4879   # can be detected and how.
4880   cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886 #include <ac_nonexistent.h>
4887 _ACEOF
4888 if { (ac_try="$ac_cpp conftest.$ac_ext"
4889 case "(($ac_try" in
4890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891   *) ac_try_echo=$ac_try;;
4892 esac
4893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4896   ac_status=$?
4897   grep -v '^ *+' conftest.er1 >conftest.err
4898   rm -f conftest.er1
4899   cat conftest.err >&5
4900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } >/dev/null && {
4902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4903          test ! -s conftest.err
4904        }; then
4905   # Broken: success on invalid input.
4906 continue
4907 else
4908   $as_echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911   # Passes both tests.
4912 ac_preproc_ok=:
4913 break
4914 fi
4915
4916 rm -f conftest.err conftest.$ac_ext
4917
4918 done
4919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4920 rm -f conftest.err conftest.$ac_ext
4921 if $ac_preproc_ok; then
4922   :
4923 else
4924   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4927 See \`config.log' for more details." >&5
4928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4929 See \`config.log' for more details." >&2;}
4930    { (exit 1); exit 1; }; }; }
4931 fi
4932
4933 ac_ext=c
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4938
4939
4940
4941
4942 #
4943 # Set up TAS assembly code if needed; the template file has now had its
4944 # chance to request this.
4945 #
4946 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4947
4948
4949 if test "$need_tas" = yes ; then
4950   TAS=tas.o
4951 else
4952   TAS=""
4953 fi
4954
4955
4956
4957 #
4958 # Automatic dependency tracking
4959 #
4960
4961
4962 # Check whether --enable-depend was given.
4963 if test "${enable_depend+set}" = set; then
4964   enableval=$enable_depend;
4965   case $enableval in
4966     yes)
4967       autodepend=yes
4968       ;;
4969     no)
4970       :
4971       ;;
4972     *)
4973       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4974 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4975    { (exit 1); exit 1; }; }
4976       ;;
4977   esac
4978
4979 else
4980   enable_depend=no
4981
4982 fi
4983
4984
4985
4986
4987
4988 #
4989 # Enable assert checks
4990 #
4991
4992
4993 # Check whether --enable-cassert was given.
4994 if test "${enable_cassert+set}" = set; then
4995   enableval=$enable_cassert;
4996   case $enableval in
4997     yes)
4998
4999 cat >>confdefs.h <<\_ACEOF
5000 #define USE_ASSERT_CHECKING 1
5001 _ACEOF
5002
5003       ;;
5004     no)
5005       :
5006       ;;
5007     *)
5008       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5009 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5010    { (exit 1); exit 1; }; }
5011       ;;
5012   esac
5013
5014 else
5015   enable_cassert=no
5016
5017 fi
5018
5019
5020
5021
5022 #
5023 # Include directories
5024 #
5025 ac_save_IFS=$IFS
5026 IFS="${IFS}${PATH_SEPARATOR}"
5027 # SRCH_INC comes from the template file
5028 for dir in $with_includes $SRCH_INC; do
5029   if test -d "$dir"; then
5030     INCLUDES="$INCLUDES -I$dir"
5031   else
5032     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5033 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5034   fi
5035 done
5036 IFS=$ac_save_IFS
5037
5038
5039
5040 #
5041 # Library directories
5042 #
5043 ac_save_IFS=$IFS
5044 IFS="${IFS}${PATH_SEPARATOR}"
5045 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5046 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5047   if test -d "$dir"; then
5048     LIBDIRS="$LIBDIRS -L$dir"
5049   else
5050     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5051 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5052   fi
5053 done
5054 IFS=$ac_save_IFS
5055
5056 #
5057 # Enable thread-safe client libraries
5058 #
5059 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5060 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5061
5062
5063 # Check whether --enable-thread-safety was given.
5064 if test "${enable_thread_safety+set}" = set; then
5065   enableval=$enable_thread_safety;
5066   case $enableval in
5067     yes)
5068       :
5069       ;;
5070     no)
5071       :
5072       ;;
5073     *)
5074       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5075 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5076    { (exit 1); exit 1; }; }
5077       ;;
5078   esac
5079
5080 else
5081   enable_thread_safety=yes
5082
5083 fi
5084
5085
5086 if test "$enable_thread_safety" = yes; then
5087
5088 cat >>confdefs.h <<\_ACEOF
5089 #define ENABLE_THREAD_SAFETY 1
5090 _ACEOF
5091
5092 fi
5093 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5094 $as_echo "$enable_thread_safety" >&6; }
5095
5096
5097 #
5098 # Optionally build Tcl modules (PL/Tcl)
5099 #
5100 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5101 $as_echo_n "checking whether to build with Tcl... " >&6; }
5102
5103
5104
5105 # Check whether --with-tcl was given.
5106 if test "${with_tcl+set}" = set; then
5107   withval=$with_tcl;
5108   case $withval in
5109     yes)
5110       :
5111       ;;
5112     no)
5113       :
5114       ;;
5115     *)
5116       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5117 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5118    { (exit 1); exit 1; }; }
5119       ;;
5120   esac
5121
5122 else
5123   with_tcl=no
5124
5125 fi
5126
5127
5128 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5129 $as_echo "$with_tcl" >&6; }
5130
5131
5132 # We see if the path to the Tcl/Tk configuration scripts is specified.
5133 # This will override the use of tclsh to find the paths to search.
5134
5135
5136
5137
5138 # Check whether --with-tclconfig was given.
5139 if test "${with_tclconfig+set}" = set; then
5140   withval=$with_tclconfig;
5141   case $withval in
5142     yes)
5143       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5144 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5145    { (exit 1); exit 1; }; }
5146       ;;
5147     no)
5148       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5149 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5150    { (exit 1); exit 1; }; }
5151       ;;
5152     *)
5153
5154       ;;
5155   esac
5156
5157 fi
5158
5159
5160
5161 #
5162 # Optionally build Perl modules (PL/Perl)
5163 #
5164 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5165 $as_echo_n "checking whether to build Perl modules... " >&6; }
5166
5167
5168
5169 # Check whether --with-perl was given.
5170 if test "${with_perl+set}" = set; then
5171   withval=$with_perl;
5172   case $withval in
5173     yes)
5174       :
5175       ;;
5176     no)
5177       :
5178       ;;
5179     *)
5180       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5181 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5182    { (exit 1); exit 1; }; }
5183       ;;
5184   esac
5185
5186 else
5187   with_perl=no
5188
5189 fi
5190
5191
5192 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5193 $as_echo "$with_perl" >&6; }
5194
5195
5196 #
5197 # Optionally build Python modules (PL/Python)
5198 #
5199 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5200 $as_echo_n "checking whether to build Python modules... " >&6; }
5201
5202
5203
5204 # Check whether --with-python was given.
5205 if test "${with_python+set}" = set; then
5206   withval=$with_python;
5207   case $withval in
5208     yes)
5209       :
5210       ;;
5211     no)
5212       :
5213       ;;
5214     *)
5215       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5216 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5217    { (exit 1); exit 1; }; }
5218       ;;
5219   esac
5220
5221 else
5222   with_python=no
5223
5224 fi
5225
5226
5227 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5228 $as_echo "$with_python" >&6; }
5229
5230
5231 #
5232 # GSSAPI
5233 #
5234 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5235 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5236
5237
5238
5239 # Check whether --with-gssapi was given.
5240 if test "${with_gssapi+set}" = set; then
5241   withval=$with_gssapi;
5242   case $withval in
5243     yes)
5244
5245
5246 cat >>confdefs.h <<\_ACEOF
5247 #define ENABLE_GSS 1
5248 _ACEOF
5249
5250   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5251
5252       ;;
5253     no)
5254       :
5255       ;;
5256     *)
5257       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5258 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5259    { (exit 1); exit 1; }; }
5260       ;;
5261   esac
5262
5263 else
5264   with_gssapi=no
5265
5266 fi
5267
5268
5269 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5270 $as_echo "$with_gssapi" >&6; }
5271
5272
5273 #
5274 # Kerberos 5
5275 #
5276 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5277 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5278
5279
5280
5281 # Check whether --with-krb5 was given.
5282 if test "${with_krb5+set}" = set; then
5283   withval=$with_krb5;
5284   case $withval in
5285     yes)
5286
5287
5288 cat >>confdefs.h <<\_ACEOF
5289 #define KRB5 1
5290 _ACEOF
5291
5292   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5293
5294       ;;
5295     no)
5296       :
5297       ;;
5298     *)
5299       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5300 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5301    { (exit 1); exit 1; }; }
5302       ;;
5303   esac
5304
5305 else
5306   with_krb5=no
5307
5308 fi
5309
5310
5311 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5312 $as_echo "$with_krb5" >&6; }
5313
5314
5315
5316
5317
5318
5319 #
5320 # Kerberos configuration parameters
5321 #
5322
5323
5324
5325 # Check whether --with-krb-srvnam was given.
5326 if test "${with_krb_srvnam+set}" = set; then
5327   withval=$with_krb_srvnam;
5328   case $withval in
5329     yes)
5330       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5331 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5332    { (exit 1); exit 1; }; }
5333       ;;
5334     no)
5335       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5336 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5337    { (exit 1); exit 1; }; }
5338       ;;
5339     *)
5340
5341       ;;
5342   esac
5343
5344 else
5345   with_krb_srvnam="postgres"
5346 fi
5347
5348
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5352 _ACEOF
5353
5354
5355
5356 #
5357 # PAM
5358 #
5359 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5360 $as_echo_n "checking whether to build with PAM support... " >&6; }
5361
5362
5363
5364 # Check whether --with-pam was given.
5365 if test "${with_pam+set}" = set; then
5366   withval=$with_pam;
5367   case $withval in
5368     yes)
5369
5370 cat >>confdefs.h <<\_ACEOF
5371 #define USE_PAM 1
5372 _ACEOF
5373
5374       ;;
5375     no)
5376       :
5377       ;;
5378     *)
5379       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5380 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5381    { (exit 1); exit 1; }; }
5382       ;;
5383   esac
5384
5385 else
5386   with_pam=no
5387
5388 fi
5389
5390
5391 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5392 $as_echo "$with_pam" >&6; }
5393
5394
5395
5396 #
5397 # LDAP
5398 #
5399 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5400 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5401
5402
5403
5404 # Check whether --with-ldap was given.
5405 if test "${with_ldap+set}" = set; then
5406   withval=$with_ldap;
5407   case $withval in
5408     yes)
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define USE_LDAP 1
5412 _ACEOF
5413
5414       ;;
5415     no)
5416       :
5417       ;;
5418     *)
5419       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5420 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5421    { (exit 1); exit 1; }; }
5422       ;;
5423   esac
5424
5425 else
5426   with_ldap=no
5427
5428 fi
5429
5430
5431 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5432 $as_echo "$with_ldap" >&6; }
5433
5434
5435
5436 #
5437 # Bonjour
5438 #
5439 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5440 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5441
5442
5443
5444 # Check whether --with-bonjour was given.
5445 if test "${with_bonjour+set}" = set; then
5446   withval=$with_bonjour;
5447   case $withval in
5448     yes)
5449
5450 cat >>confdefs.h <<\_ACEOF
5451 #define USE_BONJOUR 1
5452 _ACEOF
5453
5454       ;;
5455     no)
5456       :
5457       ;;
5458     *)
5459       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5460 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5461    { (exit 1); exit 1; }; }
5462       ;;
5463   esac
5464
5465 else
5466   with_bonjour=no
5467
5468 fi
5469
5470
5471 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5472 $as_echo "$with_bonjour" >&6; }
5473
5474
5475
5476 #
5477 # OpenSSL
5478 #
5479 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5480 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5481
5482
5483
5484 # Check whether --with-openssl was given.
5485 if test "${with_openssl+set}" = set; then
5486   withval=$with_openssl;
5487   case $withval in
5488     yes)
5489
5490 cat >>confdefs.h <<\_ACEOF
5491 #define USE_SSL 1
5492 _ACEOF
5493
5494       ;;
5495     no)
5496       :
5497       ;;
5498     *)
5499       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5501    { (exit 1); exit 1; }; }
5502       ;;
5503   esac
5504
5505 else
5506   with_openssl=no
5507
5508 fi
5509
5510
5511 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5512 $as_echo "$with_openssl" >&6; }
5513
5514
5515 #
5516 # SELinux
5517 #
5518 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5519 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5520
5521
5522
5523 # Check whether --with-selinux was given.
5524 if test "${with_selinux+set}" = set; then
5525   withval=$with_selinux;
5526   case $withval in
5527     yes)
5528       :
5529       ;;
5530     no)
5531       :
5532       ;;
5533     *)
5534       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5535 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5536    { (exit 1); exit 1; }; }
5537       ;;
5538   esac
5539
5540 else
5541   with_selinux=no
5542
5543 fi
5544
5545
5546
5547 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5548 $as_echo "$with_selinux" >&6; }
5549
5550 #
5551 # Readline
5552 #
5553
5554
5555
5556 # Check whether --with-readline was given.
5557 if test "${with_readline+set}" = set; then
5558   withval=$with_readline;
5559   case $withval in
5560     yes)
5561       :
5562       ;;
5563     no)
5564       :
5565       ;;
5566     *)
5567       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5568 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5569    { (exit 1); exit 1; }; }
5570       ;;
5571   esac
5572
5573 else
5574   with_readline=yes
5575
5576 fi
5577
5578
5579 # readline on MinGW has problems with backslashes in psql and other bugs.
5580 # This is particularly a problem with non-US code pages.
5581 # Therefore disable its use until we understand the cause. 2004-07-20
5582 if test "$PORTNAME" = "win32"; then
5583   if test "$with_readline" = yes; then
5584     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5585 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5586     with_readline=no
5587   fi
5588 fi
5589
5590
5591 #
5592 # Prefer libedit
5593 #
5594
5595
5596
5597 # Check whether --with-libedit-preferred was given.
5598 if test "${with_libedit_preferred+set}" = set; then
5599   withval=$with_libedit_preferred;
5600   case $withval in
5601     yes)
5602       :
5603       ;;
5604     no)
5605       :
5606       ;;
5607     *)
5608       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5609 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5610    { (exit 1); exit 1; }; }
5611       ;;
5612   esac
5613
5614 else
5615   with_libedit_preferred=no
5616
5617 fi
5618
5619
5620
5621
5622 #
5623 # OSSP UUID library
5624 #
5625
5626
5627
5628 # Check whether --with-ossp-uuid was given.
5629 if test "${with_ossp_uuid+set}" = set; then
5630   withval=$with_ossp_uuid;
5631   case $withval in
5632     yes)
5633       :
5634       ;;
5635     no)
5636       :
5637       ;;
5638     *)
5639       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5640 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5641    { (exit 1); exit 1; }; }
5642       ;;
5643   esac
5644
5645 else
5646   with_ossp_uuid=no
5647
5648 fi
5649
5650
5651
5652
5653
5654 #
5655 # XML
5656 #
5657
5658
5659
5660 # Check whether --with-libxml was given.
5661 if test "${with_libxml+set}" = set; then
5662   withval=$with_libxml;
5663   case $withval in
5664     yes)
5665
5666 cat >>confdefs.h <<\_ACEOF
5667 #define USE_LIBXML 1
5668 _ACEOF
5669
5670       ;;
5671     no)
5672       :
5673       ;;
5674     *)
5675       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5676 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5677    { (exit 1); exit 1; }; }
5678       ;;
5679   esac
5680
5681 else
5682   with_libxml=no
5683
5684 fi
5685
5686
5687
5688 if test "$with_libxml" = yes ; then
5689   for ac_prog in xml2-config
5690 do
5691   # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test -n "$XML2_CONFIG"; then
5699   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_prog_XML2_CONFIG="$ac_prog"
5709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5719 if test -n "$XML2_CONFIG"; then
5720   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5721 $as_echo "$XML2_CONFIG" >&6; }
5722 else
5723   { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728   test -n "$XML2_CONFIG" && break
5729 done
5730
5731   if test -n "$XML2_CONFIG"; then
5732     for pgac_option in `$XML2_CONFIG --cflags`; do
5733       case $pgac_option in
5734         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5735       esac
5736     done
5737     for pgac_option in `$XML2_CONFIG --libs`; do
5738       case $pgac_option in
5739         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5740       esac
5741     done
5742   fi
5743 fi
5744
5745
5746
5747 #
5748 # XSLT
5749 #
5750
5751
5752
5753 # Check whether --with-libxslt was given.
5754 if test "${with_libxslt+set}" = set; then
5755   withval=$with_libxslt;
5756   case $withval in
5757     yes)
5758
5759 cat >>confdefs.h <<\_ACEOF
5760 #define USE_LIBXSLT 1
5761 _ACEOF
5762
5763       ;;
5764     no)
5765       :
5766       ;;
5767     *)
5768       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5769 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5770    { (exit 1); exit 1; }; }
5771       ;;
5772   esac
5773
5774 else
5775   with_libxslt=no
5776
5777 fi
5778
5779
5780
5781
5782
5783
5784 #
5785 # tzdata
5786 #
5787
5788
5789
5790 # Check whether --with-system-tzdata was given.
5791 if test "${with_system_tzdata+set}" = set; then
5792   withval=$with_system_tzdata;
5793   case $withval in
5794     yes)
5795       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5796 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5797    { (exit 1); exit 1; }; }
5798       ;;
5799     no)
5800       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5801 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5802    { (exit 1); exit 1; }; }
5803       ;;
5804     *)
5805
5806       ;;
5807   esac
5808
5809 fi
5810
5811
5812
5813
5814 #
5815 # Zlib
5816 #
5817
5818
5819
5820 # Check whether --with-zlib was given.
5821 if test "${with_zlib+set}" = set; then
5822   withval=$with_zlib;
5823   case $withval in
5824     yes)
5825       :
5826       ;;
5827     no)
5828       :
5829       ;;
5830     *)
5831       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5832 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5833    { (exit 1); exit 1; }; }
5834       ;;
5835   esac
5836
5837 else
5838   with_zlib=yes
5839
5840 fi
5841
5842
5843
5844
5845 #
5846 # Elf
5847 #
5848
5849 # Assume system is ELF if it predefines __ELF__ as 1,
5850 # otherwise believe host_os based default.
5851 case $host_os in
5852     freebsd1*|freebsd2*) elf=no;;
5853     freebsd3*|freebsd4*) elf=yes;;
5854 esac
5855
5856
5857 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5859 if test "${ac_cv_path_GREP+set}" = set; then
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -z "$GREP"; then
5863   ac_path_GREP_found=false
5864   # Loop through the user's path and test for each of PROGNAME-LIST
5865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870   for ac_prog in grep ggrep; do
5871     for ac_exec_ext in '' $ac_executable_extensions; do
5872       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5873       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5874 # Check for GNU ac_path_GREP and select it if it is found.
5875   # Check for GNU $ac_path_GREP
5876 case `"$ac_path_GREP" --version 2>&1` in
5877 *GNU*)
5878   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5879 *)
5880   ac_count=0
5881   $as_echo_n 0123456789 >"conftest.in"
5882   while :
5883   do
5884     cat "conftest.in" "conftest.in" >"conftest.tmp"
5885     mv "conftest.tmp" "conftest.in"
5886     cp "conftest.in" "conftest.nl"
5887     $as_echo 'GREP' >> "conftest.nl"
5888     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890     ac_count=`expr $ac_count + 1`
5891     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5892       # Best one so far, save it but keep looking for a better one
5893       ac_cv_path_GREP="$ac_path_GREP"
5894       ac_path_GREP_max=$ac_count
5895     fi
5896     # 10*(2^10) chars as input seems more than enough
5897     test $ac_count -gt 10 && break
5898   done
5899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5900 esac
5901
5902       $ac_path_GREP_found && break 3
5903     done
5904   done
5905 done
5906 IFS=$as_save_IFS
5907   if test -z "$ac_cv_path_GREP"; then
5908     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5909 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5910    { (exit 1); exit 1; }; }
5911   fi
5912 else
5913   ac_cv_path_GREP=$GREP
5914 fi
5915
5916 fi
5917 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5918 $as_echo "$ac_cv_path_GREP" >&6; }
5919  GREP="$ac_cv_path_GREP"
5920
5921
5922 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5923 $as_echo_n "checking for egrep... " >&6; }
5924 if test "${ac_cv_path_EGREP+set}" = set; then
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5928    then ac_cv_path_EGREP="$GREP -E"
5929    else
5930      if test -z "$EGREP"; then
5931   ac_path_EGREP_found=false
5932   # Loop through the user's path and test for each of PROGNAME-LIST
5933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_prog in egrep; do
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5941       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5942 # Check for GNU ac_path_EGREP and select it if it is found.
5943   # Check for GNU $ac_path_EGREP
5944 case `"$ac_path_EGREP" --version 2>&1` in
5945 *GNU*)
5946   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5947 *)
5948   ac_count=0
5949   $as_echo_n 0123456789 >"conftest.in"
5950   while :
5951   do
5952     cat "conftest.in" "conftest.in" >"conftest.tmp"
5953     mv "conftest.tmp" "conftest.in"
5954     cp "conftest.in" "conftest.nl"
5955     $as_echo 'EGREP' >> "conftest.nl"
5956     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958     ac_count=`expr $ac_count + 1`
5959     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5960       # Best one so far, save it but keep looking for a better one
5961       ac_cv_path_EGREP="$ac_path_EGREP"
5962       ac_path_EGREP_max=$ac_count
5963     fi
5964     # 10*(2^10) chars as input seems more than enough
5965     test $ac_count -gt 10 && break
5966   done
5967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968 esac
5969
5970       $ac_path_EGREP_found && break 3
5971     done
5972   done
5973 done
5974 IFS=$as_save_IFS
5975   if test -z "$ac_cv_path_EGREP"; then
5976     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5977 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5978    { (exit 1); exit 1; }; }
5979   fi
5980 else
5981   ac_cv_path_EGREP=$EGREP
5982 fi
5983
5984    fi
5985 fi
5986 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5987 $as_echo "$ac_cv_path_EGREP" >&6; }
5988  EGREP="$ac_cv_path_EGREP"
5989
5990
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 #if __ELF__
5998   yes
5999 #endif
6000
6001 _ACEOF
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003   $EGREP "yes" >/dev/null 2>&1; then
6004   ELF_SYS=true
6005 else
6006   if test "X$elf" = "Xyes" ; then
6007   ELF_SYS=true
6008 else
6009   ELF_SYS=
6010 fi
6011 fi
6012 rm -f conftest*
6013
6014
6015
6016 #
6017 # Assignments
6018 #
6019
6020 CPPFLAGS="$CPPFLAGS $INCLUDES"
6021 LDFLAGS="$LDFLAGS $LIBDIRS"
6022
6023
6024
6025
6026
6027 # Check whether --with-gnu-ld was given.
6028 if test "${with_gnu_ld+set}" = set; then
6029   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6030 else
6031   with_gnu_ld=no
6032 fi
6033
6034 ac_prog=ld
6035 if test "$GCC" = yes; then
6036   # Check if gcc -print-prog-name=ld gives a path.
6037   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6038 $as_echo_n "checking for ld used by GCC... " >&6; }
6039   case $host in
6040   *-*-mingw*)
6041     # gcc leaves a trailing carriage return which upsets mingw
6042     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6043   *)
6044     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6045   esac
6046   case "$ac_prog" in
6047     # Accept absolute paths.
6048     [\\/]* | [A-Za-z]:[\\/]*)
6049       re_direlt='/[^/][^/]*/\.\./'
6050       # Canonicalize the path of ld
6051       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6052       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6053         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6054       done
6055       test -z "$LD" && LD="$ac_prog"
6056       ;;
6057   "")
6058     # If it fails, then pretend we aren't using GCC.
6059     ac_prog=ld
6060     ;;
6061   *)
6062     # If it is relative, then search for the first ld in PATH.
6063     with_gnu_ld=unknown
6064     ;;
6065   esac
6066 elif test "$with_gnu_ld" = yes; then
6067   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6068 $as_echo_n "checking for GNU ld... " >&6; }
6069 else
6070   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6071 $as_echo_n "checking for non-GNU ld... " >&6; }
6072 fi
6073 if test "${ac_cv_path_LD+set}" = set; then
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -z "$LD"; then
6077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6078   for ac_dir in $PATH; do
6079     test -z "$ac_dir" && ac_dir=.
6080     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6081       ac_cv_path_LD="$ac_dir/$ac_prog"
6082       # Check to see if the program is GNU ld.  I'd rather use --version,
6083       # but apparently some GNU ld's only accept -v.
6084       # Break only if it was the GNU/non-GNU ld that we prefer.
6085       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6086         test "$with_gnu_ld" != no && break
6087       else
6088         test "$with_gnu_ld" != yes && break
6089       fi
6090     fi
6091   done
6092   IFS="$ac_save_ifs"
6093 else
6094   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6095 fi
6096 fi
6097
6098 LD="$ac_cv_path_LD"
6099 if test -n "$LD"; then
6100   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6101 $as_echo "$LD" >&6; }
6102 else
6103   { $as_echo "$as_me:$LINENO: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6107 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6108    { (exit 1); exit 1; }; }
6109 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6111 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6112   $as_echo_n "(cached) " >&6
6113 else
6114   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6115 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6116   ac_cv_prog_gnu_ld=yes
6117 else
6118   ac_cv_prog_gnu_ld=no
6119 fi
6120 fi
6121 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6122 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6123 with_gnu_ld=$ac_cv_prog_gnu_ld
6124
6125
6126
6127
6128 case $host_os in sysv5*)
6129   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6130 $as_echo_n "checking whether ld -R works... " >&6; }
6131 if test "${pgac_cv_prog_ld_R+set}" = set; then
6132   $as_echo_n "(cached) " >&6
6133 else
6134
6135     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6136     cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142
6143 int
6144 main ()
6145 {
6146
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (ac_try="$ac_link"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159   (eval "$ac_link") 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } && {
6166          test -z "$ac_c_werror_flag" ||
6167          test ! -s conftest.err
6168        } && test -s conftest$ac_exeext && {
6169          test "$cross_compiling" = yes ||
6170          $as_test_x conftest$ac_exeext
6171        }; then
6172   pgac_cv_prog_ld_R=yes
6173 else
6174   $as_echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177         pgac_cv_prog_ld_R=no
6178 fi
6179
6180 rm -rf conftest.dSYM
6181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6182       conftest$ac_exeext conftest.$ac_ext
6183     LDFLAGS=$pgac_save_LDFLAGS
6184
6185 fi
6186 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6187 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6188   ld_R_works=$pgac_cv_prog_ld_R
6189
6190 esac
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_RANLIB+set}" = set; then
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$RANLIB"; then
6200   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6210     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 RANLIB=$ac_cv_prog_RANLIB
6220 if test -n "$RANLIB"; then
6221   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6222 $as_echo "$RANLIB" >&6; }
6223 else
6224   { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_RANLIB"; then
6231   ac_ct_RANLIB=$RANLIB
6232   # Extract the first word of "ranlib", so it can be a program name with args.
6233 set dummy ranlib; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -n "$ac_ct_RANLIB"; then
6240   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_RANLIB="ranlib"
6250     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6260 if test -n "$ac_ct_RANLIB"; then
6261   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6262 $as_echo "$ac_ct_RANLIB" >&6; }
6263 else
6264   { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_RANLIB" = x; then
6269     RANLIB=":"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     RANLIB=$ac_ct_RANLIB
6278   fi
6279 else
6280   RANLIB="$ac_cv_prog_RANLIB"
6281 fi
6282
6283
6284   if test -n "$ac_tool_prefix"; then
6285   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}strip; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_STRIP+set}" = set; then
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$STRIP"; then
6293   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6303     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 STRIP=$ac_cv_prog_STRIP
6313 if test -n "$STRIP"; then
6314   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6315 $as_echo "$STRIP" >&6; }
6316 else
6317   { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_STRIP"; then
6324   ac_ct_STRIP=$STRIP
6325   # Extract the first word of "strip", so it can be a program name with args.
6326 set dummy strip; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6330   $as_echo_n "(cached) " >&6
6331 else
6332   if test -n "$ac_ct_STRIP"; then
6333   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338   IFS=$as_save_IFS
6339   test -z "$as_dir" && as_dir=.
6340   for ac_exec_ext in '' $ac_executable_extensions; do
6341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342     ac_cv_prog_ac_ct_STRIP="strip"
6343     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344     break 2
6345   fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6353 if test -n "$ac_ct_STRIP"; then
6354   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6355 $as_echo "$ac_ct_STRIP" >&6; }
6356 else
6357   { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361   if test "x$ac_ct_STRIP" = x; then
6362     STRIP=":"
6363   else
6364     case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370     STRIP=$ac_ct_STRIP
6371   fi
6372 else
6373   STRIP="$ac_cv_prog_STRIP"
6374 fi
6375
6376
6377   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6378 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6379   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6380     STRIP_STATIC_LIB="$STRIP -x"
6381     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6382     { $as_echo "$as_me:$LINENO: result: yes" >&5
6383 $as_echo "yes" >&6; }
6384   else
6385     STRIP_STATIC_LIB=:
6386     STRIP_SHARED_LIB=:
6387     { $as_echo "$as_me:$LINENO: result: no" >&5
6388 $as_echo "no" >&6; }
6389   fi
6390
6391
6392
6393 if test -n "$ac_tool_prefix"; then
6394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}ar; ac_word=$2
6396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_AR+set}" = set; then
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$AR"; then
6402   ac_cv_prog_AR="$AR" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_AR="${ac_tool_prefix}ar"
6412     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 AR=$ac_cv_prog_AR
6422 if test -n "$AR"; then
6423   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6424 $as_echo "$AR" >&6; }
6425 else
6426   { $as_echo "$as_me:$LINENO: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_AR"; then
6433   ac_ct_AR=$AR
6434   # Extract the first word of "ar", so it can be a program name with args.
6435 set dummy ar; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$ac_ct_AR"; then
6442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_ac_ct_AR="ar"
6452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6462 if test -n "$ac_ct_AR"; then
6463   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6464 $as_echo "$ac_ct_AR" >&6; }
6465 else
6466   { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470   if test "x$ac_ct_AR" = x; then
6471     AR="ar"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     AR=$ac_ct_AR
6480   fi
6481 else
6482   AR="$ac_cv_prog_AR"
6483 fi
6484
6485 if test "$PORTNAME" = "win32"; then
6486   if test -n "$ac_tool_prefix"; then
6487   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$DLLTOOL"; then
6495   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 DLLTOOL=$ac_cv_prog_DLLTOOL
6515 if test -n "$DLLTOOL"; then
6516   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6517 $as_echo "$DLLTOOL" >&6; }
6518 else
6519   { $as_echo "$as_me:$LINENO: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_DLLTOOL"; then
6526   ac_ct_DLLTOOL=$DLLTOOL
6527   # Extract the first word of "dlltool", so it can be a program name with args.
6528 set dummy dlltool; ac_word=$2
6529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6532   $as_echo_n "(cached) " >&6
6533 else
6534   if test -n "$ac_ct_DLLTOOL"; then
6535   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6545     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6555 if test -n "$ac_ct_DLLTOOL"; then
6556   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6557 $as_echo "$ac_ct_DLLTOOL" >&6; }
6558 else
6559   { $as_echo "$as_me:$LINENO: result: no" >&5
6560 $as_echo "no" >&6; }
6561 fi
6562
6563   if test "x$ac_ct_DLLTOOL" = x; then
6564     DLLTOOL="dlltool"
6565   else
6566     case $cross_compiling:$ac_tool_warned in
6567 yes:)
6568 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6570 ac_tool_warned=yes ;;
6571 esac
6572     DLLTOOL=$ac_ct_DLLTOOL
6573   fi
6574 else
6575   DLLTOOL="$ac_cv_prog_DLLTOOL"
6576 fi
6577
6578   if test -n "$ac_tool_prefix"; then
6579   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6584   $as_echo_n "(cached) " >&6
6585 else
6586   if test -n "$DLLWRAP"; then
6587   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594   for ac_exec_ext in '' $ac_executable_extensions; do
6595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6597     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 DLLWRAP=$ac_cv_prog_DLLWRAP
6607 if test -n "$DLLWRAP"; then
6608   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6609 $as_echo "$DLLWRAP" >&6; }
6610 else
6611   { $as_echo "$as_me:$LINENO: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615
6616 fi
6617 if test -z "$ac_cv_prog_DLLWRAP"; then
6618   ac_ct_DLLWRAP=$DLLWRAP
6619   # Extract the first word of "dllwrap", so it can be a program name with args.
6620 set dummy dllwrap; ac_word=$2
6621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6624   $as_echo_n "(cached) " >&6
6625 else
6626   if test -n "$ac_ct_DLLWRAP"; then
6627   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6637     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6647 if test -n "$ac_ct_DLLWRAP"; then
6648   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6649 $as_echo "$ac_ct_DLLWRAP" >&6; }
6650 else
6651   { $as_echo "$as_me:$LINENO: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654
6655   if test "x$ac_ct_DLLWRAP" = x; then
6656     DLLWRAP="dllwrap"
6657   else
6658     case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664     DLLWRAP=$ac_ct_DLLWRAP
6665   fi
6666 else
6667   DLLWRAP="$ac_cv_prog_DLLWRAP"
6668 fi
6669
6670   if test -n "$ac_tool_prefix"; then
6671   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}windres; ac_word=$2
6673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_WINDRES+set}" = set; then
6676   $as_echo_n "(cached) " >&6
6677 else
6678   if test -n "$WINDRES"; then
6679   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6689     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 WINDRES=$ac_cv_prog_WINDRES
6699 if test -n "$WINDRES"; then
6700   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6701 $as_echo "$WINDRES" >&6; }
6702 else
6703   { $as_echo "$as_me:$LINENO: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707
6708 fi
6709 if test -z "$ac_cv_prog_WINDRES"; then
6710   ac_ct_WINDRES=$WINDRES
6711   # Extract the first word of "windres", so it can be a program name with args.
6712 set dummy windres; ac_word=$2
6713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6716   $as_echo_n "(cached) " >&6
6717 else
6718   if test -n "$ac_ct_WINDRES"; then
6719   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726   for ac_exec_ext in '' $ac_executable_extensions; do
6727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_prog_ac_ct_WINDRES="windres"
6729     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6739 if test -n "$ac_ct_WINDRES"; then
6740   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6741 $as_echo "$ac_ct_WINDRES" >&6; }
6742 else
6743   { $as_echo "$as_me:$LINENO: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747   if test "x$ac_ct_WINDRES" = x; then
6748     WINDRES="windres"
6749   else
6750     case $cross_compiling:$ac_tool_warned in
6751 yes:)
6752 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756     WINDRES=$ac_ct_WINDRES
6757   fi
6758 else
6759   WINDRES="$ac_cv_prog_WINDRES"
6760 fi
6761
6762 fi
6763
6764 # Extract the first word of "tar", so it can be a program name with args.
6765 set dummy tar; ac_word=$2
6766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_path_TAR+set}" = set; then
6769   $as_echo_n "(cached) " >&6
6770 else
6771   case $TAR in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6774   ;;
6775   *)
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6784     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791   ;;
6792 esac
6793 fi
6794 TAR=$ac_cv_path_TAR
6795 if test -n "$TAR"; then
6796   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6797 $as_echo "$TAR" >&6; }
6798 else
6799   { $as_echo "$as_me:$LINENO: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6805 $as_echo_n "checking whether ln -s works... " >&6; }
6806 LN_S=$as_ln_s
6807 if test "$LN_S" = "ln -s"; then
6808   { $as_echo "$as_me:$LINENO: result: yes" >&5
6809 $as_echo "yes" >&6; }
6810 else
6811   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6812 $as_echo "no, using $LN_S" >&6; }
6813 fi
6814
6815 for ac_prog in gawk mawk nawk awk
6816 do
6817   # Extract the first word of "$ac_prog", so it can be a program name with args.
6818 set dummy $ac_prog; ac_word=$2
6819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_AWK+set}" = set; then
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$AWK"; then
6825   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_AWK="$ac_prog"
6835     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 AWK=$ac_cv_prog_AWK
6845 if test -n "$AWK"; then
6846   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6847 $as_echo "$AWK" >&6; }
6848 else
6849   { $as_echo "$as_me:$LINENO: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854   test -n "$AWK" && break
6855 done
6856
6857 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6859 if test -z "$MKDIR_P"; then
6860   if test "${ac_cv_path_mkdir+set}" = set; then
6861   $as_echo_n "(cached) " >&6
6862 else
6863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_prog in mkdir gmkdir; do
6869          for ac_exec_ext in '' $ac_executable_extensions; do
6870            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6871            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6872              'mkdir (GNU coreutils) '* | \
6873              'mkdir (coreutils) '* | \
6874              'mkdir (fileutils) '4.1*)
6875                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6876                break 3;;
6877            esac
6878          done
6879        done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884
6885   if test "${ac_cv_path_mkdir+set}" = set; then
6886     MKDIR_P="$ac_cv_path_mkdir -p"
6887   else
6888     # As a last resort, use the slow shell script.  Don't cache a
6889     # value for MKDIR_P within a source directory, because that will
6890     # break other packages using the cache if that directory is
6891     # removed, or if the value is a relative name.
6892     test -d ./--version && rmdir ./--version
6893     MKDIR_P="$ac_install_sh -d"
6894   fi
6895 fi
6896 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6897 $as_echo "$MKDIR_P" >&6; }
6898
6899 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6900 # a relative path to it in each makefile where it subsitutes it. This clashes
6901 # with our Makefile.global concept. This workaround helps.
6902 case $MKDIR_P in
6903   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6904 esac
6905
6906 # Let the user override the search
6907 if test -z "$BISON"; then
6908   for ac_prog in bison
6909 do
6910   # Extract the first word of "$ac_prog", so it can be a program name with args.
6911 set dummy $ac_prog; ac_word=$2
6912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_path_BISON+set}" = set; then
6915   $as_echo_n "(cached) " >&6
6916 else
6917   case $BISON in
6918   [\\/]* | ?:[\\/]*)
6919   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6920   ;;
6921   *)
6922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937   ;;
6938 esac
6939 fi
6940 BISON=$ac_cv_path_BISON
6941 if test -n "$BISON"; then
6942   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6943 $as_echo "$BISON" >&6; }
6944 else
6945   { $as_echo "$as_me:$LINENO: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950   test -n "$BISON" && break
6951 done
6952
6953 fi
6954
6955 if test "$BISON"; then
6956   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6957   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6958 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6959   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6960   then
6961     { $as_echo "$as_me:$LINENO: WARNING:
6962 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6963 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6964 $as_echo "$as_me: WARNING:
6965 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6966 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6967     BISON=""
6968   fi
6969 fi
6970
6971 if test -z "$BISON"; then
6972   { $as_echo "$as_me:$LINENO: WARNING:
6973 *** Without Bison you will not be able to build PostgreSQL from Git nor
6974 *** change any of the parser definition files.  You can obtain Bison from
6975 *** a GNU mirror site.  (If you are using the official distribution of
6976 *** PostgreSQL then you do not need to worry about this, because the Bison
6977 *** output is pre-generated.)" >&5
6978 $as_echo "$as_me: WARNING:
6979 *** Without Bison you will not be able to build PostgreSQL from Git nor
6980 *** change any of the parser definition files.  You can obtain Bison from
6981 *** a GNU mirror site.  (If you are using the official distribution of
6982 *** PostgreSQL then you do not need to worry about this, because the Bison
6983 *** output is pre-generated.)" >&2;}
6984 fi
6985 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6986
6987
6988 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6989 $as_echo_n "checking for flex... " >&6; }
6990 if test "${pgac_cv_path_flex+set}" = set; then
6991   $as_echo_n "(cached) " >&6
6992 else
6993   # Let the user override the test
6994 if test -n "$FLEX"; then
6995   pgac_cv_path_flex=$FLEX
6996 else
6997   pgac_save_IFS=$IFS
6998   IFS=$PATH_SEPARATOR
6999   for pgac_dir in $PATH; do
7000     IFS=$pgac_save_IFS
7001     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7002       pgac_dir=`pwd`
7003     fi
7004     for pgac_prog in flex lex; do
7005       pgac_candidate="$pgac_dir/$pgac_prog"
7006       if test -f "$pgac_candidate" \
7007         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7008       then
7009         echo '%%'  > conftest.l
7010         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7011           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7012           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7013           then
7014             pgac_cv_path_flex=$pgac_candidate
7015             break 2
7016           else
7017             { $as_echo "$as_me:$LINENO: WARNING:
7018 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7019 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7020 $as_echo "$as_me: WARNING:
7021 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7022 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7023           fi
7024         fi
7025       fi
7026     done
7027   done
7028   rm -f conftest.l lex.yy.c
7029   : ${pgac_cv_path_flex=no}
7030 fi
7031
7032 fi
7033 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7034 $as_echo "$pgac_cv_path_flex" >&6; }
7035 if test x"$pgac_cv_path_flex" = x"no"; then
7036   { $as_echo "$as_me:$LINENO: WARNING:
7037 *** Without Flex you will not be able to build PostgreSQL from Git nor
7038 *** change any of the scanner definition files.  You can obtain Flex from
7039 *** a GNU mirror site.  (If you are using the official distribution of
7040 *** PostgreSQL then you do not need to worry about this because the Flex
7041 *** output is pre-generated.)" >&5
7042 $as_echo "$as_me: WARNING:
7043 *** Without Flex you will not be able to build PostgreSQL from Git nor
7044 *** change any of the scanner definition files.  You can obtain Flex from
7045 *** a GNU mirror site.  (If you are using the official distribution of
7046 *** PostgreSQL then you do not need to worry about this because the Flex
7047 *** output is pre-generated.)" >&2;}
7048
7049   FLEX=
7050 else
7051   FLEX=$pgac_cv_path_flex
7052   pgac_flex_version=`$FLEX --version 2>/dev/null`
7053   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7054 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7055 fi
7056
7057
7058
7059
7060
7061 # Let the user override the search
7062 if test -z "$PERL"; then
7063   # Extract the first word of "perl", so it can be a program name with args.
7064 set dummy perl; ac_word=$2
7065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_path_PERL+set}" = set; then
7068   $as_echo_n "(cached) " >&6
7069 else
7070   case $PERL in
7071   [\\/]* | ?:[\\/]*)
7072   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7073   ;;
7074   *)
7075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080   for ac_exec_ext in '' $ac_executable_extensions; do
7081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7083     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090   ;;
7091 esac
7092 fi
7093 PERL=$ac_cv_path_PERL
7094 if test -n "$PERL"; then
7095   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7096 $as_echo "$PERL" >&6; }
7097 else
7098   { $as_echo "$as_me:$LINENO: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102
7103 fi
7104
7105 if test "$PERL"; then
7106   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'`
7107   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7108 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7109   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7110     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7111   then
7112     { $as_echo "$as_me:$LINENO: WARNING:
7113 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7114 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7115 $as_echo "$as_me: WARNING:
7116 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7117 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7118     PERL=""
7119   fi
7120 fi
7121
7122 if test -z "$PERL"; then
7123   { $as_echo "$as_me:$LINENO: WARNING:
7124 *** Without Perl you will not be able to build PostgreSQL from Git.
7125 *** You can obtain Perl from any CPAN mirror site.
7126 *** (If you are using the official distribution of PostgreSQL then you do not
7127 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7128 $as_echo "$as_me: WARNING:
7129 *** Without Perl you will not be able to build PostgreSQL from Git.
7130 *** You can obtain Perl from any CPAN mirror site.
7131 *** (If you are using the official distribution of PostgreSQL then you do not
7132 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7133 fi
7134
7135 if test "$with_perl" = yes; then
7136   if test -z "$PERL"; then
7137     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7138 $as_echo "$as_me: error: Perl not found" >&2;}
7139    { (exit 1); exit 1; }; }
7140   fi
7141
7142 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7143 $as_echo_n "checking for Perl archlibexp... " >&6; }
7144 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7145 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7146 $as_echo "$perl_archlibexp" >&6; }
7147 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7148 $as_echo_n "checking for Perl privlibexp... " >&6; }
7149 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7150 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7151 $as_echo "$perl_privlibexp" >&6; }
7152 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7153 $as_echo_n "checking for Perl useshrplib... " >&6; }
7154 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7155 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7156 $as_echo "$perl_useshrplib" >&6; }
7157
7158 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7159 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7160 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7161 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7162 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7163 if test -z "$perl_embed_ldflags" ; then
7164         { $as_echo "$as_me:$LINENO: result: no" >&5
7165 $as_echo "no" >&6; }
7166         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7167 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7168 installed." >&5
7169 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7170 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7171 installed." >&2;}
7172    { (exit 1); exit 1; }; }
7173 else
7174         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7175 $as_echo "$perl_embed_ldflags" >&6; }
7176 fi
7177
7178 fi
7179
7180 if test "$with_python" = yes; then
7181   # Extract the first word of "python", so it can be a program name with args.
7182 set dummy python; ac_word=$2
7183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if test "${ac_cv_path_PYTHON+set}" = set; then
7186   $as_echo_n "(cached) " >&6
7187 else
7188   case $PYTHON in
7189   [\\/]* | ?:[\\/]*)
7190   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7191   ;;
7192   *)
7193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208   ;;
7209 esac
7210 fi
7211 PYTHON=$ac_cv_path_PYTHON
7212 if test -n "$PYTHON"; then
7213   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7214 $as_echo "$PYTHON" >&6; }
7215 else
7216   { $as_echo "$as_me:$LINENO: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221 if test x"$PYTHON" = x""; then
7222   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7223 $as_echo "$as_me: error: Python not found" >&2;}
7224    { (exit 1); exit 1; }; }
7225 fi
7226
7227
7228 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7229 $as_echo_n "checking for Python distutils module... " >&6; }
7230 if "${PYTHON}" -c 'import distutils' 2>&5
7231 then
7232     { $as_echo "$as_me:$LINENO: result: yes" >&5
7233 $as_echo "yes" >&6; }
7234 else
7235     { $as_echo "$as_me:$LINENO: result: no" >&5
7236 $as_echo "no" >&6; }
7237     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7238 $as_echo "$as_me: error: distutils module not found" >&2;}
7239    { (exit 1); exit 1; }; }
7240 fi
7241 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7242 $as_echo_n "checking Python configuration directory... " >&6; }
7243 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7244 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7245 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'))"`
7246 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7247
7248 # This should be enough of a message.
7249 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7250 $as_echo "$python_configdir" >&6; }
7251
7252
7253 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7254 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7255
7256 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7257 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7258 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7259 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7260
7261 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7262 then
7263         # New way: use the official shared library
7264         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7265         python_libspec="-L${python_libdir} -l${ldlibrary}"
7266 else
7267         # Old way: use libpython from python_configdir
7268         python_libdir="${python_configdir}"
7269         python_libspec="-L${python_libdir} -lpython${python_version}"
7270 fi
7271
7272 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7273
7274 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7275 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7276
7277
7278 # threaded python is not supported on bsd's
7279 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7280 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7281 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7282 if test "$pythreads" = "1"; then
7283   { $as_echo "$as_me:$LINENO: result: yes" >&5
7284 $as_echo "yes" >&6; }
7285   case $host_os in
7286   openbsd*|freebsd*)
7287     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7288 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7289    { (exit 1); exit 1; }; }
7290     ;;
7291   esac
7292 else
7293   { $as_echo "$as_me:$LINENO: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299
7300 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7301   # Extract the first word of "zic", so it can be a program name with args.
7302 set dummy zic; ac_word=$2
7303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_path_ZIC+set}" = set; then
7306   $as_echo_n "(cached) " >&6
7307 else
7308   case $ZIC in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7321     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 ZIC=$ac_cv_path_ZIC
7332 if test -n "$ZIC"; then
7333   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7334 $as_echo "$ZIC" >&6; }
7335 else
7336   { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341   if test -z "$ZIC"; then
7342     { { $as_echo "$as_me:$LINENO: error:
7343 When cross-compiling, either use the option --with-system-tzdata to use
7344 existing time-zone data, or set the environment variable ZIC to a zic
7345 program to use during the build." >&5
7346 $as_echo "$as_me: error:
7347 When cross-compiling, either use the option --with-system-tzdata to use
7348 existing time-zone data, or set the environment variable ZIC to a zic
7349 program to use during the build." >&2;}
7350    { (exit 1); exit 1; }; }
7351   fi
7352 fi
7353
7354
7355 ##
7356 ## Libraries
7357 ##
7358 ## Most libraries are included only if they demonstrably provide a function
7359 ## we need, but libm is an exception: always include it, because there are
7360 ## too many compilers that play cute optimization games that will break
7361 ## probes for standard functions such as pow().
7362 ##
7363
7364
7365 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7366 $as_echo_n "checking for main in -lm... " >&6; }
7367 if test "${ac_cv_lib_m_main+set}" = set; then
7368   $as_echo_n "(cached) " >&6
7369 else
7370   ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lm  $LIBS"
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h.  */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h.  */
7378
7379
7380 int
7381 main ()
7382 {
7383 return main ();
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7395 $as_echo "$ac_try_echo") >&5
7396   (eval "$ac_link") 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } && {
7403          test -z "$ac_c_werror_flag" ||
7404          test ! -s conftest.err
7405        } && test -s conftest$ac_exeext && {
7406          test "$cross_compiling" = yes ||
7407          $as_test_x conftest$ac_exeext
7408        }; then
7409   ac_cv_lib_m_main=yes
7410 else
7411   $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414         ac_cv_lib_m_main=no
7415 fi
7416
7417 rm -rf conftest.dSYM
7418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7419       conftest$ac_exeext conftest.$ac_ext
7420 LIBS=$ac_check_lib_save_LIBS
7421 fi
7422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7423 $as_echo "$ac_cv_lib_m_main" >&6; }
7424 if test "x$ac_cv_lib_m_main" = x""yes; then
7425   cat >>confdefs.h <<_ACEOF
7426 #define HAVE_LIBM 1
7427 _ACEOF
7428
7429   LIBS="-lm $LIBS"
7430
7431 fi
7432
7433 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7434 $as_echo_n "checking for library containing setproctitle... " >&6; }
7435 if test "${ac_cv_search_setproctitle+set}" = set; then
7436   $as_echo_n "(cached) " >&6
7437 else
7438   ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445
7446 /* Override any GCC internal prototype to avoid an error.
7447    Use char because int might match the return type of a GCC
7448    builtin and then its argument prototype would still apply.  */
7449 #ifdef __cplusplus
7450 extern "C"
7451 #endif
7452 char setproctitle ();
7453 int
7454 main ()
7455 {
7456 return setproctitle ();
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 for ac_lib in '' util; do
7462   if test -z "$ac_lib"; then
7463     ac_res="none required"
7464   else
7465     ac_res=-l$ac_lib
7466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7467   fi
7468   rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7470 case "(($ac_try" in
7471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472   *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476   (eval "$ac_link") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest$ac_exeext && {
7486          test "$cross_compiling" = yes ||
7487          $as_test_x conftest$ac_exeext
7488        }; then
7489   ac_cv_search_setproctitle=$ac_res
7490 else
7491   $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494
7495 fi
7496
7497 rm -rf conftest.dSYM
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499       conftest$ac_exeext
7500   if test "${ac_cv_search_setproctitle+set}" = set; then
7501   break
7502 fi
7503 done
7504 if test "${ac_cv_search_setproctitle+set}" = set; then
7505   :
7506 else
7507   ac_cv_search_setproctitle=no
7508 fi
7509 rm conftest.$ac_ext
7510 LIBS=$ac_func_search_save_LIBS
7511 fi
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7513 $as_echo "$ac_cv_search_setproctitle" >&6; }
7514 ac_res=$ac_cv_search_setproctitle
7515 if test "$ac_res" != no; then
7516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7517
7518 fi
7519
7520 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7521 $as_echo_n "checking for library containing dlopen... " >&6; }
7522 if test "${ac_cv_search_dlopen+set}" = set; then
7523   $as_echo_n "(cached) " >&6
7524 else
7525   ac_func_search_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532
7533 /* Override any GCC internal prototype to avoid an error.
7534    Use char because int might match the return type of a GCC
7535    builtin and then its argument prototype would still apply.  */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 char dlopen ();
7540 int
7541 main ()
7542 {
7543 return dlopen ();
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 for ac_lib in '' dl; do
7549   if test -z "$ac_lib"; then
7550     ac_res="none required"
7551   else
7552     ac_res=-l$ac_lib
7553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7554   fi
7555   rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (ac_try="$ac_link"
7557 case "(($ac_try" in
7558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559   *) ac_try_echo=$ac_try;;
7560 esac
7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562 $as_echo "$ac_try_echo") >&5
7563   (eval "$ac_link") 2>conftest.er1
7564   ac_status=$?
7565   grep -v '^ *+' conftest.er1 >conftest.err
7566   rm -f conftest.er1
7567   cat conftest.err >&5
7568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); } && {
7570          test -z "$ac_c_werror_flag" ||
7571          test ! -s conftest.err
7572        } && test -s conftest$ac_exeext && {
7573          test "$cross_compiling" = yes ||
7574          $as_test_x conftest$ac_exeext
7575        }; then
7576   ac_cv_search_dlopen=$ac_res
7577 else
7578   $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581
7582 fi
7583
7584 rm -rf conftest.dSYM
7585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7586       conftest$ac_exeext
7587   if test "${ac_cv_search_dlopen+set}" = set; then
7588   break
7589 fi
7590 done
7591 if test "${ac_cv_search_dlopen+set}" = set; then
7592   :
7593 else
7594   ac_cv_search_dlopen=no
7595 fi
7596 rm conftest.$ac_ext
7597 LIBS=$ac_func_search_save_LIBS
7598 fi
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7600 $as_echo "$ac_cv_search_dlopen" >&6; }
7601 ac_res=$ac_cv_search_dlopen
7602 if test "$ac_res" != no; then
7603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7604
7605 fi
7606
7607 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7608 $as_echo_n "checking for library containing socket... " >&6; }
7609 if test "${ac_cv_search_socket+set}" = set; then
7610   $as_echo_n "(cached) " >&6
7611 else
7612   ac_func_search_save_LIBS=$LIBS
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619
7620 /* Override any GCC internal prototype to avoid an error.
7621    Use char because int might match the return type of a GCC
7622    builtin and then its argument prototype would still apply.  */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 char socket ();
7627 int
7628 main ()
7629 {
7630 return socket ();
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 for ac_lib in '' socket wsock32; do
7636   if test -z "$ac_lib"; then
7637     ac_res="none required"
7638   else
7639     ac_res=-l$ac_lib
7640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7641   fi
7642   rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650   (eval "$ac_link") 2>conftest.er1
7651   ac_status=$?
7652   grep -v '^ *+' conftest.er1 >conftest.err
7653   rm -f conftest.er1
7654   cat conftest.err >&5
7655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && {
7657          test -z "$ac_c_werror_flag" ||
7658          test ! -s conftest.err
7659        } && test -s conftest$ac_exeext && {
7660          test "$cross_compiling" = yes ||
7661          $as_test_x conftest$ac_exeext
7662        }; then
7663   ac_cv_search_socket=$ac_res
7664 else
7665   $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668
7669 fi
7670
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673       conftest$ac_exeext
7674   if test "${ac_cv_search_socket+set}" = set; then
7675   break
7676 fi
7677 done
7678 if test "${ac_cv_search_socket+set}" = set; then
7679   :
7680 else
7681   ac_cv_search_socket=no
7682 fi
7683 rm conftest.$ac_ext
7684 LIBS=$ac_func_search_save_LIBS
7685 fi
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7687 $as_echo "$ac_cv_search_socket" >&6; }
7688 ac_res=$ac_cv_search_socket
7689 if test "$ac_res" != no; then
7690   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7691
7692 fi
7693
7694 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7695 $as_echo_n "checking for library containing shl_load... " >&6; }
7696 if test "${ac_cv_search_shl_load+set}" = set; then
7697   $as_echo_n "(cached) " >&6
7698 else
7699   ac_func_search_save_LIBS=$LIBS
7700 cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h.  */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h.  */
7706
7707 /* Override any GCC internal prototype to avoid an error.
7708    Use char because int might match the return type of a GCC
7709    builtin and then its argument prototype would still apply.  */
7710 #ifdef __cplusplus
7711 extern "C"
7712 #endif
7713 char shl_load ();
7714 int
7715 main ()
7716 {
7717 return shl_load ();
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 for ac_lib in '' dld; do
7723   if test -z "$ac_lib"; then
7724     ac_res="none required"
7725   else
7726     ac_res=-l$ac_lib
7727     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7728   fi
7729   rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7731 case "(($ac_try" in
7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733   *) ac_try_echo=$ac_try;;
7734 esac
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737   (eval "$ac_link") 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } && {
7744          test -z "$ac_c_werror_flag" ||
7745          test ! -s conftest.err
7746        } && test -s conftest$ac_exeext && {
7747          test "$cross_compiling" = yes ||
7748          $as_test_x conftest$ac_exeext
7749        }; then
7750   ac_cv_search_shl_load=$ac_res
7751 else
7752   $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755
7756 fi
7757
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760       conftest$ac_exeext
7761   if test "${ac_cv_search_shl_load+set}" = set; then
7762   break
7763 fi
7764 done
7765 if test "${ac_cv_search_shl_load+set}" = set; then
7766   :
7767 else
7768   ac_cv_search_shl_load=no
7769 fi
7770 rm conftest.$ac_ext
7771 LIBS=$ac_func_search_save_LIBS
7772 fi
7773 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7774 $as_echo "$ac_cv_search_shl_load" >&6; }
7775 ac_res=$ac_cv_search_shl_load
7776 if test "$ac_res" != no; then
7777   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7778
7779 fi
7780
7781 # We only use libld in port/dynloader/aix.c
7782 case $host_os in
7783      aix*)
7784         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7785 $as_echo_n "checking for library containing ldopen... " >&6; }
7786 if test "${ac_cv_search_ldopen+set}" = set; then
7787   $as_echo_n "(cached) " >&6
7788 else
7789   ac_func_search_save_LIBS=$LIBS
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796
7797 /* Override any GCC internal prototype to avoid an error.
7798    Use char because int might match the return type of a GCC
7799    builtin and then its argument prototype would still apply.  */
7800 #ifdef __cplusplus
7801 extern "C"
7802 #endif
7803 char ldopen ();
7804 int
7805 main ()
7806 {
7807 return ldopen ();
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 for ac_lib in '' ld; do
7813   if test -z "$ac_lib"; then
7814     ac_res="none required"
7815   else
7816     ac_res=-l$ac_lib
7817     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7818   fi
7819   rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7821 case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7826 $as_echo "$ac_try_echo") >&5
7827   (eval "$ac_link") 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } && {
7834          test -z "$ac_c_werror_flag" ||
7835          test ! -s conftest.err
7836        } && test -s conftest$ac_exeext && {
7837          test "$cross_compiling" = yes ||
7838          $as_test_x conftest$ac_exeext
7839        }; then
7840   ac_cv_search_ldopen=$ac_res
7841 else
7842   $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845
7846 fi
7847
7848 rm -rf conftest.dSYM
7849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7850       conftest$ac_exeext
7851   if test "${ac_cv_search_ldopen+set}" = set; then
7852   break
7853 fi
7854 done
7855 if test "${ac_cv_search_ldopen+set}" = set; then
7856   :
7857 else
7858   ac_cv_search_ldopen=no
7859 fi
7860 rm conftest.$ac_ext
7861 LIBS=$ac_func_search_save_LIBS
7862 fi
7863 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7864 $as_echo "$ac_cv_search_ldopen" >&6; }
7865 ac_res=$ac_cv_search_ldopen
7866 if test "$ac_res" != no; then
7867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7868
7869 fi
7870
7871         ;;
7872 esac
7873 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7874 $as_echo_n "checking for library containing getopt_long... " >&6; }
7875 if test "${ac_cv_search_getopt_long+set}" = set; then
7876   $as_echo_n "(cached) " >&6
7877 else
7878   ac_func_search_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 /* Override any GCC internal prototype to avoid an error.
7887    Use char because int might match the return type of a GCC
7888    builtin and then its argument prototype would still apply.  */
7889 #ifdef __cplusplus
7890 extern "C"
7891 #endif
7892 char getopt_long ();
7893 int
7894 main ()
7895 {
7896 return getopt_long ();
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 for ac_lib in '' getopt gnugetopt; do
7902   if test -z "$ac_lib"; then
7903     ac_res="none required"
7904   else
7905     ac_res=-l$ac_lib
7906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7907   fi
7908   rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (ac_try="$ac_link"
7910 case "(($ac_try" in
7911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912   *) ac_try_echo=$ac_try;;
7913 esac
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916   (eval "$ac_link") 2>conftest.er1
7917   ac_status=$?
7918   grep -v '^ *+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } && {
7923          test -z "$ac_c_werror_flag" ||
7924          test ! -s conftest.err
7925        } && test -s conftest$ac_exeext && {
7926          test "$cross_compiling" = yes ||
7927          $as_test_x conftest$ac_exeext
7928        }; then
7929   ac_cv_search_getopt_long=$ac_res
7930 else
7931   $as_echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934
7935 fi
7936
7937 rm -rf conftest.dSYM
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939       conftest$ac_exeext
7940   if test "${ac_cv_search_getopt_long+set}" = set; then
7941   break
7942 fi
7943 done
7944 if test "${ac_cv_search_getopt_long+set}" = set; then
7945   :
7946 else
7947   ac_cv_search_getopt_long=no
7948 fi
7949 rm conftest.$ac_ext
7950 LIBS=$ac_func_search_save_LIBS
7951 fi
7952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7953 $as_echo "$ac_cv_search_getopt_long" >&6; }
7954 ac_res=$ac_cv_search_getopt_long
7955 if test "$ac_res" != no; then
7956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7957
7958 fi
7959
7960 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7961 $as_echo_n "checking for library containing crypt... " >&6; }
7962 if test "${ac_cv_search_crypt+set}" = set; then
7963   $as_echo_n "(cached) " >&6
7964 else
7965   ac_func_search_save_LIBS=$LIBS
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972
7973 /* Override any GCC internal prototype to avoid an error.
7974    Use char because int might match the return type of a GCC
7975    builtin and then its argument prototype would still apply.  */
7976 #ifdef __cplusplus
7977 extern "C"
7978 #endif
7979 char crypt ();
7980 int
7981 main ()
7982 {
7983 return crypt ();
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 for ac_lib in '' crypt; do
7989   if test -z "$ac_lib"; then
7990     ac_res="none required"
7991   else
7992     ac_res=-l$ac_lib
7993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7994   fi
7995   rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (ac_try="$ac_link"
7997 case "(($ac_try" in
7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999   *) ac_try_echo=$ac_try;;
8000 esac
8001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8002 $as_echo "$ac_try_echo") >&5
8003   (eval "$ac_link") 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } && {
8010          test -z "$ac_c_werror_flag" ||
8011          test ! -s conftest.err
8012        } && test -s conftest$ac_exeext && {
8013          test "$cross_compiling" = yes ||
8014          $as_test_x conftest$ac_exeext
8015        }; then
8016   ac_cv_search_crypt=$ac_res
8017 else
8018   $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021
8022 fi
8023
8024 rm -rf conftest.dSYM
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026       conftest$ac_exeext
8027   if test "${ac_cv_search_crypt+set}" = set; then
8028   break
8029 fi
8030 done
8031 if test "${ac_cv_search_crypt+set}" = set; then
8032   :
8033 else
8034   ac_cv_search_crypt=no
8035 fi
8036 rm conftest.$ac_ext
8037 LIBS=$ac_func_search_save_LIBS
8038 fi
8039 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8040 $as_echo "$ac_cv_search_crypt" >&6; }
8041 ac_res=$ac_cv_search_crypt
8042 if test "$ac_res" != no; then
8043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8044
8045 fi
8046
8047 # Solaris:
8048 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8049 $as_echo_n "checking for library containing fdatasync... " >&6; }
8050 if test "${ac_cv_search_fdatasync+set}" = set; then
8051   $as_echo_n "(cached) " >&6
8052 else
8053   ac_func_search_save_LIBS=$LIBS
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 /* Override any GCC internal prototype to avoid an error.
8062    Use char because int might match the return type of a GCC
8063    builtin and then its argument prototype would still apply.  */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 char fdatasync ();
8068 int
8069 main ()
8070 {
8071 return fdatasync ();
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 for ac_lib in '' rt posix4; do
8077   if test -z "$ac_lib"; then
8078     ac_res="none required"
8079   else
8080     ac_res=-l$ac_lib
8081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8082   fi
8083   rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (ac_try="$ac_link"
8085 case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091   (eval "$ac_link") 2>conftest.er1
8092   ac_status=$?
8093   grep -v '^ *+' conftest.er1 >conftest.err
8094   rm -f conftest.er1
8095   cat conftest.err >&5
8096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } && {
8098          test -z "$ac_c_werror_flag" ||
8099          test ! -s conftest.err
8100        } && test -s conftest$ac_exeext && {
8101          test "$cross_compiling" = yes ||
8102          $as_test_x conftest$ac_exeext
8103        }; then
8104   ac_cv_search_fdatasync=$ac_res
8105 else
8106   $as_echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109
8110 fi
8111
8112 rm -rf conftest.dSYM
8113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114       conftest$ac_exeext
8115   if test "${ac_cv_search_fdatasync+set}" = set; then
8116   break
8117 fi
8118 done
8119 if test "${ac_cv_search_fdatasync+set}" = set; then
8120   :
8121 else
8122   ac_cv_search_fdatasync=no
8123 fi
8124 rm conftest.$ac_ext
8125 LIBS=$ac_func_search_save_LIBS
8126 fi
8127 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8128 $as_echo "$ac_cv_search_fdatasync" >&6; }
8129 ac_res=$ac_cv_search_fdatasync
8130 if test "$ac_res" != no; then
8131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8132
8133 fi
8134
8135 # Required for thread_test.c on Solaris 2.5:
8136 # Other ports use it too (HP-UX) so test unconditionally
8137 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8138 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8139 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8140   $as_echo_n "(cached) " >&6
8141 else
8142   ac_func_search_save_LIBS=$LIBS
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149
8150 /* Override any GCC internal prototype to avoid an error.
8151    Use char because int might match the return type of a GCC
8152    builtin and then its argument prototype would still apply.  */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 char gethostbyname_r ();
8157 int
8158 main ()
8159 {
8160 return gethostbyname_r ();
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 for ac_lib in '' nsl; do
8166   if test -z "$ac_lib"; then
8167     ac_res="none required"
8168   else
8169     ac_res=-l$ac_lib
8170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8171   fi
8172   rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180   (eval "$ac_link") 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } && {
8187          test -z "$ac_c_werror_flag" ||
8188          test ! -s conftest.err
8189        } && test -s conftest$ac_exeext && {
8190          test "$cross_compiling" = yes ||
8191          $as_test_x conftest$ac_exeext
8192        }; then
8193   ac_cv_search_gethostbyname_r=$ac_res
8194 else
8195   $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198
8199 fi
8200
8201 rm -rf conftest.dSYM
8202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203       conftest$ac_exeext
8204   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8205   break
8206 fi
8207 done
8208 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8209   :
8210 else
8211   ac_cv_search_gethostbyname_r=no
8212 fi
8213 rm conftest.$ac_ext
8214 LIBS=$ac_func_search_save_LIBS
8215 fi
8216 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8217 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8218 ac_res=$ac_cv_search_gethostbyname_r
8219 if test "$ac_res" != no; then
8220   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8221
8222 fi
8223
8224 # Cygwin:
8225 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8226 $as_echo_n "checking for library containing shmget... " >&6; }
8227 if test "${ac_cv_search_shmget+set}" = set; then
8228   $as_echo_n "(cached) " >&6
8229 else
8230   ac_func_search_save_LIBS=$LIBS
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237
8238 /* Override any GCC internal prototype to avoid an error.
8239    Use char because int might match the return type of a GCC
8240    builtin and then its argument prototype would still apply.  */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 char shmget ();
8245 int
8246 main ()
8247 {
8248 return shmget ();
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 for ac_lib in '' cygipc; do
8254   if test -z "$ac_lib"; then
8255     ac_res="none required"
8256   else
8257     ac_res=-l$ac_lib
8258     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8259   fi
8260   rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8262 case "(($ac_try" in
8263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264   *) ac_try_echo=$ac_try;;
8265 esac
8266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267 $as_echo "$ac_try_echo") >&5
8268   (eval "$ac_link") 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && {
8275          test -z "$ac_c_werror_flag" ||
8276          test ! -s conftest.err
8277        } && test -s conftest$ac_exeext && {
8278          test "$cross_compiling" = yes ||
8279          $as_test_x conftest$ac_exeext
8280        }; then
8281   ac_cv_search_shmget=$ac_res
8282 else
8283   $as_echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286
8287 fi
8288
8289 rm -rf conftest.dSYM
8290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8291       conftest$ac_exeext
8292   if test "${ac_cv_search_shmget+set}" = set; then
8293   break
8294 fi
8295 done
8296 if test "${ac_cv_search_shmget+set}" = set; then
8297   :
8298 else
8299   ac_cv_search_shmget=no
8300 fi
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8303 fi
8304 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8305 $as_echo "$ac_cv_search_shmget" >&6; }
8306 ac_res=$ac_cv_search_shmget
8307 if test "$ac_res" != no; then
8308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309
8310 fi
8311
8312
8313 if test "$with_readline" = yes; then
8314
8315
8316 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8317 $as_echo_n "checking for library containing readline... " >&6; }
8318 if test "${pgac_cv_check_readline+set}" = set; then
8319   $as_echo_n "(cached) " >&6
8320 else
8321   pgac_cv_check_readline=no
8322 pgac_save_LIBS=$LIBS
8323 if test x"$with_libedit_preferred" != x"yes"
8324 then    READLINE_ORDER="-lreadline -ledit"
8325 else    READLINE_ORDER="-ledit -lreadline"
8326 fi
8327 for pgac_rllib in $READLINE_ORDER ; do
8328   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8329     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8330     cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 /* Override any GCC internal prototype to avoid an error.
8338    Use char because int might match the return type of a GCC
8339    builtin and then its argument prototype would still apply.  */
8340 #ifdef __cplusplus
8341 extern "C"
8342 #endif
8343 char readline ();
8344 int
8345 main ()
8346 {
8347 return readline ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8354 case "(($ac_try" in
8355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356   *) ac_try_echo=$ac_try;;
8357 esac
8358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359 $as_echo "$ac_try_echo") >&5
8360   (eval "$ac_link") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } && {
8367          test -z "$ac_c_werror_flag" ||
8368          test ! -s conftest.err
8369        } && test -s conftest$ac_exeext && {
8370          test "$cross_compiling" = yes ||
8371          $as_test_x conftest$ac_exeext
8372        }; then
8373
8374       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8375       # recognize dependent libraries; assume curses is needed if we didn't
8376       # find any dependency.
8377       case $host_os in
8378         netbsd* | openbsd* | irix*)
8379           if test x"$pgac_lib" = x"" ; then
8380             pgac_lib=" -lcurses"
8381           fi ;;
8382       esac
8383
8384       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8385       break
8386
8387 else
8388   $as_echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391
8392 fi
8393
8394 rm -rf conftest.dSYM
8395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8396       conftest$ac_exeext conftest.$ac_ext
8397   done
8398   if test "$pgac_cv_check_readline" != no ; then
8399     break
8400   fi
8401 done
8402 LIBS=$pgac_save_LIBS
8403
8404 fi
8405 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8406 $as_echo "$pgac_cv_check_readline" >&6; }
8407 if test "$pgac_cv_check_readline" != no ; then
8408   LIBS="$pgac_cv_check_readline $LIBS"
8409
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_LIBREADLINE 1
8412 _ACEOF
8413
8414 fi
8415
8416
8417   if test x"$pgac_cv_check_readline" = x"no"; then
8418     { { $as_echo "$as_me:$LINENO: error: readline library not found
8419 If you have readline already installed, see config.log for details on the
8420 failure.  It is possible the compiler isn't looking in the proper directory.
8421 Use --without-readline to disable readline support." >&5
8422 $as_echo "$as_me: error: readline library not found
8423 If you have readline already installed, see config.log for details on the
8424 failure.  It is possible the compiler isn't looking in the proper directory.
8425 Use --without-readline to disable readline support." >&2;}
8426    { (exit 1); exit 1; }; }
8427   fi
8428 fi
8429
8430 if test "$with_zlib" = yes; then
8431
8432 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8433 $as_echo_n "checking for inflate in -lz... " >&6; }
8434 if test "${ac_cv_lib_z_inflate+set}" = set; then
8435   $as_echo_n "(cached) " >&6
8436 else
8437   ac_check_lib_save_LIBS=$LIBS
8438 LIBS="-lz  $LIBS"
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 /* Override any GCC internal prototype to avoid an error.
8447    Use char because int might match the return type of a GCC
8448    builtin and then its argument prototype would still apply.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 char inflate ();
8453 int
8454 main ()
8455 {
8456 return inflate ();
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (ac_try="$ac_link"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469   (eval "$ac_link") 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } && {
8476          test -z "$ac_c_werror_flag" ||
8477          test ! -s conftest.err
8478        } && test -s conftest$ac_exeext && {
8479          test "$cross_compiling" = yes ||
8480          $as_test_x conftest$ac_exeext
8481        }; then
8482   ac_cv_lib_z_inflate=yes
8483 else
8484   $as_echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487         ac_cv_lib_z_inflate=no
8488 fi
8489
8490 rm -rf conftest.dSYM
8491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492       conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8494 fi
8495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8496 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8497 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8498   cat >>confdefs.h <<_ACEOF
8499 #define HAVE_LIBZ 1
8500 _ACEOF
8501
8502   LIBS="-lz $LIBS"
8503
8504 else
8505   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8506 If you have zlib already installed, see config.log for details on the
8507 failure.  It is possible the compiler isn't looking in the proper directory.
8508 Use --without-zlib to disable zlib support." >&5
8509 $as_echo "$as_me: error: zlib library not found
8510 If you have zlib already installed, see config.log for details on the
8511 failure.  It is possible the compiler isn't looking in the proper directory.
8512 Use --without-zlib to disable zlib support." >&2;}
8513    { (exit 1); exit 1; }; }
8514 fi
8515
8516 fi
8517
8518 if test "$enable_spinlocks" = yes; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_SPINLOCKS 1
8522 _ACEOF
8523
8524 else
8525   { $as_echo "$as_me:$LINENO: WARNING:
8526 *** Not using spinlocks will cause poor performance." >&5
8527 $as_echo "$as_me: WARNING:
8528 *** Not using spinlocks will cause poor performance." >&2;}
8529 fi
8530
8531 if test "$with_gssapi" = yes ; then
8532   if test "$PORTNAME" != "win32"; then
8533     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8534 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8535 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8536   $as_echo_n "(cached) " >&6
8537 else
8538   ac_func_search_save_LIBS=$LIBS
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545
8546 /* Override any GCC internal prototype to avoid an error.
8547    Use char because int might match the return type of a GCC
8548    builtin and then its argument prototype would still apply.  */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char gss_init_sec_context ();
8553 int
8554 main ()
8555 {
8556 return gss_init_sec_context ();
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8562   if test -z "$ac_lib"; then
8563     ac_res="none required"
8564   else
8565     ac_res=-l$ac_lib
8566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8567   fi
8568   rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576   (eval "$ac_link") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } && {
8583          test -z "$ac_c_werror_flag" ||
8584          test ! -s conftest.err
8585        } && test -s conftest$ac_exeext && {
8586          test "$cross_compiling" = yes ||
8587          $as_test_x conftest$ac_exeext
8588        }; then
8589   ac_cv_search_gss_init_sec_context=$ac_res
8590 else
8591   $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594
8595 fi
8596
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599       conftest$ac_exeext
8600   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8601   break
8602 fi
8603 done
8604 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8605   :
8606 else
8607   ac_cv_search_gss_init_sec_context=no
8608 fi
8609 rm conftest.$ac_ext
8610 LIBS=$ac_func_search_save_LIBS
8611 fi
8612 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8613 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8614 ac_res=$ac_cv_search_gss_init_sec_context
8615 if test "$ac_res" != no; then
8616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8617
8618 else
8619   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8620 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8621    { (exit 1); exit 1; }; }
8622 fi
8623
8624   else
8625     LIBS="$LIBS -lgssapi32"
8626   fi
8627 fi
8628
8629 if test "$with_krb5" = yes ; then
8630   if test "$PORTNAME" != "win32"; then
8631      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8632 $as_echo_n "checking for library containing com_err... " >&6; }
8633 if test "${ac_cv_search_com_err+set}" = set; then
8634   $as_echo_n "(cached) " >&6
8635 else
8636   ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char com_err ();
8651 int
8652 main ()
8653 {
8654 return com_err ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8660   if test -z "$ac_lib"; then
8661     ac_res="none required"
8662   else
8663     ac_res=-l$ac_lib
8664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8665   fi
8666   rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674   (eval "$ac_link") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && {
8681          test -z "$ac_c_werror_flag" ||
8682          test ! -s conftest.err
8683        } && test -s conftest$ac_exeext && {
8684          test "$cross_compiling" = yes ||
8685          $as_test_x conftest$ac_exeext
8686        }; then
8687   ac_cv_search_com_err=$ac_res
8688 else
8689   $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692
8693 fi
8694
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697       conftest$ac_exeext
8698   if test "${ac_cv_search_com_err+set}" = set; then
8699   break
8700 fi
8701 done
8702 if test "${ac_cv_search_com_err+set}" = set; then
8703   :
8704 else
8705   ac_cv_search_com_err=no
8706 fi
8707 rm conftest.$ac_ext
8708 LIBS=$ac_func_search_save_LIBS
8709 fi
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8711 $as_echo "$ac_cv_search_com_err" >&6; }
8712 ac_res=$ac_cv_search_com_err
8713 if test "$ac_res" != no; then
8714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8715
8716 else
8717   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8718 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8719    { (exit 1); exit 1; }; }
8720 fi
8721
8722      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8723 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8724 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8725   $as_echo_n "(cached) " >&6
8726 else
8727   ac_func_search_save_LIBS=$LIBS
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734
8735 /* Override any GCC internal prototype to avoid an error.
8736    Use char because int might match the return type of a GCC
8737    builtin and then its argument prototype would still apply.  */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char krb5_sendauth ();
8742 int
8743 main ()
8744 {
8745 return krb5_sendauth ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8751   if test -z "$ac_lib"; then
8752     ac_res="none required"
8753   else
8754     ac_res=-l$ac_lib
8755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8756   fi
8757   rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } && {
8772          test -z "$ac_c_werror_flag" ||
8773          test ! -s conftest.err
8774        } && test -s conftest$ac_exeext && {
8775          test "$cross_compiling" = yes ||
8776          $as_test_x conftest$ac_exeext
8777        }; then
8778   ac_cv_search_krb5_sendauth=$ac_res
8779 else
8780   $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783
8784 fi
8785
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8788       conftest$ac_exeext
8789   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8790   break
8791 fi
8792 done
8793 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8794   :
8795 else
8796   ac_cv_search_krb5_sendauth=no
8797 fi
8798 rm conftest.$ac_ext
8799 LIBS=$ac_func_search_save_LIBS
8800 fi
8801 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8802 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8803 ac_res=$ac_cv_search_krb5_sendauth
8804 if test "$ac_res" != no; then
8805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806
8807 else
8808   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8809 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8810    { (exit 1); exit 1; }; }
8811 fi
8812
8813   else
8814      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8815 $as_echo_n "checking for library containing com_err... " >&6; }
8816 if test "${ac_cv_search_com_err+set}" = set; then
8817   $as_echo_n "(cached) " >&6
8818 else
8819   ac_func_search_save_LIBS=$LIBS
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826
8827 /* Override any GCC internal prototype to avoid an error.
8828    Use char because int might match the return type of a GCC
8829    builtin and then its argument prototype would still apply.  */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char com_err ();
8834 int
8835 main ()
8836 {
8837 return com_err ();
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8843   if test -z "$ac_lib"; then
8844     ac_res="none required"
8845   else
8846     ac_res=-l$ac_lib
8847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8848   fi
8849   rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856 $as_echo "$ac_try_echo") >&5
8857   (eval "$ac_link") 2>conftest.er1
8858   ac_status=$?
8859   grep -v '^ *+' conftest.er1 >conftest.err
8860   rm -f conftest.er1
8861   cat conftest.err >&5
8862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); } && {
8864          test -z "$ac_c_werror_flag" ||
8865          test ! -s conftest.err
8866        } && test -s conftest$ac_exeext && {
8867          test "$cross_compiling" = yes ||
8868          $as_test_x conftest$ac_exeext
8869        }; then
8870   ac_cv_search_com_err=$ac_res
8871 else
8872   $as_echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875
8876 fi
8877
8878 rm -rf conftest.dSYM
8879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8880       conftest$ac_exeext
8881   if test "${ac_cv_search_com_err+set}" = set; then
8882   break
8883 fi
8884 done
8885 if test "${ac_cv_search_com_err+set}" = set; then
8886   :
8887 else
8888   ac_cv_search_com_err=no
8889 fi
8890 rm conftest.$ac_ext
8891 LIBS=$ac_func_search_save_LIBS
8892 fi
8893 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8894 $as_echo "$ac_cv_search_com_err" >&6; }
8895 ac_res=$ac_cv_search_com_err
8896 if test "$ac_res" != no; then
8897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8898
8899 else
8900   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8901 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8902    { (exit 1); exit 1; }; }
8903 fi
8904
8905   fi
8906 fi
8907
8908 if test "$with_openssl" = yes ; then
8909     if test "$PORTNAME" != "win32"; then
8910
8911 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8912 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8913 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8914   $as_echo_n "(cached) " >&6
8915 else
8916   ac_check_lib_save_LIBS=$LIBS
8917 LIBS="-lcrypto  $LIBS"
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924
8925 /* Override any GCC internal prototype to avoid an error.
8926    Use char because int might match the return type of a GCC
8927    builtin and then its argument prototype would still apply.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 char CRYPTO_new_ex_data ();
8932 int
8933 main ()
8934 {
8935 return CRYPTO_new_ex_data ();
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948   (eval "$ac_link") 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } && {
8955          test -z "$ac_c_werror_flag" ||
8956          test ! -s conftest.err
8957        } && test -s conftest$ac_exeext && {
8958          test "$cross_compiling" = yes ||
8959          $as_test_x conftest$ac_exeext
8960        }; then
8961   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8962 else
8963   $as_echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8967 fi
8968
8969 rm -rf conftest.dSYM
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971       conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8973 fi
8974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8975 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8976 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8977   cat >>confdefs.h <<_ACEOF
8978 #define HAVE_LIBCRYPTO 1
8979 _ACEOF
8980
8981   LIBS="-lcrypto $LIBS"
8982
8983 else
8984   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8985 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8986    { (exit 1); exit 1; }; }
8987 fi
8988
8989
8990 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8991 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8992 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8993   $as_echo_n "(cached) " >&6
8994 else
8995   ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lssl  $LIBS"
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 /* Override any GCC internal prototype to avoid an error.
9005    Use char because int might match the return type of a GCC
9006    builtin and then its argument prototype would still apply.  */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char SSL_library_init ();
9011 int
9012 main ()
9013 {
9014 return SSL_library_init ();
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9026 $as_echo "$ac_try_echo") >&5
9027   (eval "$ac_link") 2>conftest.er1
9028   ac_status=$?
9029   grep -v '^ *+' conftest.er1 >conftest.err
9030   rm -f conftest.er1
9031   cat conftest.err >&5
9032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } && {
9034          test -z "$ac_c_werror_flag" ||
9035          test ! -s conftest.err
9036        } && test -s conftest$ac_exeext && {
9037          test "$cross_compiling" = yes ||
9038          $as_test_x conftest$ac_exeext
9039        }; then
9040   ac_cv_lib_ssl_SSL_library_init=yes
9041 else
9042   $as_echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045         ac_cv_lib_ssl_SSL_library_init=no
9046 fi
9047
9048 rm -rf conftest.dSYM
9049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9050       conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9052 fi
9053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9054 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9055 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9056   cat >>confdefs.h <<_ACEOF
9057 #define HAVE_LIBSSL 1
9058 _ACEOF
9059
9060   LIBS="-lssl $LIBS"
9061
9062 else
9063   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9064 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9065    { (exit 1); exit 1; }; }
9066 fi
9067
9068   else
9069
9070 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9071 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9072 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9073   $as_echo_n "(cached) " >&6
9074 else
9075   ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-leay32  $LIBS"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083
9084 /* Override any GCC internal prototype to avoid an error.
9085    Use char because int might match the return type of a GCC
9086    builtin and then its argument prototype would still apply.  */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 char CRYPTO_new_ex_data ();
9091 int
9092 main ()
9093 {
9094 return CRYPTO_new_ex_data ();
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (ac_try="$ac_link"
9101 case "(($ac_try" in
9102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103   *) ac_try_echo=$ac_try;;
9104 esac
9105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106 $as_echo "$ac_try_echo") >&5
9107   (eval "$ac_link") 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } && {
9114          test -z "$ac_c_werror_flag" ||
9115          test ! -s conftest.err
9116        } && test -s conftest$ac_exeext && {
9117          test "$cross_compiling" = yes ||
9118          $as_test_x conftest$ac_exeext
9119        }; then
9120   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9121 else
9122   $as_echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9126 fi
9127
9128 rm -rf conftest.dSYM
9129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9130       conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9132 fi
9133 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9134 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9135 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9136   cat >>confdefs.h <<_ACEOF
9137 #define HAVE_LIBEAY32 1
9138 _ACEOF
9139
9140   LIBS="-leay32 $LIBS"
9141
9142 else
9143   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9144 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9145    { (exit 1); exit 1; }; }
9146 fi
9147
9148
9149 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9150 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9151 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9152   $as_echo_n "(cached) " >&6
9153 else
9154   ac_check_lib_save_LIBS=$LIBS
9155 LIBS="-lssleay32  $LIBS"
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h.  */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h.  */
9162
9163 /* Override any GCC internal prototype to avoid an error.
9164    Use char because int might match the return type of a GCC
9165    builtin and then its argument prototype would still apply.  */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 char SSL_library_init ();
9170 int
9171 main ()
9172 {
9173 return SSL_library_init ();
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (ac_try="$ac_link"
9180 case "(($ac_try" in
9181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182   *) ac_try_echo=$ac_try;;
9183 esac
9184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9185 $as_echo "$ac_try_echo") >&5
9186   (eval "$ac_link") 2>conftest.er1
9187   ac_status=$?
9188   grep -v '^ *+' conftest.er1 >conftest.err
9189   rm -f conftest.er1
9190   cat conftest.err >&5
9191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } && {
9193          test -z "$ac_c_werror_flag" ||
9194          test ! -s conftest.err
9195        } && test -s conftest$ac_exeext && {
9196          test "$cross_compiling" = yes ||
9197          $as_test_x conftest$ac_exeext
9198        }; then
9199   ac_cv_lib_ssleay32_SSL_library_init=yes
9200 else
9201   $as_echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204         ac_cv_lib_ssleay32_SSL_library_init=no
9205 fi
9206
9207 rm -rf conftest.dSYM
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209       conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9211 fi
9212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9213 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9214 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9215   cat >>confdefs.h <<_ACEOF
9216 #define HAVE_LIBSSLEAY32 1
9217 _ACEOF
9218
9219   LIBS="-lssleay32 $LIBS"
9220
9221 else
9222   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9223 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9224    { (exit 1); exit 1; }; }
9225 fi
9226
9227   fi
9228 fi
9229
9230 if test "$with_pam" = yes ; then
9231
9232 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9233 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9234 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9235   $as_echo_n "(cached) " >&6
9236 else
9237   ac_check_lib_save_LIBS=$LIBS
9238 LIBS="-lpam  $LIBS"
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245
9246 /* Override any GCC internal prototype to avoid an error.
9247    Use char because int might match the return type of a GCC
9248    builtin and then its argument prototype would still apply.  */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char pam_start ();
9253 int
9254 main ()
9255 {
9256 return pam_start ();
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (ac_try="$ac_link"
9263 case "(($ac_try" in
9264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265   *) ac_try_echo=$ac_try;;
9266 esac
9267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9268 $as_echo "$ac_try_echo") >&5
9269   (eval "$ac_link") 2>conftest.er1
9270   ac_status=$?
9271   grep -v '^ *+' conftest.er1 >conftest.err
9272   rm -f conftest.er1
9273   cat conftest.err >&5
9274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } && {
9276          test -z "$ac_c_werror_flag" ||
9277          test ! -s conftest.err
9278        } && test -s conftest$ac_exeext && {
9279          test "$cross_compiling" = yes ||
9280          $as_test_x conftest$ac_exeext
9281        }; then
9282   ac_cv_lib_pam_pam_start=yes
9283 else
9284   $as_echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287         ac_cv_lib_pam_pam_start=no
9288 fi
9289
9290 rm -rf conftest.dSYM
9291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9292       conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_lib_save_LIBS
9294 fi
9295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9296 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9297 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9298   cat >>confdefs.h <<_ACEOF
9299 #define HAVE_LIBPAM 1
9300 _ACEOF
9301
9302   LIBS="-lpam $LIBS"
9303
9304 else
9305   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9306 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9307    { (exit 1); exit 1; }; }
9308 fi
9309
9310 fi
9311
9312 if test "$with_libxml" = yes ; then
9313
9314 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9315 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9316 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9317   $as_echo_n "(cached) " >&6
9318 else
9319   ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lxml2  $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329    Use char because int might match the return type of a GCC
9330    builtin and then its argument prototype would still apply.  */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char xmlSaveToBuffer ();
9335 int
9336 main ()
9337 {
9338 return xmlSaveToBuffer ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351   (eval "$ac_link") 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && {
9358          test -z "$ac_c_werror_flag" ||
9359          test ! -s conftest.err
9360        } && test -s conftest$ac_exeext && {
9361          test "$cross_compiling" = yes ||
9362          $as_test_x conftest$ac_exeext
9363        }; then
9364   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9365 else
9366   $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369         ac_cv_lib_xml2_xmlSaveToBuffer=no
9370 fi
9371
9372 rm -rf conftest.dSYM
9373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374       conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9376 fi
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9378 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9379 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9380   cat >>confdefs.h <<_ACEOF
9381 #define HAVE_LIBXML2 1
9382 _ACEOF
9383
9384   LIBS="-lxml2 $LIBS"
9385
9386 else
9387   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9388 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9389    { (exit 1); exit 1; }; }
9390 fi
9391
9392 fi
9393
9394 if test "$with_libxslt" = yes ; then
9395
9396 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9397 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9398 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9399   $as_echo_n "(cached) " >&6
9400 else
9401   ac_check_lib_save_LIBS=$LIBS
9402 LIBS="-lxslt  $LIBS"
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h.  */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h.  */
9409
9410 /* Override any GCC internal prototype to avoid an error.
9411    Use char because int might match the return type of a GCC
9412    builtin and then its argument prototype would still apply.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char xsltCleanupGlobals ();
9417 int
9418 main ()
9419 {
9420 return xsltCleanupGlobals ();
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
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_link") 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_exeext && {
9443          test "$cross_compiling" = yes ||
9444          $as_test_x conftest$ac_exeext
9445        }; then
9446   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9447 else
9448   $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451         ac_cv_lib_xslt_xsltCleanupGlobals=no
9452 fi
9453
9454 rm -rf conftest.dSYM
9455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456       conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9458 fi
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9460 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9461 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9462   cat >>confdefs.h <<_ACEOF
9463 #define HAVE_LIBXSLT 1
9464 _ACEOF
9465
9466   LIBS="-lxslt $LIBS"
9467
9468 else
9469   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9470 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9471    { (exit 1); exit 1; }; }
9472 fi
9473
9474 fi
9475
9476 # for contrib/sepgsql
9477 if test "$with_selinux" = yes; then
9478
9479 { $as_echo "$as_me:$LINENO: checking for selinux_sepgsql_context_path in -lselinux" >&5
9480 $as_echo_n "checking for selinux_sepgsql_context_path in -lselinux... " >&6; }
9481 if test "${ac_cv_lib_selinux_selinux_sepgsql_context_path+set}" = set; then
9482   $as_echo_n "(cached) " >&6
9483 else
9484   ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-lselinux  $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492
9493 /* Override any GCC internal prototype to avoid an error.
9494    Use char because int might match the return type of a GCC
9495    builtin and then its argument prototype would still apply.  */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char selinux_sepgsql_context_path ();
9500 int
9501 main ()
9502 {
9503 return selinux_sepgsql_context_path ();
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9515 $as_echo "$ac_try_echo") >&5
9516   (eval "$ac_link") 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } && {
9523          test -z "$ac_c_werror_flag" ||
9524          test ! -s conftest.err
9525        } && test -s conftest$ac_exeext && {
9526          test "$cross_compiling" = yes ||
9527          $as_test_x conftest$ac_exeext
9528        }; then
9529   ac_cv_lib_selinux_selinux_sepgsql_context_path=yes
9530 else
9531   $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534         ac_cv_lib_selinux_selinux_sepgsql_context_path=no
9535 fi
9536
9537 rm -rf conftest.dSYM
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539       conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9541 fi
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_sepgsql_context_path" >&5
9543 $as_echo "$ac_cv_lib_selinux_selinux_sepgsql_context_path" >&6; }
9544 if test "x$ac_cv_lib_selinux_selinux_sepgsql_context_path" = x""yes; then
9545   cat >>confdefs.h <<_ACEOF
9546 #define HAVE_LIBSELINUX 1
9547 _ACEOF
9548
9549   LIBS="-lselinux $LIBS"
9550
9551 else
9552   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&5
9553 $as_echo "$as_me: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&2;}
9554    { (exit 1); exit 1; }; }
9555 fi
9556
9557 fi
9558
9559 # for contrib/uuid-ossp
9560 if test "$with_ossp_uuid" = yes ; then
9561   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9562 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9563 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9564   $as_echo_n "(cached) " >&6
9565 else
9566   ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-lossp-uuid  $LIBS"
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576    Use char because int might match the return type of a GCC
9577    builtin and then its argument prototype would still apply.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char uuid_export ();
9582 int
9583 main ()
9584 {
9585 return uuid_export ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598   (eval "$ac_link") 2>conftest.er1
9599   ac_status=$?
9600   grep -v '^ *+' conftest.er1 >conftest.err
9601   rm -f conftest.er1
9602   cat conftest.err >&5
9603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } && {
9605          test -z "$ac_c_werror_flag" ||
9606          test ! -s conftest.err
9607        } && test -s conftest$ac_exeext && {
9608          test "$cross_compiling" = yes ||
9609          $as_test_x conftest$ac_exeext
9610        }; then
9611   ac_cv_lib_ossp_uuid_uuid_export=yes
9612 else
9613   $as_echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616         ac_cv_lib_ossp_uuid_uuid_export=no
9617 fi
9618
9619 rm -rf conftest.dSYM
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621       conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9623 fi
9624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9625 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9626 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9627   OSSP_UUID_LIBS="-lossp-uuid"
9628 else
9629   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9630 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9631 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9632   $as_echo_n "(cached) " >&6
9633 else
9634   ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-luuid  $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644    Use char because int might match the return type of a GCC
9645    builtin and then its argument prototype would still apply.  */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char uuid_export ();
9650 int
9651 main ()
9652 {
9653 return uuid_export ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9665 $as_echo "$ac_try_echo") >&5
9666   (eval "$ac_link") 2>conftest.er1
9667   ac_status=$?
9668   grep -v '^ *+' conftest.er1 >conftest.err
9669   rm -f conftest.er1
9670   cat conftest.err >&5
9671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } && {
9673          test -z "$ac_c_werror_flag" ||
9674          test ! -s conftest.err
9675        } && test -s conftest$ac_exeext && {
9676          test "$cross_compiling" = yes ||
9677          $as_test_x conftest$ac_exeext
9678        }; then
9679   ac_cv_lib_uuid_uuid_export=yes
9680 else
9681   $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684         ac_cv_lib_uuid_uuid_export=no
9685 fi
9686
9687 rm -rf conftest.dSYM
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689       conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9691 fi
9692 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9693 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9694 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9695   OSSP_UUID_LIBS="-luuid"
9696 else
9697   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9698 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9699    { (exit 1); exit 1; }; }
9700 fi
9701
9702 fi
9703
9704 fi
9705
9706
9707
9708 ##
9709 ## Header files
9710 ##
9711
9712 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9713 $as_echo_n "checking for ANSI C header files... " >&6; }
9714 if test "${ac_cv_header_stdc+set}" = set; then
9715   $as_echo_n "(cached) " >&6
9716 else
9717   cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723 #include <stdlib.h>
9724 #include <stdarg.h>
9725 #include <string.h>
9726 #include <float.h>
9727
9728 int
9729 main ()
9730 {
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (ac_try="$ac_compile"
9738 case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743 $as_echo "$ac_try_echo") >&5
9744   (eval "$ac_compile") 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } && {
9751          test -z "$ac_c_werror_flag" ||
9752          test ! -s conftest.err
9753        } && test -s conftest.$ac_objext; then
9754   ac_cv_header_stdc=yes
9755 else
9756   $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_header_stdc=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763
9764 if test $ac_cv_header_stdc = yes; then
9765   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9766   cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772 #include <string.h>
9773
9774 _ACEOF
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776   $EGREP "memchr" >/dev/null 2>&1; then
9777   :
9778 else
9779   ac_cv_header_stdc=no
9780 fi
9781 rm -f conftest*
9782
9783 fi
9784
9785 if test $ac_cv_header_stdc = yes; then
9786   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9787   cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 #include <stdlib.h>
9794
9795 _ACEOF
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797   $EGREP "free" >/dev/null 2>&1; then
9798   :
9799 else
9800   ac_cv_header_stdc=no
9801 fi
9802 rm -f conftest*
9803
9804 fi
9805
9806 if test $ac_cv_header_stdc = yes; then
9807   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9808   if test "$cross_compiling" = yes; then
9809   :
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 #include <ctype.h>
9818 #include <stdlib.h>
9819 #if ((' ' & 0x0FF) == 0x020)
9820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9822 #else
9823 # define ISLOWER(c) \
9824                    (('a' <= (c) && (c) <= 'i') \
9825                      || ('j' <= (c) && (c) <= 'r') \
9826                      || ('s' <= (c) && (c) <= 'z'))
9827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9828 #endif
9829
9830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9831 int
9832 main ()
9833 {
9834   int i;
9835   for (i = 0; i < 256; i++)
9836     if (XOR (islower (i), ISLOWER (i))
9837         || toupper (i) != TOUPPER (i))
9838       return 2;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849 $as_echo "$ac_try_echo") >&5
9850   (eval "$ac_link") 2>&5
9851   ac_status=$?
9852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854   { (case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9859 $as_echo "$ac_try_echo") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   :
9865 else
9866   $as_echo "$as_me: program exited with status $ac_status" >&5
9867 $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ( exit $ac_status )
9871 ac_cv_header_stdc=no
9872 fi
9873 rm -rf conftest.dSYM
9874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 fi
9876
9877
9878 fi
9879 fi
9880 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9881 $as_echo "$ac_cv_header_stdc" >&6; }
9882 if test $ac_cv_header_stdc = yes; then
9883
9884 cat >>confdefs.h <<\_ACEOF
9885 #define STDC_HEADERS 1
9886 _ACEOF
9887
9888 fi
9889
9890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9901                   inttypes.h stdint.h unistd.h
9902 do
9903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9905 $as_echo_n "checking for $ac_header... " >&6; }
9906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907   $as_echo_n "(cached) " >&6
9908 else
9909   cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915 $ac_includes_default
9916
9917 #include <$ac_header>
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927   (eval "$ac_compile") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && {
9934          test -z "$ac_c_werror_flag" ||
9935          test ! -s conftest.err
9936        } && test -s conftest.$ac_objext; then
9937   eval "$as_ac_Header=yes"
9938 else
9939   $as_echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         eval "$as_ac_Header=no"
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 ac_res=`eval 'as_val=${'$as_ac_Header'}
9948                  $as_echo "$as_val"'`
9949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9950 $as_echo "$ac_res" >&6; }
9951 as_val=`eval 'as_val=${'$as_ac_Header'}
9952                  $as_echo "$as_val"'`
9953    if test "x$as_val" = x""yes; then
9954   cat >>confdefs.h <<_ACEOF
9955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 fi
9959
9960 done
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9995 do
9996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9998   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9999 $as_echo_n "checking for $ac_header... " >&6; }
10000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10001   $as_echo_n "(cached) " >&6
10002 fi
10003 ac_res=`eval 'as_val=${'$as_ac_Header'}
10004                  $as_echo "$as_val"'`
10005                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10006 $as_echo "$ac_res" >&6; }
10007 else
10008   # Is the header compilable?
10009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10010 $as_echo_n "checking $ac_header usability... " >&6; }
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017 $ac_includes_default
10018 #include <$ac_header>
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (ac_try="$ac_compile"
10022 case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027 $as_echo "$ac_try_echo") >&5
10028   (eval "$ac_compile") 2>conftest.er1
10029   ac_status=$?
10030   grep -v '^ *+' conftest.er1 >conftest.err
10031   rm -f conftest.er1
10032   cat conftest.err >&5
10033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } && {
10035          test -z "$ac_c_werror_flag" ||
10036          test ! -s conftest.err
10037        } && test -s conftest.$ac_objext; then
10038   ac_header_compiler=yes
10039 else
10040   $as_echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043         ac_header_compiler=no
10044 fi
10045
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10048 $as_echo "$ac_header_compiler" >&6; }
10049
10050 # Is the header present?
10051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10052 $as_echo_n "checking $ac_header presence... " >&6; }
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 #include <$ac_header>
10060 _ACEOF
10061 if { (ac_try="$ac_cpp conftest.$ac_ext"
10062 case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10069   ac_status=$?
10070   grep -v '^ *+' conftest.er1 >conftest.err
10071   rm -f conftest.er1
10072   cat conftest.err >&5
10073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } >/dev/null && {
10075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10076          test ! -s conftest.err
10077        }; then
10078   ac_header_preproc=yes
10079 else
10080   $as_echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083   ac_header_preproc=no
10084 fi
10085
10086 rm -f conftest.err conftest.$ac_ext
10087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10088 $as_echo "$ac_header_preproc" >&6; }
10089
10090 # So?  What about this header?
10091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10092   yes:no: )
10093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10097     ac_header_preproc=yes
10098     ;;
10099   no:yes:* )
10100     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10102     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10103 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10104     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10106     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10107 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10108     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10112     ( cat <<\_ASBOX
10113 ## ---------------------------------------- ##
10114 ## Report this to pgsql-bugs@postgresql.org ##
10115 ## ---------------------------------------- ##
10116 _ASBOX
10117      ) | sed "s/^/$as_me: WARNING:     /" >&2
10118     ;;
10119 esac
10120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10121 $as_echo_n "checking for $ac_header... " >&6; }
10122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10123   $as_echo_n "(cached) " >&6
10124 else
10125   eval "$as_ac_Header=\$ac_header_preproc"
10126 fi
10127 ac_res=`eval 'as_val=${'$as_ac_Header'}
10128                  $as_echo "$as_val"'`
10129                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10130 $as_echo "$ac_res" >&6; }
10131
10132 fi
10133 as_val=`eval 'as_val=${'$as_ac_Header'}
10134                  $as_echo "$as_val"'`
10135    if test "x$as_val" = x""yes; then
10136   cat >>confdefs.h <<_ACEOF
10137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10138 _ACEOF
10139
10140 fi
10141
10142 done
10143
10144
10145 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10146 # is included first.
10147
10148 for ac_header in net/if.h
10149 do
10150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10152 $as_echo_n "checking for $ac_header... " >&6; }
10153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10154   $as_echo_n "(cached) " >&6
10155 else
10156   cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162 $ac_includes_default
10163 #ifdef HAVE_SYS_SOCKET_H
10164 #include <sys/socket.h>
10165 #endif
10166
10167
10168 #include <$ac_header>
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (ac_try="$ac_compile"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10177 $as_echo "$ac_try_echo") >&5
10178   (eval "$ac_compile") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } && {
10185          test -z "$ac_c_werror_flag" ||
10186          test ! -s conftest.err
10187        } && test -s conftest.$ac_objext; then
10188   eval "$as_ac_Header=yes"
10189 else
10190   $as_echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193         eval "$as_ac_Header=no"
10194 fi
10195
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 fi
10198 ac_res=`eval 'as_val=${'$as_ac_Header'}
10199                  $as_echo "$as_val"'`
10200                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10201 $as_echo "$ac_res" >&6; }
10202 as_val=`eval 'as_val=${'$as_ac_Header'}
10203                  $as_echo "$as_val"'`
10204    if test "x$as_val" = x""yes; then
10205   cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10207 _ACEOF
10208
10209 fi
10210
10211 done
10212
10213
10214 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10215 # netinet/in.h is included first.
10216
10217 for ac_header in netinet/in.h
10218 do
10219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10221   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10222 $as_echo_n "checking for $ac_header... " >&6; }
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224   $as_echo_n "(cached) " >&6
10225 fi
10226 ac_res=`eval 'as_val=${'$as_ac_Header'}
10227                  $as_echo "$as_val"'`
10228                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10229 $as_echo "$ac_res" >&6; }
10230 else
10231   # Is the header compilable?
10232 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10233 $as_echo_n "checking $ac_header usability... " >&6; }
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240 $ac_includes_default
10241 #include <$ac_header>
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (ac_try="$ac_compile"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250 $as_echo "$ac_try_echo") >&5
10251   (eval "$ac_compile") 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } && {
10258          test -z "$ac_c_werror_flag" ||
10259          test ! -s conftest.err
10260        } && test -s conftest.$ac_objext; then
10261   ac_header_compiler=yes
10262 else
10263   $as_echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266         ac_header_compiler=no
10267 fi
10268
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10271 $as_echo "$ac_header_compiler" >&6; }
10272
10273 # Is the header present?
10274 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10275 $as_echo_n "checking $ac_header presence... " >&6; }
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282 #include <$ac_header>
10283 _ACEOF
10284 if { (ac_try="$ac_cpp conftest.$ac_ext"
10285 case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } >/dev/null && {
10298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10299          test ! -s conftest.err
10300        }; then
10301   ac_header_preproc=yes
10302 else
10303   $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306   ac_header_preproc=no
10307 fi
10308
10309 rm -f conftest.err conftest.$ac_ext
10310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10311 $as_echo "$ac_header_preproc" >&6; }
10312
10313 # So?  What about this header?
10314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10315   yes:no: )
10316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10320     ac_header_preproc=yes
10321     ;;
10322   no:yes:* )
10323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10326 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10330 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10334 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10335     ( cat <<\_ASBOX
10336 ## ---------------------------------------- ##
10337 ## Report this to pgsql-bugs@postgresql.org ##
10338 ## ---------------------------------------- ##
10339 _ASBOX
10340      ) | sed "s/^/$as_me: WARNING:     /" >&2
10341     ;;
10342 esac
10343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10344 $as_echo_n "checking for $ac_header... " >&6; }
10345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10346   $as_echo_n "(cached) " >&6
10347 else
10348   eval "$as_ac_Header=\$ac_header_preproc"
10349 fi
10350 ac_res=`eval 'as_val=${'$as_ac_Header'}
10351                  $as_echo "$as_val"'`
10352                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10353 $as_echo "$ac_res" >&6; }
10354
10355 fi
10356 as_val=`eval 'as_val=${'$as_ac_Header'}
10357                  $as_echo "$as_val"'`
10358    if test "x$as_val" = x""yes; then
10359   cat >>confdefs.h <<_ACEOF
10360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10361 _ACEOF
10362
10363 fi
10364
10365 done
10366
10367
10368 for ac_header in netinet/tcp.h
10369 do
10370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 $as_echo_n "checking for $ac_header... " >&6; }
10373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10374   $as_echo_n "(cached) " >&6
10375 else
10376   cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382 $ac_includes_default
10383 #ifdef HAVE_NETINET_IN_H
10384 #include <netinet/in.h>
10385 #endif
10386
10387
10388 #include <$ac_header>
10389 _ACEOF
10390 rm -f conftest.$ac_objext
10391 if { (ac_try="$ac_compile"
10392 case "(($ac_try" in
10393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394   *) ac_try_echo=$ac_try;;
10395 esac
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398   (eval "$ac_compile") 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && {
10405          test -z "$ac_c_werror_flag" ||
10406          test ! -s conftest.err
10407        } && test -s conftest.$ac_objext; then
10408   eval "$as_ac_Header=yes"
10409 else
10410   $as_echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413         eval "$as_ac_Header=no"
10414 fi
10415
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 fi
10418 ac_res=`eval 'as_val=${'$as_ac_Header'}
10419                  $as_echo "$as_val"'`
10420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10421 $as_echo "$ac_res" >&6; }
10422 as_val=`eval 'as_val=${'$as_ac_Header'}
10423                  $as_echo "$as_val"'`
10424    if test "x$as_val" = x""yes; then
10425   cat >>confdefs.h <<_ACEOF
10426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10427 _ACEOF
10428
10429 fi
10430
10431 done
10432
10433
10434 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10435
10436 for ac_header in readline/readline.h
10437 do
10438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10440   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 $as_echo_n "checking for $ac_header... " >&6; }
10442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10443   $as_echo_n "(cached) " >&6
10444 fi
10445 ac_res=`eval 'as_val=${'$as_ac_Header'}
10446                  $as_echo "$as_val"'`
10447                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10448 $as_echo "$ac_res" >&6; }
10449 else
10450   # Is the header compilable?
10451 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10452 $as_echo_n "checking $ac_header usability... " >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 $ac_includes_default
10460 #include <$ac_header>
10461 _ACEOF
10462 rm -f conftest.$ac_objext
10463 if { (ac_try="$ac_compile"
10464 case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10469 $as_echo "$ac_try_echo") >&5
10470   (eval "$ac_compile") 2>conftest.er1
10471   ac_status=$?
10472   grep -v '^ *+' conftest.er1 >conftest.err
10473   rm -f conftest.er1
10474   cat conftest.err >&5
10475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } && {
10477          test -z "$ac_c_werror_flag" ||
10478          test ! -s conftest.err
10479        } && test -s conftest.$ac_objext; then
10480   ac_header_compiler=yes
10481 else
10482   $as_echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485         ac_header_compiler=no
10486 fi
10487
10488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10490 $as_echo "$ac_header_compiler" >&6; }
10491
10492 # Is the header present?
10493 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10494 $as_echo_n "checking $ac_header presence... " >&6; }
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501 #include <$ac_header>
10502 _ACEOF
10503 if { (ac_try="$ac_cpp conftest.$ac_ext"
10504 case "(($ac_try" in
10505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506   *) ac_try_echo=$ac_try;;
10507 esac
10508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10509 $as_echo "$ac_try_echo") >&5
10510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10511   ac_status=$?
10512   grep -v '^ *+' conftest.er1 >conftest.err
10513   rm -f conftest.er1
10514   cat conftest.err >&5
10515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); } >/dev/null && {
10517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10518          test ! -s conftest.err
10519        }; then
10520   ac_header_preproc=yes
10521 else
10522   $as_echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525   ac_header_preproc=no
10526 fi
10527
10528 rm -f conftest.err conftest.$ac_ext
10529 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10530 $as_echo "$ac_header_preproc" >&6; }
10531
10532 # So?  What about this header?
10533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10534   yes:no: )
10535     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10536 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10537     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10538 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10539     ac_header_preproc=yes
10540     ;;
10541   no:yes:* )
10542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10545 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10549 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10553 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10554     ( cat <<\_ASBOX
10555 ## ---------------------------------------- ##
10556 ## Report this to pgsql-bugs@postgresql.org ##
10557 ## ---------------------------------------- ##
10558 _ASBOX
10559      ) | sed "s/^/$as_me: WARNING:     /" >&2
10560     ;;
10561 esac
10562 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 $as_echo_n "checking for $ac_header... " >&6; }
10564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10565   $as_echo_n "(cached) " >&6
10566 else
10567   eval "$as_ac_Header=\$ac_header_preproc"
10568 fi
10569 ac_res=`eval 'as_val=${'$as_ac_Header'}
10570                  $as_echo "$as_val"'`
10571                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10572 $as_echo "$ac_res" >&6; }
10573
10574 fi
10575 as_val=`eval 'as_val=${'$as_ac_Header'}
10576                  $as_echo "$as_val"'`
10577    if test "x$as_val" = x""yes; then
10578   cat >>confdefs.h <<_ACEOF
10579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10580 _ACEOF
10581
10582 else
10583
10584 for ac_header in readline.h
10585 do
10586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10588   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10589 $as_echo_n "checking for $ac_header... " >&6; }
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591   $as_echo_n "(cached) " >&6
10592 fi
10593 ac_res=`eval 'as_val=${'$as_ac_Header'}
10594                  $as_echo "$as_val"'`
10595                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10596 $as_echo "$ac_res" >&6; }
10597 else
10598   # Is the header compilable?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10600 $as_echo_n "checking $ac_header usability... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h.  */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h.  */
10607 $ac_includes_default
10608 #include <$ac_header>
10609 _ACEOF
10610 rm -f conftest.$ac_objext
10611 if { (ac_try="$ac_compile"
10612 case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10617 $as_echo "$ac_try_echo") >&5
10618   (eval "$ac_compile") 2>conftest.er1
10619   ac_status=$?
10620   grep -v '^ *+' conftest.er1 >conftest.err
10621   rm -f conftest.er1
10622   cat conftest.err >&5
10623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } && {
10625          test -z "$ac_c_werror_flag" ||
10626          test ! -s conftest.err
10627        } && test -s conftest.$ac_objext; then
10628   ac_header_compiler=yes
10629 else
10630   $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633         ac_header_compiler=no
10634 fi
10635
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10638 $as_echo "$ac_header_compiler" >&6; }
10639
10640 # Is the header present?
10641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10642 $as_echo_n "checking $ac_header presence... " >&6; }
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 #include <$ac_header>
10650 _ACEOF
10651 if { (ac_try="$ac_cpp conftest.$ac_ext"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10657 $as_echo "$ac_try_echo") >&5
10658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10659   ac_status=$?
10660   grep -v '^ *+' conftest.er1 >conftest.err
10661   rm -f conftest.er1
10662   cat conftest.err >&5
10663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } >/dev/null && {
10665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10666          test ! -s conftest.err
10667        }; then
10668   ac_header_preproc=yes
10669 else
10670   $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673   ac_header_preproc=no
10674 fi
10675
10676 rm -f conftest.err conftest.$ac_ext
10677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10678 $as_echo "$ac_header_preproc" >&6; }
10679
10680 # So?  What about this header?
10681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10682   yes:no: )
10683     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10685     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10687     ac_header_preproc=yes
10688     ;;
10689   no:yes:* )
10690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10693 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10697 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10702     ( cat <<\_ASBOX
10703 ## ---------------------------------------- ##
10704 ## Report this to pgsql-bugs@postgresql.org ##
10705 ## ---------------------------------------- ##
10706 _ASBOX
10707      ) | sed "s/^/$as_me: WARNING:     /" >&2
10708     ;;
10709 esac
10710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10711 $as_echo_n "checking for $ac_header... " >&6; }
10712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10713   $as_echo_n "(cached) " >&6
10714 else
10715   eval "$as_ac_Header=\$ac_header_preproc"
10716 fi
10717 ac_res=`eval 'as_val=${'$as_ac_Header'}
10718                  $as_echo "$as_val"'`
10719                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10720 $as_echo "$ac_res" >&6; }
10721
10722 fi
10723 as_val=`eval 'as_val=${'$as_ac_Header'}
10724                  $as_echo "$as_val"'`
10725    if test "x$as_val" = x""yes; then
10726   cat >>confdefs.h <<_ACEOF
10727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10728 _ACEOF
10729
10730 else
10731   { { $as_echo "$as_me:$LINENO: error: readline header not found
10732 If you have readline already installed, see config.log for details on the
10733 failure.  It is possible the compiler isn't looking in the proper directory.
10734 Use --without-readline to disable readline support." >&5
10735 $as_echo "$as_me: error: readline header not found
10736 If you have readline already installed, see config.log for details on the
10737 failure.  It is possible the compiler isn't looking in the proper directory.
10738 Use --without-readline to disable readline support." >&2;}
10739    { (exit 1); exit 1; }; }
10740 fi
10741
10742 done
10743
10744 fi
10745
10746 done
10747
10748
10749 for ac_header in readline/history.h
10750 do
10751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 $as_echo_n "checking for $ac_header... " >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756   $as_echo_n "(cached) " >&6
10757 fi
10758 ac_res=`eval 'as_val=${'$as_ac_Header'}
10759                  $as_echo "$as_val"'`
10760                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10761 $as_echo "$ac_res" >&6; }
10762 else
10763   # Is the header compilable?
10764 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 $as_echo_n "checking $ac_header usability... " >&6; }
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 $ac_includes_default
10773 #include <$ac_header>
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782 $as_echo "$ac_try_echo") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && {
10790          test -z "$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        } && test -s conftest.$ac_objext; then
10793   ac_header_compiler=yes
10794 else
10795   $as_echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_header_compiler=no
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 $as_echo "$ac_header_compiler" >&6; }
10804
10805 # Is the header present?
10806 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807 $as_echo_n "checking $ac_header presence... " >&6; }
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 #include <$ac_header>
10815 _ACEOF
10816 if { (ac_try="$ac_cpp conftest.$ac_ext"
10817 case "(($ac_try" in
10818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819   *) ac_try_echo=$ac_try;;
10820 esac
10821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10822 $as_echo "$ac_try_echo") >&5
10823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } >/dev/null && {
10830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10831          test ! -s conftest.err
10832        }; then
10833   ac_header_preproc=yes
10834 else
10835   $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838   ac_header_preproc=no
10839 fi
10840
10841 rm -f conftest.err conftest.$ac_ext
10842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 $as_echo "$ac_header_preproc" >&6; }
10844
10845 # So?  What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847   yes:no: )
10848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852     ac_header_preproc=yes
10853     ;;
10854   no:yes:* )
10855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10858 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10862 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10867     ( cat <<\_ASBOX
10868 ## ---------------------------------------- ##
10869 ## Report this to pgsql-bugs@postgresql.org ##
10870 ## ---------------------------------------- ##
10871 _ASBOX
10872      ) | sed "s/^/$as_me: WARNING:     /" >&2
10873     ;;
10874 esac
10875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10876 $as_echo_n "checking for $ac_header... " >&6; }
10877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10878   $as_echo_n "(cached) " >&6
10879 else
10880   eval "$as_ac_Header=\$ac_header_preproc"
10881 fi
10882 ac_res=`eval 'as_val=${'$as_ac_Header'}
10883                  $as_echo "$as_val"'`
10884                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10885 $as_echo "$ac_res" >&6; }
10886
10887 fi
10888 as_val=`eval 'as_val=${'$as_ac_Header'}
10889                  $as_echo "$as_val"'`
10890    if test "x$as_val" = x""yes; then
10891   cat >>confdefs.h <<_ACEOF
10892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10893 _ACEOF
10894
10895 else
10896
10897 for ac_header in history.h
10898 do
10899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 $as_echo_n "checking for $ac_header... " >&6; }
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904   $as_echo_n "(cached) " >&6
10905 fi
10906 ac_res=`eval 'as_val=${'$as_ac_Header'}
10907                  $as_echo "$as_val"'`
10908                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10909 $as_echo "$ac_res" >&6; }
10910 else
10911   # Is the header compilable?
10912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10913 $as_echo_n "checking $ac_header usability... " >&6; }
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920 $ac_includes_default
10921 #include <$ac_header>
10922 _ACEOF
10923 rm -f conftest.$ac_objext
10924 if { (ac_try="$ac_compile"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931   (eval "$ac_compile") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } && {
10938          test -z "$ac_c_werror_flag" ||
10939          test ! -s conftest.err
10940        } && test -s conftest.$ac_objext; then
10941   ac_header_compiler=yes
10942 else
10943   $as_echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         ac_header_compiler=no
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10951 $as_echo "$ac_header_compiler" >&6; }
10952
10953 # Is the header present?
10954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10955 $as_echo_n "checking $ac_header presence... " >&6; }
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 #include <$ac_header>
10963 _ACEOF
10964 if { (ac_try="$ac_cpp conftest.$ac_ext"
10965 case "(($ac_try" in
10966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967   *) ac_try_echo=$ac_try;;
10968 esac
10969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970 $as_echo "$ac_try_echo") >&5
10971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10972   ac_status=$?
10973   grep -v '^ *+' conftest.er1 >conftest.err
10974   rm -f conftest.er1
10975   cat conftest.err >&5
10976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); } >/dev/null && {
10978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10979          test ! -s conftest.err
10980        }; then
10981   ac_header_preproc=yes
10982 else
10983   $as_echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986   ac_header_preproc=no
10987 fi
10988
10989 rm -f conftest.err conftest.$ac_ext
10990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10991 $as_echo "$ac_header_preproc" >&6; }
10992
10993 # So?  What about this header?
10994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10995   yes:no: )
10996     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11000     ac_header_preproc=yes
11001     ;;
11002   no:yes:* )
11003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11006 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11010 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11015     ( cat <<\_ASBOX
11016 ## ---------------------------------------- ##
11017 ## Report this to pgsql-bugs@postgresql.org ##
11018 ## ---------------------------------------- ##
11019 _ASBOX
11020      ) | sed "s/^/$as_me: WARNING:     /" >&2
11021     ;;
11022 esac
11023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11024 $as_echo_n "checking for $ac_header... " >&6; }
11025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11026   $as_echo_n "(cached) " >&6
11027 else
11028   eval "$as_ac_Header=\$ac_header_preproc"
11029 fi
11030 ac_res=`eval 'as_val=${'$as_ac_Header'}
11031                  $as_echo "$as_val"'`
11032                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11033 $as_echo "$ac_res" >&6; }
11034
11035 fi
11036 as_val=`eval 'as_val=${'$as_ac_Header'}
11037                  $as_echo "$as_val"'`
11038    if test "x$as_val" = x""yes; then
11039   cat >>confdefs.h <<_ACEOF
11040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11041 _ACEOF
11042
11043 else
11044   { { $as_echo "$as_me:$LINENO: error: history header not found
11045 If you have readline already installed, see config.log for details on the
11046 failure.  It is possible the compiler isn't looking in the proper directory.
11047 Use --without-readline to disable readline support." >&5
11048 $as_echo "$as_me: error: history header not found
11049 If you have readline already installed, see config.log for details on the
11050 failure.  It is possible the compiler isn't looking in the proper directory.
11051 Use --without-readline to disable readline support." >&2;}
11052    { (exit 1); exit 1; }; }
11053 fi
11054
11055 done
11056
11057 fi
11058
11059 done
11060
11061 fi
11062
11063 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11064 # Some installations of libedit usurp /usr/include/readline/, which seems
11065 # bad practice, since in combined installations readline will have its headers
11066 # there.  We might have to resort to AC_EGREP checks to make sure we found
11067 # the proper header...
11068
11069 for ac_header in editline/readline.h
11070 do
11071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11073   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 $as_echo_n "checking for $ac_header... " >&6; }
11075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11076   $as_echo_n "(cached) " >&6
11077 fi
11078 ac_res=`eval 'as_val=${'$as_ac_Header'}
11079                  $as_echo "$as_val"'`
11080                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11081 $as_echo "$ac_res" >&6; }
11082 else
11083   # Is the header compilable?
11084 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11085 $as_echo_n "checking $ac_header usability... " >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092 $ac_includes_default
11093 #include <$ac_header>
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103   (eval "$ac_compile") 2>conftest.er1
11104   ac_status=$?
11105   grep -v '^ *+' conftest.er1 >conftest.err
11106   rm -f conftest.er1
11107   cat conftest.err >&5
11108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } && {
11110          test -z "$ac_c_werror_flag" ||
11111          test ! -s conftest.err
11112        } && test -s conftest.$ac_objext; then
11113   ac_header_compiler=yes
11114 else
11115   $as_echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118         ac_header_compiler=no
11119 fi
11120
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123 $as_echo "$ac_header_compiler" >&6; }
11124
11125 # Is the header present?
11126 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127 $as_echo_n "checking $ac_header presence... " >&6; }
11128 cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 #include <$ac_header>
11135 _ACEOF
11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
11137 case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142 $as_echo "$ac_try_echo") >&5
11143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144   ac_status=$?
11145   grep -v '^ *+' conftest.er1 >conftest.err
11146   rm -f conftest.er1
11147   cat conftest.err >&5
11148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } >/dev/null && {
11150          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11151          test ! -s conftest.err
11152        }; then
11153   ac_header_preproc=yes
11154 else
11155   $as_echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158   ac_header_preproc=no
11159 fi
11160
11161 rm -f conftest.err conftest.$ac_ext
11162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11163 $as_echo "$ac_header_preproc" >&6; }
11164
11165 # So?  What about this header?
11166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11167   yes:no: )
11168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11169 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11172     ac_header_preproc=yes
11173     ;;
11174   no:yes:* )
11175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11176 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11178 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11180 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11182 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11185     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11186 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11187     ( cat <<\_ASBOX
11188 ## ---------------------------------------- ##
11189 ## Report this to pgsql-bugs@postgresql.org ##
11190 ## ---------------------------------------- ##
11191 _ASBOX
11192      ) | sed "s/^/$as_me: WARNING:     /" >&2
11193     ;;
11194 esac
11195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 $as_echo_n "checking for $ac_header... " >&6; }
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198   $as_echo_n "(cached) " >&6
11199 else
11200   eval "$as_ac_Header=\$ac_header_preproc"
11201 fi
11202 ac_res=`eval 'as_val=${'$as_ac_Header'}
11203                  $as_echo "$as_val"'`
11204                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11205 $as_echo "$ac_res" >&6; }
11206
11207 fi
11208 as_val=`eval 'as_val=${'$as_ac_Header'}
11209                  $as_echo "$as_val"'`
11210    if test "x$as_val" = x""yes; then
11211   cat >>confdefs.h <<_ACEOF
11212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11213 _ACEOF
11214
11215 else
11216
11217 for ac_header in readline.h
11218 do
11219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 $as_echo_n "checking for $ac_header... " >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224   $as_echo_n "(cached) " >&6
11225 fi
11226 ac_res=`eval 'as_val=${'$as_ac_Header'}
11227                  $as_echo "$as_val"'`
11228                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11229 $as_echo "$ac_res" >&6; }
11230 else
11231   # Is the header compilable?
11232 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11233 $as_echo_n "checking $ac_header usability... " >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 $ac_includes_default
11241 #include <$ac_header>
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (ac_try="$ac_compile"
11245 case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11250 $as_echo "$ac_try_echo") >&5
11251   (eval "$ac_compile") 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } && {
11258          test -z "$ac_c_werror_flag" ||
11259          test ! -s conftest.err
11260        } && test -s conftest.$ac_objext; then
11261   ac_header_compiler=yes
11262 else
11263   $as_echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266         ac_header_compiler=no
11267 fi
11268
11269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11271 $as_echo "$ac_header_compiler" >&6; }
11272
11273 # Is the header present?
11274 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11275 $as_echo_n "checking $ac_header presence... " >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 #include <$ac_header>
11283 _ACEOF
11284 if { (ac_try="$ac_cpp conftest.$ac_ext"
11285 case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11290 $as_echo "$ac_try_echo") >&5
11291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } >/dev/null && {
11298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11299          test ! -s conftest.err
11300        }; then
11301   ac_header_preproc=yes
11302 else
11303   $as_echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306   ac_header_preproc=no
11307 fi
11308
11309 rm -f conftest.err conftest.$ac_ext
11310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11311 $as_echo "$ac_header_preproc" >&6; }
11312
11313 # So?  What about this header?
11314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11315   yes:no: )
11316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11317 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11320     ac_header_preproc=yes
11321     ;;
11322   no:yes:* )
11323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11324 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11326 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11328 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11330 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11335     ( cat <<\_ASBOX
11336 ## ---------------------------------------- ##
11337 ## Report this to pgsql-bugs@postgresql.org ##
11338 ## ---------------------------------------- ##
11339 _ASBOX
11340      ) | sed "s/^/$as_me: WARNING:     /" >&2
11341     ;;
11342 esac
11343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11344 $as_echo_n "checking for $ac_header... " >&6; }
11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11346   $as_echo_n "(cached) " >&6
11347 else
11348   eval "$as_ac_Header=\$ac_header_preproc"
11349 fi
11350 ac_res=`eval 'as_val=${'$as_ac_Header'}
11351                  $as_echo "$as_val"'`
11352                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11353 $as_echo "$ac_res" >&6; }
11354
11355 fi
11356 as_val=`eval 'as_val=${'$as_ac_Header'}
11357                  $as_echo "$as_val"'`
11358    if test "x$as_val" = x""yes; then
11359   cat >>confdefs.h <<_ACEOF
11360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11361 _ACEOF
11362
11363 else
11364
11365 for ac_header in readline/readline.h
11366 do
11367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 $as_echo_n "checking for $ac_header... " >&6; }
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372   $as_echo_n "(cached) " >&6
11373 fi
11374 ac_res=`eval 'as_val=${'$as_ac_Header'}
11375                  $as_echo "$as_val"'`
11376                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11377 $as_echo "$ac_res" >&6; }
11378 else
11379   # Is the header compilable?
11380 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11381 $as_echo_n "checking $ac_header usability... " >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388 $ac_includes_default
11389 #include <$ac_header>
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11398 $as_echo "$ac_try_echo") >&5
11399   (eval "$ac_compile") 2>conftest.er1
11400   ac_status=$?
11401   grep -v '^ *+' conftest.er1 >conftest.err
11402   rm -f conftest.er1
11403   cat conftest.err >&5
11404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); } && {
11406          test -z "$ac_c_werror_flag" ||
11407          test ! -s conftest.err
11408        } && test -s conftest.$ac_objext; then
11409   ac_header_compiler=yes
11410 else
11411   $as_echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414         ac_header_compiler=no
11415 fi
11416
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 $as_echo "$ac_header_compiler" >&6; }
11420
11421 # Is the header present?
11422 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 $as_echo_n "checking $ac_header presence... " >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 #include <$ac_header>
11431 _ACEOF
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438 $as_echo "$ac_try_echo") >&5
11439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } >/dev/null && {
11446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11447          test ! -s conftest.err
11448        }; then
11449   ac_header_preproc=yes
11450 else
11451   $as_echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454   ac_header_preproc=no
11455 fi
11456
11457 rm -f conftest.err conftest.$ac_ext
11458 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 $as_echo "$ac_header_preproc" >&6; }
11460
11461 # So?  What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463   yes:no: )
11464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11465 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11467 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11468     ac_header_preproc=yes
11469     ;;
11470   no:yes:* )
11471     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11474 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11475     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11476 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11478 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11482 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11483     ( cat <<\_ASBOX
11484 ## ---------------------------------------- ##
11485 ## Report this to pgsql-bugs@postgresql.org ##
11486 ## ---------------------------------------- ##
11487 _ASBOX
11488      ) | sed "s/^/$as_me: WARNING:     /" >&2
11489     ;;
11490 esac
11491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 $as_echo_n "checking for $ac_header... " >&6; }
11493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494   $as_echo_n "(cached) " >&6
11495 else
11496   eval "$as_ac_Header=\$ac_header_preproc"
11497 fi
11498 ac_res=`eval 'as_val=${'$as_ac_Header'}
11499                  $as_echo "$as_val"'`
11500                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11501 $as_echo "$ac_res" >&6; }
11502
11503 fi
11504 as_val=`eval 'as_val=${'$as_ac_Header'}
11505                  $as_echo "$as_val"'`
11506    if test "x$as_val" = x""yes; then
11507   cat >>confdefs.h <<_ACEOF
11508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11509 _ACEOF
11510
11511 else
11512   { { $as_echo "$as_me:$LINENO: error: readline header not found
11513 If you have libedit already installed, see config.log for details on the
11514 failure.  It is possible the compiler isn't looking in the proper directory.
11515 Use --without-readline to disable libedit support." >&5
11516 $as_echo "$as_me: error: readline header not found
11517 If you have libedit already installed, see config.log for details on the
11518 failure.  It is possible the compiler isn't looking in the proper directory.
11519 Use --without-readline to disable libedit support." >&2;}
11520    { (exit 1); exit 1; }; }
11521 fi
11522
11523 done
11524
11525 fi
11526
11527 done
11528
11529 fi
11530
11531 done
11532
11533 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11534 # not be there at all.  Hence, don't complain if not found.  We must check
11535 # though, since in yet other versions it is an independent header.
11536
11537 for ac_header in editline/history.h
11538 do
11539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 $as_echo_n "checking for $ac_header... " >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544   $as_echo_n "(cached) " >&6
11545 fi
11546 ac_res=`eval 'as_val=${'$as_ac_Header'}
11547                  $as_echo "$as_val"'`
11548                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11549 $as_echo "$ac_res" >&6; }
11550 else
11551   # Is the header compilable?
11552 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553 $as_echo_n "checking $ac_header usability... " >&6; }
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h.  */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h.  */
11560 $ac_includes_default
11561 #include <$ac_header>
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (ac_try="$ac_compile"
11565 case "(($ac_try" in
11566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567   *) ac_try_echo=$ac_try;;
11568 esac
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571   (eval "$ac_compile") 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } && {
11578          test -z "$ac_c_werror_flag" ||
11579          test ! -s conftest.err
11580        } && test -s conftest.$ac_objext; then
11581   ac_header_compiler=yes
11582 else
11583   $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586         ac_header_compiler=no
11587 fi
11588
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11591 $as_echo "$ac_header_compiler" >&6; }
11592
11593 # Is the header present?
11594 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11595 $as_echo_n "checking $ac_header presence... " >&6; }
11596 cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602 #include <$ac_header>
11603 _ACEOF
11604 if { (ac_try="$ac_cpp conftest.$ac_ext"
11605 case "(($ac_try" in
11606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607   *) ac_try_echo=$ac_try;;
11608 esac
11609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11610 $as_echo "$ac_try_echo") >&5
11611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11612   ac_status=$?
11613   grep -v '^ *+' conftest.er1 >conftest.err
11614   rm -f conftest.er1
11615   cat conftest.err >&5
11616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } >/dev/null && {
11618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11619          test ! -s conftest.err
11620        }; then
11621   ac_header_preproc=yes
11622 else
11623   $as_echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11625
11626   ac_header_preproc=no
11627 fi
11628
11629 rm -f conftest.err conftest.$ac_ext
11630 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11631 $as_echo "$ac_header_preproc" >&6; }
11632
11633 # So?  What about this header?
11634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11635   yes:no: )
11636     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11637 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11638     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11640     ac_header_preproc=yes
11641     ;;
11642   no:yes:* )
11643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11644 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11646 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11647     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11648 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11649     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11650 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11651     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11654 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11655     ( cat <<\_ASBOX
11656 ## ---------------------------------------- ##
11657 ## Report this to pgsql-bugs@postgresql.org ##
11658 ## ---------------------------------------- ##
11659 _ASBOX
11660      ) | sed "s/^/$as_me: WARNING:     /" >&2
11661     ;;
11662 esac
11663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 $as_echo_n "checking for $ac_header... " >&6; }
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666   $as_echo_n "(cached) " >&6
11667 else
11668   eval "$as_ac_Header=\$ac_header_preproc"
11669 fi
11670 ac_res=`eval 'as_val=${'$as_ac_Header'}
11671                  $as_echo "$as_val"'`
11672                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11673 $as_echo "$ac_res" >&6; }
11674
11675 fi
11676 as_val=`eval 'as_val=${'$as_ac_Header'}
11677                  $as_echo "$as_val"'`
11678    if test "x$as_val" = x""yes; then
11679   cat >>confdefs.h <<_ACEOF
11680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11681 _ACEOF
11682
11683 else
11684
11685 for ac_header in history.h
11686 do
11687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11689   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11690 $as_echo_n "checking for $ac_header... " >&6; }
11691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11692   $as_echo_n "(cached) " >&6
11693 fi
11694 ac_res=`eval 'as_val=${'$as_ac_Header'}
11695                  $as_echo "$as_val"'`
11696                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11697 $as_echo "$ac_res" >&6; }
11698 else
11699   # Is the header compilable?
11700 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11701 $as_echo_n "checking $ac_header usability... " >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 $ac_includes_default
11709 #include <$ac_header>
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11718 $as_echo "$ac_try_echo") >&5
11719   (eval "$ac_compile") 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } && {
11726          test -z "$ac_c_werror_flag" ||
11727          test ! -s conftest.err
11728        } && test -s conftest.$ac_objext; then
11729   ac_header_compiler=yes
11730 else
11731   $as_echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734         ac_header_compiler=no
11735 fi
11736
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11739 $as_echo "$ac_header_compiler" >&6; }
11740
11741 # Is the header present?
11742 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11743 $as_echo_n "checking $ac_header presence... " >&6; }
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h.  */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h.  */
11750 #include <$ac_header>
11751 _ACEOF
11752 if { (ac_try="$ac_cpp conftest.$ac_ext"
11753 case "(($ac_try" in
11754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755   *) ac_try_echo=$ac_try;;
11756 esac
11757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11758 $as_echo "$ac_try_echo") >&5
11759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } >/dev/null && {
11766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11767          test ! -s conftest.err
11768        }; then
11769   ac_header_preproc=yes
11770 else
11771   $as_echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774   ac_header_preproc=no
11775 fi
11776
11777 rm -f conftest.err conftest.$ac_ext
11778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11779 $as_echo "$ac_header_preproc" >&6; }
11780
11781 # So?  What about this header?
11782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11783   yes:no: )
11784     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11785 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11786     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11788     ac_header_preproc=yes
11789     ;;
11790   no:yes:* )
11791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11792 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11794 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11796 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11798 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11802 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11803     ( cat <<\_ASBOX
11804 ## ---------------------------------------- ##
11805 ## Report this to pgsql-bugs@postgresql.org ##
11806 ## ---------------------------------------- ##
11807 _ASBOX
11808      ) | sed "s/^/$as_me: WARNING:     /" >&2
11809     ;;
11810 esac
11811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 $as_echo_n "checking for $ac_header... " >&6; }
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814   $as_echo_n "(cached) " >&6
11815 else
11816   eval "$as_ac_Header=\$ac_header_preproc"
11817 fi
11818 ac_res=`eval 'as_val=${'$as_ac_Header'}
11819                  $as_echo "$as_val"'`
11820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11821 $as_echo "$ac_res" >&6; }
11822
11823 fi
11824 as_val=`eval 'as_val=${'$as_ac_Header'}
11825                  $as_echo "$as_val"'`
11826    if test "x$as_val" = x""yes; then
11827   cat >>confdefs.h <<_ACEOF
11828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11829 _ACEOF
11830
11831 else
11832
11833 for ac_header in readline/history.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 fi
11980
11981 done
11982
11983 fi
11984
11985 done
11986
11987 fi
11988
11989 done
11990
11991 fi
11992
11993 if test "$with_zlib" = yes; then
11994   if test "${ac_cv_header_zlib_h+set}" = set; then
11995   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11996 $as_echo_n "checking for zlib.h... " >&6; }
11997 if test "${ac_cv_header_zlib_h+set}" = set; then
11998   $as_echo_n "(cached) " >&6
11999 fi
12000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12001 $as_echo "$ac_cv_header_zlib_h" >&6; }
12002 else
12003   # Is the header compilable?
12004 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12005 $as_echo_n "checking zlib.h usability... " >&6; }
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 $ac_includes_default
12013 #include <zlib.h>
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12022 $as_echo "$ac_try_echo") >&5
12023   (eval "$ac_compile") 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } && {
12030          test -z "$ac_c_werror_flag" ||
12031          test ! -s conftest.err
12032        } && test -s conftest.$ac_objext; then
12033   ac_header_compiler=yes
12034 else
12035   $as_echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038         ac_header_compiler=no
12039 fi
12040
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12043 $as_echo "$ac_header_compiler" >&6; }
12044
12045 # Is the header present?
12046 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12047 $as_echo_n "checking zlib.h presence... " >&6; }
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054 #include <zlib.h>
12055 _ACEOF
12056 if { (ac_try="$ac_cpp conftest.$ac_ext"
12057 case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12062 $as_echo "$ac_try_echo") >&5
12063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } >/dev/null && {
12070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12071          test ! -s conftest.err
12072        }; then
12073   ac_header_preproc=yes
12074 else
12075   $as_echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078   ac_header_preproc=no
12079 fi
12080
12081 rm -f conftest.err conftest.$ac_ext
12082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 $as_echo "$ac_header_preproc" >&6; }
12084
12085 # So?  What about this header?
12086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12087   yes:no: )
12088     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12089 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12091 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12092     ac_header_preproc=yes
12093     ;;
12094   no:yes:* )
12095     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12096 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12097     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12098 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12099     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12100 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12101     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12102 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12103     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12104 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12105     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12106 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12107     ( cat <<\_ASBOX
12108 ## ---------------------------------------- ##
12109 ## Report this to pgsql-bugs@postgresql.org ##
12110 ## ---------------------------------------- ##
12111 _ASBOX
12112      ) | sed "s/^/$as_me: WARNING:     /" >&2
12113     ;;
12114 esac
12115 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12116 $as_echo_n "checking for zlib.h... " >&6; }
12117 if test "${ac_cv_header_zlib_h+set}" = set; then
12118   $as_echo_n "(cached) " >&6
12119 else
12120   ac_cv_header_zlib_h=$ac_header_preproc
12121 fi
12122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12123 $as_echo "$ac_cv_header_zlib_h" >&6; }
12124
12125 fi
12126 if test "x$ac_cv_header_zlib_h" = x""yes; then
12127   :
12128 else
12129   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12130 If you have zlib already installed, see config.log for details on the
12131 failure.  It is possible the compiler isn't looking in the proper directory.
12132 Use --without-zlib to disable zlib support." >&5
12133 $as_echo "$as_me: error: zlib header not found
12134 If you have zlib already installed, see config.log for details on the
12135 failure.  It is possible the compiler isn't looking in the proper directory.
12136 Use --without-zlib to disable zlib support." >&2;}
12137    { (exit 1); exit 1; }; }
12138 fi
12139
12140
12141 fi
12142
12143 if test "$with_gssapi" = yes ; then
12144
12145 for ac_header in gssapi/gssapi.h
12146 do
12147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12149   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 $as_echo_n "checking for $ac_header... " >&6; }
12151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12152   $as_echo_n "(cached) " >&6
12153 fi
12154 ac_res=`eval 'as_val=${'$as_ac_Header'}
12155                  $as_echo "$as_val"'`
12156                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12157 $as_echo "$ac_res" >&6; }
12158 else
12159   # Is the header compilable?
12160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12161 $as_echo_n "checking $ac_header usability... " >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168 $ac_includes_default
12169 #include <$ac_header>
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12178 $as_echo "$ac_try_echo") >&5
12179   (eval "$ac_compile") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } && {
12186          test -z "$ac_c_werror_flag" ||
12187          test ! -s conftest.err
12188        } && test -s conftest.$ac_objext; then
12189   ac_header_compiler=yes
12190 else
12191   $as_echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194         ac_header_compiler=no
12195 fi
12196
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12199 $as_echo "$ac_header_compiler" >&6; }
12200
12201 # Is the header present?
12202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12203 $as_echo_n "checking $ac_header presence... " >&6; }
12204 cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h.  */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h.  */
12210 #include <$ac_header>
12211 _ACEOF
12212 if { (ac_try="$ac_cpp conftest.$ac_ext"
12213 case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12218 $as_echo "$ac_try_echo") >&5
12219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } >/dev/null && {
12226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12227          test ! -s conftest.err
12228        }; then
12229   ac_header_preproc=yes
12230 else
12231   $as_echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234   ac_header_preproc=no
12235 fi
12236
12237 rm -f conftest.err conftest.$ac_ext
12238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239 $as_echo "$ac_header_preproc" >&6; }
12240
12241 # So?  What about this header?
12242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12243   yes:no: )
12244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12248     ac_header_preproc=yes
12249     ;;
12250   no:yes:* )
12251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12254 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12257     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12258 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12259     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12263     ( cat <<\_ASBOX
12264 ## ---------------------------------------- ##
12265 ## Report this to pgsql-bugs@postgresql.org ##
12266 ## ---------------------------------------- ##
12267 _ASBOX
12268      ) | sed "s/^/$as_me: WARNING:     /" >&2
12269     ;;
12270 esac
12271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 $as_echo_n "checking for $ac_header... " >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274   $as_echo_n "(cached) " >&6
12275 else
12276   eval "$as_ac_Header=\$ac_header_preproc"
12277 fi
12278 ac_res=`eval 'as_val=${'$as_ac_Header'}
12279                  $as_echo "$as_val"'`
12280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12281 $as_echo "$ac_res" >&6; }
12282
12283 fi
12284 as_val=`eval 'as_val=${'$as_ac_Header'}
12285                  $as_echo "$as_val"'`
12286    if test "x$as_val" = x""yes; then
12287   cat >>confdefs.h <<_ACEOF
12288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12289 _ACEOF
12290
12291 else
12292
12293 for ac_header in gssapi.h
12294 do
12295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 $as_echo_n "checking for $ac_header... " >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300   $as_echo_n "(cached) " >&6
12301 fi
12302 ac_res=`eval 'as_val=${'$as_ac_Header'}
12303                  $as_echo "$as_val"'`
12304                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12305 $as_echo "$ac_res" >&6; }
12306 else
12307   # Is the header compilable?
12308 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12309 $as_echo_n "checking $ac_header usability... " >&6; }
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h.  */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h.  */
12316 $ac_includes_default
12317 #include <$ac_header>
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (ac_try="$ac_compile"
12321 case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12326 $as_echo "$ac_try_echo") >&5
12327   (eval "$ac_compile") 2>conftest.er1
12328   ac_status=$?
12329   grep -v '^ *+' conftest.er1 >conftest.err
12330   rm -f conftest.er1
12331   cat conftest.err >&5
12332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); } && {
12334          test -z "$ac_c_werror_flag" ||
12335          test ! -s conftest.err
12336        } && test -s conftest.$ac_objext; then
12337   ac_header_compiler=yes
12338 else
12339   $as_echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342         ac_header_compiler=no
12343 fi
12344
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12347 $as_echo "$ac_header_compiler" >&6; }
12348
12349 # Is the header present?
12350 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12351 $as_echo_n "checking $ac_header presence... " >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h.  */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h.  */
12358 #include <$ac_header>
12359 _ACEOF
12360 if { (ac_try="$ac_cpp conftest.$ac_ext"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } >/dev/null && {
12374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12375          test ! -s conftest.err
12376        }; then
12377   ac_header_preproc=yes
12378 else
12379   $as_echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382   ac_header_preproc=no
12383 fi
12384
12385 rm -f conftest.err conftest.$ac_ext
12386 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12387 $as_echo "$ac_header_preproc" >&6; }
12388
12389 # So?  What about this header?
12390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12391   yes:no: )
12392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12393 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12396     ac_header_preproc=yes
12397     ;;
12398   no:yes:* )
12399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12400 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12402 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12405     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12406 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12407     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12410 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12411     ( cat <<\_ASBOX
12412 ## ---------------------------------------- ##
12413 ## Report this to pgsql-bugs@postgresql.org ##
12414 ## ---------------------------------------- ##
12415 _ASBOX
12416      ) | sed "s/^/$as_me: WARNING:     /" >&2
12417     ;;
12418 esac
12419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12420 $as_echo_n "checking for $ac_header... " >&6; }
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422   $as_echo_n "(cached) " >&6
12423 else
12424   eval "$as_ac_Header=\$ac_header_preproc"
12425 fi
12426 ac_res=`eval 'as_val=${'$as_ac_Header'}
12427                  $as_echo "$as_val"'`
12428                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12429 $as_echo "$ac_res" >&6; }
12430
12431 fi
12432 as_val=`eval 'as_val=${'$as_ac_Header'}
12433                  $as_echo "$as_val"'`
12434    if test "x$as_val" = x""yes; then
12435   cat >>confdefs.h <<_ACEOF
12436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12437 _ACEOF
12438
12439 else
12440   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12441 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12442    { (exit 1); exit 1; }; }
12443 fi
12444
12445 done
12446
12447 fi
12448
12449 done
12450
12451 fi
12452
12453 if test "$with_krb5" = yes ; then
12454   if test "${ac_cv_header_krb5_h+set}" = set; then
12455   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12456 $as_echo_n "checking for krb5.h... " >&6; }
12457 if test "${ac_cv_header_krb5_h+set}" = set; then
12458   $as_echo_n "(cached) " >&6
12459 fi
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12461 $as_echo "$ac_cv_header_krb5_h" >&6; }
12462 else
12463   # Is the header compilable?
12464 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12465 $as_echo_n "checking krb5.h usability... " >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472 $ac_includes_default
12473 #include <krb5.h>
12474 _ACEOF
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479   *) ac_try_echo=$ac_try;;
12480 esac
12481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12482 $as_echo "$ac_try_echo") >&5
12483   (eval "$ac_compile") 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } && {
12490          test -z "$ac_c_werror_flag" ||
12491          test ! -s conftest.err
12492        } && test -s conftest.$ac_objext; then
12493   ac_header_compiler=yes
12494 else
12495   $as_echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498         ac_header_compiler=no
12499 fi
12500
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 $as_echo "$ac_header_compiler" >&6; }
12504
12505 # Is the header present?
12506 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12507 $as_echo_n "checking krb5.h presence... " >&6; }
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514 #include <krb5.h>
12515 _ACEOF
12516 if { (ac_try="$ac_cpp conftest.$ac_ext"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } >/dev/null && {
12530          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12531          test ! -s conftest.err
12532        }; then
12533   ac_header_preproc=yes
12534 else
12535   $as_echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12537
12538   ac_header_preproc=no
12539 fi
12540
12541 rm -f conftest.err conftest.$ac_ext
12542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12543 $as_echo "$ac_header_preproc" >&6; }
12544
12545 # So?  What about this header?
12546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12547   yes:no: )
12548     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12549 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12550     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12551 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12552     ac_header_preproc=yes
12553     ;;
12554   no:yes:* )
12555     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12556 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12557     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12558 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12559     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12560 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12561     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12562 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12563     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12564 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12565     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12566 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12567     ( cat <<\_ASBOX
12568 ## ---------------------------------------- ##
12569 ## Report this to pgsql-bugs@postgresql.org ##
12570 ## ---------------------------------------- ##
12571 _ASBOX
12572      ) | sed "s/^/$as_me: WARNING:     /" >&2
12573     ;;
12574 esac
12575 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12576 $as_echo_n "checking for krb5.h... " >&6; }
12577 if test "${ac_cv_header_krb5_h+set}" = set; then
12578   $as_echo_n "(cached) " >&6
12579 else
12580   ac_cv_header_krb5_h=$ac_header_preproc
12581 fi
12582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12583 $as_echo "$ac_cv_header_krb5_h" >&6; }
12584
12585 fi
12586 if test "x$ac_cv_header_krb5_h" = x""yes; then
12587   :
12588 else
12589   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12590 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12591    { (exit 1); exit 1; }; }
12592 fi
12593
12594
12595 fi
12596
12597 if test "$with_openssl" = yes ; then
12598   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12599   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12600 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12601 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12602   $as_echo_n "(cached) " >&6
12603 fi
12604 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12605 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12606 else
12607   # Is the header compilable?
12608 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12609 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h.  */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h.  */
12616 $ac_includes_default
12617 #include <openssl/ssl.h>
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (ac_try="$ac_compile"
12621 case "(($ac_try" in
12622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623   *) ac_try_echo=$ac_try;;
12624 esac
12625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627   (eval "$ac_compile") 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } && {
12634          test -z "$ac_c_werror_flag" ||
12635          test ! -s conftest.err
12636        } && test -s conftest.$ac_objext; then
12637   ac_header_compiler=yes
12638 else
12639   $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642         ac_header_compiler=no
12643 fi
12644
12645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 $as_echo "$ac_header_compiler" >&6; }
12648
12649 # Is the header present?
12650 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12651 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12652 cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h.  */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h.  */
12658 #include <openssl/ssl.h>
12659 _ACEOF
12660 if { (ac_try="$ac_cpp conftest.$ac_ext"
12661 case "(($ac_try" in
12662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663   *) ac_try_echo=$ac_try;;
12664 esac
12665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12666 $as_echo "$ac_try_echo") >&5
12667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12668   ac_status=$?
12669   grep -v '^ *+' conftest.er1 >conftest.err
12670   rm -f conftest.er1
12671   cat conftest.err >&5
12672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } >/dev/null && {
12674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12675          test ! -s conftest.err
12676        }; then
12677   ac_header_preproc=yes
12678 else
12679   $as_echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682   ac_header_preproc=no
12683 fi
12684
12685 rm -f conftest.err conftest.$ac_ext
12686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 $as_echo "$ac_header_preproc" >&6; }
12688
12689 # So?  What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12691   yes:no: )
12692     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12695 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12696     ac_header_preproc=yes
12697     ;;
12698   no:yes:* )
12699     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12700 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12701     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12702 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12703     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12704 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12705     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12706 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12707     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12708 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12709     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12710 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12711     ( cat <<\_ASBOX
12712 ## ---------------------------------------- ##
12713 ## Report this to pgsql-bugs@postgresql.org ##
12714 ## ---------------------------------------- ##
12715 _ASBOX
12716      ) | sed "s/^/$as_me: WARNING:     /" >&2
12717     ;;
12718 esac
12719 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12720 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12721 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12722   $as_echo_n "(cached) " >&6
12723 else
12724   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12725 fi
12726 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12727 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12728
12729 fi
12730 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12731   :
12732 else
12733   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12734 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12735    { (exit 1); exit 1; }; }
12736 fi
12737
12738
12739   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12740   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12741 $as_echo_n "checking for openssl/err.h... " >&6; }
12742 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12743   $as_echo_n "(cached) " >&6
12744 fi
12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12746 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12747 else
12748   # Is the header compilable?
12749 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12750 $as_echo_n "checking openssl/err.h usability... " >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757 $ac_includes_default
12758 #include <openssl/err.h>
12759 _ACEOF
12760 rm -f conftest.$ac_objext
12761 if { (ac_try="$ac_compile"
12762 case "(($ac_try" in
12763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764   *) ac_try_echo=$ac_try;;
12765 esac
12766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12767 $as_echo "$ac_try_echo") >&5
12768   (eval "$ac_compile") 2>conftest.er1
12769   ac_status=$?
12770   grep -v '^ *+' conftest.er1 >conftest.err
12771   rm -f conftest.er1
12772   cat conftest.err >&5
12773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } && {
12775          test -z "$ac_c_werror_flag" ||
12776          test ! -s conftest.err
12777        } && test -s conftest.$ac_objext; then
12778   ac_header_compiler=yes
12779 else
12780   $as_echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783         ac_header_compiler=no
12784 fi
12785
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 $as_echo "$ac_header_compiler" >&6; }
12789
12790 # Is the header present?
12791 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12792 $as_echo_n "checking openssl/err.h presence... " >&6; }
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 #include <openssl/err.h>
12800 _ACEOF
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12807 $as_echo "$ac_try_echo") >&5
12808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } >/dev/null && {
12815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12816          test ! -s conftest.err
12817        }; then
12818   ac_header_preproc=yes
12819 else
12820   $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823   ac_header_preproc=no
12824 fi
12825
12826 rm -f conftest.err conftest.$ac_ext
12827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 $as_echo "$ac_header_preproc" >&6; }
12829
12830 # So?  What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832   yes:no: )
12833     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12834 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12836 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12837     ac_header_preproc=yes
12838     ;;
12839   no:yes:* )
12840     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12841 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12842     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12843 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12844     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12845 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12846     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12847 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12848     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12849 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12850     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12851 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12852     ( cat <<\_ASBOX
12853 ## ---------------------------------------- ##
12854 ## Report this to pgsql-bugs@postgresql.org ##
12855 ## ---------------------------------------- ##
12856 _ASBOX
12857      ) | sed "s/^/$as_me: WARNING:     /" >&2
12858     ;;
12859 esac
12860 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12861 $as_echo_n "checking for openssl/err.h... " >&6; }
12862 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12863   $as_echo_n "(cached) " >&6
12864 else
12865   ac_cv_header_openssl_err_h=$ac_header_preproc
12866 fi
12867 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12868 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12869
12870 fi
12871 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12872   :
12873 else
12874   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12875 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12876    { (exit 1); exit 1; }; }
12877 fi
12878
12879
12880
12881 for ac_func in ERR_set_mark
12882 do
12883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12885 $as_echo_n "checking for $ac_func... " >&6; }
12886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12887   $as_echo_n "(cached) " >&6
12888 else
12889   cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h.  */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h.  */
12895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12897 #define $ac_func innocuous_$ac_func
12898
12899 /* System header to define __stub macros and hopefully few prototypes,
12900     which can conflict with char $ac_func (); below.
12901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902     <limits.h> exists even on freestanding compilers.  */
12903
12904 #ifdef __STDC__
12905 # include <limits.h>
12906 #else
12907 # include <assert.h>
12908 #endif
12909
12910 #undef $ac_func
12911
12912 /* Override any GCC internal prototype to avoid an error.
12913    Use char because int might match the return type of a GCC
12914    builtin and then its argument prototype would still apply.  */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char $ac_func ();
12919 /* The GNU C library defines this for functions which it implements
12920     to always fail with ENOSYS.  Some functions are actually named
12921     something starting with __ and the normal name is an alias.  */
12922 #if defined __stub_$ac_func || defined __stub___$ac_func
12923 choke me
12924 #endif
12925
12926 int
12927 main ()
12928 {
12929 return $ac_func ();
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941 $as_echo "$ac_try_echo") >&5
12942   (eval "$ac_link") 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } && {
12949          test -z "$ac_c_werror_flag" ||
12950          test ! -s conftest.err
12951        } && test -s conftest$ac_exeext && {
12952          test "$cross_compiling" = yes ||
12953          $as_test_x conftest$ac_exeext
12954        }; then
12955   eval "$as_ac_var=yes"
12956 else
12957   $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960         eval "$as_ac_var=no"
12961 fi
12962
12963 rm -rf conftest.dSYM
12964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12965       conftest$ac_exeext conftest.$ac_ext
12966 fi
12967 ac_res=`eval 'as_val=${'$as_ac_var'}
12968                  $as_echo "$as_val"'`
12969                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12970 $as_echo "$ac_res" >&6; }
12971 as_val=`eval 'as_val=${'$as_ac_var'}
12972                  $as_echo "$as_val"'`
12973    if test "x$as_val" = x""yes; then
12974   cat >>confdefs.h <<_ACEOF
12975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12976 _ACEOF
12977
12978 fi
12979 done
12980
12981 fi
12982
12983 if test "$with_pam" = yes ; then
12984
12985 for ac_header in security/pam_appl.h
12986 do
12987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12989   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 $as_echo_n "checking for $ac_header... " >&6; }
12991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12992   $as_echo_n "(cached) " >&6
12993 fi
12994 ac_res=`eval 'as_val=${'$as_ac_Header'}
12995                  $as_echo "$as_val"'`
12996                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12997 $as_echo "$ac_res" >&6; }
12998 else
12999   # Is the header compilable?
13000 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13001 $as_echo_n "checking $ac_header usability... " >&6; }
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h.  */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h.  */
13008 $ac_includes_default
13009 #include <$ac_header>
13010 _ACEOF
13011 rm -f conftest.$ac_objext
13012 if { (ac_try="$ac_compile"
13013 case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018 $as_echo "$ac_try_echo") >&5
13019   (eval "$ac_compile") 2>conftest.er1
13020   ac_status=$?
13021   grep -v '^ *+' conftest.er1 >conftest.err
13022   rm -f conftest.er1
13023   cat conftest.err >&5
13024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); } && {
13026          test -z "$ac_c_werror_flag" ||
13027          test ! -s conftest.err
13028        } && test -s conftest.$ac_objext; then
13029   ac_header_compiler=yes
13030 else
13031   $as_echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034         ac_header_compiler=no
13035 fi
13036
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13039 $as_echo "$ac_header_compiler" >&6; }
13040
13041 # Is the header present?
13042 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13043 $as_echo_n "checking $ac_header presence... " >&6; }
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 #include <$ac_header>
13051 _ACEOF
13052 if { (ac_try="$ac_cpp conftest.$ac_ext"
13053 case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13060   ac_status=$?
13061   grep -v '^ *+' conftest.er1 >conftest.err
13062   rm -f conftest.er1
13063   cat conftest.err >&5
13064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } >/dev/null && {
13066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13067          test ! -s conftest.err
13068        }; then
13069   ac_header_preproc=yes
13070 else
13071   $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074   ac_header_preproc=no
13075 fi
13076
13077 rm -f conftest.err conftest.$ac_ext
13078 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13079 $as_echo "$ac_header_preproc" >&6; }
13080
13081 # So?  What about this header?
13082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13083   yes:no: )
13084     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13085 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13088     ac_header_preproc=yes
13089     ;;
13090   no:yes:* )
13091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13092 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13094 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13096 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13098 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13099     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13101     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13102 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13103     ( cat <<\_ASBOX
13104 ## ---------------------------------------- ##
13105 ## Report this to pgsql-bugs@postgresql.org ##
13106 ## ---------------------------------------- ##
13107 _ASBOX
13108      ) | sed "s/^/$as_me: WARNING:     /" >&2
13109     ;;
13110 esac
13111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13112 $as_echo_n "checking for $ac_header... " >&6; }
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114   $as_echo_n "(cached) " >&6
13115 else
13116   eval "$as_ac_Header=\$ac_header_preproc"
13117 fi
13118 ac_res=`eval 'as_val=${'$as_ac_Header'}
13119                  $as_echo "$as_val"'`
13120                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13121 $as_echo "$ac_res" >&6; }
13122
13123 fi
13124 as_val=`eval 'as_val=${'$as_ac_Header'}
13125                  $as_echo "$as_val"'`
13126    if test "x$as_val" = x""yes; then
13127   cat >>confdefs.h <<_ACEOF
13128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13129 _ACEOF
13130
13131 else
13132
13133 for ac_header in pam/pam_appl.h
13134 do
13135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13137   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13138 $as_echo_n "checking for $ac_header... " >&6; }
13139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13140   $as_echo_n "(cached) " >&6
13141 fi
13142 ac_res=`eval 'as_val=${'$as_ac_Header'}
13143                  $as_echo "$as_val"'`
13144                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13145 $as_echo "$ac_res" >&6; }
13146 else
13147   # Is the header compilable?
13148 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13149 $as_echo_n "checking $ac_header usability... " >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 $ac_includes_default
13157 #include <$ac_header>
13158 _ACEOF
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163   *) ac_try_echo=$ac_try;;
13164 esac
13165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13166 $as_echo "$ac_try_echo") >&5
13167   (eval "$ac_compile") 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } && {
13174          test -z "$ac_c_werror_flag" ||
13175          test ! -s conftest.err
13176        } && test -s conftest.$ac_objext; then
13177   ac_header_compiler=yes
13178 else
13179   $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182         ac_header_compiler=no
13183 fi
13184
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13187 $as_echo "$ac_header_compiler" >&6; }
13188
13189 # Is the header present?
13190 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13191 $as_echo_n "checking $ac_header presence... " >&6; }
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198 #include <$ac_header>
13199 _ACEOF
13200 if { (ac_try="$ac_cpp conftest.$ac_ext"
13201 case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13206 $as_echo "$ac_try_echo") >&5
13207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13208   ac_status=$?
13209   grep -v '^ *+' conftest.er1 >conftest.err
13210   rm -f conftest.er1
13211   cat conftest.err >&5
13212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } >/dev/null && {
13214          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13215          test ! -s conftest.err
13216        }; then
13217   ac_header_preproc=yes
13218 else
13219   $as_echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13221
13222   ac_header_preproc=no
13223 fi
13224
13225 rm -f conftest.err conftest.$ac_ext
13226 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13227 $as_echo "$ac_header_preproc" >&6; }
13228
13229 # So?  What about this header?
13230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13231   yes:no: )
13232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13233 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13236     ac_header_preproc=yes
13237     ;;
13238   no:yes:* )
13239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13240 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13242 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13244 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13246 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13250 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13251     ( cat <<\_ASBOX
13252 ## ---------------------------------------- ##
13253 ## Report this to pgsql-bugs@postgresql.org ##
13254 ## ---------------------------------------- ##
13255 _ASBOX
13256      ) | sed "s/^/$as_me: WARNING:     /" >&2
13257     ;;
13258 esac
13259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13260 $as_echo_n "checking for $ac_header... " >&6; }
13261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13262   $as_echo_n "(cached) " >&6
13263 else
13264   eval "$as_ac_Header=\$ac_header_preproc"
13265 fi
13266 ac_res=`eval 'as_val=${'$as_ac_Header'}
13267                  $as_echo "$as_val"'`
13268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13269 $as_echo "$ac_res" >&6; }
13270
13271 fi
13272 as_val=`eval 'as_val=${'$as_ac_Header'}
13273                  $as_echo "$as_val"'`
13274    if test "x$as_val" = x""yes; then
13275   cat >>confdefs.h <<_ACEOF
13276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13277 _ACEOF
13278
13279 else
13280   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13281 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13282    { (exit 1); exit 1; }; }
13283 fi
13284
13285 done
13286
13287 fi
13288
13289 done
13290
13291 fi
13292
13293 if test "$with_libxml" = yes ; then
13294   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13295   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13296 $as_echo_n "checking for libxml/parser.h... " >&6; }
13297 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13298   $as_echo_n "(cached) " >&6
13299 fi
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13301 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13302 else
13303   # Is the header compilable?
13304 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13305 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h.  */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h.  */
13312 $ac_includes_default
13313 #include <libxml/parser.h>
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13322 $as_echo "$ac_try_echo") >&5
13323   (eval "$ac_compile") 2>conftest.er1
13324   ac_status=$?
13325   grep -v '^ *+' conftest.er1 >conftest.err
13326   rm -f conftest.er1
13327   cat conftest.err >&5
13328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); } && {
13330          test -z "$ac_c_werror_flag" ||
13331          test ! -s conftest.err
13332        } && test -s conftest.$ac_objext; then
13333   ac_header_compiler=yes
13334 else
13335   $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338         ac_header_compiler=no
13339 fi
13340
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343 $as_echo "$ac_header_compiler" >&6; }
13344
13345 # Is the header present?
13346 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13347 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 #include <libxml/parser.h>
13355 _ACEOF
13356 if { (ac_try="$ac_cpp conftest.$ac_ext"
13357 case "(($ac_try" in
13358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359   *) ac_try_echo=$ac_try;;
13360 esac
13361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13362 $as_echo "$ac_try_echo") >&5
13363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } >/dev/null && {
13370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13371          test ! -s conftest.err
13372        }; then
13373   ac_header_preproc=yes
13374 else
13375   $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378   ac_header_preproc=no
13379 fi
13380
13381 rm -f conftest.err conftest.$ac_ext
13382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13383 $as_echo "$ac_header_preproc" >&6; }
13384
13385 # So?  What about this header?
13386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13387   yes:no: )
13388     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13389 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13390     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13391 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13392     ac_header_preproc=yes
13393     ;;
13394   no:yes:* )
13395     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13396 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13397     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13398 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13399     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13400 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13401     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13402 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13403     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13404 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13405     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13406 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13407     ( cat <<\_ASBOX
13408 ## ---------------------------------------- ##
13409 ## Report this to pgsql-bugs@postgresql.org ##
13410 ## ---------------------------------------- ##
13411 _ASBOX
13412      ) | sed "s/^/$as_me: WARNING:     /" >&2
13413     ;;
13414 esac
13415 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13416 $as_echo_n "checking for libxml/parser.h... " >&6; }
13417 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13418   $as_echo_n "(cached) " >&6
13419 else
13420   ac_cv_header_libxml_parser_h=$ac_header_preproc
13421 fi
13422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13423 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13424
13425 fi
13426 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13427   :
13428 else
13429   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13430 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13431    { (exit 1); exit 1; }; }
13432 fi
13433
13434
13435 fi
13436
13437 if test "$with_libxslt" = yes ; then
13438   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13439   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13440 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13441 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13442   $as_echo_n "(cached) " >&6
13443 fi
13444 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13445 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13446 else
13447   # Is the header compilable?
13448 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13449 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13450 cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h.  */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h.  */
13456 $ac_includes_default
13457 #include <libxslt/xslt.h>
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (ac_try="$ac_compile"
13461 case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13466 $as_echo "$ac_try_echo") >&5
13467   (eval "$ac_compile") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } && {
13474          test -z "$ac_c_werror_flag" ||
13475          test ! -s conftest.err
13476        } && test -s conftest.$ac_objext; then
13477   ac_header_compiler=yes
13478 else
13479   $as_echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482         ac_header_compiler=no
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 $as_echo "$ac_header_compiler" >&6; }
13488
13489 # Is the header present?
13490 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13491 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498 #include <libxslt/xslt.h>
13499 _ACEOF
13500 if { (ac_try="$ac_cpp conftest.$ac_ext"
13501 case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } >/dev/null && {
13514          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13515          test ! -s conftest.err
13516        }; then
13517   ac_header_preproc=yes
13518 else
13519   $as_echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522   ac_header_preproc=no
13523 fi
13524
13525 rm -f conftest.err conftest.$ac_ext
13526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13527 $as_echo "$ac_header_preproc" >&6; }
13528
13529 # So?  What about this header?
13530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13531   yes:no: )
13532     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13533 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13534     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13535 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13536     ac_header_preproc=yes
13537     ;;
13538   no:yes:* )
13539     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13540 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13541     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13542 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13543     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13544 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13545     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13546 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13547     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13548 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13549     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13550 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13551     ( cat <<\_ASBOX
13552 ## ---------------------------------------- ##
13553 ## Report this to pgsql-bugs@postgresql.org ##
13554 ## ---------------------------------------- ##
13555 _ASBOX
13556      ) | sed "s/^/$as_me: WARNING:     /" >&2
13557     ;;
13558 esac
13559 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13560 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13561 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13562   $as_echo_n "(cached) " >&6
13563 else
13564   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13565 fi
13566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13567 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13568
13569 fi
13570 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13571   :
13572 else
13573   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13574 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13575    { (exit 1); exit 1; }; }
13576 fi
13577
13578
13579 fi
13580
13581 if test "$with_ldap" = yes ; then
13582   if test "$PORTNAME" != "win32"; then
13583
13584 for ac_header in ldap.h
13585 do
13586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13589 $as_echo_n "checking for $ac_header... " >&6; }
13590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591   $as_echo_n "(cached) " >&6
13592 fi
13593 ac_res=`eval 'as_val=${'$as_ac_Header'}
13594                  $as_echo "$as_val"'`
13595                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13596 $as_echo "$ac_res" >&6; }
13597 else
13598   # Is the header compilable?
13599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600 $as_echo_n "checking $ac_header usability... " >&6; }
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 $ac_includes_default
13608 #include <$ac_header>
13609 _ACEOF
13610 rm -f conftest.$ac_objext
13611 if { (ac_try="$ac_compile"
13612 case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13617 $as_echo "$ac_try_echo") >&5
13618   (eval "$ac_compile") 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } && {
13625          test -z "$ac_c_werror_flag" ||
13626          test ! -s conftest.err
13627        } && test -s conftest.$ac_objext; then
13628   ac_header_compiler=yes
13629 else
13630   $as_echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633         ac_header_compiler=no
13634 fi
13635
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 $as_echo "$ac_header_compiler" >&6; }
13639
13640 # Is the header present?
13641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13642 $as_echo_n "checking $ac_header presence... " >&6; }
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 #include <$ac_header>
13650 _ACEOF
13651 if { (ac_try="$ac_cpp conftest.$ac_ext"
13652 case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13657 $as_echo "$ac_try_echo") >&5
13658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } >/dev/null && {
13665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13666          test ! -s conftest.err
13667        }; then
13668   ac_header_preproc=yes
13669 else
13670   $as_echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13672
13673   ac_header_preproc=no
13674 fi
13675
13676 rm -f conftest.err conftest.$ac_ext
13677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13678 $as_echo "$ac_header_preproc" >&6; }
13679
13680 # So?  What about this header?
13681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13682   yes:no: )
13683     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13685     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13687     ac_header_preproc=yes
13688     ;;
13689   no:yes:* )
13690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13693 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13697 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13702     ( cat <<\_ASBOX
13703 ## ---------------------------------------- ##
13704 ## Report this to pgsql-bugs@postgresql.org ##
13705 ## ---------------------------------------- ##
13706 _ASBOX
13707      ) | sed "s/^/$as_me: WARNING:     /" >&2
13708     ;;
13709 esac
13710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13711 $as_echo_n "checking for $ac_header... " >&6; }
13712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713   $as_echo_n "(cached) " >&6
13714 else
13715   eval "$as_ac_Header=\$ac_header_preproc"
13716 fi
13717 ac_res=`eval 'as_val=${'$as_ac_Header'}
13718                  $as_echo "$as_val"'`
13719                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720 $as_echo "$ac_res" >&6; }
13721
13722 fi
13723 as_val=`eval 'as_val=${'$as_ac_Header'}
13724                  $as_echo "$as_val"'`
13725    if test "x$as_val" = x""yes; then
13726   cat >>confdefs.h <<_ACEOF
13727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13728 _ACEOF
13729
13730 else
13731   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13732 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13733    { (exit 1); exit 1; }; }
13734 fi
13735
13736 done
13737
13738   else
13739
13740 for ac_header in winldap.h
13741 do
13742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13744 $as_echo_n "checking for $ac_header... " >&6; }
13745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13746   $as_echo_n "(cached) " >&6
13747 else
13748   cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h.  */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h.  */
13754 $ac_includes_default
13755 #include <windows.h>
13756
13757
13758 #include <$ac_header>
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (ac_try="$ac_compile"
13762 case "(($ac_try" in
13763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764   *) ac_try_echo=$ac_try;;
13765 esac
13766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13767 $as_echo "$ac_try_echo") >&5
13768   (eval "$ac_compile") 2>conftest.er1
13769   ac_status=$?
13770   grep -v '^ *+' conftest.er1 >conftest.err
13771   rm -f conftest.er1
13772   cat conftest.err >&5
13773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); } && {
13775          test -z "$ac_c_werror_flag" ||
13776          test ! -s conftest.err
13777        } && test -s conftest.$ac_objext; then
13778   eval "$as_ac_Header=yes"
13779 else
13780   $as_echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783         eval "$as_ac_Header=no"
13784 fi
13785
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 fi
13788 ac_res=`eval 'as_val=${'$as_ac_Header'}
13789                  $as_echo "$as_val"'`
13790                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13791 $as_echo "$ac_res" >&6; }
13792 as_val=`eval 'as_val=${'$as_ac_Header'}
13793                  $as_echo "$as_val"'`
13794    if test "x$as_val" = x""yes; then
13795   cat >>confdefs.h <<_ACEOF
13796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13797 _ACEOF
13798
13799 else
13800   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13801 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13802    { (exit 1); exit 1; }; }
13803 fi
13804
13805 done
13806
13807   fi
13808 fi
13809
13810 if test "$with_bonjour" = yes ; then
13811   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13812   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13813 $as_echo_n "checking for dns_sd.h... " >&6; }
13814 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13815   $as_echo_n "(cached) " >&6
13816 fi
13817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13818 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13819 else
13820   # Is the header compilable?
13821 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13822 $as_echo_n "checking dns_sd.h usability... " >&6; }
13823 cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829 $ac_includes_default
13830 #include <dns_sd.h>
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (ac_try="$ac_compile"
13834 case "(($ac_try" in
13835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836   *) ac_try_echo=$ac_try;;
13837 esac
13838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13839 $as_echo "$ac_try_echo") >&5
13840   (eval "$ac_compile") 2>conftest.er1
13841   ac_status=$?
13842   grep -v '^ *+' conftest.er1 >conftest.err
13843   rm -f conftest.er1
13844   cat conftest.err >&5
13845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } && {
13847          test -z "$ac_c_werror_flag" ||
13848          test ! -s conftest.err
13849        } && test -s conftest.$ac_objext; then
13850   ac_header_compiler=yes
13851 else
13852   $as_echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13854
13855         ac_header_compiler=no
13856 fi
13857
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13860 $as_echo "$ac_header_compiler" >&6; }
13861
13862 # Is the header present?
13863 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13864 $as_echo_n "checking dns_sd.h presence... " >&6; }
13865 cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 #include <dns_sd.h>
13872 _ACEOF
13873 if { (ac_try="$ac_cpp conftest.$ac_ext"
13874 case "(($ac_try" in
13875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876   *) ac_try_echo=$ac_try;;
13877 esac
13878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13879 $as_echo "$ac_try_echo") >&5
13880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } >/dev/null && {
13887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13888          test ! -s conftest.err
13889        }; then
13890   ac_header_preproc=yes
13891 else
13892   $as_echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895   ac_header_preproc=no
13896 fi
13897
13898 rm -f conftest.err conftest.$ac_ext
13899 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13900 $as_echo "$ac_header_preproc" >&6; }
13901
13902 # So?  What about this header?
13903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13904   yes:no: )
13905     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13906 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13907     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13908 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13909     ac_header_preproc=yes
13910     ;;
13911   no:yes:* )
13912     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13913 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13914     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13915 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13916     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13917 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13918     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13919 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13920     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13921 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13922     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13923 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13924     ( cat <<\_ASBOX
13925 ## ---------------------------------------- ##
13926 ## Report this to pgsql-bugs@postgresql.org ##
13927 ## ---------------------------------------- ##
13928 _ASBOX
13929      ) | sed "s/^/$as_me: WARNING:     /" >&2
13930     ;;
13931 esac
13932 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13933 $as_echo_n "checking for dns_sd.h... " >&6; }
13934 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13935   $as_echo_n "(cached) " >&6
13936 else
13937   ac_cv_header_dns_sd_h=$ac_header_preproc
13938 fi
13939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13940 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13941
13942 fi
13943 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13944   :
13945 else
13946   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13947 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13948    { (exit 1); exit 1; }; }
13949 fi
13950
13951
13952 fi
13953
13954 # for contrib/uuid-ossp
13955 if test "$with_ossp_uuid" = yes ; then
13956
13957 for ac_header in ossp/uuid.h
13958 do
13959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13961   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13962 $as_echo_n "checking for $ac_header... " >&6; }
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964   $as_echo_n "(cached) " >&6
13965 fi
13966 ac_res=`eval 'as_val=${'$as_ac_Header'}
13967                  $as_echo "$as_val"'`
13968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13969 $as_echo "$ac_res" >&6; }
13970 else
13971   # Is the header compilable?
13972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 $as_echo_n "checking $ac_header usability... " >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980 $ac_includes_default
13981 #include <$ac_header>
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13990 $as_echo "$ac_try_echo") >&5
13991   (eval "$ac_compile") 2>conftest.er1
13992   ac_status=$?
13993   grep -v '^ *+' conftest.er1 >conftest.err
13994   rm -f conftest.er1
13995   cat conftest.err >&5
13996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } && {
13998          test -z "$ac_c_werror_flag" ||
13999          test ! -s conftest.err
14000        } && test -s conftest.$ac_objext; then
14001   ac_header_compiler=yes
14002 else
14003   $as_echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006         ac_header_compiler=no
14007 fi
14008
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14011 $as_echo "$ac_header_compiler" >&6; }
14012
14013 # Is the header present?
14014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14015 $as_echo_n "checking $ac_header presence... " >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022 #include <$ac_header>
14023 _ACEOF
14024 if { (ac_try="$ac_cpp conftest.$ac_ext"
14025 case "(($ac_try" in
14026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027   *) ac_try_echo=$ac_try;;
14028 esac
14029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } >/dev/null && {
14038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14039          test ! -s conftest.err
14040        }; then
14041   ac_header_preproc=yes
14042 else
14043   $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046   ac_header_preproc=no
14047 fi
14048
14049 rm -f conftest.err conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14051 $as_echo "$ac_header_preproc" >&6; }
14052
14053 # So?  What about this header?
14054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14055   yes:no: )
14056     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14060     ac_header_preproc=yes
14061     ;;
14062   no:yes:* )
14063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14066 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14067     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14069     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14070 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14071     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14075     ( cat <<\_ASBOX
14076 ## ---------------------------------------- ##
14077 ## Report this to pgsql-bugs@postgresql.org ##
14078 ## ---------------------------------------- ##
14079 _ASBOX
14080      ) | sed "s/^/$as_me: WARNING:     /" >&2
14081     ;;
14082 esac
14083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14084 $as_echo_n "checking for $ac_header... " >&6; }
14085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14086   $as_echo_n "(cached) " >&6
14087 else
14088   eval "$as_ac_Header=\$ac_header_preproc"
14089 fi
14090 ac_res=`eval 'as_val=${'$as_ac_Header'}
14091                  $as_echo "$as_val"'`
14092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14093 $as_echo "$ac_res" >&6; }
14094
14095 fi
14096 as_val=`eval 'as_val=${'$as_ac_Header'}
14097                  $as_echo "$as_val"'`
14098    if test "x$as_val" = x""yes; then
14099   cat >>confdefs.h <<_ACEOF
14100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14101 _ACEOF
14102
14103 else
14104
14105
14106 for ac_header in uuid.h
14107 do
14108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14110   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14111 $as_echo_n "checking for $ac_header... " >&6; }
14112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14113   $as_echo_n "(cached) " >&6
14114 fi
14115 ac_res=`eval 'as_val=${'$as_ac_Header'}
14116                  $as_echo "$as_val"'`
14117                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14118 $as_echo "$ac_res" >&6; }
14119 else
14120   # Is the header compilable?
14121 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14122 $as_echo_n "checking $ac_header usability... " >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 $ac_includes_default
14130 #include <$ac_header>
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   ac_header_compiler=yes
14151 else
14152   $as_echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155         ac_header_compiler=no
14156 fi
14157
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14160 $as_echo "$ac_header_compiler" >&6; }
14161
14162 # Is the header present?
14163 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14164 $as_echo_n "checking $ac_header presence... " >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 #include <$ac_header>
14172 _ACEOF
14173 if { (ac_try="$ac_cpp conftest.$ac_ext"
14174 case "(($ac_try" in
14175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176   *) ac_try_echo=$ac_try;;
14177 esac
14178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179 $as_echo "$ac_try_echo") >&5
14180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } >/dev/null && {
14187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14188          test ! -s conftest.err
14189        }; then
14190   ac_header_preproc=yes
14191 else
14192   $as_echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195   ac_header_preproc=no
14196 fi
14197
14198 rm -f conftest.err conftest.$ac_ext
14199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14200 $as_echo "$ac_header_preproc" >&6; }
14201
14202 # So?  What about this header?
14203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14204   yes:no: )
14205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14206 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14208 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14209     ac_header_preproc=yes
14210     ;;
14211   no:yes:* )
14212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14213 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14215 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14217 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14219 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14223 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14224     ( cat <<\_ASBOX
14225 ## ---------------------------------------- ##
14226 ## Report this to pgsql-bugs@postgresql.org ##
14227 ## ---------------------------------------- ##
14228 _ASBOX
14229      ) | sed "s/^/$as_me: WARNING:     /" >&2
14230     ;;
14231 esac
14232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14233 $as_echo_n "checking for $ac_header... " >&6; }
14234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14235   $as_echo_n "(cached) " >&6
14236 else
14237   eval "$as_ac_Header=\$ac_header_preproc"
14238 fi
14239 ac_res=`eval 'as_val=${'$as_ac_Header'}
14240                  $as_echo "$as_val"'`
14241                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14242 $as_echo "$ac_res" >&6; }
14243
14244 fi
14245 as_val=`eval 'as_val=${'$as_ac_Header'}
14246                  $as_echo "$as_val"'`
14247    if test "x$as_val" = x""yes; then
14248   cat >>confdefs.h <<_ACEOF
14249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14250 _ACEOF
14251
14252 else
14253   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14254 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14255    { (exit 1); exit 1; }; }
14256 fi
14257
14258 done
14259
14260 fi
14261
14262 done
14263
14264 fi
14265
14266
14267 ##
14268 ## Types, structures, compiler characteristics
14269 ##
14270
14271
14272  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14273 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14274 if test "${ac_cv_c_bigendian+set}" = set; then
14275   $as_echo_n "(cached) " >&6
14276 else
14277   ac_cv_c_bigendian=unknown
14278     # See if we're dealing with a universal compiler.
14279     cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #ifndef __APPLE_CC__
14286                not a universal capable compiler
14287              #endif
14288              typedef int dummy;
14289
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14298 $as_echo "$ac_try_echo") >&5
14299   (eval "$ac_compile") 2>conftest.er1
14300   ac_status=$?
14301   grep -v '^ *+' conftest.er1 >conftest.err
14302   rm -f conftest.er1
14303   cat conftest.err >&5
14304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); } && {
14306          test -z "$ac_c_werror_flag" ||
14307          test ! -s conftest.err
14308        } && test -s conftest.$ac_objext; then
14309
14310         # Check for potential -arch flags.  It is not universal unless
14311         # there are some -arch flags.  Note that *ppc* also matches
14312         # ppc64.  This check is also rather less than ideal.
14313         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14314           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14315         esac
14316 else
14317   $as_echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320
14321 fi
14322
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324     if test $ac_cv_c_bigendian = unknown; then
14325       # See if sys/param.h defines the BYTE_ORDER macro.
14326       cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332 #include <sys/types.h>
14333              #include <sys/param.h>
14334
14335 int
14336 main ()
14337 {
14338 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14339                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14340                      && LITTLE_ENDIAN)
14341               bogus endian macros
14342              #endif
14343
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext
14349 if { (ac_try="$ac_compile"
14350 case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14355 $as_echo "$ac_try_echo") >&5
14356   (eval "$ac_compile") 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } && {
14363          test -z "$ac_c_werror_flag" ||
14364          test ! -s conftest.err
14365        } && test -s conftest.$ac_objext; then
14366   # It does; now see whether it defined to BIG_ENDIAN or not.
14367          cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373 #include <sys/types.h>
14374                 #include <sys/param.h>
14375
14376 int
14377 main ()
14378 {
14379 #if BYTE_ORDER != BIG_ENDIAN
14380                  not big endian
14381                 #endif
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (ac_try="$ac_compile"
14389 case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394 $as_echo "$ac_try_echo") >&5
14395   (eval "$ac_compile") 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } && {
14402          test -z "$ac_c_werror_flag" ||
14403          test ! -s conftest.err
14404        } && test -s conftest.$ac_objext; then
14405   ac_cv_c_bigendian=yes
14406 else
14407   $as_echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410         ac_cv_c_bigendian=no
14411 fi
14412
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 else
14415   $as_echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418
14419 fi
14420
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422     fi
14423     if test $ac_cv_c_bigendian = unknown; then
14424       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14425       cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 #include <limits.h>
14432
14433 int
14434 main ()
14435 {
14436 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14437               bogus endian macros
14438              #endif
14439
14440   ;
14441   return 0;
14442 }
14443 _ACEOF
14444 rm -f conftest.$ac_objext
14445 if { (ac_try="$ac_compile"
14446 case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14451 $as_echo "$ac_try_echo") >&5
14452   (eval "$ac_compile") 2>conftest.er1
14453   ac_status=$?
14454   grep -v '^ *+' conftest.er1 >conftest.err
14455   rm -f conftest.er1
14456   cat conftest.err >&5
14457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } && {
14459          test -z "$ac_c_werror_flag" ||
14460          test ! -s conftest.err
14461        } && test -s conftest.$ac_objext; then
14462   # It does; now see whether it defined to _BIG_ENDIAN or not.
14463          cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469 #include <limits.h>
14470
14471 int
14472 main ()
14473 {
14474 #ifndef _BIG_ENDIAN
14475                  not big endian
14476                 #endif
14477
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486   *) ac_try_echo=$ac_try;;
14487 esac
14488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 $as_echo "$ac_try_echo") >&5
14490   (eval "$ac_compile") 2>conftest.er1
14491   ac_status=$?
14492   grep -v '^ *+' conftest.er1 >conftest.err
14493   rm -f conftest.er1
14494   cat conftest.err >&5
14495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } && {
14497          test -z "$ac_c_werror_flag" ||
14498          test ! -s conftest.err
14499        } && test -s conftest.$ac_objext; then
14500   ac_cv_c_bigendian=yes
14501 else
14502   $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505         ac_cv_c_bigendian=no
14506 fi
14507
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 else
14510   $as_echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517     fi
14518     if test $ac_cv_c_bigendian = unknown; then
14519       # Compile a test program.
14520       if test "$cross_compiling" = yes; then
14521   # Try to guess by grepping values from an object file.
14522          cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h.  */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h.  */
14528 short int ascii_mm[] =
14529                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14530                 short int ascii_ii[] =
14531                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14532                 int use_ascii (int i) {
14533                   return ascii_mm[i] + ascii_ii[i];
14534                 }
14535                 short int ebcdic_ii[] =
14536                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14537                 short int ebcdic_mm[] =
14538                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14539                 int use_ebcdic (int i) {
14540                   return ebcdic_mm[i] + ebcdic_ii[i];
14541                 }
14542                 extern int foo;
14543
14544 int
14545 main ()
14546 {
14547 return use_ascii (foo) == use_ebcdic (foo);
14548   ;
14549   return 0;
14550 }
14551 _ACEOF
14552 rm -f conftest.$ac_objext
14553 if { (ac_try="$ac_compile"
14554 case "(($ac_try" in
14555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556   *) ac_try_echo=$ac_try;;
14557 esac
14558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14559 $as_echo "$ac_try_echo") >&5
14560   (eval "$ac_compile") 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } && {
14567          test -z "$ac_c_werror_flag" ||
14568          test ! -s conftest.err
14569        } && test -s conftest.$ac_objext; then
14570   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14571               ac_cv_c_bigendian=yes
14572             fi
14573             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14574               if test "$ac_cv_c_bigendian" = unknown; then
14575                 ac_cv_c_bigendian=no
14576               else
14577                 # finding both strings is unlikely to happen, but who knows?
14578                 ac_cv_c_bigendian=unknown
14579               fi
14580             fi
14581 else
14582   $as_echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585
14586 fi
14587
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 else
14590   cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596 $ac_includes_default
14597 int
14598 main ()
14599 {
14600
14601              /* Are we little or big endian?  From Harbison&Steele.  */
14602              union
14603              {
14604                long int l;
14605                char c[sizeof (long int)];
14606              } u;
14607              u.l = 1;
14608              return u.c[sizeof (long int) - 1] == 1;
14609
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14621 $as_echo "$ac_try_echo") >&5
14622   (eval "$ac_link") 2>&5
14623   ac_status=$?
14624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14626   { (case "(($ac_try" in
14627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628   *) ac_try_echo=$ac_try;;
14629 esac
14630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632   (eval "$ac_try") 2>&5
14633   ac_status=$?
14634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636   ac_cv_c_bigendian=no
14637 else
14638   $as_echo "$as_me: program exited with status $ac_status" >&5
14639 $as_echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 ( exit $ac_status )
14643 ac_cv_c_bigendian=yes
14644 fi
14645 rm -rf conftest.dSYM
14646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14647 fi
14648
14649
14650     fi
14651 fi
14652 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14653 $as_echo "$ac_cv_c_bigendian" >&6; }
14654  case $ac_cv_c_bigendian in #(
14655    yes)
14656      cat >>confdefs.h <<\_ACEOF
14657 #define WORDS_BIGENDIAN 1
14658 _ACEOF
14659 ;; #(
14660    no)
14661       ;; #(
14662    universal)
14663
14664 cat >>confdefs.h <<\_ACEOF
14665 #define AC_APPLE_UNIVERSAL_BUILD 1
14666 _ACEOF
14667
14668      ;; #(
14669    *)
14670      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14671  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14672 $as_echo "$as_me: error: unknown endianness
14673  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14674    { (exit 1); exit 1; }; } ;;
14675  esac
14676
14677 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14678 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14679 if test "${ac_cv_c_const+set}" = set; then
14680   $as_echo_n "(cached) " >&6
14681 else
14682   cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688
14689 int
14690 main ()
14691 {
14692 /* FIXME: Include the comments suggested by Paul. */
14693 #ifndef __cplusplus
14694   /* Ultrix mips cc rejects this.  */
14695   typedef int charset[2];
14696   const charset cs;
14697   /* SunOS 4.1.1 cc rejects this.  */
14698   char const *const *pcpcc;
14699   char **ppc;
14700   /* NEC SVR4.0.2 mips cc rejects this.  */
14701   struct point {int x, y;};
14702   static struct point const zero = {0,0};
14703   /* AIX XL C 1.02.0.0 rejects this.
14704      It does not let you subtract one const X* pointer from another in
14705      an arm of an if-expression whose if-part is not a constant
14706      expression */
14707   const char *g = "string";
14708   pcpcc = &g + (g ? g-g : 0);
14709   /* HPUX 7.0 cc rejects these. */
14710   ++pcpcc;
14711   ppc = (char**) pcpcc;
14712   pcpcc = (char const *const *) ppc;
14713   { /* SCO 3.2v4 cc rejects this.  */
14714     char *t;
14715     char const *s = 0 ? (char *) 0 : (char const *) 0;
14716
14717     *t++ = 0;
14718     if (s) return 0;
14719   }
14720   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14721     int x[] = {25, 17};
14722     const int *foo = &x[0];
14723     ++foo;
14724   }
14725   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14726     typedef const int *iptr;
14727     iptr p = 0;
14728     ++p;
14729   }
14730   { /* AIX XL C 1.02.0.0 rejects this saying
14731        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14732     struct s { int j; const int *ap[3]; };
14733     struct s *b; b->j = 5;
14734   }
14735   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14736     const int foo = 10;
14737     if (!foo) return 0;
14738   }
14739   return !cs[0] && !zero.x;
14740 #endif
14741
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (ac_try="$ac_compile"
14748 case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753 $as_echo "$ac_try_echo") >&5
14754   (eval "$ac_compile") 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } && {
14761          test -z "$ac_c_werror_flag" ||
14762          test ! -s conftest.err
14763        } && test -s conftest.$ac_objext; then
14764   ac_cv_c_const=yes
14765 else
14766   $as_echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769         ac_cv_c_const=no
14770 fi
14771
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 fi
14774 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14775 $as_echo "$ac_cv_c_const" >&6; }
14776 if test $ac_cv_c_const = no; then
14777
14778 cat >>confdefs.h <<\_ACEOF
14779 #define const /**/
14780 _ACEOF
14781
14782 fi
14783
14784 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14785 $as_echo_n "checking for inline... " >&6; }
14786 if test "${ac_cv_c_inline+set}" = set; then
14787   $as_echo_n "(cached) " >&6
14788 else
14789   ac_cv_c_inline=no
14790 for ac_kw in inline __inline__ __inline; do
14791   cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 #ifndef __cplusplus
14798 typedef int foo_t;
14799 static $ac_kw foo_t static_foo () {return 0; }
14800 $ac_kw foo_t foo () {return 0; }
14801 #endif
14802
14803 _ACEOF
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808   *) ac_try_echo=$ac_try;;
14809 esac
14810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14811 $as_echo "$ac_try_echo") >&5
14812   (eval "$ac_compile") 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } && {
14819          test -z "$ac_c_werror_flag" ||
14820          test ! -s conftest.err
14821        } && test -s conftest.$ac_objext; then
14822   ac_cv_c_inline=$ac_kw
14823 else
14824   $as_echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827
14828 fi
14829
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831   test "$ac_cv_c_inline" != no && break
14832 done
14833
14834 fi
14835 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14836 $as_echo "$ac_cv_c_inline" >&6; }
14837
14838
14839 case $ac_cv_c_inline in
14840   inline | yes) ;;
14841   *)
14842     case $ac_cv_c_inline in
14843       no) ac_val=;;
14844       *) ac_val=$ac_cv_c_inline;;
14845     esac
14846     cat >>confdefs.h <<_ACEOF
14847 #ifndef __cplusplus
14848 #define inline $ac_val
14849 #endif
14850 _ACEOF
14851     ;;
14852 esac
14853
14854 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14855 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14856 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14857   $as_echo_n "(cached) " >&6
14858 else
14859   pgac_cv_c_inline_quietly=no
14860   if test "$ac_cv_c_inline" != no; then
14861     pgac_c_inline_save_werror=$ac_c_werror_flag
14862     ac_c_werror_flag=yes
14863     cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869 static inline int fun () {return 0;}
14870 int
14871 main ()
14872 {
14873
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14885 $as_echo "$ac_try_echo") >&5
14886   (eval "$ac_link") 2>conftest.er1
14887   ac_status=$?
14888   grep -v '^ *+' conftest.er1 >conftest.err
14889   rm -f conftest.er1
14890   cat conftest.err >&5
14891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } && {
14893          test -z "$ac_c_werror_flag" ||
14894          test ! -s conftest.err
14895        } && test -s conftest$ac_exeext && {
14896          test "$cross_compiling" = yes ||
14897          $as_test_x conftest$ac_exeext
14898        }; then
14899   pgac_cv_c_inline_quietly=yes
14900 else
14901   $as_echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904
14905 fi
14906
14907 rm -rf conftest.dSYM
14908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909       conftest$ac_exeext conftest.$ac_ext
14910     ac_c_werror_flag=$pgac_c_inline_save_werror
14911   fi
14912 fi
14913 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14914 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14915 if test "$pgac_cv_c_inline_quietly" != no; then
14916
14917 cat >>confdefs.h <<_ACEOF
14918 #define USE_INLINE 1
14919 _ACEOF
14920
14921 fi
14922
14923 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14924 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14925 if test "${ac_cv_c_stringize+set}" = set; then
14926   $as_echo_n "(cached) " >&6
14927 else
14928   cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 #define x(y) #y
14935
14936 char *s = x(teststring);
14937 _ACEOF
14938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14939   $EGREP "#teststring" >/dev/null 2>&1; then
14940   ac_cv_c_stringize=no
14941 else
14942   ac_cv_c_stringize=yes
14943 fi
14944 rm -f conftest*
14945
14946 fi
14947 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14948 $as_echo "$ac_cv_c_stringize" >&6; }
14949 if test $ac_cv_c_stringize = yes; then
14950
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_STRINGIZE 1
14953 _ACEOF
14954
14955 fi
14956
14957
14958   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
14959 $as_echo_n "checking for flexible array members... " >&6; }
14960 if test "${ac_cv_c_flexmember+set}" = set; then
14961   $as_echo_n "(cached) " >&6
14962 else
14963   cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969 #include <stdlib.h>
14970             #include <stdio.h>
14971             #include <stddef.h>
14972             struct s { int n; double d[]; };
14973 int
14974 main ()
14975 {
14976 int m = getchar ();
14977             struct s *p = malloc (offsetof (struct s, d)
14978                                   + m * sizeof (double));
14979             p->d[0] = 0.0;
14980             return p->d != (double *) NULL;
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14992 $as_echo "$ac_try_echo") >&5
14993   (eval "$ac_compile") 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } && {
15000          test -z "$ac_c_werror_flag" ||
15001          test ! -s conftest.err
15002        } && test -s conftest.$ac_objext; then
15003   ac_cv_c_flexmember=yes
15004 else
15005   $as_echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008         ac_cv_c_flexmember=no
15009 fi
15010
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15014 $as_echo "$ac_cv_c_flexmember" >&6; }
15015   if test $ac_cv_c_flexmember = yes; then
15016
15017 cat >>confdefs.h <<\_ACEOF
15018 #define FLEXIBLE_ARRAY_MEMBER /**/
15019 _ACEOF
15020
15021   else
15022     cat >>confdefs.h <<\_ACEOF
15023 #define FLEXIBLE_ARRAY_MEMBER 1
15024 _ACEOF
15025
15026   fi
15027
15028 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15029 $as_echo_n "checking for signed types... " >&6; }
15030 if test "${pgac_cv_c_signed+set}" = set; then
15031   $as_echo_n "(cached) " >&6
15032 else
15033   cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039
15040 int
15041 main ()
15042 {
15043 signed char c; signed short s; signed int i;
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055 $as_echo "$ac_try_echo") >&5
15056   (eval "$ac_compile") 2>conftest.er1
15057   ac_status=$?
15058   grep -v '^ *+' conftest.er1 >conftest.err
15059   rm -f conftest.er1
15060   cat conftest.err >&5
15061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } && {
15063          test -z "$ac_c_werror_flag" ||
15064          test ! -s conftest.err
15065        } && test -s conftest.$ac_objext; then
15066   pgac_cv_c_signed=yes
15067 else
15068   $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071         pgac_cv_c_signed=no
15072 fi
15073
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 fi
15076 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15077 $as_echo "$pgac_cv_c_signed" >&6; }
15078 if test x"$pgac_cv_c_signed" = xno ; then
15079
15080 cat >>confdefs.h <<\_ACEOF
15081 #define signed /**/
15082 _ACEOF
15083
15084 fi
15085 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15086 $as_echo_n "checking for working volatile... " >&6; }
15087 if test "${ac_cv_c_volatile+set}" = set; then
15088   $as_echo_n "(cached) " >&6
15089 else
15090   cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096
15097 int
15098 main ()
15099 {
15100
15101 volatile int x;
15102 int * volatile y = (int *) 0;
15103 return !x && !y;
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (ac_try="$ac_compile"
15110 case "(($ac_try" in
15111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112   *) ac_try_echo=$ac_try;;
15113 esac
15114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15115 $as_echo "$ac_try_echo") >&5
15116   (eval "$ac_compile") 2>conftest.er1
15117   ac_status=$?
15118   grep -v '^ *+' conftest.er1 >conftest.err
15119   rm -f conftest.er1
15120   cat conftest.err >&5
15121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); } && {
15123          test -z "$ac_c_werror_flag" ||
15124          test ! -s conftest.err
15125        } && test -s conftest.$ac_objext; then
15126   ac_cv_c_volatile=yes
15127 else
15128   $as_echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15130
15131         ac_cv_c_volatile=no
15132 fi
15133
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135 fi
15136 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15137 $as_echo "$ac_cv_c_volatile" >&6; }
15138 if test $ac_cv_c_volatile = no; then
15139
15140 cat >>confdefs.h <<\_ACEOF
15141 #define volatile /**/
15142 _ACEOF
15143
15144 fi
15145
15146 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15147 $as_echo_n "checking for __func__... " >&6; }
15148 if test "${pgac_cv_funcname_func_support+set}" = set; then
15149   $as_echo_n "(cached) " >&6
15150 else
15151   cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157 #include <stdio.h>
15158 int
15159 main ()
15160 {
15161 printf("%s\n", __func__);
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (ac_try="$ac_compile"
15168 case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15173 $as_echo "$ac_try_echo") >&5
15174   (eval "$ac_compile") 2>conftest.er1
15175   ac_status=$?
15176   grep -v '^ *+' conftest.er1 >conftest.err
15177   rm -f conftest.er1
15178   cat conftest.err >&5
15179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } && {
15181          test -z "$ac_c_werror_flag" ||
15182          test ! -s conftest.err
15183        } && test -s conftest.$ac_objext; then
15184   pgac_cv_funcname_func_support=yes
15185 else
15186   $as_echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189         pgac_cv_funcname_func_support=no
15190 fi
15191
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 fi
15194 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15195 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15196 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15197
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_FUNCNAME__FUNC 1
15200 _ACEOF
15201
15202 else
15203 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15204 $as_echo_n "checking for __FUNCTION__... " >&6; }
15205 if test "${pgac_cv_funcname_function_support+set}" = set; then
15206   $as_echo_n "(cached) " >&6
15207 else
15208   cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 #include <stdio.h>
15215 int
15216 main ()
15217 {
15218 printf("%s\n", __FUNCTION__);
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230 $as_echo "$ac_try_echo") >&5
15231   (eval "$ac_compile") 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } && {
15238          test -z "$ac_c_werror_flag" ||
15239          test ! -s conftest.err
15240        } && test -s conftest.$ac_objext; then
15241   pgac_cv_funcname_function_support=yes
15242 else
15243   $as_echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246         pgac_cv_funcname_function_support=no
15247 fi
15248
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 fi
15251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15252 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15253 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15254
15255 cat >>confdefs.h <<\_ACEOF
15256 #define HAVE_FUNCNAME__FUNCTION 1
15257 _ACEOF
15258
15259 fi
15260 fi
15261 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15262 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15263 if test "${ac_cv_struct_tm+set}" = set; then
15264   $as_echo_n "(cached) " >&6
15265 else
15266   cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h.  */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h.  */
15272 #include <sys/types.h>
15273 #include <time.h>
15274
15275 int
15276 main ()
15277 {
15278 struct tm tm;
15279                                      int *p = &tm.tm_sec;
15280                                      return !p;
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (ac_try="$ac_compile"
15287 case "(($ac_try" in
15288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289   *) ac_try_echo=$ac_try;;
15290 esac
15291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15292 $as_echo "$ac_try_echo") >&5
15293   (eval "$ac_compile") 2>conftest.er1
15294   ac_status=$?
15295   grep -v '^ *+' conftest.er1 >conftest.err
15296   rm -f conftest.er1
15297   cat conftest.err >&5
15298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); } && {
15300          test -z "$ac_c_werror_flag" ||
15301          test ! -s conftest.err
15302        } && test -s conftest.$ac_objext; then
15303   ac_cv_struct_tm=time.h
15304 else
15305   $as_echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308         ac_cv_struct_tm=sys/time.h
15309 fi
15310
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 fi
15313 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15314 $as_echo "$ac_cv_struct_tm" >&6; }
15315 if test $ac_cv_struct_tm = sys/time.h; then
15316
15317 cat >>confdefs.h <<\_ACEOF
15318 #define TM_IN_SYS_TIME 1
15319 _ACEOF
15320
15321 fi
15322
15323 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15324 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15325 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15326   $as_echo_n "(cached) " >&6
15327 else
15328   cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334 #include <sys/types.h>
15335 #include <$ac_cv_struct_tm>
15336
15337
15338 int
15339 main ()
15340 {
15341 static struct tm ac_aggr;
15342 if (ac_aggr.tm_zone)
15343 return 0;
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15355 $as_echo "$ac_try_echo") >&5
15356   (eval "$ac_compile") 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } && {
15363          test -z "$ac_c_werror_flag" ||
15364          test ! -s conftest.err
15365        } && test -s conftest.$ac_objext; then
15366   ac_cv_member_struct_tm_tm_zone=yes
15367 else
15368   $as_echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371         cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 #include <sys/types.h>
15378 #include <$ac_cv_struct_tm>
15379
15380
15381 int
15382 main ()
15383 {
15384 static struct tm ac_aggr;
15385 if (sizeof ac_aggr.tm_zone)
15386 return 0;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15398 $as_echo "$ac_try_echo") >&5
15399   (eval "$ac_compile") 2>conftest.er1
15400   ac_status=$?
15401   grep -v '^ *+' conftest.er1 >conftest.err
15402   rm -f conftest.er1
15403   cat conftest.err >&5
15404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); } && {
15406          test -z "$ac_c_werror_flag" ||
15407          test ! -s conftest.err
15408        } && test -s conftest.$ac_objext; then
15409   ac_cv_member_struct_tm_tm_zone=yes
15410 else
15411   $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414         ac_cv_member_struct_tm_tm_zone=no
15415 fi
15416
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 fi
15419
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 fi
15422 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15423 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15424 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15425
15426 cat >>confdefs.h <<_ACEOF
15427 #define HAVE_STRUCT_TM_TM_ZONE 1
15428 _ACEOF
15429
15430
15431 fi
15432
15433 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15434
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_TM_ZONE 1
15437 _ACEOF
15438
15439 fi
15440 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15441 $as_echo_n "checking for tzname... " >&6; }
15442 if test "${ac_cv_var_tzname+set}" = set; then
15443   $as_echo_n "(cached) " >&6
15444 else
15445   cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 #include <time.h>
15452 #ifndef tzname /* For SGI.  */
15453 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15454 #endif
15455
15456 int
15457 main ()
15458 {
15459 atoi(*tzname);
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468   *) ac_try_echo=$ac_try;;
15469 esac
15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15471 $as_echo "$ac_try_echo") >&5
15472   (eval "$ac_link") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } && {
15479          test -z "$ac_c_werror_flag" ||
15480          test ! -s conftest.err
15481        } && test -s conftest$ac_exeext && {
15482          test "$cross_compiling" = yes ||
15483          $as_test_x conftest$ac_exeext
15484        }; then
15485   ac_cv_var_tzname=yes
15486 else
15487   $as_echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15489
15490         ac_cv_var_tzname=no
15491 fi
15492
15493 rm -rf conftest.dSYM
15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495       conftest$ac_exeext conftest.$ac_ext
15496 fi
15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15498 $as_echo "$ac_cv_var_tzname" >&6; }
15499 if test $ac_cv_var_tzname = yes; then
15500
15501 cat >>confdefs.h <<\_ACEOF
15502 #define HAVE_TZNAME 1
15503 _ACEOF
15504
15505 fi
15506
15507 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15508 $as_echo_n "checking for union semun... " >&6; }
15509 if test "${ac_cv_type_union_semun+set}" = set; then
15510   $as_echo_n "(cached) " >&6
15511 else
15512   ac_cv_type_union_semun=no
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 #include <sys/ipc.h>
15521 #include <sys/sem.h>
15522
15523 int
15524 main ()
15525 {
15526 if (sizeof (union semun))
15527        return 0;
15528   ;
15529   return 0;
15530 }
15531 _ACEOF
15532 rm -f conftest.$ac_objext
15533 if { (ac_try="$ac_compile"
15534 case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15539 $as_echo "$ac_try_echo") >&5
15540   (eval "$ac_compile") 2>conftest.er1
15541   ac_status=$?
15542   grep -v '^ *+' conftest.er1 >conftest.err
15543   rm -f conftest.er1
15544   cat conftest.err >&5
15545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } && {
15547          test -z "$ac_c_werror_flag" ||
15548          test ! -s conftest.err
15549        } && test -s conftest.$ac_objext; then
15550   cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556 #include <sys/types.h>
15557 #include <sys/ipc.h>
15558 #include <sys/sem.h>
15559
15560 int
15561 main ()
15562 {
15563 if (sizeof ((union semun)))
15564           return 0;
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (ac_try="$ac_compile"
15571 case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576 $as_echo "$ac_try_echo") >&5
15577   (eval "$ac_compile") 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } && {
15584          test -z "$ac_c_werror_flag" ||
15585          test ! -s conftest.err
15586        } && test -s conftest.$ac_objext; then
15587   :
15588 else
15589   $as_echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15591
15592         ac_cv_type_union_semun=yes
15593 fi
15594
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596 else
15597   $as_echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600
15601 fi
15602
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 fi
15605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15606 $as_echo "$ac_cv_type_union_semun" >&6; }
15607 if test "x$ac_cv_type_union_semun" = x""yes; then
15608
15609 cat >>confdefs.h <<_ACEOF
15610 #define HAVE_UNION_SEMUN 1
15611 _ACEOF
15612
15613
15614 fi
15615
15616 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15617 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15618 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15619   $as_echo_n "(cached) " >&6
15620 else
15621   ac_cv_type_struct_sockaddr_un=no
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628 #include <sys/types.h>
15629 #ifdef HAVE_SYS_UN_H
15630 #include <sys/un.h>
15631 #endif
15632
15633
15634 int
15635 main ()
15636 {
15637 if (sizeof (struct sockaddr_un))
15638        return 0;
15639   ;
15640   return 0;
15641 }
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647   *) ac_try_echo=$ac_try;;
15648 esac
15649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15650 $as_echo "$ac_try_echo") >&5
15651   (eval "$ac_compile") 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } && {
15658          test -z "$ac_c_werror_flag" ||
15659          test ! -s conftest.err
15660        } && test -s conftest.$ac_objext; then
15661   cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667 #include <sys/types.h>
15668 #ifdef HAVE_SYS_UN_H
15669 #include <sys/un.h>
15670 #endif
15671
15672
15673 int
15674 main ()
15675 {
15676 if (sizeof ((struct sockaddr_un)))
15677           return 0;
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext
15683 if { (ac_try="$ac_compile"
15684 case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15689 $as_echo "$ac_try_echo") >&5
15690   (eval "$ac_compile") 2>conftest.er1
15691   ac_status=$?
15692   grep -v '^ *+' conftest.er1 >conftest.err
15693   rm -f conftest.er1
15694   cat conftest.err >&5
15695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } && {
15697          test -z "$ac_c_werror_flag" ||
15698          test ! -s conftest.err
15699        } && test -s conftest.$ac_objext; then
15700   :
15701 else
15702   $as_echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_cv_type_struct_sockaddr_un=yes
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 else
15710   $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713
15714 fi
15715
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 fi
15718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15719 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15720 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15721
15722 cat >>confdefs.h <<_ACEOF
15723 #define HAVE_STRUCT_SOCKADDR_UN 1
15724 _ACEOF
15725
15726
15727 cat >>confdefs.h <<\_ACEOF
15728 #define HAVE_UNIX_SOCKETS 1
15729 _ACEOF
15730
15731 fi
15732
15733 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15734 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15735 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15736   $as_echo_n "(cached) " >&6
15737 else
15738   ac_cv_type_struct_sockaddr_storage=no
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 if (sizeof (struct sockaddr_storage))
15755        return 0;
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764   *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768   (eval "$ac_compile") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } && {
15775          test -z "$ac_c_werror_flag" ||
15776          test ! -s conftest.err
15777        } && test -s conftest.$ac_objext; then
15778   cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h.  */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h.  */
15784 #include <sys/types.h>
15785 #ifdef HAVE_SYS_SOCKET_H
15786 #include <sys/socket.h>
15787 #endif
15788
15789
15790 int
15791 main ()
15792 {
15793 if (sizeof ((struct sockaddr_storage)))
15794           return 0;
15795   ;
15796   return 0;
15797 }
15798 _ACEOF
15799 rm -f conftest.$ac_objext
15800 if { (ac_try="$ac_compile"
15801 case "(($ac_try" in
15802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803   *) ac_try_echo=$ac_try;;
15804 esac
15805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807   (eval "$ac_compile") 2>conftest.er1
15808   ac_status=$?
15809   grep -v '^ *+' conftest.er1 >conftest.err
15810   rm -f conftest.er1
15811   cat conftest.err >&5
15812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); } && {
15814          test -z "$ac_c_werror_flag" ||
15815          test ! -s conftest.err
15816        } && test -s conftest.$ac_objext; then
15817   :
15818 else
15819   $as_echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822         ac_cv_type_struct_sockaddr_storage=yes
15823 fi
15824
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 else
15827   $as_echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830
15831 fi
15832
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 fi
15835 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15836 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15837 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15838
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15841 _ACEOF
15842
15843
15844 fi
15845
15846 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15847 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15848 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15849   $as_echo_n "(cached) " >&6
15850 else
15851   cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857 #include <sys/types.h>
15858 #ifdef HAVE_SYS_SOCKET_H
15859 #include <sys/socket.h>
15860 #endif
15861
15862
15863 int
15864 main ()
15865 {
15866 static struct sockaddr_storage ac_aggr;
15867 if (ac_aggr.ss_family)
15868 return 0;
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881   (eval "$ac_compile") 2>conftest.er1
15882   ac_status=$?
15883   grep -v '^ *+' conftest.er1 >conftest.err
15884   rm -f conftest.er1
15885   cat conftest.err >&5
15886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); } && {
15888          test -z "$ac_c_werror_flag" ||
15889          test ! -s conftest.err
15890        } && test -s conftest.$ac_objext; then
15891   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15892 else
15893   $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896         cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h.  */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h.  */
15902 #include <sys/types.h>
15903 #ifdef HAVE_SYS_SOCKET_H
15904 #include <sys/socket.h>
15905 #endif
15906
15907
15908 int
15909 main ()
15910 {
15911 static struct sockaddr_storage ac_aggr;
15912 if (sizeof ac_aggr.ss_family)
15913 return 0;
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926   (eval "$ac_compile") 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } && {
15933          test -z "$ac_c_werror_flag" ||
15934          test ! -s conftest.err
15935        } && test -s conftest.$ac_objext; then
15936   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15937 else
15938   $as_echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941         ac_cv_member_struct_sockaddr_storage_ss_family=no
15942 fi
15943
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 fi
15946
15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948 fi
15949 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15950 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15951 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15952
15953 cat >>confdefs.h <<_ACEOF
15954 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15955 _ACEOF
15956
15957
15958 fi
15959 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15960 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15961 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15962   $as_echo_n "(cached) " >&6
15963 else
15964   cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970 #include <sys/types.h>
15971 #ifdef HAVE_SYS_SOCKET_H
15972 #include <sys/socket.h>
15973 #endif
15974
15975
15976 int
15977 main ()
15978 {
15979 static struct sockaddr_storage ac_aggr;
15980 if (ac_aggr.__ss_family)
15981 return 0;
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 rm -f conftest.$ac_objext
15987 if { (ac_try="$ac_compile"
15988 case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15993 $as_echo "$ac_try_echo") >&5
15994   (eval "$ac_compile") 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } && {
16001          test -z "$ac_c_werror_flag" ||
16002          test ! -s conftest.err
16003        } && test -s conftest.$ac_objext; then
16004   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16005 else
16006   $as_echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16008
16009         cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 #include <sys/types.h>
16016 #ifdef HAVE_SYS_SOCKET_H
16017 #include <sys/socket.h>
16018 #endif
16019
16020
16021 int
16022 main ()
16023 {
16024 static struct sockaddr_storage ac_aggr;
16025 if (sizeof ac_aggr.__ss_family)
16026 return 0;
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035   *) ac_try_echo=$ac_try;;
16036 esac
16037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038 $as_echo "$ac_try_echo") >&5
16039   (eval "$ac_compile") 2>conftest.er1
16040   ac_status=$?
16041   grep -v '^ *+' conftest.er1 >conftest.err
16042   rm -f conftest.er1
16043   cat conftest.err >&5
16044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } && {
16046          test -z "$ac_c_werror_flag" ||
16047          test ! -s conftest.err
16048        } && test -s conftest.$ac_objext; then
16049   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16050 else
16051   $as_echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054         ac_cv_member_struct_sockaddr_storage___ss_family=no
16055 fi
16056
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 fi
16059
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 fi
16062 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16063 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16064 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16065
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16068 _ACEOF
16069
16070
16071 fi
16072 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16073 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16074 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16075   $as_echo_n "(cached) " >&6
16076 else
16077   cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 #include <sys/types.h>
16084 #ifdef HAVE_SYS_SOCKET_H
16085 #include <sys/socket.h>
16086 #endif
16087
16088
16089 int
16090 main ()
16091 {
16092 static struct sockaddr_storage ac_aggr;
16093 if (ac_aggr.ss_len)
16094 return 0;
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 rm -f conftest.$ac_objext
16100 if { (ac_try="$ac_compile"
16101 case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16106 $as_echo "$ac_try_echo") >&5
16107   (eval "$ac_compile") 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } && {
16114          test -z "$ac_c_werror_flag" ||
16115          test ! -s conftest.err
16116        } && test -s conftest.$ac_objext; then
16117   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16118 else
16119   $as_echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122         cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h.  */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h.  */
16128 #include <sys/types.h>
16129 #ifdef HAVE_SYS_SOCKET_H
16130 #include <sys/socket.h>
16131 #endif
16132
16133
16134 int
16135 main ()
16136 {
16137 static struct sockaddr_storage ac_aggr;
16138 if (sizeof ac_aggr.ss_len)
16139 return 0;
16140   ;
16141   return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148   *) ac_try_echo=$ac_try;;
16149 esac
16150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16151 $as_echo "$ac_try_echo") >&5
16152   (eval "$ac_compile") 2>conftest.er1
16153   ac_status=$?
16154   grep -v '^ *+' conftest.er1 >conftest.err
16155   rm -f conftest.er1
16156   cat conftest.err >&5
16157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } && {
16159          test -z "$ac_c_werror_flag" ||
16160          test ! -s conftest.err
16161        } && test -s conftest.$ac_objext; then
16162   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16163 else
16164   $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167         ac_cv_member_struct_sockaddr_storage_ss_len=no
16168 fi
16169
16170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171 fi
16172
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 fi
16175 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16176 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16177 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16178
16179 cat >>confdefs.h <<_ACEOF
16180 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16181 _ACEOF
16182
16183
16184 fi
16185 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16186 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16187 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16188   $as_echo_n "(cached) " >&6
16189 else
16190   cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h.  */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h.  */
16196 #include <sys/types.h>
16197 #ifdef HAVE_SYS_SOCKET_H
16198 #include <sys/socket.h>
16199 #endif
16200
16201
16202 int
16203 main ()
16204 {
16205 static struct sockaddr_storage ac_aggr;
16206 if (ac_aggr.__ss_len)
16207 return 0;
16208   ;
16209   return 0;
16210 }
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216   *) ac_try_echo=$ac_try;;
16217 esac
16218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16219 $as_echo "$ac_try_echo") >&5
16220   (eval "$ac_compile") 2>conftest.er1
16221   ac_status=$?
16222   grep -v '^ *+' conftest.er1 >conftest.err
16223   rm -f conftest.er1
16224   cat conftest.err >&5
16225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } && {
16227          test -z "$ac_c_werror_flag" ||
16228          test ! -s conftest.err
16229        } && test -s conftest.$ac_objext; then
16230   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16231 else
16232   $as_echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235         cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241 #include <sys/types.h>
16242 #ifdef HAVE_SYS_SOCKET_H
16243 #include <sys/socket.h>
16244 #endif
16245
16246
16247 int
16248 main ()
16249 {
16250 static struct sockaddr_storage ac_aggr;
16251 if (sizeof ac_aggr.__ss_len)
16252 return 0;
16253   ;
16254   return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext
16258 if { (ac_try="$ac_compile"
16259 case "(($ac_try" in
16260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261   *) ac_try_echo=$ac_try;;
16262 esac
16263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16264 $as_echo "$ac_try_echo") >&5
16265   (eval "$ac_compile") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } && {
16272          test -z "$ac_c_werror_flag" ||
16273          test ! -s conftest.err
16274        } && test -s conftest.$ac_objext; then
16275   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16276 else
16277   $as_echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280         ac_cv_member_struct_sockaddr_storage___ss_len=no
16281 fi
16282
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285
16286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287 fi
16288 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16289 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16290 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16291
16292 cat >>confdefs.h <<_ACEOF
16293 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16294 _ACEOF
16295
16296
16297 fi
16298 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16299 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16300 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16301   $as_echo_n "(cached) " >&6
16302 else
16303   cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 #include <sys/types.h>
16310 #ifdef HAVE_SYS_SOCKET_H
16311 #include <sys/socket.h>
16312 #endif
16313
16314
16315 int
16316 main ()
16317 {
16318 static struct sockaddr ac_aggr;
16319 if (ac_aggr.sa_len)
16320 return 0;
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (ac_try="$ac_compile"
16327 case "(($ac_try" in
16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329   *) ac_try_echo=$ac_try;;
16330 esac
16331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16332 $as_echo "$ac_try_echo") >&5
16333   (eval "$ac_compile") 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } && {
16340          test -z "$ac_c_werror_flag" ||
16341          test ! -s conftest.err
16342        } && test -s conftest.$ac_objext; then
16343   ac_cv_member_struct_sockaddr_sa_len=yes
16344 else
16345   $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348         cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h.  */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h.  */
16354 #include <sys/types.h>
16355 #ifdef HAVE_SYS_SOCKET_H
16356 #include <sys/socket.h>
16357 #endif
16358
16359
16360 int
16361 main ()
16362 {
16363 static struct sockaddr ac_aggr;
16364 if (sizeof ac_aggr.sa_len)
16365 return 0;
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16377 $as_echo "$ac_try_echo") >&5
16378   (eval "$ac_compile") 2>conftest.er1
16379   ac_status=$?
16380   grep -v '^ *+' conftest.er1 >conftest.err
16381   rm -f conftest.er1
16382   cat conftest.err >&5
16383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } && {
16385          test -z "$ac_c_werror_flag" ||
16386          test ! -s conftest.err
16387        } && test -s conftest.$ac_objext; then
16388   ac_cv_member_struct_sockaddr_sa_len=yes
16389 else
16390   $as_echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16392
16393         ac_cv_member_struct_sockaddr_sa_len=no
16394 fi
16395
16396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16397 fi
16398
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 fi
16401 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16402 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16403 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16404
16405 cat >>confdefs.h <<_ACEOF
16406 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16407 _ACEOF
16408
16409
16410 fi
16411
16412 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16413 $as_echo_n "checking for struct addrinfo... " >&6; }
16414 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16415   $as_echo_n "(cached) " >&6
16416 else
16417   ac_cv_type_struct_addrinfo=no
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h.  */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h.  */
16424 #include <sys/types.h>
16425 #include <sys/socket.h>
16426 #include <netdb.h>
16427
16428
16429 int
16430 main ()
16431 {
16432 if (sizeof (struct addrinfo))
16433        return 0;
16434   ;
16435   return 0;
16436 }
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (ac_try="$ac_compile"
16440 case "(($ac_try" in
16441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442   *) ac_try_echo=$ac_try;;
16443 esac
16444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16445 $as_echo "$ac_try_echo") >&5
16446   (eval "$ac_compile") 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } && {
16453          test -z "$ac_c_werror_flag" ||
16454          test ! -s conftest.err
16455        } && test -s conftest.$ac_objext; then
16456   cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h.  */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h.  */
16462 #include <sys/types.h>
16463 #include <sys/socket.h>
16464 #include <netdb.h>
16465
16466
16467 int
16468 main ()
16469 {
16470 if (sizeof ((struct addrinfo)))
16471           return 0;
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 rm -f conftest.$ac_objext
16477 if { (ac_try="$ac_compile"
16478 case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16483 $as_echo "$ac_try_echo") >&5
16484   (eval "$ac_compile") 2>conftest.er1
16485   ac_status=$?
16486   grep -v '^ *+' conftest.er1 >conftest.err
16487   rm -f conftest.er1
16488   cat conftest.err >&5
16489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); } && {
16491          test -z "$ac_c_werror_flag" ||
16492          test ! -s conftest.err
16493        } && test -s conftest.$ac_objext; then
16494   :
16495 else
16496   $as_echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16498
16499         ac_cv_type_struct_addrinfo=yes
16500 fi
16501
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 else
16504   $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 fi
16512 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16513 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16514 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16515
16516 cat >>confdefs.h <<_ACEOF
16517 #define HAVE_STRUCT_ADDRINFO 1
16518 _ACEOF
16519
16520
16521 fi
16522
16523
16524   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16525 $as_echo_n "checking for intptr_t... " >&6; }
16526 if test "${ac_cv_type_intptr_t+set}" = set; then
16527   $as_echo_n "(cached) " >&6
16528 else
16529   ac_cv_type_intptr_t=no
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h.  */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h.  */
16536 $ac_includes_default
16537 int
16538 main ()
16539 {
16540 if (sizeof (intptr_t))
16541        return 0;
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16553 $as_echo "$ac_try_echo") >&5
16554   (eval "$ac_compile") 2>conftest.er1
16555   ac_status=$?
16556   grep -v '^ *+' conftest.er1 >conftest.err
16557   rm -f conftest.er1
16558   cat conftest.err >&5
16559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); } && {
16561          test -z "$ac_c_werror_flag" ||
16562          test ! -s conftest.err
16563        } && test -s conftest.$ac_objext; then
16564   cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h.  */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h.  */
16570 $ac_includes_default
16571 int
16572 main ()
16573 {
16574 if (sizeof ((intptr_t)))
16575           return 0;
16576   ;
16577   return 0;
16578 }
16579 _ACEOF
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587 $as_echo "$ac_try_echo") >&5
16588   (eval "$ac_compile") 2>conftest.er1
16589   ac_status=$?
16590   grep -v '^ *+' conftest.er1 >conftest.err
16591   rm -f conftest.er1
16592   cat conftest.err >&5
16593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } && {
16595          test -z "$ac_c_werror_flag" ||
16596          test ! -s conftest.err
16597        } && test -s conftest.$ac_objext; then
16598   :
16599 else
16600   $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603         ac_cv_type_intptr_t=yes
16604 fi
16605
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607 else
16608   $as_echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611
16612 fi
16613
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16617 $as_echo "$ac_cv_type_intptr_t" >&6; }
16618 if test "x$ac_cv_type_intptr_t" = x""yes; then
16619
16620 cat >>confdefs.h <<\_ACEOF
16621 #define HAVE_INTPTR_T 1
16622 _ACEOF
16623
16624 else
16625   for ac_type in 'int' 'long int' 'long long int'; do
16626        cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632 $ac_includes_default
16633 int
16634 main ()
16635 {
16636 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16637 test_array [0] = 0
16638
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651   (eval "$ac_compile") 2>conftest.er1
16652   ac_status=$?
16653   grep -v '^ *+' conftest.er1 >conftest.err
16654   rm -f conftest.er1
16655   cat conftest.err >&5
16656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); } && {
16658          test -z "$ac_c_werror_flag" ||
16659          test ! -s conftest.err
16660        } && test -s conftest.$ac_objext; then
16661
16662 cat >>confdefs.h <<_ACEOF
16663 #define intptr_t $ac_type
16664 _ACEOF
16665
16666           ac_type=
16667 else
16668   $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671
16672 fi
16673
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675        test -z "$ac_type" && break
16676      done
16677 fi
16678
16679
16680
16681   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16682 $as_echo_n "checking for uintptr_t... " >&6; }
16683 if test "${ac_cv_type_uintptr_t+set}" = set; then
16684   $as_echo_n "(cached) " >&6
16685 else
16686   ac_cv_type_uintptr_t=no
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 $ac_includes_default
16694 int
16695 main ()
16696 {
16697 if (sizeof (uintptr_t))
16698        return 0;
16699   ;
16700   return 0;
16701 }
16702 _ACEOF
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16710 $as_echo "$ac_try_echo") >&5
16711   (eval "$ac_compile") 2>conftest.er1
16712   ac_status=$?
16713   grep -v '^ *+' conftest.er1 >conftest.err
16714   rm -f conftest.er1
16715   cat conftest.err >&5
16716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } && {
16718          test -z "$ac_c_werror_flag" ||
16719          test ! -s conftest.err
16720        } && test -s conftest.$ac_objext; then
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 $ac_includes_default
16728 int
16729 main ()
16730 {
16731 if (sizeof ((uintptr_t)))
16732           return 0;
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16744 $as_echo "$ac_try_echo") >&5
16745   (eval "$ac_compile") 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } && {
16752          test -z "$ac_c_werror_flag" ||
16753          test ! -s conftest.err
16754        } && test -s conftest.$ac_objext; then
16755   :
16756 else
16757   $as_echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760         ac_cv_type_uintptr_t=yes
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764 else
16765   $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768
16769 fi
16770
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 fi
16773 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16774 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16775 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16776
16777 cat >>confdefs.h <<\_ACEOF
16778 #define HAVE_UINTPTR_T 1
16779 _ACEOF
16780
16781 else
16782   for ac_type in 'unsigned int' 'unsigned long int' \
16783         'unsigned long long int'; do
16784        cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790 $ac_includes_default
16791 int
16792 main ()
16793 {
16794 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16795 test_array [0] = 0
16796
16797   ;
16798   return 0;
16799 }
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16808 $as_echo "$ac_try_echo") >&5
16809   (eval "$ac_compile") 2>conftest.er1
16810   ac_status=$?
16811   grep -v '^ *+' conftest.er1 >conftest.err
16812   rm -f conftest.er1
16813   cat conftest.err >&5
16814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } && {
16816          test -z "$ac_c_werror_flag" ||
16817          test ! -s conftest.err
16818        } && test -s conftest.$ac_objext; then
16819
16820 cat >>confdefs.h <<_ACEOF
16821 #define uintptr_t $ac_type
16822 _ACEOF
16823
16824           ac_type=
16825 else
16826   $as_echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829
16830 fi
16831
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833        test -z "$ac_type" && break
16834      done
16835 fi
16836
16837
16838
16839   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16840 $as_echo_n "checking for long long int... " >&6; }
16841 if test "${ac_cv_type_long_long_int+set}" = set; then
16842   $as_echo_n "(cached) " >&6
16843 else
16844   cat >conftest.$ac_ext <<_ACEOF
16845
16846   /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851 /* For now, do not test the preprocessor; as of 2007 there are too many
16852          implementations with broken preprocessors.  Perhaps this can
16853          be revisited in 2012.  In the meantime, code should not expect
16854          #if to work with literals wider than 32 bits.  */
16855       /* Test literals.  */
16856       long long int ll = 9223372036854775807ll;
16857       long long int nll = -9223372036854775807LL;
16858       unsigned long long int ull = 18446744073709551615ULL;
16859       /* Test constant expressions.   */
16860       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16861                      ? 1 : -1)];
16862       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16863                      ? 1 : -1)];
16864       int i = 63;
16865 int
16866 main ()
16867 {
16868 /* Test availability of runtime routines for shift and division.  */
16869       long long int llmax = 9223372036854775807ll;
16870       unsigned long long int ullmax = 18446744073709551615ull;
16871       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16872               | (llmax / ll) | (llmax % ll)
16873               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16874               | (ullmax / ull) | (ullmax % ull));
16875   ;
16876   return 0;
16877 }
16878
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16887 $as_echo "$ac_try_echo") >&5
16888   (eval "$ac_link") 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } && {
16895          test -z "$ac_c_werror_flag" ||
16896          test ! -s conftest.err
16897        } && test -s conftest$ac_exeext && {
16898          test "$cross_compiling" = yes ||
16899          $as_test_x conftest$ac_exeext
16900        }; then
16901                         if test "$cross_compiling" = yes; then
16902   ac_cv_type_long_long_int=yes
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910 #include <limits.h>
16911                #ifndef LLONG_MAX
16912                # define HALF \
16913                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16914                # define LLONG_MAX (HALF - 1 + HALF)
16915                #endif
16916 int
16917 main ()
16918 {
16919 long long int n = 1;
16920                int i;
16921                for (i = 0; ; i++)
16922                  {
16923                    long long int m = n << i;
16924                    if (m >> i != n)
16925                      return 1;
16926                    if (LLONG_MAX / 2 < m)
16927                      break;
16928                  }
16929                return 0;
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 rm -f conftest$ac_exeext
16935 if { (ac_try="$ac_link"
16936 case "(($ac_try" in
16937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938   *) ac_try_echo=$ac_try;;
16939 esac
16940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16941 $as_echo "$ac_try_echo") >&5
16942   (eval "$ac_link") 2>&5
16943   ac_status=$?
16944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16951 $as_echo "$ac_try_echo") >&5
16952   (eval "$ac_try") 2>&5
16953   ac_status=$?
16954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956   ac_cv_type_long_long_int=yes
16957 else
16958   $as_echo "$as_me: program exited with status $ac_status" >&5
16959 $as_echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 ( exit $ac_status )
16963 ac_cv_type_long_long_int=no
16964 fi
16965 rm -rf conftest.dSYM
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16967 fi
16968
16969
16970 else
16971   $as_echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974         ac_cv_type_long_long_int=no
16975 fi
16976
16977 rm -rf conftest.dSYM
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979       conftest$ac_exeext conftest.$ac_ext
16980 fi
16981 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16982 $as_echo "$ac_cv_type_long_long_int" >&6; }
16983   if test $ac_cv_type_long_long_int = yes; then
16984
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_LONG_LONG_INT 1
16987 _ACEOF
16988
16989   fi
16990
16991
16992 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
16993 $as_echo_n "checking for locale_t... " >&6; }
16994 if test "${pgac_cv_type_locale_t+set}" = set; then
16995   $as_echo_n "(cached) " >&6
16996 else
16997   cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003 #include <locale.h>
17004 locale_t x;
17005 int
17006 main ()
17007 {
17008
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020 $as_echo "$ac_try_echo") >&5
17021   (eval "$ac_compile") 2>conftest.er1
17022   ac_status=$?
17023   grep -v '^ *+' conftest.er1 >conftest.err
17024   rm -f conftest.er1
17025   cat conftest.err >&5
17026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); } && {
17028          test -z "$ac_c_werror_flag" ||
17029          test ! -s conftest.err
17030        } && test -s conftest.$ac_objext; then
17031   pgac_cv_type_locale_t=yes
17032 else
17033   $as_echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036         cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 #include <xlocale.h>
17043 locale_t x;
17044 int
17045 main ()
17046 {
17047
17048   ;
17049   return 0;
17050 }
17051 _ACEOF
17052 rm -f conftest.$ac_objext
17053 if { (ac_try="$ac_compile"
17054 case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17059 $as_echo "$ac_try_echo") >&5
17060   (eval "$ac_compile") 2>conftest.er1
17061   ac_status=$?
17062   grep -v '^ *+' conftest.er1 >conftest.err
17063   rm -f conftest.er1
17064   cat conftest.err >&5
17065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); } && {
17067          test -z "$ac_c_werror_flag" ||
17068          test ! -s conftest.err
17069        } && test -s conftest.$ac_objext; then
17070   pgac_cv_type_locale_t='yes (in xlocale.h)'
17071 else
17072   $as_echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075         pgac_cv_type_locale_t=no
17076 fi
17077
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 fi
17080
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 fi
17083 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17084 $as_echo "$pgac_cv_type_locale_t" >&6; }
17085 if test "$pgac_cv_type_locale_t" != no; then
17086
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_LOCALE_T 1
17089 _ACEOF
17090
17091 fi
17092 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17093
17094 cat >>confdefs.h <<\_ACEOF
17095 #define LOCALE_T_IN_XLOCALE 1
17096 _ACEOF
17097
17098 fi
17099
17100 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17101 $as_echo_n "checking for struct cmsgcred... " >&6; }
17102 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17103   $as_echo_n "(cached) " >&6
17104 else
17105   ac_cv_type_struct_cmsgcred=no
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112 #include <sys/socket.h>
17113 #ifdef HAVE_SYS_UCRED_H
17114 #include <sys/ucred.h>
17115 #endif
17116
17117 int
17118 main ()
17119 {
17120 if (sizeof (struct cmsgcred))
17121        return 0;
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17133 $as_echo "$ac_try_echo") >&5
17134   (eval "$ac_compile") 2>conftest.er1
17135   ac_status=$?
17136   grep -v '^ *+' conftest.er1 >conftest.err
17137   rm -f conftest.er1
17138   cat conftest.err >&5
17139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } && {
17141          test -z "$ac_c_werror_flag" ||
17142          test ! -s conftest.err
17143        } && test -s conftest.$ac_objext; then
17144   cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150 #include <sys/socket.h>
17151 #ifdef HAVE_SYS_UCRED_H
17152 #include <sys/ucred.h>
17153 #endif
17154
17155 int
17156 main ()
17157 {
17158 if (sizeof ((struct cmsgcred)))
17159           return 0;
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext
17165 if { (ac_try="$ac_compile"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17171 $as_echo "$ac_try_echo") >&5
17172   (eval "$ac_compile") 2>conftest.er1
17173   ac_status=$?
17174   grep -v '^ *+' conftest.er1 >conftest.err
17175   rm -f conftest.er1
17176   cat conftest.err >&5
17177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } && {
17179          test -z "$ac_c_werror_flag" ||
17180          test ! -s conftest.err
17181        } && test -s conftest.$ac_objext; then
17182   :
17183 else
17184   $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187         ac_cv_type_struct_cmsgcred=yes
17188 fi
17189
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 else
17192   $as_echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195
17196 fi
17197
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 fi
17200 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17201 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17202 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17203
17204 cat >>confdefs.h <<_ACEOF
17205 #define HAVE_STRUCT_CMSGCRED 1
17206 _ACEOF
17207
17208
17209 fi
17210
17211
17212 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17213 $as_echo_n "checking for struct option... " >&6; }
17214 if test "${ac_cv_type_struct_option+set}" = set; then
17215   $as_echo_n "(cached) " >&6
17216 else
17217   ac_cv_type_struct_option=no
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224 #ifdef HAVE_GETOPT_H
17225 #include <getopt.h>
17226 #endif
17227
17228 int
17229 main ()
17230 {
17231 if (sizeof (struct option))
17232        return 0;
17233   ;
17234   return 0;
17235 }
17236 _ACEOF
17237 rm -f conftest.$ac_objext
17238 if { (ac_try="$ac_compile"
17239 case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17244 $as_echo "$ac_try_echo") >&5
17245   (eval "$ac_compile") 2>conftest.er1
17246   ac_status=$?
17247   grep -v '^ *+' conftest.er1 >conftest.err
17248   rm -f conftest.er1
17249   cat conftest.err >&5
17250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } && {
17252          test -z "$ac_c_werror_flag" ||
17253          test ! -s conftest.err
17254        } && test -s conftest.$ac_objext; then
17255   cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261 #ifdef HAVE_GETOPT_H
17262 #include <getopt.h>
17263 #endif
17264
17265 int
17266 main ()
17267 {
17268 if (sizeof ((struct option)))
17269           return 0;
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282   (eval "$ac_compile") 2>conftest.er1
17283   ac_status=$?
17284   grep -v '^ *+' conftest.er1 >conftest.err
17285   rm -f conftest.er1
17286   cat conftest.err >&5
17287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); } && {
17289          test -z "$ac_c_werror_flag" ||
17290          test ! -s conftest.err
17291        } && test -s conftest.$ac_objext; then
17292   :
17293 else
17294   $as_echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297         ac_cv_type_struct_option=yes
17298 fi
17299
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 else
17302   $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305
17306 fi
17307
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 fi
17310 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17311 $as_echo "$ac_cv_type_struct_option" >&6; }
17312 if test "x$ac_cv_type_struct_option" = x""yes; then
17313
17314 cat >>confdefs.h <<_ACEOF
17315 #define HAVE_STRUCT_OPTION 1
17316 _ACEOF
17317
17318
17319 fi
17320
17321
17322 if test "$with_zlib" = yes; then
17323   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17324   # did not).  While we could work around the lack of z_streamp, it
17325   # seems unwise to encourage people to use such old zlib versions...
17326   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17327 $as_echo_n "checking for z_streamp... " >&6; }
17328 if test "${ac_cv_type_z_streamp+set}" = set; then
17329   $as_echo_n "(cached) " >&6
17330 else
17331   ac_cv_type_z_streamp=no
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17338 #include <zlib.h>
17339
17340 int
17341 main ()
17342 {
17343 if (sizeof (z_streamp))
17344        return 0;
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353   *) ac_try_echo=$ac_try;;
17354 esac
17355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17356 $as_echo "$ac_try_echo") >&5
17357   (eval "$ac_compile") 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } && {
17364          test -z "$ac_c_werror_flag" ||
17365          test ! -s conftest.err
17366        } && test -s conftest.$ac_objext; then
17367   cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h.  */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h.  */
17373 #include <zlib.h>
17374
17375 int
17376 main ()
17377 {
17378 if (sizeof ((z_streamp)))
17379           return 0;
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17391 $as_echo "$ac_try_echo") >&5
17392   (eval "$ac_compile") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } && {
17399          test -z "$ac_c_werror_flag" ||
17400          test ! -s conftest.err
17401        } && test -s conftest.$ac_objext; then
17402   :
17403 else
17404   $as_echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407         ac_cv_type_z_streamp=yes
17408 fi
17409
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 else
17412   $as_echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415
17416 fi
17417
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 fi
17420 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17421 $as_echo "$ac_cv_type_z_streamp" >&6; }
17422 if test "x$ac_cv_type_z_streamp" = x""yes; then
17423   :
17424 else
17425   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17426 Use --without-zlib to disable zlib support." >&5
17427 $as_echo "$as_me: error: zlib version is too old
17428 Use --without-zlib to disable zlib support." >&2;}
17429    { (exit 1); exit 1; }; }
17430 fi
17431
17432 fi
17433
17434 if test "$with_krb5" = yes; then
17435 # Check for differences between MIT and Heimdal (KTH) releases
17436   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17437 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17438 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17439   $as_echo_n "(cached) " >&6
17440 else
17441   cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447 #include <krb5.h>
17448
17449 int
17450 main ()
17451 {
17452 static krb5_ticket ac_aggr;
17453 if (ac_aggr.enc_part2)
17454 return 0;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (ac_try="$ac_compile"
17461 case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17466 $as_echo "$ac_try_echo") >&5
17467   (eval "$ac_compile") 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } && {
17474          test -z "$ac_c_werror_flag" ||
17475          test ! -s conftest.err
17476        } && test -s conftest.$ac_objext; then
17477   ac_cv_member_krb5_ticket_enc_part2=yes
17478 else
17479   $as_echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482         cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488 #include <krb5.h>
17489
17490 int
17491 main ()
17492 {
17493 static krb5_ticket ac_aggr;
17494 if (sizeof ac_aggr.enc_part2)
17495 return 0;
17496   ;
17497   return 0;
17498 }
17499 _ACEOF
17500 rm -f conftest.$ac_objext
17501 if { (ac_try="$ac_compile"
17502 case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17507 $as_echo "$ac_try_echo") >&5
17508   (eval "$ac_compile") 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } && {
17515          test -z "$ac_c_werror_flag" ||
17516          test ! -s conftest.err
17517        } && test -s conftest.$ac_objext; then
17518   ac_cv_member_krb5_ticket_enc_part2=yes
17519 else
17520   $as_echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523         ac_cv_member_krb5_ticket_enc_part2=no
17524 fi
17525
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17530 fi
17531 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17532 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17533 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17534
17535 cat >>confdefs.h <<_ACEOF
17536 #define HAVE_KRB5_TICKET_ENC_PART2 1
17537 _ACEOF
17538
17539
17540 else
17541   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17542 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17543 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17544   $as_echo_n "(cached) " >&6
17545 else
17546   cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 #include <krb5.h>
17553
17554 int
17555 main ()
17556 {
17557 static krb5_ticket ac_aggr;
17558 if (ac_aggr.client)
17559 return 0;
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17571 $as_echo "$ac_try_echo") >&5
17572   (eval "$ac_compile") 2>conftest.er1
17573   ac_status=$?
17574   grep -v '^ *+' conftest.er1 >conftest.err
17575   rm -f conftest.er1
17576   cat conftest.err >&5
17577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } && {
17579          test -z "$ac_c_werror_flag" ||
17580          test ! -s conftest.err
17581        } && test -s conftest.$ac_objext; then
17582   ac_cv_member_krb5_ticket_client=yes
17583 else
17584   $as_echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587         cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 #include <krb5.h>
17594
17595 int
17596 main ()
17597 {
17598 static krb5_ticket ac_aggr;
17599 if (sizeof ac_aggr.client)
17600 return 0;
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17612 $as_echo "$ac_try_echo") >&5
17613   (eval "$ac_compile") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest.$ac_objext; then
17623   ac_cv_member_krb5_ticket_client=yes
17624 else
17625   $as_echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628         ac_cv_member_krb5_ticket_client=no
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 fi
17633
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635 fi
17636 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17637 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17638 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17639
17640 cat >>confdefs.h <<_ACEOF
17641 #define HAVE_KRB5_TICKET_CLIENT 1
17642 _ACEOF
17643
17644
17645 else
17646   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17647 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17648    { (exit 1); exit 1; }; }
17649 fi
17650
17651 fi
17652
17653   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17654 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17655 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17656   $as_echo_n "(cached) " >&6
17657 else
17658   cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664 #include <krb5.h>
17665
17666 int
17667 main ()
17668 {
17669 static krb5_error ac_aggr;
17670 if (ac_aggr.text.data)
17671 return 0;
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17683 $as_echo "$ac_try_echo") >&5
17684   (eval "$ac_compile") 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } && {
17691          test -z "$ac_c_werror_flag" ||
17692          test ! -s conftest.err
17693        } && test -s conftest.$ac_objext; then
17694   ac_cv_member_krb5_error_text_data=yes
17695 else
17696   $as_echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699         cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 #include <krb5.h>
17706
17707 int
17708 main ()
17709 {
17710 static krb5_error ac_aggr;
17711 if (sizeof ac_aggr.text.data)
17712 return 0;
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext
17718 if { (ac_try="$ac_compile"
17719 case "(($ac_try" in
17720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721   *) ac_try_echo=$ac_try;;
17722 esac
17723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17724 $as_echo "$ac_try_echo") >&5
17725   (eval "$ac_compile") 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } && {
17732          test -z "$ac_c_werror_flag" ||
17733          test ! -s conftest.err
17734        } && test -s conftest.$ac_objext; then
17735   ac_cv_member_krb5_error_text_data=yes
17736 else
17737   $as_echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         ac_cv_member_krb5_error_text_data=no
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 fi
17745
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 fi
17748 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17749 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17750 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17751
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17754 _ACEOF
17755
17756
17757 else
17758   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17759 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17760 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17761   $as_echo_n "(cached) " >&6
17762 else
17763   cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h.  */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h.  */
17769 #include <krb5.h>
17770
17771 int
17772 main ()
17773 {
17774 static krb5_error ac_aggr;
17775 if (ac_aggr.e_data)
17776 return 0;
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789   (eval "$ac_compile") 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } && {
17796          test -z "$ac_c_werror_flag" ||
17797          test ! -s conftest.err
17798        } && test -s conftest.$ac_objext; then
17799   ac_cv_member_krb5_error_e_data=yes
17800 else
17801   $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804         cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810 #include <krb5.h>
17811
17812 int
17813 main ()
17814 {
17815 static krb5_error ac_aggr;
17816 if (sizeof ac_aggr.e_data)
17817 return 0;
17818   ;
17819   return 0;
17820 }
17821 _ACEOF
17822 rm -f conftest.$ac_objext
17823 if { (ac_try="$ac_compile"
17824 case "(($ac_try" in
17825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826   *) ac_try_echo=$ac_try;;
17827 esac
17828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17829 $as_echo "$ac_try_echo") >&5
17830   (eval "$ac_compile") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } && {
17837          test -z "$ac_c_werror_flag" ||
17838          test ! -s conftest.err
17839        } && test -s conftest.$ac_objext; then
17840   ac_cv_member_krb5_error_e_data=yes
17841 else
17842   $as_echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845         ac_cv_member_krb5_error_e_data=no
17846 fi
17847
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 fi
17853 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17854 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17855 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17856
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_KRB5_ERROR_E_DATA 1
17859 _ACEOF
17860
17861
17862 else
17863   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17864 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17865    { (exit 1); exit 1; }; }
17866 fi
17867
17868 fi
17869
17870
17871 # Win32 requires headers to be loaded for __stdcall, so can't use
17872 # AC_CHECK_FUNCS here.
17873   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17874 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17875   cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 #include <krb5.h>
17882 int
17883 main ()
17884 {
17885 krb5_free_unparsed_name(NULL,NULL);
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898   (eval "$ac_link") 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } && {
17905          test -z "$ac_c_werror_flag" ||
17906          test ! -s conftest.err
17907        } && test -s conftest$ac_exeext && {
17908          test "$cross_compiling" = yes ||
17909          $as_test_x conftest$ac_exeext
17910        }; then
17911
17912 cat >>confdefs.h <<\_ACEOF
17913 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17914 _ACEOF
17915
17916 { $as_echo "$as_me:$LINENO: result: yes" >&5
17917 $as_echo "yes" >&6; }
17918 else
17919   $as_echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17921
17922         { $as_echo "$as_me:$LINENO: result: no" >&5
17923 $as_echo "no" >&6; }
17924 fi
17925
17926 rm -rf conftest.dSYM
17927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17928       conftest$ac_exeext conftest.$ac_ext
17929 fi
17930
17931 # Check largefile support.  You might think this is a system service not a
17932 # compiler characteristic, but you'd be wrong.  We must check this before
17933 # probing existence of related functions such as fseeko, since the largefile
17934 # defines can affect what is generated for that.
17935 # Check whether --enable-largefile was given.
17936 if test "${enable_largefile+set}" = set; then
17937   enableval=$enable_largefile;
17938 fi
17939
17940 if test "$enable_largefile" != no; then
17941
17942   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17943 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17944 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17945   $as_echo_n "(cached) " >&6
17946 else
17947   ac_cv_sys_largefile_CC=no
17948      if test "$GCC" != yes; then
17949        ac_save_CC=$CC
17950        while :; do
17951          # IRIX 6.2 and later do not support large files by default,
17952          # so use the C compiler's -n32 option if that helps.
17953          cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h.  */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h.  */
17959 #include <sys/types.h>
17960  /* Check that off_t can represent 2**63 - 1 correctly.
17961     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17962     since some C++ compilers masquerading as C compilers
17963     incorrectly reject 9223372036854775807.  */
17964 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17965   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17966                        && LARGE_OFF_T % 2147483647 == 1)
17967                       ? 1 : -1];
17968 int
17969 main ()
17970 {
17971
17972   ;
17973   return 0;
17974 }
17975 _ACEOF
17976          rm -f conftest.$ac_objext
17977 if { (ac_try="$ac_compile"
17978 case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17983 $as_echo "$ac_try_echo") >&5
17984   (eval "$ac_compile") 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } && {
17991          test -z "$ac_c_werror_flag" ||
17992          test ! -s conftest.err
17993        } && test -s conftest.$ac_objext; then
17994   break
17995 else
17996   $as_echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999
18000 fi
18001
18002 rm -f core conftest.err conftest.$ac_objext
18003          CC="$CC -n32"
18004          rm -f conftest.$ac_objext
18005 if { (ac_try="$ac_compile"
18006 case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18011 $as_echo "$ac_try_echo") >&5
18012   (eval "$ac_compile") 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } && {
18019          test -z "$ac_c_werror_flag" ||
18020          test ! -s conftest.err
18021        } && test -s conftest.$ac_objext; then
18022   ac_cv_sys_largefile_CC=' -n32'; break
18023 else
18024   $as_echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027
18028 fi
18029
18030 rm -f core conftest.err conftest.$ac_objext
18031          break
18032        done
18033        CC=$ac_save_CC
18034        rm -f conftest.$ac_ext
18035     fi
18036 fi
18037 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18038 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18039   if test "$ac_cv_sys_largefile_CC" != no; then
18040     CC=$CC$ac_cv_sys_largefile_CC
18041   fi
18042
18043   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18044 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18045 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18046   $as_echo_n "(cached) " >&6
18047 else
18048   while :; do
18049   cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h.  */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h.  */
18055 #include <sys/types.h>
18056  /* Check that off_t can represent 2**63 - 1 correctly.
18057     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18058     since some C++ compilers masquerading as C compilers
18059     incorrectly reject 9223372036854775807.  */
18060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18061   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18062                        && LARGE_OFF_T % 2147483647 == 1)
18063                       ? 1 : -1];
18064 int
18065 main ()
18066 {
18067
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext
18073 if { (ac_try="$ac_compile"
18074 case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18079 $as_echo "$ac_try_echo") >&5
18080   (eval "$ac_compile") 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } && {
18087          test -z "$ac_c_werror_flag" ||
18088          test ! -s conftest.err
18089        } && test -s conftest.$ac_objext; then
18090   ac_cv_sys_file_offset_bits=no; break
18091 else
18092   $as_echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095
18096 fi
18097
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099   cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #define _FILE_OFFSET_BITS 64
18106 #include <sys/types.h>
18107  /* Check that off_t can represent 2**63 - 1 correctly.
18108     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18109     since some C++ compilers masquerading as C compilers
18110     incorrectly reject 9223372036854775807.  */
18111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18112   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18113                        && LARGE_OFF_T % 2147483647 == 1)
18114                       ? 1 : -1];
18115 int
18116 main ()
18117 {
18118
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (ac_try="$ac_compile"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18130 $as_echo "$ac_try_echo") >&5
18131   (eval "$ac_compile") 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } && {
18138          test -z "$ac_c_werror_flag" ||
18139          test ! -s conftest.err
18140        } && test -s conftest.$ac_objext; then
18141   ac_cv_sys_file_offset_bits=64; break
18142 else
18143   $as_echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150   ac_cv_sys_file_offset_bits=unknown
18151   break
18152 done
18153 fi
18154 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18155 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18156 case $ac_cv_sys_file_offset_bits in #(
18157   no | unknown) ;;
18158   *)
18159 cat >>confdefs.h <<_ACEOF
18160 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18161 _ACEOF
18162 ;;
18163 esac
18164 rm -rf conftest*
18165   if test $ac_cv_sys_file_offset_bits = unknown; then
18166     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18167 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18168 if test "${ac_cv_sys_large_files+set}" = set; then
18169   $as_echo_n "(cached) " >&6
18170 else
18171   while :; do
18172   cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178 #include <sys/types.h>
18179  /* Check that off_t can represent 2**63 - 1 correctly.
18180     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18181     since some C++ compilers masquerading as C compilers
18182     incorrectly reject 9223372036854775807.  */
18183 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18184   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18185                        && LARGE_OFF_T % 2147483647 == 1)
18186                       ? 1 : -1];
18187 int
18188 main ()
18189 {
18190
18191   ;
18192   return 0;
18193 }
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (ac_try="$ac_compile"
18197 case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18202 $as_echo "$ac_try_echo") >&5
18203   (eval "$ac_compile") 2>conftest.er1
18204   ac_status=$?
18205   grep -v '^ *+' conftest.er1 >conftest.err
18206   rm -f conftest.er1
18207   cat conftest.err >&5
18208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); } && {
18210          test -z "$ac_c_werror_flag" ||
18211          test ! -s conftest.err
18212        } && test -s conftest.$ac_objext; then
18213   ac_cv_sys_large_files=no; break
18214 else
18215   $as_echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218
18219 fi
18220
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222   cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h.  */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h.  */
18228 #define _LARGE_FILES 1
18229 #include <sys/types.h>
18230  /* Check that off_t can represent 2**63 - 1 correctly.
18231     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18232     since some C++ compilers masquerading as C compilers
18233     incorrectly reject 9223372036854775807.  */
18234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18235   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18236                        && LARGE_OFF_T % 2147483647 == 1)
18237                       ? 1 : -1];
18238 int
18239 main ()
18240 {
18241
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext
18247 if { (ac_try="$ac_compile"
18248 case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18253 $as_echo "$ac_try_echo") >&5
18254   (eval "$ac_compile") 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } && {
18261          test -z "$ac_c_werror_flag" ||
18262          test ! -s conftest.err
18263        } && test -s conftest.$ac_objext; then
18264   ac_cv_sys_large_files=1; break
18265 else
18266   $as_echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269
18270 fi
18271
18272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18273   ac_cv_sys_large_files=unknown
18274   break
18275 done
18276 fi
18277 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18278 $as_echo "$ac_cv_sys_large_files" >&6; }
18279 case $ac_cv_sys_large_files in #(
18280   no | unknown) ;;
18281   *)
18282 cat >>confdefs.h <<_ACEOF
18283 #define _LARGE_FILES $ac_cv_sys_large_files
18284 _ACEOF
18285 ;;
18286 esac
18287 rm -rf conftest*
18288   fi
18289 fi
18290
18291
18292 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18293 # The cast to long int works around a bug in the HP C Compiler
18294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18296 # This bug is HP SR number 8606223364.
18297 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18298 $as_echo_n "checking size of off_t... " >&6; }
18299 if test "${ac_cv_sizeof_off_t+set}" = set; then
18300   $as_echo_n "(cached) " >&6
18301 else
18302   if test "$cross_compiling" = yes; then
18303   # Depending upon the size, compute the lo and hi bounds.
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310 $ac_includes_default
18311 int
18312 main ()
18313 {
18314 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18315 test_array [0] = 0
18316
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext
18322 if { (ac_try="$ac_compile"
18323 case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18328 $as_echo "$ac_try_echo") >&5
18329   (eval "$ac_compile") 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } && {
18336          test -z "$ac_c_werror_flag" ||
18337          test ! -s conftest.err
18338        } && test -s conftest.$ac_objext; then
18339   ac_lo=0 ac_mid=0
18340   while :; do
18341     cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347 $ac_includes_default
18348 int
18349 main ()
18350 {
18351 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18352 test_array [0] = 0
18353
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext
18359 if { (ac_try="$ac_compile"
18360 case "(($ac_try" in
18361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362   *) ac_try_echo=$ac_try;;
18363 esac
18364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18365 $as_echo "$ac_try_echo") >&5
18366   (eval "$ac_compile") 2>conftest.er1
18367   ac_status=$?
18368   grep -v '^ *+' conftest.er1 >conftest.err
18369   rm -f conftest.er1
18370   cat conftest.err >&5
18371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); } && {
18373          test -z "$ac_c_werror_flag" ||
18374          test ! -s conftest.err
18375        } && test -s conftest.$ac_objext; then
18376   ac_hi=$ac_mid; break
18377 else
18378   $as_echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381         ac_lo=`expr $ac_mid + 1`
18382                         if test $ac_lo -le $ac_mid; then
18383                           ac_lo= ac_hi=
18384                           break
18385                         fi
18386                         ac_mid=`expr 2 '*' $ac_mid + 1`
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390   done
18391 else
18392   $as_echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395         cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 $ac_includes_default
18402 int
18403 main ()
18404 {
18405 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18406 test_array [0] = 0
18407
18408   ;
18409   return 0;
18410 }
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18419 $as_echo "$ac_try_echo") >&5
18420   (eval "$ac_compile") 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } && {
18427          test -z "$ac_c_werror_flag" ||
18428          test ! -s conftest.err
18429        } && test -s conftest.$ac_objext; then
18430   ac_hi=-1 ac_mid=-1
18431   while :; do
18432     cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438 $ac_includes_default
18439 int
18440 main ()
18441 {
18442 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18443 test_array [0] = 0
18444
18445   ;
18446   return 0;
18447 }
18448 _ACEOF
18449 rm -f conftest.$ac_objext
18450 if { (ac_try="$ac_compile"
18451 case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18456 $as_echo "$ac_try_echo") >&5
18457   (eval "$ac_compile") 2>conftest.er1
18458   ac_status=$?
18459   grep -v '^ *+' conftest.er1 >conftest.err
18460   rm -f conftest.er1
18461   cat conftest.err >&5
18462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); } && {
18464          test -z "$ac_c_werror_flag" ||
18465          test ! -s conftest.err
18466        } && test -s conftest.$ac_objext; then
18467   ac_lo=$ac_mid; break
18468 else
18469   $as_echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472         ac_hi=`expr '(' $ac_mid ')' - 1`
18473                         if test $ac_mid -le $ac_hi; then
18474                           ac_lo= ac_hi=
18475                           break
18476                         fi
18477                         ac_mid=`expr 2 '*' $ac_mid`
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481   done
18482 else
18483   $as_echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486         ac_lo= ac_hi=
18487 fi
18488
18489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18490 fi
18491
18492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493 # Binary search between lo and hi bounds.
18494 while test "x$ac_lo" != "x$ac_hi"; do
18495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18496   cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502 $ac_includes_default
18503 int
18504 main ()
18505 {
18506 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18507 test_array [0] = 0
18508
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (ac_try="$ac_compile"
18515 case "(($ac_try" in
18516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517   *) ac_try_echo=$ac_try;;
18518 esac
18519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18520 $as_echo "$ac_try_echo") >&5
18521   (eval "$ac_compile") 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } && {
18528          test -z "$ac_c_werror_flag" ||
18529          test ! -s conftest.err
18530        } && test -s conftest.$ac_objext; then
18531   ac_hi=$ac_mid
18532 else
18533   $as_echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536         ac_lo=`expr '(' $ac_mid ')' + 1`
18537 fi
18538
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540 done
18541 case $ac_lo in
18542 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18543 '') if test "$ac_cv_type_off_t" = yes; then
18544      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18546 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18547 See \`config.log' for more details." >&5
18548 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18549 See \`config.log' for more details." >&2;}
18550    { (exit 77); exit 77; }; }; }
18551    else
18552      ac_cv_sizeof_off_t=0
18553    fi ;;
18554 esac
18555 else
18556   cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h.  */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h.  */
18562 $ac_includes_default
18563 static long int longval () { return (long int) (sizeof (off_t)); }
18564 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18565 #include <stdio.h>
18566 #include <stdlib.h>
18567 int
18568 main ()
18569 {
18570
18571   FILE *f = fopen ("conftest.val", "w");
18572   if (! f)
18573     return 1;
18574   if (((long int) (sizeof (off_t))) < 0)
18575     {
18576       long int i = longval ();
18577       if (i != ((long int) (sizeof (off_t))))
18578         return 1;
18579       fprintf (f, "%ld", i);
18580     }
18581   else
18582     {
18583       unsigned long int i = ulongval ();
18584       if (i != ((long int) (sizeof (off_t))))
18585         return 1;
18586       fprintf (f, "%lu", i);
18587     }
18588   /* Do not output a trailing newline, as this causes \r\n confusion
18589      on some platforms.  */
18590   return ferror (f) || fclose (f) != 0;
18591
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604   (eval "$ac_link") 2>&5
18605   ac_status=$?
18606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18613 $as_echo "$ac_try_echo") >&5
18614   (eval "$ac_try") 2>&5
18615   ac_status=$?
18616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_sizeof_off_t=`cat conftest.val`
18619 else
18620   $as_echo "$as_me: program exited with status $ac_status" >&5
18621 $as_echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ( exit $ac_status )
18625 if test "$ac_cv_type_off_t" = yes; then
18626      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18628 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18629 See \`config.log' for more details." >&5
18630 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18631 See \`config.log' for more details." >&2;}
18632    { (exit 77); exit 77; }; }; }
18633    else
18634      ac_cv_sizeof_off_t=0
18635    fi
18636 fi
18637 rm -rf conftest.dSYM
18638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18639 fi
18640 rm -f conftest.val
18641 fi
18642 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18643 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18644
18645
18646
18647 cat >>confdefs.h <<_ACEOF
18648 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18649 _ACEOF
18650
18651
18652
18653 # If we don't have largefile support, can't handle segsize >= 2GB.
18654 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18655    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18656 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18657    { (exit 1); exit 1; }; }
18658 fi
18659
18660
18661 ##
18662 ## Functions, global variables
18663 ##
18664
18665 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18666 $as_echo_n "checking for int timezone... " >&6; }
18667 if test "${pgac_cv_var_int_timezone+set}" = set; then
18668   $as_echo_n "(cached) " >&6
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676 #include <time.h>
18677 int res;
18678 int
18679 main ()
18680 {
18681 #ifndef __CYGWIN__
18682 res = timezone / 60;
18683 #else
18684 res = _timezone / 60;
18685 #endif
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18697 $as_echo "$ac_try_echo") >&5
18698   (eval "$ac_link") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_c_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest$ac_exeext && {
18708          test "$cross_compiling" = yes ||
18709          $as_test_x conftest$ac_exeext
18710        }; then
18711   pgac_cv_var_int_timezone=yes
18712 else
18713   $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         pgac_cv_var_int_timezone=no
18717 fi
18718
18719 rm -rf conftest.dSYM
18720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18721       conftest$ac_exeext conftest.$ac_ext
18722 fi
18723 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18724 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18725 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18726
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE_INT_TIMEZONE /**/
18729 _ACEOF
18730
18731 fi
18732 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18733 $as_echo_n "checking types of arguments for accept()... " >&6; }
18734  if test "${ac_cv_func_accept_return+set}" = set; then
18735   $as_echo_n "(cached) " >&6
18736 else
18737    if test "${ac_cv_func_accept_arg1+set}" = set; then
18738   $as_echo_n "(cached) " >&6
18739 else
18740     if test "${ac_cv_func_accept_arg2+set}" = set; then
18741   $as_echo_n "(cached) " >&6
18742 else
18743      if test "${ac_cv_func_accept_arg3+set}" = set; then
18744   $as_echo_n "(cached) " >&6
18745 else
18746       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18747       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18748        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18749         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18750          cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 #ifdef HAVE_SYS_TYPES_H
18757 #include <sys/types.h>
18758 #endif
18759 #ifdef HAVE_SYS_SOCKET_H
18760 #include <sys/socket.h>
18761 #endif
18762 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18763 int
18764 main ()
18765 {
18766
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext
18772 if { (ac_try="$ac_compile"
18773 case "(($ac_try" in
18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775   *) ac_try_echo=$ac_try;;
18776 esac
18777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18778 $as_echo "$ac_try_echo") >&5
18779   (eval "$ac_compile") 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } && {
18786          test -z "$ac_c_werror_flag" ||
18787          test ! -s conftest.err
18788        } && test -s conftest.$ac_objext; then
18789   ac_not_found=no; break 4
18790 else
18791   $as_echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794         ac_not_found=yes
18795 fi
18796
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18798        done
18799       done
18800      done
18801     done
18802     if test "$ac_not_found" = yes; then
18803       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18804 $as_echo "$as_me: error: could not determine argument types" >&2;}
18805    { (exit 1); exit 1; }; }
18806     fi
18807     if test "$ac_cv_func_accept_arg3" = "void"; then
18808       ac_cv_func_accept_arg3=int
18809     fi
18810
18811 fi
18812
18813 fi
18814
18815 fi
18816
18817 fi
18818  { $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
18819 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18820
18821 cat >>confdefs.h <<_ACEOF
18822 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18823 _ACEOF
18824
18825
18826 cat >>confdefs.h <<_ACEOF
18827 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18828 _ACEOF
18829
18830
18831 cat >>confdefs.h <<_ACEOF
18832 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18833 _ACEOF
18834
18835
18836 cat >>confdefs.h <<_ACEOF
18837 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18838 _ACEOF
18839
18840
18841 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18842 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18843 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18844   $as_echo_n "(cached) " >&6
18845 else
18846   cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852 #include <sys/time.h>
18853 int
18854 main ()
18855 {
18856 struct timeval *tp;
18857 struct timezone *tzp;
18858 gettimeofday(tp,tzp);
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867   *) ac_try_echo=$ac_try;;
18868 esac
18869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18870 $as_echo "$ac_try_echo") >&5
18871   (eval "$ac_compile") 2>conftest.er1
18872   ac_status=$?
18873   grep -v '^ *+' conftest.er1 >conftest.err
18874   rm -f conftest.er1
18875   cat conftest.err >&5
18876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); } && {
18878          test -z "$ac_c_werror_flag" ||
18879          test ! -s conftest.err
18880        } && test -s conftest.$ac_objext; then
18881   pgac_cv_func_gettimeofday_1arg=no
18882 else
18883   $as_echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886         pgac_cv_func_gettimeofday_1arg=yes
18887 fi
18888
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 fi
18891 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18892 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18893 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18894
18895 cat >>confdefs.h <<\_ACEOF
18896 #define GETTIMEOFDAY_1ARG /**/
18897 _ACEOF
18898
18899 fi
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18927 do
18928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18929 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18930 $as_echo_n "checking for $ac_func... " >&6; }
18931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18932   $as_echo_n "(cached) " >&6
18933 else
18934   cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18942 #define $ac_func innocuous_$ac_func
18943
18944 /* System header to define __stub macros and hopefully few prototypes,
18945     which can conflict with char $ac_func (); below.
18946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947     <limits.h> exists even on freestanding compilers.  */
18948
18949 #ifdef __STDC__
18950 # include <limits.h>
18951 #else
18952 # include <assert.h>
18953 #endif
18954
18955 #undef $ac_func
18956
18957 /* Override any GCC internal prototype to avoid an error.
18958    Use char because int might match the return type of a GCC
18959    builtin and then its argument prototype would still apply.  */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char $ac_func ();
18964 /* The GNU C library defines this for functions which it implements
18965     to always fail with ENOSYS.  Some functions are actually named
18966     something starting with __ and the normal name is an alias.  */
18967 #if defined __stub_$ac_func || defined __stub___$ac_func
18968 choke me
18969 #endif
18970
18971 int
18972 main ()
18973 {
18974 return $ac_func ();
18975   ;
18976   return 0;
18977 }
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987   (eval "$ac_link") 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } && {
18994          test -z "$ac_c_werror_flag" ||
18995          test ! -s conftest.err
18996        } && test -s conftest$ac_exeext && {
18997          test "$cross_compiling" = yes ||
18998          $as_test_x conftest$ac_exeext
18999        }; then
19000   eval "$as_ac_var=yes"
19001 else
19002   $as_echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005         eval "$as_ac_var=no"
19006 fi
19007
19008 rm -rf conftest.dSYM
19009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010       conftest$ac_exeext conftest.$ac_ext
19011 fi
19012 ac_res=`eval 'as_val=${'$as_ac_var'}
19013                  $as_echo "$as_val"'`
19014                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19015 $as_echo "$ac_res" >&6; }
19016 as_val=`eval 'as_val=${'$as_ac_var'}
19017                  $as_echo "$as_val"'`
19018    if test "x$as_val" = x""yes; then
19019   cat >>confdefs.h <<_ACEOF
19020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19021 _ACEOF
19022
19023 fi
19024 done
19025
19026
19027
19028 for ac_func in fseeko
19029 do
19030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19031 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19032 $as_echo_n "checking for $ac_func... " >&6; }
19033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19034   $as_echo_n "(cached) " >&6
19035 else
19036   cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h.  */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h.  */
19042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19044 #define $ac_func innocuous_$ac_func
19045
19046 /* System header to define __stub macros and hopefully few prototypes,
19047     which can conflict with char $ac_func (); below.
19048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049     <limits.h> exists even on freestanding compilers.  */
19050
19051 #ifdef __STDC__
19052 # include <limits.h>
19053 #else
19054 # include <assert.h>
19055 #endif
19056
19057 #undef $ac_func
19058
19059 /* Override any GCC internal prototype to avoid an error.
19060    Use char because int might match the return type of a GCC
19061    builtin and then its argument prototype would still apply.  */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char $ac_func ();
19066 /* The GNU C library defines this for functions which it implements
19067     to always fail with ENOSYS.  Some functions are actually named
19068     something starting with __ and the normal name is an alias.  */
19069 #if defined __stub_$ac_func || defined __stub___$ac_func
19070 choke me
19071 #endif
19072
19073 int
19074 main ()
19075 {
19076 return $ac_func ();
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19088 $as_echo "$ac_try_echo") >&5
19089   (eval "$ac_link") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } && {
19096          test -z "$ac_c_werror_flag" ||
19097          test ! -s conftest.err
19098        } && test -s conftest$ac_exeext && {
19099          test "$cross_compiling" = yes ||
19100          $as_test_x conftest$ac_exeext
19101        }; then
19102   eval "$as_ac_var=yes"
19103 else
19104   $as_echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         eval "$as_ac_var=no"
19108 fi
19109
19110 rm -rf conftest.dSYM
19111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19112       conftest$ac_exeext conftest.$ac_ext
19113 fi
19114 ac_res=`eval 'as_val=${'$as_ac_var'}
19115                  $as_echo "$as_val"'`
19116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19117 $as_echo "$ac_res" >&6; }
19118 as_val=`eval 'as_val=${'$as_ac_var'}
19119                  $as_echo "$as_val"'`
19120    if test "x$as_val" = x""yes; then
19121   cat >>confdefs.h <<_ACEOF
19122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19123 _ACEOF
19124
19125 else
19126   case " $LIBOBJS " in
19127   *" $ac_func.$ac_objext "* ) ;;
19128   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19129  ;;
19130 esac
19131
19132 fi
19133 done
19134
19135
19136 case $host_os in
19137         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19138         # Mingw uses macros to access Win32 API calls
19139         bsdi*|netbsd*|mingw*)
19140
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_FSEEKO 1
19143 _ACEOF
19144
19145                 ac_cv_func_fseeko=yes;;
19146         *)
19147                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19148 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19149 if test "${ac_cv_sys_largefile_source+set}" = set; then
19150   $as_echo_n "(cached) " >&6
19151 else
19152   while :; do
19153   cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h.  */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h.  */
19159 #include <sys/types.h> /* for off_t */
19160      #include <stdio.h>
19161 int
19162 main ()
19163 {
19164 int (*fp) (FILE *, off_t, int) = fseeko;
19165      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174   *) ac_try_echo=$ac_try;;
19175 esac
19176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19177 $as_echo "$ac_try_echo") >&5
19178   (eval "$ac_link") 2>conftest.er1
19179   ac_status=$?
19180   grep -v '^ *+' conftest.er1 >conftest.err
19181   rm -f conftest.er1
19182   cat conftest.err >&5
19183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } && {
19185          test -z "$ac_c_werror_flag" ||
19186          test ! -s conftest.err
19187        } && test -s conftest$ac_exeext && {
19188          test "$cross_compiling" = yes ||
19189          $as_test_x conftest$ac_exeext
19190        }; then
19191   ac_cv_sys_largefile_source=no; break
19192 else
19193   $as_echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196
19197 fi
19198
19199 rm -rf conftest.dSYM
19200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19201       conftest$ac_exeext conftest.$ac_ext
19202   cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208 #define _LARGEFILE_SOURCE 1
19209 #include <sys/types.h> /* for off_t */
19210      #include <stdio.h>
19211 int
19212 main ()
19213 {
19214 int (*fp) (FILE *, off_t, int) = fseeko;
19215      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19227 $as_echo "$ac_try_echo") >&5
19228   (eval "$ac_link") 2>conftest.er1
19229   ac_status=$?
19230   grep -v '^ *+' conftest.er1 >conftest.err
19231   rm -f conftest.er1
19232   cat conftest.err >&5
19233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } && {
19235          test -z "$ac_c_werror_flag" ||
19236          test ! -s conftest.err
19237        } && test -s conftest$ac_exeext && {
19238          test "$cross_compiling" = yes ||
19239          $as_test_x conftest$ac_exeext
19240        }; then
19241   ac_cv_sys_largefile_source=1; break
19242 else
19243   $as_echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19245
19246
19247 fi
19248
19249 rm -rf conftest.dSYM
19250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19251       conftest$ac_exeext conftest.$ac_ext
19252   ac_cv_sys_largefile_source=unknown
19253   break
19254 done
19255 fi
19256 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19257 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19258 case $ac_cv_sys_largefile_source in #(
19259   no | unknown) ;;
19260   *)
19261 cat >>confdefs.h <<_ACEOF
19262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19263 _ACEOF
19264 ;;
19265 esac
19266 rm -rf conftest*
19267
19268 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19269 # in glibc 2.1.3, but that breaks too many other things.
19270 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19271 if test $ac_cv_sys_largefile_source != unknown; then
19272
19273 cat >>confdefs.h <<\_ACEOF
19274 #define HAVE_FSEEKO 1
19275 _ACEOF
19276
19277 fi
19278 ;;
19279 esac
19280
19281 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19282 # by calling it, 2009-04-02
19283 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19284 if test "$PORTNAME" != "solaris"; then
19285
19286 for ac_func in posix_fadvise
19287 do
19288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19289 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19290 $as_echo_n "checking for $ac_func... " >&6; }
19291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19292   $as_echo_n "(cached) " >&6
19293 else
19294   cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19302 #define $ac_func innocuous_$ac_func
19303
19304 /* System header to define __stub macros and hopefully few prototypes,
19305     which can conflict with char $ac_func (); below.
19306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19307     <limits.h> exists even on freestanding compilers.  */
19308
19309 #ifdef __STDC__
19310 # include <limits.h>
19311 #else
19312 # include <assert.h>
19313 #endif
19314
19315 #undef $ac_func
19316
19317 /* Override any GCC internal prototype to avoid an error.
19318    Use char because int might match the return type of a GCC
19319    builtin and then its argument prototype would still apply.  */
19320 #ifdef __cplusplus
19321 extern "C"
19322 #endif
19323 char $ac_func ();
19324 /* The GNU C library defines this for functions which it implements
19325     to always fail with ENOSYS.  Some functions are actually named
19326     something starting with __ and the normal name is an alias.  */
19327 #if defined __stub_$ac_func || defined __stub___$ac_func
19328 choke me
19329 #endif
19330
19331 int
19332 main ()
19333 {
19334 return $ac_func ();
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (ac_try="$ac_link"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19346 $as_echo "$ac_try_echo") >&5
19347   (eval "$ac_link") 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } && {
19354          test -z "$ac_c_werror_flag" ||
19355          test ! -s conftest.err
19356        } && test -s conftest$ac_exeext && {
19357          test "$cross_compiling" = yes ||
19358          $as_test_x conftest$ac_exeext
19359        }; then
19360   eval "$as_ac_var=yes"
19361 else
19362   $as_echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19364
19365         eval "$as_ac_var=no"
19366 fi
19367
19368 rm -rf conftest.dSYM
19369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19370       conftest$ac_exeext conftest.$ac_ext
19371 fi
19372 ac_res=`eval 'as_val=${'$as_ac_var'}
19373                  $as_echo "$as_val"'`
19374                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19375 $as_echo "$ac_res" >&6; }
19376 as_val=`eval 'as_val=${'$as_ac_var'}
19377                  $as_echo "$as_val"'`
19378    if test "x$as_val" = x""yes; then
19379   cat >>confdefs.h <<_ACEOF
19380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19381 _ACEOF
19382
19383 fi
19384 done
19385
19386 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19387 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19388 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19389   $as_echo_n "(cached) " >&6
19390 else
19391   cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397 #include <fcntl.h>
19398
19399 int
19400 main ()
19401 {
19402 #ifndef posix_fadvise
19403   (void) posix_fadvise;
19404 #endif
19405
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414   *) ac_try_echo=$ac_try;;
19415 esac
19416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19417 $as_echo "$ac_try_echo") >&5
19418   (eval "$ac_compile") 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } && {
19425          test -z "$ac_c_werror_flag" ||
19426          test ! -s conftest.err
19427        } && test -s conftest.$ac_objext; then
19428   ac_cv_have_decl_posix_fadvise=yes
19429 else
19430   $as_echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19432
19433         ac_cv_have_decl_posix_fadvise=no
19434 fi
19435
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 fi
19438 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19439 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19440 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19441
19442 cat >>confdefs.h <<_ACEOF
19443 #define HAVE_DECL_POSIX_FADVISE 1
19444 _ACEOF
19445
19446
19447 else
19448   cat >>confdefs.h <<_ACEOF
19449 #define HAVE_DECL_POSIX_FADVISE 0
19450 _ACEOF
19451
19452
19453 fi
19454
19455
19456 fi
19457
19458 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19459 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19460 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19461   $as_echo_n "(cached) " >&6
19462 else
19463   cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 #include <unistd.h>
19470
19471 int
19472 main ()
19473 {
19474 #ifndef fdatasync
19475   (void) fdatasync;
19476 #endif
19477
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19489 $as_echo "$ac_try_echo") >&5
19490   (eval "$ac_compile") 2>conftest.er1
19491   ac_status=$?
19492   grep -v '^ *+' conftest.er1 >conftest.err
19493   rm -f conftest.er1
19494   cat conftest.err >&5
19495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } && {
19497          test -z "$ac_c_werror_flag" ||
19498          test ! -s conftest.err
19499        } && test -s conftest.$ac_objext; then
19500   ac_cv_have_decl_fdatasync=yes
19501 else
19502   $as_echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505         ac_cv_have_decl_fdatasync=no
19506 fi
19507
19508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19509 fi
19510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19511 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19512 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19513
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_DECL_FDATASYNC 1
19516 _ACEOF
19517
19518
19519 else
19520   cat >>confdefs.h <<_ACEOF
19521 #define HAVE_DECL_FDATASYNC 0
19522 _ACEOF
19523
19524
19525 fi
19526
19527
19528 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19529 $as_echo_n "checking whether strlcat is declared... " >&6; }
19530 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19531   $as_echo_n "(cached) " >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539 $ac_includes_default
19540 int
19541 main ()
19542 {
19543 #ifndef strlcat
19544   (void) strlcat;
19545 #endif
19546
19547   ;
19548   return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest.$ac_objext
19552 if { (ac_try="$ac_compile"
19553 case "(($ac_try" in
19554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555   *) ac_try_echo=$ac_try;;
19556 esac
19557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559   (eval "$ac_compile") 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } && {
19566          test -z "$ac_c_werror_flag" ||
19567          test ! -s conftest.err
19568        } && test -s conftest.$ac_objext; then
19569   ac_cv_have_decl_strlcat=yes
19570 else
19571   $as_echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574         ac_cv_have_decl_strlcat=no
19575 fi
19576
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 fi
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19580 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19581 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19582
19583 cat >>confdefs.h <<_ACEOF
19584 #define HAVE_DECL_STRLCAT 1
19585 _ACEOF
19586
19587
19588 else
19589   cat >>confdefs.h <<_ACEOF
19590 #define HAVE_DECL_STRLCAT 0
19591 _ACEOF
19592
19593
19594 fi
19595 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19596 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19597 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19598   $as_echo_n "(cached) " >&6
19599 else
19600   cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h.  */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h.  */
19606 $ac_includes_default
19607 int
19608 main ()
19609 {
19610 #ifndef strlcpy
19611   (void) strlcpy;
19612 #endif
19613
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext
19619 if { (ac_try="$ac_compile"
19620 case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19625 $as_echo "$ac_try_echo") >&5
19626   (eval "$ac_compile") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } && {
19633          test -z "$ac_c_werror_flag" ||
19634          test ! -s conftest.err
19635        } && test -s conftest.$ac_objext; then
19636   ac_cv_have_decl_strlcpy=yes
19637 else
19638   $as_echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641         ac_cv_have_decl_strlcpy=no
19642 fi
19643
19644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645 fi
19646 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19647 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19648 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19649
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_DECL_STRLCPY 1
19652 _ACEOF
19653
19654
19655 else
19656   cat >>confdefs.h <<_ACEOF
19657 #define HAVE_DECL_STRLCPY 0
19658 _ACEOF
19659
19660
19661 fi
19662
19663
19664 # This is probably only present on Darwin, but may as well check always
19665 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19666 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19667 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19668   $as_echo_n "(cached) " >&6
19669 else
19670   cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676 #include <fcntl.h>
19677
19678 int
19679 main ()
19680 {
19681 #ifndef F_FULLFSYNC
19682   (void) F_FULLFSYNC;
19683 #endif
19684
19685   ;
19686   return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693   *) ac_try_echo=$ac_try;;
19694 esac
19695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19696 $as_echo "$ac_try_echo") >&5
19697   (eval "$ac_compile") 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } && {
19704          test -z "$ac_c_werror_flag" ||
19705          test ! -s conftest.err
19706        } && test -s conftest.$ac_objext; then
19707   ac_cv_have_decl_F_FULLFSYNC=yes
19708 else
19709   $as_echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712         ac_cv_have_decl_F_FULLFSYNC=no
19713 fi
19714
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716 fi
19717 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19718 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19719 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19720
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_DECL_F_FULLFSYNC 1
19723 _ACEOF
19724
19725
19726 else
19727   cat >>confdefs.h <<_ACEOF
19728 #define HAVE_DECL_F_FULLFSYNC 0
19729 _ACEOF
19730
19731
19732 fi
19733
19734
19735
19736 HAVE_IPV6=no
19737 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19738 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19739 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19740   $as_echo_n "(cached) " >&6
19741 else
19742   ac_cv_type_struct_sockaddr_in6=no
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749 $ac_includes_default
19750 #include <netinet/in.h>
19751
19752 int
19753 main ()
19754 {
19755 if (sizeof (struct sockaddr_in6))
19756        return 0;
19757   ;
19758   return 0;
19759 }
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (ac_try="$ac_compile"
19763 case "(($ac_try" in
19764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765   *) ac_try_echo=$ac_try;;
19766 esac
19767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19768 $as_echo "$ac_try_echo") >&5
19769   (eval "$ac_compile") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } && {
19776          test -z "$ac_c_werror_flag" ||
19777          test ! -s conftest.err
19778        } && test -s conftest.$ac_objext; then
19779   cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 $ac_includes_default
19786 #include <netinet/in.h>
19787
19788 int
19789 main ()
19790 {
19791 if (sizeof ((struct sockaddr_in6)))
19792           return 0;
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805   (eval "$ac_compile") 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } && {
19812          test -z "$ac_c_werror_flag" ||
19813          test ! -s conftest.err
19814        } && test -s conftest.$ac_objext; then
19815   :
19816 else
19817   $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820         ac_cv_type_struct_sockaddr_in6=yes
19821 fi
19822
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824 else
19825   $as_echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828
19829 fi
19830
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 fi
19833 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19834 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19835 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_IPV6 1
19839 _ACEOF
19840
19841          HAVE_IPV6=yes
19842 fi
19843
19844
19845
19846 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19847 $as_echo_n "checking for PS_STRINGS... " >&6; }
19848 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19849   $as_echo_n "(cached) " >&6
19850 else
19851   cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h.  */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h.  */
19857 #include <machine/vmparam.h>
19858 #include <sys/exec.h>
19859
19860 int
19861 main ()
19862 {
19863 PS_STRINGS->ps_nargvstr = 1;
19864 PS_STRINGS->ps_argvstr = "foo";
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19876 $as_echo "$ac_try_echo") >&5
19877   (eval "$ac_link") 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } && {
19884          test -z "$ac_c_werror_flag" ||
19885          test ! -s conftest.err
19886        } && test -s conftest$ac_exeext && {
19887          test "$cross_compiling" = yes ||
19888          $as_test_x conftest$ac_exeext
19889        }; then
19890   pgac_cv_var_PS_STRINGS=yes
19891 else
19892   $as_echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895         pgac_cv_var_PS_STRINGS=no
19896 fi
19897
19898 rm -rf conftest.dSYM
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900       conftest$ac_exeext conftest.$ac_ext
19901 fi
19902 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19903 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19904 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19905
19906 cat >>confdefs.h <<\_ACEOF
19907 #define HAVE_PS_STRINGS /**/
19908 _ACEOF
19909
19910 fi
19911
19912
19913 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19914 # is missing.  Yes, there are machines that have only one.  We may
19915 # also decide to use snprintf.c if snprintf() is present but does not
19916 # have all the features we need --- see below.
19917
19918 if test "$PORTNAME" = "win32"; then
19919   # Win32 gets snprintf.c built unconditionally.
19920   #
19921   # To properly translate all NLS languages strings, we must support the
19922   # *printf() %$ format, which allows *printf() arguments to be selected
19923   # by position in the translated string.
19924   #
19925   # libintl versions < 0.13 use the native *printf() functions, and Win32
19926   # *printf() doesn't understand %$, so we must use our /port versions,
19927   # which do understand %$. libintl versions >= 0.13 include their own
19928   # *printf versions on Win32.  The libintl 0.13 release note text is:
19929   #
19930   #   C format strings with positions, as they arise when a translator
19931   #   needs to reorder a sentence, are now supported on all platforms.
19932   #   On those few platforms (NetBSD and Woe32) for which the native
19933   #   printf()/fprintf()/... functions don't support such format
19934   #   strings, replacements are provided through <libintl.h>.
19935   #
19936   # We could use libintl >= 0.13's *printf() if we were sure that we had
19937   # a litint >= 0.13 at runtime, but seeing that there is no clean way
19938   # to guarantee that, it is best to just use our own, so we are sure to
19939   # get %$ support. In include/port.h we disable the *printf() macros
19940   # that might have been defined by libintl.
19941   #
19942   # We do this unconditionally whether NLS is used or not so we are sure
19943   # that all Win32 libraries and binaries behave the same.
19944   pgac_need_repl_snprintf=yes
19945 else
19946   pgac_need_repl_snprintf=no
19947
19948 for ac_func in snprintf
19949 do
19950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19952 $as_echo_n "checking for $ac_func... " >&6; }
19953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19954   $as_echo_n "(cached) " >&6
19955 else
19956   cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19964 #define $ac_func innocuous_$ac_func
19965
19966 /* System header to define __stub macros and hopefully few prototypes,
19967     which can conflict with char $ac_func (); below.
19968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19969     <limits.h> exists even on freestanding compilers.  */
19970
19971 #ifdef __STDC__
19972 # include <limits.h>
19973 #else
19974 # include <assert.h>
19975 #endif
19976
19977 #undef $ac_func
19978
19979 /* Override any GCC internal prototype to avoid an error.
19980    Use char because int might match the return type of a GCC
19981    builtin and then its argument prototype would still apply.  */
19982 #ifdef __cplusplus
19983 extern "C"
19984 #endif
19985 char $ac_func ();
19986 /* The GNU C library defines this for functions which it implements
19987     to always fail with ENOSYS.  Some functions are actually named
19988     something starting with __ and the normal name is an alias.  */
19989 #if defined __stub_$ac_func || defined __stub___$ac_func
19990 choke me
19991 #endif
19992
19993 int
19994 main ()
19995 {
19996 return $ac_func ();
19997   ;
19998   return 0;
19999 }
20000 _ACEOF
20001 rm -f conftest.$ac_objext conftest$ac_exeext
20002 if { (ac_try="$ac_link"
20003 case "(($ac_try" in
20004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005   *) ac_try_echo=$ac_try;;
20006 esac
20007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009   (eval "$ac_link") 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } && {
20016          test -z "$ac_c_werror_flag" ||
20017          test ! -s conftest.err
20018        } && test -s conftest$ac_exeext && {
20019          test "$cross_compiling" = yes ||
20020          $as_test_x conftest$ac_exeext
20021        }; then
20022   eval "$as_ac_var=yes"
20023 else
20024   $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027         eval "$as_ac_var=no"
20028 fi
20029
20030 rm -rf conftest.dSYM
20031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20032       conftest$ac_exeext conftest.$ac_ext
20033 fi
20034 ac_res=`eval 'as_val=${'$as_ac_var'}
20035                  $as_echo "$as_val"'`
20036                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20037 $as_echo "$ac_res" >&6; }
20038 as_val=`eval 'as_val=${'$as_ac_var'}
20039                  $as_echo "$as_val"'`
20040    if test "x$as_val" = x""yes; then
20041   cat >>confdefs.h <<_ACEOF
20042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20043 _ACEOF
20044
20045 else
20046   pgac_need_repl_snprintf=yes
20047 fi
20048 done
20049
20050
20051 for ac_func in vsnprintf
20052 do
20053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20054 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20055 $as_echo_n "checking for $ac_func... " >&6; }
20056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20057   $as_echo_n "(cached) " >&6
20058 else
20059   cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20067 #define $ac_func innocuous_$ac_func
20068
20069 /* System header to define __stub macros and hopefully few prototypes,
20070     which can conflict with char $ac_func (); below.
20071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20072     <limits.h> exists even on freestanding compilers.  */
20073
20074 #ifdef __STDC__
20075 # include <limits.h>
20076 #else
20077 # include <assert.h>
20078 #endif
20079
20080 #undef $ac_func
20081
20082 /* Override any GCC internal prototype to avoid an error.
20083    Use char because int might match the return type of a GCC
20084    builtin and then its argument prototype would still apply.  */
20085 #ifdef __cplusplus
20086 extern "C"
20087 #endif
20088 char $ac_func ();
20089 /* The GNU C library defines this for functions which it implements
20090     to always fail with ENOSYS.  Some functions are actually named
20091     something starting with __ and the normal name is an alias.  */
20092 #if defined __stub_$ac_func || defined __stub___$ac_func
20093 choke me
20094 #endif
20095
20096 int
20097 main ()
20098 {
20099 return $ac_func ();
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112   (eval "$ac_link") 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } && {
20119          test -z "$ac_c_werror_flag" ||
20120          test ! -s conftest.err
20121        } && test -s conftest$ac_exeext && {
20122          test "$cross_compiling" = yes ||
20123          $as_test_x conftest$ac_exeext
20124        }; then
20125   eval "$as_ac_var=yes"
20126 else
20127   $as_echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130         eval "$as_ac_var=no"
20131 fi
20132
20133 rm -rf conftest.dSYM
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135       conftest$ac_exeext conftest.$ac_ext
20136 fi
20137 ac_res=`eval 'as_val=${'$as_ac_var'}
20138                  $as_echo "$as_val"'`
20139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20140 $as_echo "$ac_res" >&6; }
20141 as_val=`eval 'as_val=${'$as_ac_var'}
20142                  $as_echo "$as_val"'`
20143    if test "x$as_val" = x""yes; then
20144   cat >>confdefs.h <<_ACEOF
20145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20146 _ACEOF
20147
20148 else
20149   pgac_need_repl_snprintf=yes
20150 fi
20151 done
20152
20153 fi
20154
20155
20156 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20157 # include/c.h will provide declarations.  Note this is a separate test
20158 # from whether the functions exist in the C library --- there are
20159 # systems that have the functions but don't bother to declare them :-(
20160
20161 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20162 $as_echo_n "checking whether snprintf is declared... " >&6; }
20163 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20164   $as_echo_n "(cached) " >&6
20165 else
20166   cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172 $ac_includes_default
20173 int
20174 main ()
20175 {
20176 #ifndef snprintf
20177   (void) snprintf;
20178 #endif
20179
20180   ;
20181   return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188   *) ac_try_echo=$ac_try;;
20189 esac
20190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191 $as_echo "$ac_try_echo") >&5
20192   (eval "$ac_compile") 2>conftest.er1
20193   ac_status=$?
20194   grep -v '^ *+' conftest.er1 >conftest.err
20195   rm -f conftest.er1
20196   cat conftest.err >&5
20197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); } && {
20199          test -z "$ac_c_werror_flag" ||
20200          test ! -s conftest.err
20201        } && test -s conftest.$ac_objext; then
20202   ac_cv_have_decl_snprintf=yes
20203 else
20204   $as_echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207         ac_cv_have_decl_snprintf=no
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 fi
20212 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20213 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20214 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20215
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_DECL_SNPRINTF 1
20218 _ACEOF
20219
20220
20221 else
20222   cat >>confdefs.h <<_ACEOF
20223 #define HAVE_DECL_SNPRINTF 0
20224 _ACEOF
20225
20226
20227 fi
20228 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20229 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20230 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20231   $as_echo_n "(cached) " >&6
20232 else
20233   cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 $ac_includes_default
20240 int
20241 main ()
20242 {
20243 #ifndef vsnprintf
20244   (void) vsnprintf;
20245 #endif
20246
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255   *) ac_try_echo=$ac_try;;
20256 esac
20257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20258 $as_echo "$ac_try_echo") >&5
20259   (eval "$ac_compile") 2>conftest.er1
20260   ac_status=$?
20261   grep -v '^ *+' conftest.er1 >conftest.err
20262   rm -f conftest.er1
20263   cat conftest.err >&5
20264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } && {
20266          test -z "$ac_c_werror_flag" ||
20267          test ! -s conftest.err
20268        } && test -s conftest.$ac_objext; then
20269   ac_cv_have_decl_vsnprintf=yes
20270 else
20271   $as_echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274         ac_cv_have_decl_vsnprintf=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278 fi
20279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20280 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20281 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20282
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_DECL_VSNPRINTF 1
20285 _ACEOF
20286
20287
20288 else
20289   cat >>confdefs.h <<_ACEOF
20290 #define HAVE_DECL_VSNPRINTF 0
20291 _ACEOF
20292
20293
20294 fi
20295
20296
20297
20298
20299 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20300 $as_echo_n "checking for isinf... " >&6; }
20301 if test "${ac_cv_func_isinf+set}" = set; then
20302   $as_echo_n "(cached) " >&6
20303 else
20304   cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310
20311 #include <math.h>
20312 double glob_double;
20313
20314 int
20315 main ()
20316 {
20317 return isinf(glob_double) ? 0 : 1;
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330   (eval "$ac_link") 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } && {
20337          test -z "$ac_c_werror_flag" ||
20338          test ! -s conftest.err
20339        } && test -s conftest$ac_exeext && {
20340          test "$cross_compiling" = yes ||
20341          $as_test_x conftest$ac_exeext
20342        }; then
20343   ac_cv_func_isinf=yes
20344 else
20345   $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348         ac_cv_func_isinf=no
20349 fi
20350
20351 rm -rf conftest.dSYM
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353       conftest$ac_exeext conftest.$ac_ext
20354 fi
20355 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20356 $as_echo "$ac_cv_func_isinf" >&6; }
20357
20358 if test $ac_cv_func_isinf = yes ; then
20359
20360 cat >>confdefs.h <<\_ACEOF
20361 #define HAVE_ISINF 1
20362 _ACEOF
20363
20364 else
20365   case " $LIBOBJS " in
20366   *" isinf.$ac_objext "* ) ;;
20367   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20368  ;;
20369 esac
20370
20371   # Look for a way to implement a substitute for isinf()
20372
20373
20374
20375
20376 for ac_func in fpclass fp_class fp_class_d class
20377 do
20378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20379 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20380 $as_echo_n "checking for $ac_func... " >&6; }
20381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20382   $as_echo_n "(cached) " >&6
20383 else
20384   cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20392 #define $ac_func innocuous_$ac_func
20393
20394 /* System header to define __stub macros and hopefully few prototypes,
20395     which can conflict with char $ac_func (); below.
20396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20397     <limits.h> exists even on freestanding compilers.  */
20398
20399 #ifdef __STDC__
20400 # include <limits.h>
20401 #else
20402 # include <assert.h>
20403 #endif
20404
20405 #undef $ac_func
20406
20407 /* Override any GCC internal prototype to avoid an error.
20408    Use char because int might match the return type of a GCC
20409    builtin and then its argument prototype would still apply.  */
20410 #ifdef __cplusplus
20411 extern "C"
20412 #endif
20413 char $ac_func ();
20414 /* The GNU C library defines this for functions which it implements
20415     to always fail with ENOSYS.  Some functions are actually named
20416     something starting with __ and the normal name is an alias.  */
20417 #if defined __stub_$ac_func || defined __stub___$ac_func
20418 choke me
20419 #endif
20420
20421 int
20422 main ()
20423 {
20424 return $ac_func ();
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20436 $as_echo "$ac_try_echo") >&5
20437   (eval "$ac_link") 2>conftest.er1
20438   ac_status=$?
20439   grep -v '^ *+' conftest.er1 >conftest.err
20440   rm -f conftest.er1
20441   cat conftest.err >&5
20442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } && {
20444          test -z "$ac_c_werror_flag" ||
20445          test ! -s conftest.err
20446        } && test -s conftest$ac_exeext && {
20447          test "$cross_compiling" = yes ||
20448          $as_test_x conftest$ac_exeext
20449        }; then
20450   eval "$as_ac_var=yes"
20451 else
20452   $as_echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455         eval "$as_ac_var=no"
20456 fi
20457
20458 rm -rf conftest.dSYM
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460       conftest$ac_exeext conftest.$ac_ext
20461 fi
20462 ac_res=`eval 'as_val=${'$as_ac_var'}
20463                  $as_echo "$as_val"'`
20464                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20465 $as_echo "$ac_res" >&6; }
20466 as_val=`eval 'as_val=${'$as_ac_var'}
20467                  $as_echo "$as_val"'`
20468    if test "x$as_val" = x""yes; then
20469   cat >>confdefs.h <<_ACEOF
20470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20471 _ACEOF
20472  break
20473 fi
20474 done
20475
20476 fi
20477
20478 # Some versions of libedit contain strlcpy(); so disregard that library while
20479 # checking for these standard libc functions.
20480 pgac_save_LIBS="$LIBS"
20481 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20497 do
20498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20499 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20500 $as_echo_n "checking for $ac_func... " >&6; }
20501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20502   $as_echo_n "(cached) " >&6
20503 else
20504   cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20512 #define $ac_func innocuous_$ac_func
20513
20514 /* System header to define __stub macros and hopefully few prototypes,
20515     which can conflict with char $ac_func (); below.
20516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20517     <limits.h> exists even on freestanding compilers.  */
20518
20519 #ifdef __STDC__
20520 # include <limits.h>
20521 #else
20522 # include <assert.h>
20523 #endif
20524
20525 #undef $ac_func
20526
20527 /* Override any GCC internal prototype to avoid an error.
20528    Use char because int might match the return type of a GCC
20529    builtin and then its argument prototype would still apply.  */
20530 #ifdef __cplusplus
20531 extern "C"
20532 #endif
20533 char $ac_func ();
20534 /* The GNU C library defines this for functions which it implements
20535     to always fail with ENOSYS.  Some functions are actually named
20536     something starting with __ and the normal name is an alias.  */
20537 #if defined __stub_$ac_func || defined __stub___$ac_func
20538 choke me
20539 #endif
20540
20541 int
20542 main ()
20543 {
20544 return $ac_func ();
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20556 $as_echo "$ac_try_echo") >&5
20557   (eval "$ac_link") 2>conftest.er1
20558   ac_status=$?
20559   grep -v '^ *+' conftest.er1 >conftest.err
20560   rm -f conftest.er1
20561   cat conftest.err >&5
20562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } && {
20564          test -z "$ac_c_werror_flag" ||
20565          test ! -s conftest.err
20566        } && test -s conftest$ac_exeext && {
20567          test "$cross_compiling" = yes ||
20568          $as_test_x conftest$ac_exeext
20569        }; then
20570   eval "$as_ac_var=yes"
20571 else
20572   $as_echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575         eval "$as_ac_var=no"
20576 fi
20577
20578 rm -rf conftest.dSYM
20579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20580       conftest$ac_exeext conftest.$ac_ext
20581 fi
20582 ac_res=`eval 'as_val=${'$as_ac_var'}
20583                  $as_echo "$as_val"'`
20584                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20585 $as_echo "$ac_res" >&6; }
20586 as_val=`eval 'as_val=${'$as_ac_var'}
20587                  $as_echo "$as_val"'`
20588    if test "x$as_val" = x""yes; then
20589   cat >>confdefs.h <<_ACEOF
20590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20591 _ACEOF
20592
20593 else
20594   case " $LIBOBJS " in
20595   *" $ac_func.$ac_objext "* ) ;;
20596   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20597  ;;
20598 esac
20599
20600 fi
20601 done
20602
20603
20604
20605 case $host_os in
20606
20607         # Windows uses a specialised env handler
20608         # and doesn't need a replacement getpeereid because it doesn't use
20609         # Unix sockets.
20610         mingw*)
20611
20612 cat >>confdefs.h <<\_ACEOF
20613 #define HAVE_UNSETENV 1
20614 _ACEOF
20615
20616
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_GETPEEREID 1
20619 _ACEOF
20620
20621                 ac_cv_func_unsetenv=yes
20622                 ac_cv_func_getpeereid=yes;;
20623         *)
20624
20625
20626 for ac_func in unsetenv getpeereid
20627 do
20628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20629 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20630 $as_echo_n "checking for $ac_func... " >&6; }
20631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20632   $as_echo_n "(cached) " >&6
20633 else
20634   cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20642 #define $ac_func innocuous_$ac_func
20643
20644 /* System header to define __stub macros and hopefully few prototypes,
20645     which can conflict with char $ac_func (); below.
20646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20647     <limits.h> exists even on freestanding compilers.  */
20648
20649 #ifdef __STDC__
20650 # include <limits.h>
20651 #else
20652 # include <assert.h>
20653 #endif
20654
20655 #undef $ac_func
20656
20657 /* Override any GCC internal prototype to avoid an error.
20658    Use char because int might match the return type of a GCC
20659    builtin and then its argument prototype would still apply.  */
20660 #ifdef __cplusplus
20661 extern "C"
20662 #endif
20663 char $ac_func ();
20664 /* The GNU C library defines this for functions which it implements
20665     to always fail with ENOSYS.  Some functions are actually named
20666     something starting with __ and the normal name is an alias.  */
20667 #if defined __stub_$ac_func || defined __stub___$ac_func
20668 choke me
20669 #endif
20670
20671 int
20672 main ()
20673 {
20674 return $ac_func ();
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20686 $as_echo "$ac_try_echo") >&5
20687   (eval "$ac_link") 2>conftest.er1
20688   ac_status=$?
20689   grep -v '^ *+' conftest.er1 >conftest.err
20690   rm -f conftest.er1
20691   cat conftest.err >&5
20692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } && {
20694          test -z "$ac_c_werror_flag" ||
20695          test ! -s conftest.err
20696        } && test -s conftest$ac_exeext && {
20697          test "$cross_compiling" = yes ||
20698          $as_test_x conftest$ac_exeext
20699        }; then
20700   eval "$as_ac_var=yes"
20701 else
20702   $as_echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705         eval "$as_ac_var=no"
20706 fi
20707
20708 rm -rf conftest.dSYM
20709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20710       conftest$ac_exeext conftest.$ac_ext
20711 fi
20712 ac_res=`eval 'as_val=${'$as_ac_var'}
20713                  $as_echo "$as_val"'`
20714                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20715 $as_echo "$ac_res" >&6; }
20716 as_val=`eval 'as_val=${'$as_ac_var'}
20717                  $as_echo "$as_val"'`
20718    if test "x$as_val" = x""yes; then
20719   cat >>confdefs.h <<_ACEOF
20720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20721 _ACEOF
20722
20723 else
20724   case " $LIBOBJS " in
20725   *" $ac_func.$ac_objext "* ) ;;
20726   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20727  ;;
20728 esac
20729
20730 fi
20731 done
20732
20733
20734                 ;;
20735 esac
20736
20737
20738 LIBS="$pgac_save_LIBS"
20739
20740 # System's version of getaddrinfo(), if any, may be used only if we found
20741 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20742 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20743 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20744 # because we want to use our own getaddrinfo.c on Windows anyway.)
20745 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20746
20747 for ac_func in getaddrinfo
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 else
20856   case " $LIBOBJS " in
20857   *" getaddrinfo.$ac_objext "* ) ;;
20858   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20859  ;;
20860 esac
20861
20862 fi
20863
20864 # Similarly, use system's getopt_long() only if system provides struct option.
20865 if test x"$ac_cv_type_struct_option" = xyes ; then
20866
20867 for ac_func in getopt_long
20868 do
20869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20870 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20871 $as_echo_n "checking for $ac_func... " >&6; }
20872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20873   $as_echo_n "(cached) " >&6
20874 else
20875   cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20883 #define $ac_func innocuous_$ac_func
20884
20885 /* System header to define __stub macros and hopefully few prototypes,
20886     which can conflict with char $ac_func (); below.
20887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20888     <limits.h> exists even on freestanding compilers.  */
20889
20890 #ifdef __STDC__
20891 # include <limits.h>
20892 #else
20893 # include <assert.h>
20894 #endif
20895
20896 #undef $ac_func
20897
20898 /* Override any GCC internal prototype to avoid an error.
20899    Use char because int might match the return type of a GCC
20900    builtin and then its argument prototype would still apply.  */
20901 #ifdef __cplusplus
20902 extern "C"
20903 #endif
20904 char $ac_func ();
20905 /* The GNU C library defines this for functions which it implements
20906     to always fail with ENOSYS.  Some functions are actually named
20907     something starting with __ and the normal name is an alias.  */
20908 #if defined __stub_$ac_func || defined __stub___$ac_func
20909 choke me
20910 #endif
20911
20912 int
20913 main ()
20914 {
20915 return $ac_func ();
20916   ;
20917   return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (ac_try="$ac_link"
20922 case "(($ac_try" in
20923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924   *) ac_try_echo=$ac_try;;
20925 esac
20926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20927 $as_echo "$ac_try_echo") >&5
20928   (eval "$ac_link") 2>conftest.er1
20929   ac_status=$?
20930   grep -v '^ *+' conftest.er1 >conftest.err
20931   rm -f conftest.er1
20932   cat conftest.err >&5
20933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); } && {
20935          test -z "$ac_c_werror_flag" ||
20936          test ! -s conftest.err
20937        } && test -s conftest$ac_exeext && {
20938          test "$cross_compiling" = yes ||
20939          $as_test_x conftest$ac_exeext
20940        }; then
20941   eval "$as_ac_var=yes"
20942 else
20943   $as_echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946         eval "$as_ac_var=no"
20947 fi
20948
20949 rm -rf conftest.dSYM
20950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20951       conftest$ac_exeext conftest.$ac_ext
20952 fi
20953 ac_res=`eval 'as_val=${'$as_ac_var'}
20954                  $as_echo "$as_val"'`
20955                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20956 $as_echo "$ac_res" >&6; }
20957 as_val=`eval 'as_val=${'$as_ac_var'}
20958                  $as_echo "$as_val"'`
20959    if test "x$as_val" = x""yes; then
20960   cat >>confdefs.h <<_ACEOF
20961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20962 _ACEOF
20963
20964 else
20965   case " $LIBOBJS " in
20966   *" $ac_func.$ac_objext "* ) ;;
20967   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20968  ;;
20969 esac
20970
20971 fi
20972 done
20973
20974
20975 else
20976   case " $LIBOBJS " in
20977   *" getopt_long.$ac_objext "* ) ;;
20978   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20979  ;;
20980 esac
20981
20982 fi
20983
20984 # Solaris' getopt() doesn't do what we want for long options, so always use
20985 # our version on that platform.
20986 if test "$PORTNAME" = "solaris"; then
20987   case " $LIBOBJS " in
20988   *" getopt.$ac_objext "* ) ;;
20989   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20990  ;;
20991 esac
20992
20993 fi
20994
20995 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20996 # so always use our version on Windows.
20997 if test "$PORTNAME" = "win32"; then
20998   case " $LIBOBJS " in
20999   *" getopt.$ac_objext "* ) ;;
21000   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21001  ;;
21002 esac
21003
21004   case " $LIBOBJS " in
21005   *" getopt_long.$ac_objext "* ) ;;
21006   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21007  ;;
21008 esac
21009
21010 fi
21011
21012 # Win32 support
21013 if test "$PORTNAME" = "win32"; then
21014
21015 for ac_func in gettimeofday
21016 do
21017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21018 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21019 $as_echo_n "checking for $ac_func... " >&6; }
21020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21021   $as_echo_n "(cached) " >&6
21022 else
21023   cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21031 #define $ac_func innocuous_$ac_func
21032
21033 /* System header to define __stub macros and hopefully few prototypes,
21034     which can conflict with char $ac_func (); below.
21035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036     <limits.h> exists even on freestanding compilers.  */
21037
21038 #ifdef __STDC__
21039 # include <limits.h>
21040 #else
21041 # include <assert.h>
21042 #endif
21043
21044 #undef $ac_func
21045
21046 /* Override any GCC internal prototype to avoid an error.
21047    Use char because int might match the return type of a GCC
21048    builtin and then its argument prototype would still apply.  */
21049 #ifdef __cplusplus
21050 extern "C"
21051 #endif
21052 char $ac_func ();
21053 /* The GNU C library defines this for functions which it implements
21054     to always fail with ENOSYS.  Some functions are actually named
21055     something starting with __ and the normal name is an alias.  */
21056 #if defined __stub_$ac_func || defined __stub___$ac_func
21057 choke me
21058 #endif
21059
21060 int
21061 main ()
21062 {
21063 return $ac_func ();
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076   (eval "$ac_link") 2>conftest.er1
21077   ac_status=$?
21078   grep -v '^ *+' conftest.er1 >conftest.err
21079   rm -f conftest.er1
21080   cat conftest.err >&5
21081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); } && {
21083          test -z "$ac_c_werror_flag" ||
21084          test ! -s conftest.err
21085        } && test -s conftest$ac_exeext && {
21086          test "$cross_compiling" = yes ||
21087          $as_test_x conftest$ac_exeext
21088        }; then
21089   eval "$as_ac_var=yes"
21090 else
21091   $as_echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         eval "$as_ac_var=no"
21095 fi
21096
21097 rm -rf conftest.dSYM
21098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21099       conftest$ac_exeext conftest.$ac_ext
21100 fi
21101 ac_res=`eval 'as_val=${'$as_ac_var'}
21102                  $as_echo "$as_val"'`
21103                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21104 $as_echo "$ac_res" >&6; }
21105 as_val=`eval 'as_val=${'$as_ac_var'}
21106                  $as_echo "$as_val"'`
21107    if test "x$as_val" = x""yes; then
21108   cat >>confdefs.h <<_ACEOF
21109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21110 _ACEOF
21111
21112 else
21113   case " $LIBOBJS " in
21114   *" $ac_func.$ac_objext "* ) ;;
21115   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21116  ;;
21117 esac
21118
21119 fi
21120 done
21121
21122
21123   case " $LIBOBJS " in
21124   *" kill.$ac_objext "* ) ;;
21125   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21126  ;;
21127 esac
21128
21129   case " $LIBOBJS " in
21130   *" open.$ac_objext "* ) ;;
21131   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21132  ;;
21133 esac
21134
21135   case " $LIBOBJS " in
21136   *" win32env.$ac_objext "* ) ;;
21137   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21138  ;;
21139 esac
21140
21141   case " $LIBOBJS " in
21142   *" win32error.$ac_objext "* ) ;;
21143   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21144  ;;
21145 esac
21146
21147
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_SYMLINK 1
21150 _ACEOF
21151
21152   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21153 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21154 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21155   $as_echo_n "(cached) " >&6
21156 else
21157   ac_cv_type_MINIDUMP_TYPE=no
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
21165 #define WIN32_LEAN_AND_MEAN
21166 #include <windows.h>
21167 #include <string.h>
21168 #include <dbghelp.h>
21169
21170 int
21171 main ()
21172 {
21173 if (sizeof (MINIDUMP_TYPE))
21174        return 0;
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext
21180 if { (ac_try="$ac_compile"
21181 case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21186 $as_echo "$ac_try_echo") >&5
21187   (eval "$ac_compile") 2>conftest.er1
21188   ac_status=$?
21189   grep -v '^ *+' conftest.er1 >conftest.err
21190   rm -f conftest.er1
21191   cat conftest.err >&5
21192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); } && {
21194          test -z "$ac_c_werror_flag" ||
21195          test ! -s conftest.err
21196        } && test -s conftest.$ac_objext; then
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203
21204 #define WIN32_LEAN_AND_MEAN
21205 #include <windows.h>
21206 #include <string.h>
21207 #include <dbghelp.h>
21208
21209 int
21210 main ()
21211 {
21212 if (sizeof ((MINIDUMP_TYPE)))
21213           return 0;
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 rm -f conftest.$ac_objext
21219 if { (ac_try="$ac_compile"
21220 case "(($ac_try" in
21221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222   *) ac_try_echo=$ac_try;;
21223 esac
21224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21225 $as_echo "$ac_try_echo") >&5
21226   (eval "$ac_compile") 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } && {
21233          test -z "$ac_c_werror_flag" ||
21234          test ! -s conftest.err
21235        } && test -s conftest.$ac_objext; then
21236   :
21237 else
21238   $as_echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21240
21241         ac_cv_type_MINIDUMP_TYPE=yes
21242 fi
21243
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 else
21246   $as_echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 fi
21254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21255 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21256 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21257
21258 cat >>confdefs.h <<_ACEOF
21259 #define HAVE_MINIDUMP_TYPE 1
21260 _ACEOF
21261
21262 pgac_minidump_type=yes
21263 else
21264   pgac_minidump_type=no
21265 fi
21266
21267 fi
21268 if test x"$pgac_minidump_type" = x"yes" ; then
21269   have_win32_dbghelp=yes
21270
21271 else
21272   have_win32_dbghelp=no
21273
21274 fi
21275
21276 if test "$with_readline" = yes; then
21277   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21278 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21279 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21280   $as_echo_n "(cached) " >&6
21281 else
21282   cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 #include <stdio.h>
21289 #ifdef HAVE_READLINE_READLINE_H
21290 # include <readline/readline.h>
21291 #elif defined(HAVE_READLINE_H)
21292 # include <readline.h>
21293 #endif
21294
21295 int
21296 main ()
21297 {
21298 rl_completion_append_character = 'x';
21299   ;
21300   return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext conftest$ac_exeext
21304 if { (ac_try="$ac_link"
21305 case "(($ac_try" in
21306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307   *) ac_try_echo=$ac_try;;
21308 esac
21309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21310 $as_echo "$ac_try_echo") >&5
21311   (eval "$ac_link") 2>conftest.er1
21312   ac_status=$?
21313   grep -v '^ *+' conftest.er1 >conftest.err
21314   rm -f conftest.er1
21315   cat conftest.err >&5
21316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); } && {
21318          test -z "$ac_c_werror_flag" ||
21319          test ! -s conftest.err
21320        } && test -s conftest$ac_exeext && {
21321          test "$cross_compiling" = yes ||
21322          $as_test_x conftest$ac_exeext
21323        }; then
21324   pgac_cv_var_rl_completion_append_character=yes
21325 else
21326   $as_echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329         pgac_cv_var_rl_completion_append_character=no
21330 fi
21331
21332 rm -rf conftest.dSYM
21333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21334       conftest$ac_exeext conftest.$ac_ext
21335 fi
21336 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21337 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21338 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21342 _ACEOF
21343
21344 fi
21345
21346
21347 for ac_func in rl_completion_matches rl_filename_completion_function
21348 do
21349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21351 $as_echo_n "checking for $ac_func... " >&6; }
21352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21353   $as_echo_n "(cached) " >&6
21354 else
21355   cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21363 #define $ac_func innocuous_$ac_func
21364
21365 /* System header to define __stub macros and hopefully few prototypes,
21366     which can conflict with char $ac_func (); below.
21367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21368     <limits.h> exists even on freestanding compilers.  */
21369
21370 #ifdef __STDC__
21371 # include <limits.h>
21372 #else
21373 # include <assert.h>
21374 #endif
21375
21376 #undef $ac_func
21377
21378 /* Override any GCC internal prototype to avoid an error.
21379    Use char because int might match the return type of a GCC
21380    builtin and then its argument prototype would still apply.  */
21381 #ifdef __cplusplus
21382 extern "C"
21383 #endif
21384 char $ac_func ();
21385 /* The GNU C library defines this for functions which it implements
21386     to always fail with ENOSYS.  Some functions are actually named
21387     something starting with __ and the normal name is an alias.  */
21388 #if defined __stub_$ac_func || defined __stub___$ac_func
21389 choke me
21390 #endif
21391
21392 int
21393 main ()
21394 {
21395 return $ac_func ();
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 rm -f conftest.$ac_objext conftest$ac_exeext
21401 if { (ac_try="$ac_link"
21402 case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21407 $as_echo "$ac_try_echo") >&5
21408   (eval "$ac_link") 2>conftest.er1
21409   ac_status=$?
21410   grep -v '^ *+' conftest.er1 >conftest.err
21411   rm -f conftest.er1
21412   cat conftest.err >&5
21413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); } && {
21415          test -z "$ac_c_werror_flag" ||
21416          test ! -s conftest.err
21417        } && test -s conftest$ac_exeext && {
21418          test "$cross_compiling" = yes ||
21419          $as_test_x conftest$ac_exeext
21420        }; then
21421   eval "$as_ac_var=yes"
21422 else
21423   $as_echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426         eval "$as_ac_var=no"
21427 fi
21428
21429 rm -rf conftest.dSYM
21430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21431       conftest$ac_exeext conftest.$ac_ext
21432 fi
21433 ac_res=`eval 'as_val=${'$as_ac_var'}
21434                  $as_echo "$as_val"'`
21435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21436 $as_echo "$ac_res" >&6; }
21437 as_val=`eval 'as_val=${'$as_ac_var'}
21438                  $as_echo "$as_val"'`
21439    if test "x$as_val" = x""yes; then
21440   cat >>confdefs.h <<_ACEOF
21441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21442 _ACEOF
21443
21444 fi
21445 done
21446
21447
21448
21449 for ac_func in append_history history_truncate_file
21450 do
21451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21452 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21453 $as_echo_n "checking for $ac_func... " >&6; }
21454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21455   $as_echo_n "(cached) " >&6
21456 else
21457   cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h.  */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h.  */
21463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21465 #define $ac_func innocuous_$ac_func
21466
21467 /* System header to define __stub macros and hopefully few prototypes,
21468     which can conflict with char $ac_func (); below.
21469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21470     <limits.h> exists even on freestanding compilers.  */
21471
21472 #ifdef __STDC__
21473 # include <limits.h>
21474 #else
21475 # include <assert.h>
21476 #endif
21477
21478 #undef $ac_func
21479
21480 /* Override any GCC internal prototype to avoid an error.
21481    Use char because int might match the return type of a GCC
21482    builtin and then its argument prototype would still apply.  */
21483 #ifdef __cplusplus
21484 extern "C"
21485 #endif
21486 char $ac_func ();
21487 /* The GNU C library defines this for functions which it implements
21488     to always fail with ENOSYS.  Some functions are actually named
21489     something starting with __ and the normal name is an alias.  */
21490 #if defined __stub_$ac_func || defined __stub___$ac_func
21491 choke me
21492 #endif
21493
21494 int
21495 main ()
21496 {
21497 return $ac_func ();
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext conftest$ac_exeext
21503 if { (ac_try="$ac_link"
21504 case "(($ac_try" in
21505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506   *) ac_try_echo=$ac_try;;
21507 esac
21508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21509 $as_echo "$ac_try_echo") >&5
21510   (eval "$ac_link") 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } && {
21517          test -z "$ac_c_werror_flag" ||
21518          test ! -s conftest.err
21519        } && test -s conftest$ac_exeext && {
21520          test "$cross_compiling" = yes ||
21521          $as_test_x conftest$ac_exeext
21522        }; then
21523   eval "$as_ac_var=yes"
21524 else
21525   $as_echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528         eval "$as_ac_var=no"
21529 fi
21530
21531 rm -rf conftest.dSYM
21532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21533       conftest$ac_exeext conftest.$ac_ext
21534 fi
21535 ac_res=`eval 'as_val=${'$as_ac_var'}
21536                  $as_echo "$as_val"'`
21537                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21538 $as_echo "$ac_res" >&6; }
21539 as_val=`eval 'as_val=${'$as_ac_var'}
21540                  $as_echo "$as_val"'`
21541    if test "x$as_val" = x""yes; then
21542   cat >>confdefs.h <<_ACEOF
21543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21544 _ACEOF
21545
21546 fi
21547 done
21548
21549 fi
21550
21551
21552 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21553 $as_echo_n "checking for sigsetjmp... " >&6; }
21554 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21555   $as_echo_n "(cached) " >&6
21556 else
21557   cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563 #include <setjmp.h>
21564 int
21565 main ()
21566 {
21567 sigjmp_buf x; sigsetjmp(x, 1);
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21579 $as_echo "$ac_try_echo") >&5
21580   (eval "$ac_link") 2>conftest.er1
21581   ac_status=$?
21582   grep -v '^ *+' conftest.er1 >conftest.err
21583   rm -f conftest.er1
21584   cat conftest.err >&5
21585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } && {
21587          test -z "$ac_c_werror_flag" ||
21588          test ! -s conftest.err
21589        } && test -s conftest$ac_exeext && {
21590          test "$cross_compiling" = yes ||
21591          $as_test_x conftest$ac_exeext
21592        }; then
21593   pgac_cv_func_sigsetjmp=yes
21594 else
21595   $as_echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598         pgac_cv_func_sigsetjmp=no
21599 fi
21600
21601 rm -rf conftest.dSYM
21602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21603       conftest$ac_exeext conftest.$ac_ext
21604 fi
21605 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21606 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21607 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21608
21609 cat >>confdefs.h <<\_ACEOF
21610 #define HAVE_SIGSETJMP 1
21611 _ACEOF
21612
21613 fi
21614
21615 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21616 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21617 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21618   $as_echo_n "(cached) " >&6
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 #include <signal.h>
21627 /* NetBSD declares sys_siglist in unistd.h.  */
21628 #ifdef HAVE_UNISTD_H
21629 # include <unistd.h>
21630 #endif
21631
21632
21633 int
21634 main ()
21635 {
21636 #ifndef sys_siglist
21637   (void) sys_siglist;
21638 #endif
21639
21640   ;
21641   return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext
21645 if { (ac_try="$ac_compile"
21646 case "(($ac_try" in
21647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648   *) ac_try_echo=$ac_try;;
21649 esac
21650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21651 $as_echo "$ac_try_echo") >&5
21652   (eval "$ac_compile") 2>conftest.er1
21653   ac_status=$?
21654   grep -v '^ *+' conftest.er1 >conftest.err
21655   rm -f conftest.er1
21656   cat conftest.err >&5
21657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); } && {
21659          test -z "$ac_c_werror_flag" ||
21660          test ! -s conftest.err
21661        } && test -s conftest.$ac_objext; then
21662   ac_cv_have_decl_sys_siglist=yes
21663 else
21664   $as_echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21666
21667         ac_cv_have_decl_sys_siglist=no
21668 fi
21669
21670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21671 fi
21672 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21673 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21674 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21675
21676 cat >>confdefs.h <<_ACEOF
21677 #define HAVE_DECL_SYS_SIGLIST 1
21678 _ACEOF
21679
21680
21681 else
21682   cat >>confdefs.h <<_ACEOF
21683 #define HAVE_DECL_SYS_SIGLIST 0
21684 _ACEOF
21685
21686
21687 fi
21688
21689
21690
21691
21692 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21693 $as_echo_n "checking for syslog... " >&6; }
21694 if test "${ac_cv_func_syslog+set}" = set; then
21695   $as_echo_n "(cached) " >&6
21696 else
21697   cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21705 #define syslog innocuous_syslog
21706
21707 /* System header to define __stub macros and hopefully few prototypes,
21708     which can conflict with char syslog (); below.
21709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21710     <limits.h> exists even on freestanding compilers.  */
21711
21712 #ifdef __STDC__
21713 # include <limits.h>
21714 #else
21715 # include <assert.h>
21716 #endif
21717
21718 #undef syslog
21719
21720 /* Override any GCC internal prototype to avoid an error.
21721    Use char because int might match the return type of a GCC
21722    builtin and then its argument prototype would still apply.  */
21723 #ifdef __cplusplus
21724 extern "C"
21725 #endif
21726 char syslog ();
21727 /* The GNU C library defines this for functions which it implements
21728     to always fail with ENOSYS.  Some functions are actually named
21729     something starting with __ and the normal name is an alias.  */
21730 #if defined __stub_syslog || defined __stub___syslog
21731 choke me
21732 #endif
21733
21734 int
21735 main ()
21736 {
21737 return syslog ();
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21749 $as_echo "$ac_try_echo") >&5
21750   (eval "$ac_link") 2>conftest.er1
21751   ac_status=$?
21752   grep -v '^ *+' conftest.er1 >conftest.err
21753   rm -f conftest.er1
21754   cat conftest.err >&5
21755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } && {
21757          test -z "$ac_c_werror_flag" ||
21758          test ! -s conftest.err
21759        } && test -s conftest$ac_exeext && {
21760          test "$cross_compiling" = yes ||
21761          $as_test_x conftest$ac_exeext
21762        }; then
21763   ac_cv_func_syslog=yes
21764 else
21765   $as_echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768         ac_cv_func_syslog=no
21769 fi
21770
21771 rm -rf conftest.dSYM
21772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21773       conftest$ac_exeext conftest.$ac_ext
21774 fi
21775 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21776 $as_echo "$ac_cv_func_syslog" >&6; }
21777 if test "x$ac_cv_func_syslog" = x""yes; then
21778   if test "${ac_cv_header_syslog_h+set}" = set; then
21779   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21780 $as_echo_n "checking for syslog.h... " >&6; }
21781 if test "${ac_cv_header_syslog_h+set}" = set; then
21782   $as_echo_n "(cached) " >&6
21783 fi
21784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21785 $as_echo "$ac_cv_header_syslog_h" >&6; }
21786 else
21787   # Is the header compilable?
21788 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21789 $as_echo_n "checking syslog.h usability... " >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 $ac_includes_default
21797 #include <syslog.h>
21798 _ACEOF
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803   *) ac_try_echo=$ac_try;;
21804 esac
21805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21806 $as_echo "$ac_try_echo") >&5
21807   (eval "$ac_compile") 2>conftest.er1
21808   ac_status=$?
21809   grep -v '^ *+' conftest.er1 >conftest.err
21810   rm -f conftest.er1
21811   cat conftest.err >&5
21812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } && {
21814          test -z "$ac_c_werror_flag" ||
21815          test ! -s conftest.err
21816        } && test -s conftest.$ac_objext; then
21817   ac_header_compiler=yes
21818 else
21819   $as_echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822         ac_header_compiler=no
21823 fi
21824
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21827 $as_echo "$ac_header_compiler" >&6; }
21828
21829 # Is the header present?
21830 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21831 $as_echo_n "checking syslog.h presence... " >&6; }
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h.  */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h.  */
21838 #include <syslog.h>
21839 _ACEOF
21840 if { (ac_try="$ac_cpp conftest.$ac_ext"
21841 case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21846 $as_echo "$ac_try_echo") >&5
21847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21848   ac_status=$?
21849   grep -v '^ *+' conftest.er1 >conftest.err
21850   rm -f conftest.er1
21851   cat conftest.err >&5
21852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); } >/dev/null && {
21854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21855          test ! -s conftest.err
21856        }; then
21857   ac_header_preproc=yes
21858 else
21859   $as_echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862   ac_header_preproc=no
21863 fi
21864
21865 rm -f conftest.err conftest.$ac_ext
21866 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 $as_echo "$ac_header_preproc" >&6; }
21868
21869 # So?  What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21871   yes:no: )
21872     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21873 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21875 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21876     ac_header_preproc=yes
21877     ;;
21878   no:yes:* )
21879     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21880 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21881     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21882 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21883     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21884 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21885     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21886 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21887     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21888 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21889     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21890 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21891     ( cat <<\_ASBOX
21892 ## ---------------------------------------- ##
21893 ## Report this to pgsql-bugs@postgresql.org ##
21894 ## ---------------------------------------- ##
21895 _ASBOX
21896      ) | sed "s/^/$as_me: WARNING:     /" >&2
21897     ;;
21898 esac
21899 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21900 $as_echo_n "checking for syslog.h... " >&6; }
21901 if test "${ac_cv_header_syslog_h+set}" = set; then
21902   $as_echo_n "(cached) " >&6
21903 else
21904   ac_cv_header_syslog_h=$ac_header_preproc
21905 fi
21906 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21907 $as_echo "$ac_cv_header_syslog_h" >&6; }
21908
21909 fi
21910 if test "x$ac_cv_header_syslog_h" = x""yes; then
21911
21912 cat >>confdefs.h <<\_ACEOF
21913 #define HAVE_SYSLOG 1
21914 _ACEOF
21915
21916 fi
21917
21918
21919 fi
21920
21921
21922 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21923 $as_echo_n "checking for opterr... " >&6; }
21924 if test "${pgac_cv_var_int_opterr+set}" = set; then
21925   $as_echo_n "(cached) " >&6
21926 else
21927   cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 #include <unistd.h>
21934 int
21935 main ()
21936 {
21937 extern int opterr; opterr = 1;
21938   ;
21939   return 0;
21940 }
21941 _ACEOF
21942 rm -f conftest.$ac_objext conftest$ac_exeext
21943 if { (ac_try="$ac_link"
21944 case "(($ac_try" in
21945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946   *) ac_try_echo=$ac_try;;
21947 esac
21948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21949 $as_echo "$ac_try_echo") >&5
21950   (eval "$ac_link") 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } && {
21957          test -z "$ac_c_werror_flag" ||
21958          test ! -s conftest.err
21959        } && test -s conftest$ac_exeext && {
21960          test "$cross_compiling" = yes ||
21961          $as_test_x conftest$ac_exeext
21962        }; then
21963   pgac_cv_var_int_opterr=yes
21964 else
21965   $as_echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21967
21968         pgac_cv_var_int_opterr=no
21969 fi
21970
21971 rm -rf conftest.dSYM
21972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21973       conftest$ac_exeext conftest.$ac_ext
21974 fi
21975 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21976 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21977 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21978
21979 cat >>confdefs.h <<\_ACEOF
21980 #define HAVE_INT_OPTERR 1
21981 _ACEOF
21982
21983 fi
21984
21985 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21986 $as_echo_n "checking for optreset... " >&6; }
21987 if test "${pgac_cv_var_int_optreset+set}" = set; then
21988   $as_echo_n "(cached) " >&6
21989 else
21990   cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h.  */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h.  */
21996 #include <unistd.h>
21997 int
21998 main ()
21999 {
22000 extern int optreset; optreset = 1;
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   pgac_cv_var_int_optreset=yes
22027 else
22028   $as_echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031         pgac_cv_var_int_optreset=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 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22039 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22040 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22041
22042 cat >>confdefs.h <<\_ACEOF
22043 #define HAVE_INT_OPTRESET 1
22044 _ACEOF
22045
22046 fi
22047
22048
22049
22050 for ac_func in strtoll strtoq
22051 do
22052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22054 $as_echo_n "checking for $ac_func... " >&6; }
22055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22056   $as_echo_n "(cached) " >&6
22057 else
22058   cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h.  */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h.  */
22064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22066 #define $ac_func innocuous_$ac_func
22067
22068 /* System header to define __stub macros and hopefully few prototypes,
22069     which can conflict with char $ac_func (); below.
22070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22071     <limits.h> exists even on freestanding compilers.  */
22072
22073 #ifdef __STDC__
22074 # include <limits.h>
22075 #else
22076 # include <assert.h>
22077 #endif
22078
22079 #undef $ac_func
22080
22081 /* Override any GCC internal prototype to avoid an error.
22082    Use char because int might match the return type of a GCC
22083    builtin and then its argument prototype would still apply.  */
22084 #ifdef __cplusplus
22085 extern "C"
22086 #endif
22087 char $ac_func ();
22088 /* The GNU C library defines this for functions which it implements
22089     to always fail with ENOSYS.  Some functions are actually named
22090     something starting with __ and the normal name is an alias.  */
22091 #if defined __stub_$ac_func || defined __stub___$ac_func
22092 choke me
22093 #endif
22094
22095 int
22096 main ()
22097 {
22098 return $ac_func ();
22099   ;
22100   return 0;
22101 }
22102 _ACEOF
22103 rm -f conftest.$ac_objext conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107   *) ac_try_echo=$ac_try;;
22108 esac
22109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22110 $as_echo "$ac_try_echo") >&5
22111   (eval "$ac_link") 2>conftest.er1
22112   ac_status=$?
22113   grep -v '^ *+' conftest.er1 >conftest.err
22114   rm -f conftest.er1
22115   cat conftest.err >&5
22116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); } && {
22118          test -z "$ac_c_werror_flag" ||
22119          test ! -s conftest.err
22120        } && test -s conftest$ac_exeext && {
22121          test "$cross_compiling" = yes ||
22122          $as_test_x conftest$ac_exeext
22123        }; then
22124   eval "$as_ac_var=yes"
22125 else
22126   $as_echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22128
22129         eval "$as_ac_var=no"
22130 fi
22131
22132 rm -rf conftest.dSYM
22133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22134       conftest$ac_exeext conftest.$ac_ext
22135 fi
22136 ac_res=`eval 'as_val=${'$as_ac_var'}
22137                  $as_echo "$as_val"'`
22138                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22139 $as_echo "$ac_res" >&6; }
22140 as_val=`eval 'as_val=${'$as_ac_var'}
22141                  $as_echo "$as_val"'`
22142    if test "x$as_val" = x""yes; then
22143   cat >>confdefs.h <<_ACEOF
22144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22145 _ACEOF
22146  break
22147 fi
22148 done
22149
22150
22151
22152 for ac_func in strtoull strtouq
22153 do
22154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22156 $as_echo_n "checking for $ac_func... " >&6; }
22157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22158   $as_echo_n "(cached) " >&6
22159 else
22160   cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22168 #define $ac_func innocuous_$ac_func
22169
22170 /* System header to define __stub macros and hopefully few prototypes,
22171     which can conflict with char $ac_func (); below.
22172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22173     <limits.h> exists even on freestanding compilers.  */
22174
22175 #ifdef __STDC__
22176 # include <limits.h>
22177 #else
22178 # include <assert.h>
22179 #endif
22180
22181 #undef $ac_func
22182
22183 /* Override any GCC internal prototype to avoid an error.
22184    Use char because int might match the return type of a GCC
22185    builtin and then its argument prototype would still apply.  */
22186 #ifdef __cplusplus
22187 extern "C"
22188 #endif
22189 char $ac_func ();
22190 /* The GNU C library defines this for functions which it implements
22191     to always fail with ENOSYS.  Some functions are actually named
22192     something starting with __ and the normal name is an alias.  */
22193 #if defined __stub_$ac_func || defined __stub___$ac_func
22194 choke me
22195 #endif
22196
22197 int
22198 main ()
22199 {
22200 return $ac_func ();
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 rm -f conftest.$ac_objext conftest$ac_exeext
22206 if { (ac_try="$ac_link"
22207 case "(($ac_try" in
22208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209   *) ac_try_echo=$ac_try;;
22210 esac
22211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22212 $as_echo "$ac_try_echo") >&5
22213   (eval "$ac_link") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } && {
22220          test -z "$ac_c_werror_flag" ||
22221          test ! -s conftest.err
22222        } && test -s conftest$ac_exeext && {
22223          test "$cross_compiling" = yes ||
22224          $as_test_x conftest$ac_exeext
22225        }; then
22226   eval "$as_ac_var=yes"
22227 else
22228   $as_echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22230
22231         eval "$as_ac_var=no"
22232 fi
22233
22234 rm -rf conftest.dSYM
22235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22236       conftest$ac_exeext conftest.$ac_ext
22237 fi
22238 ac_res=`eval 'as_val=${'$as_ac_var'}
22239                  $as_echo "$as_val"'`
22240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22241 $as_echo "$ac_res" >&6; }
22242 as_val=`eval 'as_val=${'$as_ac_var'}
22243                  $as_echo "$as_val"'`
22244    if test "x$as_val" = x""yes; then
22245   cat >>confdefs.h <<_ACEOF
22246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22247 _ACEOF
22248  break
22249 fi
22250 done
22251
22252
22253 # Check for one of atexit() or on_exit()
22254
22255 for ac_func in atexit
22256 do
22257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22258 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22259 $as_echo_n "checking for $ac_func... " >&6; }
22260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22261   $as_echo_n "(cached) " >&6
22262 else
22263   cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h.  */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h.  */
22269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22271 #define $ac_func innocuous_$ac_func
22272
22273 /* System header to define __stub macros and hopefully few prototypes,
22274     which can conflict with char $ac_func (); below.
22275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22276     <limits.h> exists even on freestanding compilers.  */
22277
22278 #ifdef __STDC__
22279 # include <limits.h>
22280 #else
22281 # include <assert.h>
22282 #endif
22283
22284 #undef $ac_func
22285
22286 /* Override any GCC internal prototype to avoid an error.
22287    Use char because int might match the return type of a GCC
22288    builtin and then its argument prototype would still apply.  */
22289 #ifdef __cplusplus
22290 extern "C"
22291 #endif
22292 char $ac_func ();
22293 /* The GNU C library defines this for functions which it implements
22294     to always fail with ENOSYS.  Some functions are actually named
22295     something starting with __ and the normal name is an alias.  */
22296 #if defined __stub_$ac_func || defined __stub___$ac_func
22297 choke me
22298 #endif
22299
22300 int
22301 main ()
22302 {
22303 return $ac_func ();
22304   ;
22305   return 0;
22306 }
22307 _ACEOF
22308 rm -f conftest.$ac_objext conftest$ac_exeext
22309 if { (ac_try="$ac_link"
22310 case "(($ac_try" in
22311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312   *) ac_try_echo=$ac_try;;
22313 esac
22314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22315 $as_echo "$ac_try_echo") >&5
22316   (eval "$ac_link") 2>conftest.er1
22317   ac_status=$?
22318   grep -v '^ *+' conftest.er1 >conftest.err
22319   rm -f conftest.er1
22320   cat conftest.err >&5
22321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } && {
22323          test -z "$ac_c_werror_flag" ||
22324          test ! -s conftest.err
22325        } && test -s conftest$ac_exeext && {
22326          test "$cross_compiling" = yes ||
22327          $as_test_x conftest$ac_exeext
22328        }; then
22329   eval "$as_ac_var=yes"
22330 else
22331   $as_echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22333
22334         eval "$as_ac_var=no"
22335 fi
22336
22337 rm -rf conftest.dSYM
22338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22339       conftest$ac_exeext conftest.$ac_ext
22340 fi
22341 ac_res=`eval 'as_val=${'$as_ac_var'}
22342                  $as_echo "$as_val"'`
22343                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22344 $as_echo "$ac_res" >&6; }
22345 as_val=`eval 'as_val=${'$as_ac_var'}
22346                  $as_echo "$as_val"'`
22347    if test "x$as_val" = x""yes; then
22348   cat >>confdefs.h <<_ACEOF
22349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22350 _ACEOF
22351
22352 else
22353
22354 for ac_func in on_exit
22355 do
22356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22357 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22358 $as_echo_n "checking for $ac_func... " >&6; }
22359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22360   $as_echo_n "(cached) " >&6
22361 else
22362   cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22370 #define $ac_func innocuous_$ac_func
22371
22372 /* System header to define __stub macros and hopefully few prototypes,
22373     which can conflict with char $ac_func (); below.
22374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22375     <limits.h> exists even on freestanding compilers.  */
22376
22377 #ifdef __STDC__
22378 # include <limits.h>
22379 #else
22380 # include <assert.h>
22381 #endif
22382
22383 #undef $ac_func
22384
22385 /* Override any GCC internal prototype to avoid an error.
22386    Use char because int might match the return type of a GCC
22387    builtin and then its argument prototype would still apply.  */
22388 #ifdef __cplusplus
22389 extern "C"
22390 #endif
22391 char $ac_func ();
22392 /* The GNU C library defines this for functions which it implements
22393     to always fail with ENOSYS.  Some functions are actually named
22394     something starting with __ and the normal name is an alias.  */
22395 #if defined __stub_$ac_func || defined __stub___$ac_func
22396 choke me
22397 #endif
22398
22399 int
22400 main ()
22401 {
22402 return $ac_func ();
22403   ;
22404   return 0;
22405 }
22406 _ACEOF
22407 rm -f conftest.$ac_objext conftest$ac_exeext
22408 if { (ac_try="$ac_link"
22409 case "(($ac_try" in
22410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411   *) ac_try_echo=$ac_try;;
22412 esac
22413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22414 $as_echo "$ac_try_echo") >&5
22415   (eval "$ac_link") 2>conftest.er1
22416   ac_status=$?
22417   grep -v '^ *+' conftest.er1 >conftest.err
22418   rm -f conftest.er1
22419   cat conftest.err >&5
22420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); } && {
22422          test -z "$ac_c_werror_flag" ||
22423          test ! -s conftest.err
22424        } && test -s conftest$ac_exeext && {
22425          test "$cross_compiling" = yes ||
22426          $as_test_x conftest$ac_exeext
22427        }; then
22428   eval "$as_ac_var=yes"
22429 else
22430   $as_echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22432
22433         eval "$as_ac_var=no"
22434 fi
22435
22436 rm -rf conftest.dSYM
22437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22438       conftest$ac_exeext conftest.$ac_ext
22439 fi
22440 ac_res=`eval 'as_val=${'$as_ac_var'}
22441                  $as_echo "$as_val"'`
22442                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22443 $as_echo "$ac_res" >&6; }
22444 as_val=`eval 'as_val=${'$as_ac_var'}
22445                  $as_echo "$as_val"'`
22446    if test "x$as_val" = x""yes; then
22447   cat >>confdefs.h <<_ACEOF
22448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22449 _ACEOF
22450
22451 else
22452   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22453 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22454    { (exit 1); exit 1; }; }
22455 fi
22456 done
22457
22458 fi
22459 done
22460
22461
22462
22463 #
22464 # Pthreads
22465 #
22466 # For each platform, we need to know about any special compile and link
22467 # libraries, and whether the normal C function names are thread-safe.
22468 # See the comment at the top of src/port/thread.c for more information.
22469 # WIN32 doesn't need the pthread tests;  it always uses threads
22470 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22471
22472
22473
22474 ac_ext=c
22475 ac_cpp='$CPP $CPPFLAGS'
22476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22479
22480 acx_pthread_ok=no
22481
22482 # We used to check for pthread.h first, but this fails if pthread.h
22483 # requires special compiler flags (e.g. on True64 or Sequent).
22484 # It gets checked for in the link test anyway.
22485
22486 # First of all, check if the user has set any of the PTHREAD_LIBS,
22487 # etcetera environment variables, and if threads linking works using
22488 # them:
22489 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22490         save_CFLAGS="$CFLAGS"
22491         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22492         save_LIBS="$LIBS"
22493         LIBS="$PTHREAD_LIBS $LIBS"
22494         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22495 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22496         cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h.  */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h.  */
22502
22503 /* Override any GCC internal prototype to avoid an error.
22504    Use char because int might match the return type of a GCC
22505    builtin and then its argument prototype would still apply.  */
22506 #ifdef __cplusplus
22507 extern "C"
22508 #endif
22509 char pthread_join ();
22510 int
22511 main ()
22512 {
22513 return pthread_join ();
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 rm -f conftest.$ac_objext conftest$ac_exeext
22519 if { (ac_try="$ac_link"
22520 case "(($ac_try" in
22521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522   *) ac_try_echo=$ac_try;;
22523 esac
22524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22525 $as_echo "$ac_try_echo") >&5
22526   (eval "$ac_link") 2>conftest.er1
22527   ac_status=$?
22528   grep -v '^ *+' conftest.er1 >conftest.err
22529   rm -f conftest.er1
22530   cat conftest.err >&5
22531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); } && {
22533          test -z "$ac_c_werror_flag" ||
22534          test ! -s conftest.err
22535        } && test -s conftest$ac_exeext && {
22536          test "$cross_compiling" = yes ||
22537          $as_test_x conftest$ac_exeext
22538        }; then
22539   acx_pthread_ok=yes
22540 else
22541   $as_echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544
22545 fi
22546
22547 rm -rf conftest.dSYM
22548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22549       conftest$ac_exeext conftest.$ac_ext
22550         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22551 $as_echo "$acx_pthread_ok" >&6; }
22552         if test x"$acx_pthread_ok" = xno; then
22553                 PTHREAD_LIBS=""
22554                 PTHREAD_CFLAGS=""
22555         fi
22556         LIBS="$save_LIBS"
22557         CFLAGS="$save_CFLAGS"
22558 fi
22559
22560 # We must check for the threads library under a number of different
22561 # names; the ordering is very important because some systems
22562 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22563 # libraries is broken (non-POSIX).
22564
22565 # Create a list of thread flags to try.  Items starting with a "-" are
22566 # C compiler flags, and other items are library names, except for "none"
22567 # which indicates that we try without any flags at all, and "pthread-config"
22568 # which is a program returning the flags for the Pth emulation library.
22569
22570 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22571
22572 # The ordering *is* (sometimes) important.  Some notes on the
22573 # individual items follow:
22574
22575 # pthreads: AIX (must check this before -lpthread)
22576 # none: in case threads are in libc; should be tried before -Kthread and
22577 #       other compiler flags to prevent continual compiler warnings
22578 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22579 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22580 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22581 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22582 # -pthreads: Solaris/gcc
22583 # -mthreads: Mingw32/gcc, Lynx/gcc
22584 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22585 #      doesn't hurt to check since this sometimes defines pthreads too;
22586 #      also defines -D_REENTRANT)
22587 # pthread: Linux, etcetera
22588 # --thread-safe: KAI C++
22589 # pthread-config: use pthread-config program (for GNU Pth library)
22590
22591 case "${host_cpu}-${host_os}" in
22592         *solaris*)
22593
22594         # On Solaris (at least, for some versions), libc contains stubbed
22595         # (non-functional) versions of the pthreads routines, so link-based
22596         # tests will erroneously succeed.  (We need to link with -pthread or
22597         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22598         # a function called by this macro, so we could check for that, but
22599         # who knows whether they'll stub that too in a future libc.)  So,
22600         # we'll just look for -pthreads and -lpthread first:
22601
22602         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22603         ;;
22604 esac
22605
22606 if test x"$acx_pthread_ok" = xno; then
22607 for flag in $acx_pthread_flags; do
22608
22609         tryPTHREAD_CFLAGS=""
22610         tryPTHREAD_LIBS=""
22611         case $flag in
22612                 none)
22613                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22614 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22615                 ;;
22616
22617                 -*)
22618                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22619 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22620                 tryPTHREAD_CFLAGS="$flag"
22621                 ;;
22622
22623                 pthread-config)
22624                 # skip this if we already have flags defined, for PostgreSQL
22625                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22626                 # Extract the first word of "pthread-config", so it can be a program name with args.
22627 set dummy pthread-config; ac_word=$2
22628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22629 $as_echo_n "checking for $ac_word... " >&6; }
22630 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22631   $as_echo_n "(cached) " >&6
22632 else
22633   if test -n "$acx_pthread_config"; then
22634   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22635 else
22636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22637 for as_dir in $PATH
22638 do
22639   IFS=$as_save_IFS
22640   test -z "$as_dir" && as_dir=.
22641   for ac_exec_ext in '' $ac_executable_extensions; do
22642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22643     ac_cv_prog_acx_pthread_config="yes"
22644     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22645     break 2
22646   fi
22647 done
22648 done
22649 IFS=$as_save_IFS
22650
22651   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22652 fi
22653 fi
22654 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22655 if test -n "$acx_pthread_config"; then
22656   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22657 $as_echo "$acx_pthread_config" >&6; }
22658 else
22659   { $as_echo "$as_me:$LINENO: result: no" >&5
22660 $as_echo "no" >&6; }
22661 fi
22662
22663
22664                 if test x"$acx_pthread_config" = xno; then continue; fi
22665                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22666                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22667                 ;;
22668
22669                 *)
22670                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22671 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22672                 tryPTHREAD_LIBS="-l$flag"
22673                 ;;
22674         esac
22675
22676         save_LIBS="$LIBS"
22677         save_CFLAGS="$CFLAGS"
22678         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22679         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22680
22681         # Check for various functions.  We must include pthread.h,
22682         # since some functions may be macros.  (On the Sequent, we
22683         # need a special flag -Kthread to make this header compile.)
22684         # We check for pthread_join because it is in -lpthread on IRIX
22685         # while pthread_create is in libc.  We check for pthread_attr_init
22686         # due to DEC craziness with -lpthreads.  We check for
22687         # pthread_cleanup_push because it is one of the few pthread
22688         # functions on Solaris that doesn't have a non-functional libc stub.
22689         # We try pthread_create on general principles.
22690         cat >conftest.$ac_ext <<_ACEOF
22691 /* confdefs.h.  */
22692 _ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h.  */
22696 #include <pthread.h>
22697 int
22698 main ()
22699 {
22700 pthread_t th; pthread_join(th, 0);
22701                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22702                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22703   ;
22704   return 0;
22705 }
22706 _ACEOF
22707 rm -f conftest.$ac_objext conftest$ac_exeext
22708 if { (ac_try="$ac_link"
22709 case "(($ac_try" in
22710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711   *) ac_try_echo=$ac_try;;
22712 esac
22713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22714 $as_echo "$ac_try_echo") >&5
22715   (eval "$ac_link") 2>conftest.er1
22716   ac_status=$?
22717   grep -v '^ *+' conftest.er1 >conftest.err
22718   rm -f conftest.er1
22719   cat conftest.err >&5
22720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); } && {
22722          test -z "$ac_c_werror_flag" ||
22723          test ! -s conftest.err
22724        } && test -s conftest$ac_exeext && {
22725          test "$cross_compiling" = yes ||
22726          $as_test_x conftest$ac_exeext
22727        }; then
22728   acx_pthread_ok=yes
22729 else
22730   $as_echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733         acx_pthread_ok=no
22734 fi
22735
22736 rm -rf conftest.dSYM
22737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22738       conftest$ac_exeext conftest.$ac_ext
22739
22740         if test "x$acx_pthread_ok" = xyes; then
22741             # Don't use options that are ignored by the compiler.
22742             # We find them by checking stderror.
22743             cat >conftest.$ac_ext <<_ACEOF
22744 int
22745 main (int argc, char **argv)
22746 {
22747   (void) argc;
22748   (void) argv;
22749   return 0;
22750 }
22751 _ACEOF
22752             rm -f conftest.$ac_objext conftest$ac_exeext
22753             # Check both linking and compiling, because they might tolerate different options.
22754             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22755                 # we continue with more flags because Linux needs -lpthread
22756                 # for libpq builds on PostgreSQL.  The test above only
22757                 # tests for building binaries, not shared libraries.
22758                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22759                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22760             else   acx_pthread_ok=no
22761             fi
22762         fi
22763
22764         LIBS="$save_LIBS"
22765         CFLAGS="$save_CFLAGS"
22766
22767         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22768 $as_echo "$acx_pthread_ok" >&6; }
22769 done
22770 fi
22771
22772 # Various other checks:
22773 if test "x$acx_pthread_ok" = xyes; then
22774         save_LIBS="$LIBS"
22775         LIBS="$PTHREAD_LIBS $LIBS"
22776         save_CFLAGS="$CFLAGS"
22777         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22778
22779         # Detect AIX lossage: threads are created detached by default
22780         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22781         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22782 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22783         cat >conftest.$ac_ext <<_ACEOF
22784 /* confdefs.h.  */
22785 _ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h.  */
22789 #include <pthread.h>
22790 int
22791 main ()
22792 {
22793 int attr=PTHREAD_CREATE_JOINABLE;
22794   ;
22795   return 0;
22796 }
22797 _ACEOF
22798 rm -f conftest.$ac_objext conftest$ac_exeext
22799 if { (ac_try="$ac_link"
22800 case "(($ac_try" in
22801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802   *) ac_try_echo=$ac_try;;
22803 esac
22804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22805 $as_echo "$ac_try_echo") >&5
22806   (eval "$ac_link") 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } && {
22813          test -z "$ac_c_werror_flag" ||
22814          test ! -s conftest.err
22815        } && test -s conftest$ac_exeext && {
22816          test "$cross_compiling" = yes ||
22817          $as_test_x conftest$ac_exeext
22818        }; then
22819   ok=PTHREAD_CREATE_JOINABLE
22820 else
22821   $as_echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824         ok=unknown
22825 fi
22826
22827 rm -rf conftest.dSYM
22828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22829       conftest$ac_exeext conftest.$ac_ext
22830         if test x"$ok" = xunknown; then
22831                 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837 #include <pthread.h>
22838 int
22839 main ()
22840 {
22841 int attr=PTHREAD_CREATE_UNDETACHED;
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22853 $as_echo "$ac_try_echo") >&5
22854   (eval "$ac_link") 2>conftest.er1
22855   ac_status=$?
22856   grep -v '^ *+' conftest.er1 >conftest.err
22857   rm -f conftest.er1
22858   cat conftest.err >&5
22859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); } && {
22861          test -z "$ac_c_werror_flag" ||
22862          test ! -s conftest.err
22863        } && test -s conftest$ac_exeext && {
22864          test "$cross_compiling" = yes ||
22865          $as_test_x conftest$ac_exeext
22866        }; then
22867   ok=PTHREAD_CREATE_UNDETACHED
22868 else
22869   $as_echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         ok=unknown
22873 fi
22874
22875 rm -rf conftest.dSYM
22876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22877       conftest$ac_exeext conftest.$ac_ext
22878         fi
22879         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22880
22881 cat >>confdefs.h <<\_ACEOF
22882 #define PTHREAD_CREATE_JOINABLE $ok
22883 _ACEOF
22884
22885         fi
22886         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22887 $as_echo "${ok}" >&6; }
22888         if test x"$ok" = xunknown; then
22889                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22890 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22891         fi
22892
22893         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22894 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22895         flag=no
22896 # We always add these in PostgreSQL
22897 #       case "${host_cpu}-${host_os}" in
22898 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22899 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22900 #       esac
22901         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22902 $as_echo "${flag}" >&6; }
22903         if test "x$flag" != xno; then
22904                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22905         fi
22906
22907         LIBS="$save_LIBS"
22908         CFLAGS="$save_CFLAGS"
22909
22910 # Supporting cc_r would require a special CC in all places that
22911 # use libpq, and that is ugly, so we don't do it.  Users can still
22912 # define their compiler as cc_r to do thread builds of everything.
22913         # More AIX lossage: must compile with cc_r
22914         # Extract the first word of "cc_r", so it can be a program name with args.
22915 set dummy cc_r; ac_word=$2
22916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22917 $as_echo_n "checking for $ac_word... " >&6; }
22918 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22919   $as_echo_n "(cached) " >&6
22920 else
22921   if test -n "$PTHREAD_CC"; then
22922   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22923 else
22924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22925 for as_dir in $PATH
22926 do
22927   IFS=$as_save_IFS
22928   test -z "$as_dir" && as_dir=.
22929   for ac_exec_ext in '' $ac_executable_extensions; do
22930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22931     ac_cv_prog_PTHREAD_CC="cc_r"
22932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22933     break 2
22934   fi
22935 done
22936 done
22937 IFS=$as_save_IFS
22938
22939   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22940 fi
22941 fi
22942 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22943 if test -n "$PTHREAD_CC"; then
22944   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22945 $as_echo "$PTHREAD_CC" >&6; }
22946 else
22947   { $as_echo "$as_me:$LINENO: result: no" >&5
22948 $as_echo "no" >&6; }
22949 fi
22950
22951
22952 else
22953         PTHREAD_CC="$CC"
22954 fi
22955
22956
22957
22958
22959
22960 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22961 if test x"$acx_pthread_ok" = xyes; then
22962
22963 cat >>confdefs.h <<\_ACEOF
22964 #define HAVE_PTHREAD 1
22965 _ACEOF
22966
22967         :
22968 else
22969         acx_pthread_ok=no
22970
22971 fi
22972 ac_ext=c
22973 ac_cpp='$CPP $CPPFLAGS'
22974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22977
22978         # set thread flags
22979
22980 # Some platforms use these, so just define them.  They can't hurt if they
22981 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22982 # enables 5-arg getpwuid_r, among other things.
22983 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22984
22985
22986 # At this point, we don't want to muck with the compiler name for threading.
22987 # Let's see who fails, perhaps AIX.  2004-04-23
22988 if test "$PTHREAD_CC" != "$CC"; then
22989 { { $as_echo "$as_me:$LINENO: error:
22990 PostgreSQL does not support platforms that require a special compiler
22991 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
22992 $as_echo "$as_me: error:
22993 PostgreSQL does not support platforms that require a special compiler
22994 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
22995    { (exit 1); exit 1; }; }
22996 fi
22997
22998 # Check for *_r functions
22999 _CFLAGS="$CFLAGS"
23000 _LIBS="$LIBS"
23001 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23002 LIBS="$LIBS $PTHREAD_LIBS"
23003
23004 if test "$PORTNAME" != "win32"; then
23005 if test "${ac_cv_header_pthread_h+set}" = set; then
23006   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23007 $as_echo_n "checking for pthread.h... " >&6; }
23008 if test "${ac_cv_header_pthread_h+set}" = set; then
23009   $as_echo_n "(cached) " >&6
23010 fi
23011 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23012 $as_echo "$ac_cv_header_pthread_h" >&6; }
23013 else
23014   # Is the header compilable?
23015 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23016 $as_echo_n "checking pthread.h usability... " >&6; }
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h.  */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h.  */
23023 $ac_includes_default
23024 #include <pthread.h>
23025 _ACEOF
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030   *) ac_try_echo=$ac_try;;
23031 esac
23032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23033 $as_echo "$ac_try_echo") >&5
23034   (eval "$ac_compile") 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } && {
23041          test -z "$ac_c_werror_flag" ||
23042          test ! -s conftest.err
23043        } && test -s conftest.$ac_objext; then
23044   ac_header_compiler=yes
23045 else
23046   $as_echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049         ac_header_compiler=no
23050 fi
23051
23052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23054 $as_echo "$ac_header_compiler" >&6; }
23055
23056 # Is the header present?
23057 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23058 $as_echo_n "checking pthread.h presence... " >&6; }
23059 cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h.  */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h.  */
23065 #include <pthread.h>
23066 _ACEOF
23067 if { (ac_try="$ac_cpp conftest.$ac_ext"
23068 case "(($ac_try" in
23069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070   *) ac_try_echo=$ac_try;;
23071 esac
23072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23073 $as_echo "$ac_try_echo") >&5
23074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23075   ac_status=$?
23076   grep -v '^ *+' conftest.er1 >conftest.err
23077   rm -f conftest.er1
23078   cat conftest.err >&5
23079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); } >/dev/null && {
23081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23082          test ! -s conftest.err
23083        }; then
23084   ac_header_preproc=yes
23085 else
23086   $as_echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089   ac_header_preproc=no
23090 fi
23091
23092 rm -f conftest.err conftest.$ac_ext
23093 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23094 $as_echo "$ac_header_preproc" >&6; }
23095
23096 # So?  What about this header?
23097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23098   yes:no: )
23099     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23100 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23101     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23102 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23103     ac_header_preproc=yes
23104     ;;
23105   no:yes:* )
23106     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23107 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23108     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23109 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23110     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23111 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23112     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23113 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23114     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23115 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23116     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23117 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23118     ( cat <<\_ASBOX
23119 ## ---------------------------------------- ##
23120 ## Report this to pgsql-bugs@postgresql.org ##
23121 ## ---------------------------------------- ##
23122 _ASBOX
23123      ) | sed "s/^/$as_me: WARNING:     /" >&2
23124     ;;
23125 esac
23126 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23127 $as_echo_n "checking for pthread.h... " >&6; }
23128 if test "${ac_cv_header_pthread_h+set}" = set; then
23129   $as_echo_n "(cached) " >&6
23130 else
23131   ac_cv_header_pthread_h=$ac_header_preproc
23132 fi
23133 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23134 $as_echo "$ac_cv_header_pthread_h" >&6; }
23135
23136 fi
23137 if test "x$ac_cv_header_pthread_h" = x""yes; then
23138   :
23139 else
23140   { { $as_echo "$as_me:$LINENO: error:
23141 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23142 $as_echo "$as_me: error:
23143 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23144    { (exit 1); exit 1; }; }
23145 fi
23146
23147
23148 fi
23149
23150
23151
23152
23153 for ac_func in strerror_r getpwuid_r gethostbyname_r
23154 do
23155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23156 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23157 $as_echo_n "checking for $ac_func... " >&6; }
23158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23159   $as_echo_n "(cached) " >&6
23160 else
23161   cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23169 #define $ac_func innocuous_$ac_func
23170
23171 /* System header to define __stub macros and hopefully few prototypes,
23172     which can conflict with char $ac_func (); below.
23173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23174     <limits.h> exists even on freestanding compilers.  */
23175
23176 #ifdef __STDC__
23177 # include <limits.h>
23178 #else
23179 # include <assert.h>
23180 #endif
23181
23182 #undef $ac_func
23183
23184 /* Override any GCC internal prototype to avoid an error.
23185    Use char because int might match the return type of a GCC
23186    builtin and then its argument prototype would still apply.  */
23187 #ifdef __cplusplus
23188 extern "C"
23189 #endif
23190 char $ac_func ();
23191 /* The GNU C library defines this for functions which it implements
23192     to always fail with ENOSYS.  Some functions are actually named
23193     something starting with __ and the normal name is an alias.  */
23194 #if defined __stub_$ac_func || defined __stub___$ac_func
23195 choke me
23196 #endif
23197
23198 int
23199 main ()
23200 {
23201 return $ac_func ();
23202   ;
23203   return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210   *) ac_try_echo=$ac_try;;
23211 esac
23212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23213 $as_echo "$ac_try_echo") >&5
23214   (eval "$ac_link") 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } && {
23221          test -z "$ac_c_werror_flag" ||
23222          test ! -s conftest.err
23223        } && test -s conftest$ac_exeext && {
23224          test "$cross_compiling" = yes ||
23225          $as_test_x conftest$ac_exeext
23226        }; then
23227   eval "$as_ac_var=yes"
23228 else
23229   $as_echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232         eval "$as_ac_var=no"
23233 fi
23234
23235 rm -rf conftest.dSYM
23236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23237       conftest$ac_exeext conftest.$ac_ext
23238 fi
23239 ac_res=`eval 'as_val=${'$as_ac_var'}
23240                  $as_echo "$as_val"'`
23241                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23242 $as_echo "$ac_res" >&6; }
23243 as_val=`eval 'as_val=${'$as_ac_var'}
23244                  $as_echo "$as_val"'`
23245    if test "x$as_val" = x""yes; then
23246   cat >>confdefs.h <<_ACEOF
23247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23248 _ACEOF
23249
23250 fi
23251 done
23252
23253
23254 # Do test here with the proper thread flags
23255 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23256 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23257 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23258   $as_echo_n "(cached) " >&6
23259 else
23260   cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266 #include <sys/types.h>
23267 #include <pwd.h>
23268 int
23269 main ()
23270 {
23271 uid_t uid;
23272 struct passwd *space;
23273 char *buf;
23274 size_t bufsize;
23275 struct passwd **result;
23276 getpwuid_r(uid, space, buf, bufsize, result);
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext
23282 if { (ac_try="$ac_compile"
23283 case "(($ac_try" in
23284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285   *) ac_try_echo=$ac_try;;
23286 esac
23287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23288 $as_echo "$ac_try_echo") >&5
23289   (eval "$ac_compile") 2>conftest.er1
23290   ac_status=$?
23291   grep -v '^ *+' conftest.er1 >conftest.err
23292   rm -f conftest.er1
23293   cat conftest.err >&5
23294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); } && {
23296          test -z "$ac_c_werror_flag" ||
23297          test ! -s conftest.err
23298        } && test -s conftest.$ac_objext; then
23299   pgac_cv_func_getpwuid_r_5arg=yes
23300 else
23301   $as_echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304         pgac_cv_func_getpwuid_r_5arg=no
23305 fi
23306
23307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308 fi
23309 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23310 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23311 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23312
23313 cat >>confdefs.h <<\_ACEOF
23314 #define GETPWUID_R_5ARG /**/
23315 _ACEOF
23316
23317 fi
23318
23319 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23320 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23321 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23322   $as_echo_n "(cached) " >&6
23323 else
23324   cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h.  */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h.  */
23330 #include <string.h>
23331 int
23332 main ()
23333 {
23334 #ifndef _AIX
23335 int strerror_r(int, char *, size_t);
23336 #else
23337 /* Older AIX has 'int' for the third argument so we don't test the args. */
23338 int strerror_r();
23339 #endif
23340   ;
23341   return 0;
23342 }
23343 _ACEOF
23344 rm -f conftest.$ac_objext
23345 if { (ac_try="$ac_compile"
23346 case "(($ac_try" in
23347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348   *) ac_try_echo=$ac_try;;
23349 esac
23350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23351 $as_echo "$ac_try_echo") >&5
23352   (eval "$ac_compile") 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } && {
23359          test -z "$ac_c_werror_flag" ||
23360          test ! -s conftest.err
23361        } && test -s conftest.$ac_objext; then
23362   pgac_cv_func_strerror_r_int=yes
23363 else
23364   $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367         pgac_cv_func_strerror_r_int=no
23368 fi
23369
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 fi
23372 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23373 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23374 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23375
23376 cat >>confdefs.h <<\_ACEOF
23377 #define STRERROR_R_INT /**/
23378 _ACEOF
23379
23380 fi
23381
23382
23383 CFLAGS="$_CFLAGS"
23384 LIBS="$_LIBS"
23385
23386 else
23387 # do not use values from template file
23388 PTHREAD_CFLAGS=
23389 PTHREAD_LIBS=
23390 fi
23391
23392
23393
23394
23395
23396 # We can test for libldap_r only after we know PTHREAD_LIBS
23397 if test "$with_ldap" = yes ; then
23398   _LIBS="$LIBS"
23399   if test "$PORTNAME" != "win32"; then
23400
23401 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23402 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23403 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23404   $as_echo_n "(cached) " >&6
23405 else
23406   ac_check_lib_save_LIBS=$LIBS
23407 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23408 cat >conftest.$ac_ext <<_ACEOF
23409 /* confdefs.h.  */
23410 _ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h.  */
23414
23415 /* Override any GCC internal prototype to avoid an error.
23416    Use char because int might match the return type of a GCC
23417    builtin and then its argument prototype would still apply.  */
23418 #ifdef __cplusplus
23419 extern "C"
23420 #endif
23421 char ldap_bind ();
23422 int
23423 main ()
23424 {
23425 return ldap_bind ();
23426   ;
23427   return 0;
23428 }
23429 _ACEOF
23430 rm -f conftest.$ac_objext conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434   *) ac_try_echo=$ac_try;;
23435 esac
23436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23437 $as_echo "$ac_try_echo") >&5
23438   (eval "$ac_link") 2>conftest.er1
23439   ac_status=$?
23440   grep -v '^ *+' conftest.er1 >conftest.err
23441   rm -f conftest.er1
23442   cat conftest.err >&5
23443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); } && {
23445          test -z "$ac_c_werror_flag" ||
23446          test ! -s conftest.err
23447        } && test -s conftest$ac_exeext && {
23448          test "$cross_compiling" = yes ||
23449          $as_test_x conftest$ac_exeext
23450        }; then
23451   ac_cv_lib_ldap_ldap_bind=yes
23452 else
23453   $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456         ac_cv_lib_ldap_ldap_bind=no
23457 fi
23458
23459 rm -rf conftest.dSYM
23460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23461       conftest$ac_exeext conftest.$ac_ext
23462 LIBS=$ac_check_lib_save_LIBS
23463 fi
23464 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23465 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23466 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23467   cat >>confdefs.h <<_ACEOF
23468 #define HAVE_LIBLDAP 1
23469 _ACEOF
23470
23471   LIBS="-lldap $LIBS"
23472
23473 else
23474   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23475 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23476    { (exit 1); exit 1; }; }
23477 fi
23478
23479     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23480     if test "$enable_thread_safety" = yes; then
23481       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23482
23483 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23484 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23485 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23486   $as_echo_n "(cached) " >&6
23487 else
23488   ac_check_lib_save_LIBS=$LIBS
23489 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496
23497 /* Override any GCC internal prototype to avoid an error.
23498    Use char because int might match the return type of a GCC
23499    builtin and then its argument prototype would still apply.  */
23500 #ifdef __cplusplus
23501 extern "C"
23502 #endif
23503 char ldap_simple_bind ();
23504 int
23505 main ()
23506 {
23507 return ldap_simple_bind ();
23508   ;
23509   return 0;
23510 }
23511 _ACEOF
23512 rm -f conftest.$ac_objext conftest$ac_exeext
23513 if { (ac_try="$ac_link"
23514 case "(($ac_try" in
23515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516   *) ac_try_echo=$ac_try;;
23517 esac
23518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23519 $as_echo "$ac_try_echo") >&5
23520   (eval "$ac_link") 2>conftest.er1
23521   ac_status=$?
23522   grep -v '^ *+' conftest.er1 >conftest.err
23523   rm -f conftest.er1
23524   cat conftest.err >&5
23525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526   (exit $ac_status); } && {
23527          test -z "$ac_c_werror_flag" ||
23528          test ! -s conftest.err
23529        } && test -s conftest$ac_exeext && {
23530          test "$cross_compiling" = yes ||
23531          $as_test_x conftest$ac_exeext
23532        }; then
23533   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23534 else
23535   $as_echo "$as_me: failed program was:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23537
23538         ac_cv_lib_ldap_r_ldap_simple_bind=no
23539 fi
23540
23541 rm -rf conftest.dSYM
23542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23543       conftest$ac_exeext conftest.$ac_ext
23544 LIBS=$ac_check_lib_save_LIBS
23545 fi
23546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23547 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23548 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23549   cat >>confdefs.h <<_ACEOF
23550 #define HAVE_LIBLDAP_R 1
23551 _ACEOF
23552
23553   LIBS="-lldap_r $LIBS"
23554
23555 else
23556   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23557 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23558    { (exit 1); exit 1; }; }
23559 fi
23560
23561       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23562     else
23563       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23564     fi
23565   else
23566
23567 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23568 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23569 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23570   $as_echo_n "(cached) " >&6
23571 else
23572   ac_check_lib_save_LIBS=$LIBS
23573 LIBS="-lwldap32  $LIBS"
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580
23581 /* Override any GCC internal prototype to avoid an error.
23582    Use char because int might match the return type of a GCC
23583    builtin and then its argument prototype would still apply.  */
23584 #ifdef __cplusplus
23585 extern "C"
23586 #endif
23587 char ldap_bind ();
23588 int
23589 main ()
23590 {
23591 return ldap_bind ();
23592   ;
23593   return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext conftest$ac_exeext
23597 if { (ac_try="$ac_link"
23598 case "(($ac_try" in
23599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600   *) ac_try_echo=$ac_try;;
23601 esac
23602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23603 $as_echo "$ac_try_echo") >&5
23604   (eval "$ac_link") 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } && {
23611          test -z "$ac_c_werror_flag" ||
23612          test ! -s conftest.err
23613        } && test -s conftest$ac_exeext && {
23614          test "$cross_compiling" = yes ||
23615          $as_test_x conftest$ac_exeext
23616        }; then
23617   ac_cv_lib_wldap32_ldap_bind=yes
23618 else
23619   $as_echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622         ac_cv_lib_wldap32_ldap_bind=no
23623 fi
23624
23625 rm -rf conftest.dSYM
23626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23627       conftest$ac_exeext conftest.$ac_ext
23628 LIBS=$ac_check_lib_save_LIBS
23629 fi
23630 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23631 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23632 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23633   cat >>confdefs.h <<_ACEOF
23634 #define HAVE_LIBWLDAP32 1
23635 _ACEOF
23636
23637   LIBS="-lwldap32 $LIBS"
23638
23639 else
23640   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23641 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23642    { (exit 1); exit 1; }; }
23643 fi
23644
23645     LDAP_LIBS_FE="-lwldap32"
23646     LDAP_LIBS_BE="-lwldap32"
23647   fi
23648   LIBS="$_LIBS"
23649 fi
23650
23651
23652
23653
23654 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23655 # (which could be a macro referring to a function, if threading is enabled)
23656 if test "$with_libxml" = yes ; then
23657   { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23658 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23659 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23660   $as_echo_n "(cached) " >&6
23661 else
23662   cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668 #include <libxml/globals.h>
23669                 void *globptr;
23670 int
23671 main ()
23672 {
23673 globptr = xmlStructuredErrorContext
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682   *) ac_try_echo=$ac_try;;
23683 esac
23684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23685 $as_echo "$ac_try_echo") >&5
23686   (eval "$ac_link") 2>conftest.er1
23687   ac_status=$?
23688   grep -v '^ *+' conftest.er1 >conftest.err
23689   rm -f conftest.er1
23690   cat conftest.err >&5
23691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); } && {
23693          test -z "$ac_c_werror_flag" ||
23694          test ! -s conftest.err
23695        } && test -s conftest$ac_exeext && {
23696          test "$cross_compiling" = yes ||
23697          $as_test_x conftest$ac_exeext
23698        }; then
23699   pgac_cv_libxml_structerrctx=yes
23700 else
23701   $as_echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704         pgac_cv_libxml_structerrctx=no
23705 fi
23706
23707 rm -rf conftest.dSYM
23708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23709       conftest$ac_exeext conftest.$ac_ext
23710 fi
23711 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23712 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23713   if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23714
23715 cat >>confdefs.h <<\_ACEOF
23716 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23717 _ACEOF
23718
23719   fi
23720 fi
23721
23722
23723 # This test makes sure that run tests work at all.  Sometimes a shared
23724 # library is found by the linker, but the runtime linker can't find it.
23725 # This check should come after all modifications of compiler or linker
23726 # variables, and before any other run tests.
23727 { $as_echo "$as_me:$LINENO: checking test program" >&5
23728 $as_echo_n "checking test program... " >&6; }
23729 if test "$cross_compiling" = yes; then
23730   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23731 $as_echo "cross-compiling" >&6; }
23732 else
23733   cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h.  */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h.  */
23739 int main() { return 0; }
23740 _ACEOF
23741 rm -f conftest$ac_exeext
23742 if { (ac_try="$ac_link"
23743 case "(($ac_try" in
23744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745   *) ac_try_echo=$ac_try;;
23746 esac
23747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23748 $as_echo "$ac_try_echo") >&5
23749   (eval "$ac_link") 2>&5
23750   ac_status=$?
23751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23753   { (case "(($ac_try" in
23754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755   *) ac_try_echo=$ac_try;;
23756 esac
23757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23758 $as_echo "$ac_try_echo") >&5
23759   (eval "$ac_try") 2>&5
23760   ac_status=$?
23761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); }; }; then
23763   { $as_echo "$as_me:$LINENO: result: ok" >&5
23764 $as_echo "ok" >&6; }
23765 else
23766   $as_echo "$as_me: program exited with status $ac_status" >&5
23767 $as_echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770 ( exit $ac_status )
23771 { $as_echo "$as_me:$LINENO: result: failed" >&5
23772 $as_echo "failed" >&6; }
23773 { { $as_echo "$as_me:$LINENO: error:
23774 Could not execute a simple test program.  This may be a problem
23775 related to locating shared libraries.  Check the file 'config.log'
23776 for the exact reason." >&5
23777 $as_echo "$as_me: error:
23778 Could not execute a simple test program.  This may be a problem
23779 related to locating shared libraries.  Check the file 'config.log'
23780 for the exact reason." >&2;}
23781    { (exit 1); exit 1; }; }
23782 fi
23783 rm -rf conftest.dSYM
23784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23785 fi
23786
23787
23788
23789 # --------------------
23790 # Run tests below here
23791 # --------------------
23792
23793 # Force use of our snprintf if system's doesn't do arg control
23794 # See comment above at snprintf test for details.
23795 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23796   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23797 $as_echo_n "checking whether printf supports argument control... " >&6; }
23798 if test "${pgac_cv_printf_arg_control+set}" = set; then
23799   $as_echo_n "(cached) " >&6
23800 else
23801   if test "$cross_compiling" = yes; then
23802   pgac_cv_printf_arg_control=cross
23803 else
23804   cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810 #include <stdio.h>
23811 #include <string.h>
23812
23813 int main()
23814 {
23815   char buf[100];
23816
23817   /* can it swap arguments? */
23818   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23819   if (strcmp(buf, "4 3") != 0)
23820     return 1;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest$ac_exeext
23825 if { (ac_try="$ac_link"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832   (eval "$ac_link") 2>&5
23833   ac_status=$?
23834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23836   { (case "(($ac_try" in
23837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838   *) ac_try_echo=$ac_try;;
23839 esac
23840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23841 $as_echo "$ac_try_echo") >&5
23842   (eval "$ac_try") 2>&5
23843   ac_status=$?
23844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845   (exit $ac_status); }; }; then
23846   pgac_cv_printf_arg_control=yes
23847 else
23848   $as_echo "$as_me: program exited with status $ac_status" >&5
23849 $as_echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 ( exit $ac_status )
23853 pgac_cv_printf_arg_control=no
23854 fi
23855 rm -rf conftest.dSYM
23856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23857 fi
23858
23859
23860
23861 fi
23862 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23863 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23864
23865   if test $pgac_cv_printf_arg_control != yes ; then
23866     pgac_need_repl_snprintf=yes
23867   fi
23868 fi
23869
23870
23871
23872
23873 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23874 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23875 if test "${pgac_cv_type_long_int_64+set}" = set; then
23876   $as_echo_n "(cached) " >&6
23877 else
23878   if test "$cross_compiling" = yes; then
23879   # If cross-compiling, check the size reported by the compiler and
23880 # trust that the arithmetic works.
23881 cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887
23888 int
23889 main ()
23890 {
23891 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23892 test_array [0] = 0
23893
23894   ;
23895   return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902   *) ac_try_echo=$ac_try;;
23903 esac
23904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906   (eval "$ac_compile") 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } && {
23913          test -z "$ac_c_werror_flag" ||
23914          test ! -s conftest.err
23915        } && test -s conftest.$ac_objext; then
23916   pgac_cv_type_long_int_64=yes
23917 else
23918   $as_echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23920
23921         pgac_cv_type_long_int_64=no
23922 fi
23923
23924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23925 else
23926   cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h.  */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h.  */
23932 typedef long int ac_int64;
23933
23934 /*
23935  * These are globals to discourage the compiler from folding all the
23936  * arithmetic tests down to compile-time constants.
23937  */
23938 ac_int64 a = 20000001;
23939 ac_int64 b = 40000005;
23940
23941 int does_int64_work()
23942 {
23943   ac_int64 c,d;
23944
23945   if (sizeof(ac_int64) != 8)
23946     return 0;                   /* definitely not the right size */
23947
23948   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23949   c = a * b;
23950   d = (c + b) / b;
23951   if (d != a+1)
23952     return 0;
23953   return 1;
23954 }
23955 main() {
23956   exit(! does_int64_work());
23957 }
23958 _ACEOF
23959 rm -f conftest$ac_exeext
23960 if { (ac_try="$ac_link"
23961 case "(($ac_try" in
23962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963   *) ac_try_echo=$ac_try;;
23964 esac
23965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23966 $as_echo "$ac_try_echo") >&5
23967   (eval "$ac_link") 2>&5
23968   ac_status=$?
23969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23971   { (case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23976 $as_echo "$ac_try_echo") >&5
23977   (eval "$ac_try") 2>&5
23978   ac_status=$?
23979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; }; then
23981   pgac_cv_type_long_int_64=yes
23982 else
23983   $as_echo "$as_me: program exited with status $ac_status" >&5
23984 $as_echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23986
23987 ( exit $ac_status )
23988 pgac_cv_type_long_int_64=no
23989 fi
23990 rm -rf conftest.dSYM
23991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23992 fi
23993
23994
23995 fi
23996 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23997 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23998
23999 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24000 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24001
24002 cat >>confdefs.h <<\_ACEOF
24003 #define HAVE_LONG_INT_64 1
24004 _ACEOF
24005
24006 fi
24007
24008
24009 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24010   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24011 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24012 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24013   $as_echo_n "(cached) " >&6
24014 else
24015   if test "$cross_compiling" = yes; then
24016   # If cross-compiling, check the size reported by the compiler and
24017 # trust that the arithmetic works.
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024
24025 int
24026 main ()
24027 {
24028 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24029 test_array [0] = 0
24030
24031   ;
24032   return 0;
24033 }
24034 _ACEOF
24035 rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039   *) ac_try_echo=$ac_try;;
24040 esac
24041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24042 $as_echo "$ac_try_echo") >&5
24043   (eval "$ac_compile") 2>conftest.er1
24044   ac_status=$?
24045   grep -v '^ *+' conftest.er1 >conftest.err
24046   rm -f conftest.er1
24047   cat conftest.err >&5
24048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); } && {
24050          test -z "$ac_c_werror_flag" ||
24051          test ! -s conftest.err
24052        } && test -s conftest.$ac_objext; then
24053   pgac_cv_type_long_long_int_64=yes
24054 else
24055   $as_echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058         pgac_cv_type_long_long_int_64=no
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 else
24063   cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h.  */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h.  */
24069 typedef long long int ac_int64;
24070
24071 /*
24072  * These are globals to discourage the compiler from folding all the
24073  * arithmetic tests down to compile-time constants.
24074  */
24075 ac_int64 a = 20000001;
24076 ac_int64 b = 40000005;
24077
24078 int does_int64_work()
24079 {
24080   ac_int64 c,d;
24081
24082   if (sizeof(ac_int64) != 8)
24083     return 0;                   /* definitely not the right size */
24084
24085   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24086   c = a * b;
24087   d = (c + b) / b;
24088   if (d != a+1)
24089     return 0;
24090   return 1;
24091 }
24092 main() {
24093   exit(! does_int64_work());
24094 }
24095 _ACEOF
24096 rm -f conftest$ac_exeext
24097 if { (ac_try="$ac_link"
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_link") 2>&5
24105   ac_status=$?
24106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24108   { (case "(($ac_try" in
24109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110   *) ac_try_echo=$ac_try;;
24111 esac
24112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24113 $as_echo "$ac_try_echo") >&5
24114   (eval "$ac_try") 2>&5
24115   ac_status=$?
24116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); }; }; then
24118   pgac_cv_type_long_long_int_64=yes
24119 else
24120   $as_echo "$as_me: program exited with status $ac_status" >&5
24121 $as_echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24123
24124 ( exit $ac_status )
24125 pgac_cv_type_long_long_int_64=no
24126 fi
24127 rm -rf conftest.dSYM
24128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24129 fi
24130
24131
24132 fi
24133 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24134 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24135
24136 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24137 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24138
24139 cat >>confdefs.h <<\_ACEOF
24140 #define HAVE_LONG_LONG_INT_64 1
24141 _ACEOF
24142
24143 fi
24144
24145   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24146     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24147 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24148    { (exit 1); exit 1; }; }
24149   fi
24150 fi
24151
24152
24153
24154 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24155   cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h.  */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h.  */
24161
24162 #define INT64CONST(x)  x##LL
24163 long long int foo = INT64CONST(0x1234567890123456);
24164
24165 int
24166 main ()
24167 {
24168
24169   ;
24170   return 0;
24171 }
24172 _ACEOF
24173 rm -f conftest.$ac_objext
24174 if { (ac_try="$ac_compile"
24175 case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24180 $as_echo "$ac_try_echo") >&5
24181   (eval "$ac_compile") 2>conftest.er1
24182   ac_status=$?
24183   grep -v '^ *+' conftest.er1 >conftest.err
24184   rm -f conftest.er1
24185   cat conftest.err >&5
24186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } && {
24188          test -z "$ac_c_werror_flag" ||
24189          test ! -s conftest.err
24190        } && test -s conftest.$ac_objext; then
24191
24192 cat >>confdefs.h <<\_ACEOF
24193 #define HAVE_LL_CONSTANTS 1
24194 _ACEOF
24195
24196 else
24197   $as_echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24199
24200
24201 fi
24202
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 fi
24205
24206
24207 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24208 # we found we need to use "long long int", better check.  We cope with
24209 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24210 # work, fall back to our own snprintf emulation (which we know uses %lld).
24211
24212 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24213   if test $pgac_need_repl_snprintf = no; then
24214     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24215 $as_echo_n "checking snprintf format for long long int... " >&6; }
24216 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24217   $as_echo_n "(cached) " >&6
24218 else
24219   for pgac_format in '%lld' '%qd' '%I64d'; do
24220 if test "$cross_compiling" = yes; then
24221   pgac_cv_snprintf_long_long_int_format=cross; break
24222 else
24223   cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h.  */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h.  */
24229 #include <stdio.h>
24230 typedef long long int ac_int64;
24231 #define INT64_FORMAT "$pgac_format"
24232
24233 ac_int64 a = 20000001;
24234 ac_int64 b = 40000005;
24235
24236 int does_int64_snprintf_work()
24237 {
24238   ac_int64 c;
24239   char buf[100];
24240
24241   if (sizeof(ac_int64) != 8)
24242     return 0;                   /* doesn't look like the right size */
24243
24244   c = a * b;
24245   snprintf(buf, 100, INT64_FORMAT, c);
24246   if (strcmp(buf, "800000140000005") != 0)
24247     return 0;                   /* either multiply or snprintf is busted */
24248   return 1;
24249 }
24250 main() {
24251   exit(! does_int64_snprintf_work());
24252 }
24253 _ACEOF
24254 rm -f conftest$ac_exeext
24255 if { (ac_try="$ac_link"
24256 case "(($ac_try" in
24257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258   *) ac_try_echo=$ac_try;;
24259 esac
24260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24261 $as_echo "$ac_try_echo") >&5
24262   (eval "$ac_link") 2>&5
24263   ac_status=$?
24264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24266   { (case "(($ac_try" in
24267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268   *) ac_try_echo=$ac_try;;
24269 esac
24270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24271 $as_echo "$ac_try_echo") >&5
24272   (eval "$ac_try") 2>&5
24273   ac_status=$?
24274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; }; then
24276   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24277 else
24278   $as_echo "$as_me: program exited with status $ac_status" >&5
24279 $as_echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 fi
24283 rm -rf conftest.dSYM
24284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24285 fi
24286
24287
24288 done
24289 fi
24290
24291 LONG_LONG_INT_FORMAT=''
24292
24293 case $pgac_cv_snprintf_long_long_int_format in
24294   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24295 $as_echo "cannot test (not on host machine)" >&6; };;
24296   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24297 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24298          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24299   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24300 $as_echo "none" >&6; };;
24301 esac
24302     if test "$LONG_LONG_INT_FORMAT" = ""; then
24303       # Force usage of our own snprintf, since system snprintf is broken
24304       pgac_need_repl_snprintf=yes
24305       LONG_LONG_INT_FORMAT='%lld'
24306     fi
24307   else
24308     # Here if we previously decided we needed to use our own snprintf
24309     LONG_LONG_INT_FORMAT='%lld'
24310   fi
24311   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24312   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24313   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24314 else
24315   # Here if we are not using 'long long int' at all
24316   INT64_FORMAT='"%ld"'
24317   UINT64_FORMAT='"%lu"'
24318 fi
24319
24320
24321 cat >>confdefs.h <<_ACEOF
24322 #define INT64_FORMAT $INT64_FORMAT
24323 _ACEOF
24324
24325
24326
24327 cat >>confdefs.h <<_ACEOF
24328 #define UINT64_FORMAT $UINT64_FORMAT
24329 _ACEOF
24330
24331
24332 # Now we have checked all the reasons to replace snprintf
24333 if test $pgac_need_repl_snprintf = yes; then
24334
24335 cat >>confdefs.h <<\_ACEOF
24336 #define USE_REPL_SNPRINTF 1
24337 _ACEOF
24338
24339   case " $LIBOBJS " in
24340   *" snprintf.$ac_objext "* ) ;;
24341   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24342  ;;
24343 esac
24344
24345 fi
24346
24347 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24348 # The cast to long int works around a bug in the HP C Compiler
24349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24351 # This bug is HP SR number 8606223364.
24352 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24353 $as_echo_n "checking size of void *... " >&6; }
24354 if test "${ac_cv_sizeof_void_p+set}" = set; then
24355   $as_echo_n "(cached) " >&6
24356 else
24357   if test "$cross_compiling" = yes; then
24358   # Depending upon the size, compute the lo and hi bounds.
24359 cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 $ac_includes_default
24366 int
24367 main ()
24368 {
24369 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24370 test_array [0] = 0
24371
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 rm -f conftest.$ac_objext
24377 if { (ac_try="$ac_compile"
24378 case "(($ac_try" in
24379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380   *) ac_try_echo=$ac_try;;
24381 esac
24382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24383 $as_echo "$ac_try_echo") >&5
24384   (eval "$ac_compile") 2>conftest.er1
24385   ac_status=$?
24386   grep -v '^ *+' conftest.er1 >conftest.err
24387   rm -f conftest.er1
24388   cat conftest.err >&5
24389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); } && {
24391          test -z "$ac_c_werror_flag" ||
24392          test ! -s conftest.err
24393        } && test -s conftest.$ac_objext; then
24394   ac_lo=0 ac_mid=0
24395   while :; do
24396     cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h.  */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h.  */
24402 $ac_includes_default
24403 int
24404 main ()
24405 {
24406 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24407 test_array [0] = 0
24408
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 rm -f conftest.$ac_objext
24414 if { (ac_try="$ac_compile"
24415 case "(($ac_try" in
24416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417   *) ac_try_echo=$ac_try;;
24418 esac
24419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24420 $as_echo "$ac_try_echo") >&5
24421   (eval "$ac_compile") 2>conftest.er1
24422   ac_status=$?
24423   grep -v '^ *+' conftest.er1 >conftest.err
24424   rm -f conftest.er1
24425   cat conftest.err >&5
24426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); } && {
24428          test -z "$ac_c_werror_flag" ||
24429          test ! -s conftest.err
24430        } && test -s conftest.$ac_objext; then
24431   ac_hi=$ac_mid; break
24432 else
24433   $as_echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24435
24436         ac_lo=`expr $ac_mid + 1`
24437                         if test $ac_lo -le $ac_mid; then
24438                           ac_lo= ac_hi=
24439                           break
24440                         fi
24441                         ac_mid=`expr 2 '*' $ac_mid + 1`
24442 fi
24443
24444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24445   done
24446 else
24447   $as_echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24449
24450         cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 $ac_includes_default
24457 int
24458 main ()
24459 {
24460 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24461 test_array [0] = 0
24462
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext
24468 if { (ac_try="$ac_compile"
24469 case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24474 $as_echo "$ac_try_echo") >&5
24475   (eval "$ac_compile") 2>conftest.er1
24476   ac_status=$?
24477   grep -v '^ *+' conftest.er1 >conftest.err
24478   rm -f conftest.er1
24479   cat conftest.err >&5
24480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); } && {
24482          test -z "$ac_c_werror_flag" ||
24483          test ! -s conftest.err
24484        } && test -s conftest.$ac_objext; then
24485   ac_hi=-1 ac_mid=-1
24486   while :; do
24487     cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h.  */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h.  */
24493 $ac_includes_default
24494 int
24495 main ()
24496 {
24497 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24498 test_array [0] = 0
24499
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24511 $as_echo "$ac_try_echo") >&5
24512   (eval "$ac_compile") 2>conftest.er1
24513   ac_status=$?
24514   grep -v '^ *+' conftest.er1 >conftest.err
24515   rm -f conftest.er1
24516   cat conftest.err >&5
24517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } && {
24519          test -z "$ac_c_werror_flag" ||
24520          test ! -s conftest.err
24521        } && test -s conftest.$ac_objext; then
24522   ac_lo=$ac_mid; break
24523 else
24524   $as_echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527         ac_hi=`expr '(' $ac_mid ')' - 1`
24528                         if test $ac_mid -le $ac_hi; then
24529                           ac_lo= ac_hi=
24530                           break
24531                         fi
24532                         ac_mid=`expr 2 '*' $ac_mid`
24533 fi
24534
24535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24536   done
24537 else
24538   $as_echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24540
24541         ac_lo= ac_hi=
24542 fi
24543
24544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 fi
24546
24547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24548 # Binary search between lo and hi bounds.
24549 while test "x$ac_lo" != "x$ac_hi"; do
24550   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24551   cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 $ac_includes_default
24558 int
24559 main ()
24560 {
24561 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24562 test_array [0] = 0
24563
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572   *) ac_try_echo=$ac_try;;
24573 esac
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576   (eval "$ac_compile") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest.$ac_objext; then
24586   ac_hi=$ac_mid
24587 else
24588   $as_echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591         ac_lo=`expr '(' $ac_mid ')' + 1`
24592 fi
24593
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 done
24596 case $ac_lo in
24597 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24598 '') if test "$ac_cv_type_void_p" = yes; then
24599      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24601 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24602 See \`config.log' for more details." >&5
24603 $as_echo "$as_me: error: cannot compute sizeof (void *)
24604 See \`config.log' for more details." >&2;}
24605    { (exit 77); exit 77; }; }; }
24606    else
24607      ac_cv_sizeof_void_p=0
24608    fi ;;
24609 esac
24610 else
24611   cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617 $ac_includes_default
24618 static long int longval () { return (long int) (sizeof (void *)); }
24619 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24620 #include <stdio.h>
24621 #include <stdlib.h>
24622 int
24623 main ()
24624 {
24625
24626   FILE *f = fopen ("conftest.val", "w");
24627   if (! f)
24628     return 1;
24629   if (((long int) (sizeof (void *))) < 0)
24630     {
24631       long int i = longval ();
24632       if (i != ((long int) (sizeof (void *))))
24633         return 1;
24634       fprintf (f, "%ld", i);
24635     }
24636   else
24637     {
24638       unsigned long int i = ulongval ();
24639       if (i != ((long int) (sizeof (void *))))
24640         return 1;
24641       fprintf (f, "%lu", i);
24642     }
24643   /* Do not output a trailing newline, as this causes \r\n confusion
24644      on some platforms.  */
24645   return ferror (f) || fclose (f) != 0;
24646
24647   ;
24648   return 0;
24649 }
24650 _ACEOF
24651 rm -f conftest$ac_exeext
24652 if { (ac_try="$ac_link"
24653 case "(($ac_try" in
24654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655   *) ac_try_echo=$ac_try;;
24656 esac
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659   (eval "$ac_link") 2>&5
24660   ac_status=$?
24661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24663   { (case "(($ac_try" in
24664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665   *) ac_try_echo=$ac_try;;
24666 esac
24667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24668 $as_echo "$ac_try_echo") >&5
24669   (eval "$ac_try") 2>&5
24670   ac_status=$?
24671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); }; }; then
24673   ac_cv_sizeof_void_p=`cat conftest.val`
24674 else
24675   $as_echo "$as_me: program exited with status $ac_status" >&5
24676 $as_echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24678
24679 ( exit $ac_status )
24680 if test "$ac_cv_type_void_p" = yes; then
24681      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24683 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24684 See \`config.log' for more details." >&5
24685 $as_echo "$as_me: error: cannot compute sizeof (void *)
24686 See \`config.log' for more details." >&2;}
24687    { (exit 77); exit 77; }; }; }
24688    else
24689      ac_cv_sizeof_void_p=0
24690    fi
24691 fi
24692 rm -rf conftest.dSYM
24693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24694 fi
24695 rm -f conftest.val
24696 fi
24697 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24698 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24699
24700
24701
24702 cat >>confdefs.h <<_ACEOF
24703 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24704 _ACEOF
24705
24706
24707 # The cast to long int works around a bug in the HP C Compiler
24708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24710 # This bug is HP SR number 8606223364.
24711 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24712 $as_echo_n "checking size of size_t... " >&6; }
24713 if test "${ac_cv_sizeof_size_t+set}" = set; then
24714   $as_echo_n "(cached) " >&6
24715 else
24716   if test "$cross_compiling" = yes; then
24717   # Depending upon the size, compute the lo and hi bounds.
24718 cat >conftest.$ac_ext <<_ACEOF
24719 /* confdefs.h.  */
24720 _ACEOF
24721 cat confdefs.h >>conftest.$ac_ext
24722 cat >>conftest.$ac_ext <<_ACEOF
24723 /* end confdefs.h.  */
24724 $ac_includes_default
24725 int
24726 main ()
24727 {
24728 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24729 test_array [0] = 0
24730
24731   ;
24732   return 0;
24733 }
24734 _ACEOF
24735 rm -f conftest.$ac_objext
24736 if { (ac_try="$ac_compile"
24737 case "(($ac_try" in
24738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739   *) ac_try_echo=$ac_try;;
24740 esac
24741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24742 $as_echo "$ac_try_echo") >&5
24743   (eval "$ac_compile") 2>conftest.er1
24744   ac_status=$?
24745   grep -v '^ *+' conftest.er1 >conftest.err
24746   rm -f conftest.er1
24747   cat conftest.err >&5
24748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); } && {
24750          test -z "$ac_c_werror_flag" ||
24751          test ! -s conftest.err
24752        } && test -s conftest.$ac_objext; then
24753   ac_lo=0 ac_mid=0
24754   while :; do
24755     cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761 $ac_includes_default
24762 int
24763 main ()
24764 {
24765 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24766 test_array [0] = 0
24767
24768   ;
24769   return 0;
24770 }
24771 _ACEOF
24772 rm -f conftest.$ac_objext
24773 if { (ac_try="$ac_compile"
24774 case "(($ac_try" in
24775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776   *) ac_try_echo=$ac_try;;
24777 esac
24778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24779 $as_echo "$ac_try_echo") >&5
24780   (eval "$ac_compile") 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } && {
24787          test -z "$ac_c_werror_flag" ||
24788          test ! -s conftest.err
24789        } && test -s conftest.$ac_objext; then
24790   ac_hi=$ac_mid; break
24791 else
24792   $as_echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795         ac_lo=`expr $ac_mid + 1`
24796                         if test $ac_lo -le $ac_mid; then
24797                           ac_lo= ac_hi=
24798                           break
24799                         fi
24800                         ac_mid=`expr 2 '*' $ac_mid + 1`
24801 fi
24802
24803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24804   done
24805 else
24806   $as_echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809         cat >conftest.$ac_ext <<_ACEOF
24810 /* confdefs.h.  */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h.  */
24815 $ac_includes_default
24816 int
24817 main ()
24818 {
24819 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24820 test_array [0] = 0
24821
24822   ;
24823   return 0;
24824 }
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830   *) ac_try_echo=$ac_try;;
24831 esac
24832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24833 $as_echo "$ac_try_echo") >&5
24834   (eval "$ac_compile") 2>conftest.er1
24835   ac_status=$?
24836   grep -v '^ *+' conftest.er1 >conftest.err
24837   rm -f conftest.er1
24838   cat conftest.err >&5
24839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840   (exit $ac_status); } && {
24841          test -z "$ac_c_werror_flag" ||
24842          test ! -s conftest.err
24843        } && test -s conftest.$ac_objext; then
24844   ac_hi=-1 ac_mid=-1
24845   while :; do
24846     cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h.  */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h.  */
24852 $ac_includes_default
24853 int
24854 main ()
24855 {
24856 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24857 test_array [0] = 0
24858
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (ac_try="$ac_compile"
24865 case "(($ac_try" in
24866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867   *) ac_try_echo=$ac_try;;
24868 esac
24869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24870 $as_echo "$ac_try_echo") >&5
24871   (eval "$ac_compile") 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } && {
24878          test -z "$ac_c_werror_flag" ||
24879          test ! -s conftest.err
24880        } && test -s conftest.$ac_objext; then
24881   ac_lo=$ac_mid; break
24882 else
24883   $as_echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886         ac_hi=`expr '(' $ac_mid ')' - 1`
24887                         if test $ac_mid -le $ac_hi; then
24888                           ac_lo= ac_hi=
24889                           break
24890                         fi
24891                         ac_mid=`expr 2 '*' $ac_mid`
24892 fi
24893
24894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24895   done
24896 else
24897   $as_echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24899
24900         ac_lo= ac_hi=
24901 fi
24902
24903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904 fi
24905
24906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24907 # Binary search between lo and hi bounds.
24908 while test "x$ac_lo" != "x$ac_hi"; do
24909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24910   cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h.  */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h.  */
24916 $ac_includes_default
24917 int
24918 main ()
24919 {
24920 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24921 test_array [0] = 0
24922
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934 $as_echo "$ac_try_echo") >&5
24935   (eval "$ac_compile") 2>conftest.er1
24936   ac_status=$?
24937   grep -v '^ *+' conftest.er1 >conftest.err
24938   rm -f conftest.er1
24939   cat conftest.err >&5
24940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); } && {
24942          test -z "$ac_c_werror_flag" ||
24943          test ! -s conftest.err
24944        } && test -s conftest.$ac_objext; then
24945   ac_hi=$ac_mid
24946 else
24947   $as_echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950         ac_lo=`expr '(' $ac_mid ')' + 1`
24951 fi
24952
24953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24954 done
24955 case $ac_lo in
24956 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24957 '') if test "$ac_cv_type_size_t" = yes; then
24958      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24960 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24961 See \`config.log' for more details." >&5
24962 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24963 See \`config.log' for more details." >&2;}
24964    { (exit 77); exit 77; }; }; }
24965    else
24966      ac_cv_sizeof_size_t=0
24967    fi ;;
24968 esac
24969 else
24970   cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976 $ac_includes_default
24977 static long int longval () { return (long int) (sizeof (size_t)); }
24978 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24979 #include <stdio.h>
24980 #include <stdlib.h>
24981 int
24982 main ()
24983 {
24984
24985   FILE *f = fopen ("conftest.val", "w");
24986   if (! f)
24987     return 1;
24988   if (((long int) (sizeof (size_t))) < 0)
24989     {
24990       long int i = longval ();
24991       if (i != ((long int) (sizeof (size_t))))
24992         return 1;
24993       fprintf (f, "%ld", i);
24994     }
24995   else
24996     {
24997       unsigned long int i = ulongval ();
24998       if (i != ((long int) (sizeof (size_t))))
24999         return 1;
25000       fprintf (f, "%lu", i);
25001     }
25002   /* Do not output a trailing newline, as this causes \r\n confusion
25003      on some platforms.  */
25004   return ferror (f) || fclose (f) != 0;
25005
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014   *) ac_try_echo=$ac_try;;
25015 esac
25016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25017 $as_echo "$ac_try_echo") >&5
25018   (eval "$ac_link") 2>&5
25019   ac_status=$?
25020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25022   { (case "(($ac_try" in
25023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024   *) ac_try_echo=$ac_try;;
25025 esac
25026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25027 $as_echo "$ac_try_echo") >&5
25028   (eval "$ac_try") 2>&5
25029   ac_status=$?
25030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); }; }; then
25032   ac_cv_sizeof_size_t=`cat conftest.val`
25033 else
25034   $as_echo "$as_me: program exited with status $ac_status" >&5
25035 $as_echo "$as_me: failed program was:" >&5
25036 sed 's/^/| /' conftest.$ac_ext >&5
25037
25038 ( exit $ac_status )
25039 if test "$ac_cv_type_size_t" = yes; then
25040      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25042 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25043 See \`config.log' for more details." >&5
25044 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25045 See \`config.log' for more details." >&2;}
25046    { (exit 77); exit 77; }; }; }
25047    else
25048      ac_cv_sizeof_size_t=0
25049    fi
25050 fi
25051 rm -rf conftest.dSYM
25052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25053 fi
25054 rm -f conftest.val
25055 fi
25056 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25057 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25058
25059
25060
25061 cat >>confdefs.h <<_ACEOF
25062 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25063 _ACEOF
25064
25065
25066 # The cast to long int works around a bug in the HP C Compiler
25067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25069 # This bug is HP SR number 8606223364.
25070 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25071 $as_echo_n "checking size of long... " >&6; }
25072 if test "${ac_cv_sizeof_long+set}" = set; then
25073   $as_echo_n "(cached) " >&6
25074 else
25075   if test "$cross_compiling" = yes; then
25076   # Depending upon the size, compute the lo and hi bounds.
25077 cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h.  */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h.  */
25083 $ac_includes_default
25084 int
25085 main ()
25086 {
25087 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25088 test_array [0] = 0
25089
25090   ;
25091   return 0;
25092 }
25093 _ACEOF
25094 rm -f conftest.$ac_objext
25095 if { (ac_try="$ac_compile"
25096 case "(($ac_try" in
25097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098   *) ac_try_echo=$ac_try;;
25099 esac
25100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25101 $as_echo "$ac_try_echo") >&5
25102   (eval "$ac_compile") 2>conftest.er1
25103   ac_status=$?
25104   grep -v '^ *+' conftest.er1 >conftest.err
25105   rm -f conftest.er1
25106   cat conftest.err >&5
25107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); } && {
25109          test -z "$ac_c_werror_flag" ||
25110          test ! -s conftest.err
25111        } && test -s conftest.$ac_objext; then
25112   ac_lo=0 ac_mid=0
25113   while :; do
25114     cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h.  */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h.  */
25120 $ac_includes_default
25121 int
25122 main ()
25123 {
25124 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25125 test_array [0] = 0
25126
25127   ;
25128   return 0;
25129 }
25130 _ACEOF
25131 rm -f conftest.$ac_objext
25132 if { (ac_try="$ac_compile"
25133 case "(($ac_try" in
25134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135   *) ac_try_echo=$ac_try;;
25136 esac
25137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25138 $as_echo "$ac_try_echo") >&5
25139   (eval "$ac_compile") 2>conftest.er1
25140   ac_status=$?
25141   grep -v '^ *+' conftest.er1 >conftest.err
25142   rm -f conftest.er1
25143   cat conftest.err >&5
25144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } && {
25146          test -z "$ac_c_werror_flag" ||
25147          test ! -s conftest.err
25148        } && test -s conftest.$ac_objext; then
25149   ac_hi=$ac_mid; break
25150 else
25151   $as_echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154         ac_lo=`expr $ac_mid + 1`
25155                         if test $ac_lo -le $ac_mid; then
25156                           ac_lo= ac_hi=
25157                           break
25158                         fi
25159                         ac_mid=`expr 2 '*' $ac_mid + 1`
25160 fi
25161
25162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163   done
25164 else
25165   $as_echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25167
25168         cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174 $ac_includes_default
25175 int
25176 main ()
25177 {
25178 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25179 test_array [0] = 0
25180
25181   ;
25182   return 0;
25183 }
25184 _ACEOF
25185 rm -f conftest.$ac_objext
25186 if { (ac_try="$ac_compile"
25187 case "(($ac_try" in
25188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189   *) ac_try_echo=$ac_try;;
25190 esac
25191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25192 $as_echo "$ac_try_echo") >&5
25193   (eval "$ac_compile") 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } && {
25200          test -z "$ac_c_werror_flag" ||
25201          test ! -s conftest.err
25202        } && test -s conftest.$ac_objext; then
25203   ac_hi=-1 ac_mid=-1
25204   while :; do
25205     cat >conftest.$ac_ext <<_ACEOF
25206 /* confdefs.h.  */
25207 _ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h.  */
25211 $ac_includes_default
25212 int
25213 main ()
25214 {
25215 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25216 test_array [0] = 0
25217
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 rm -f conftest.$ac_objext
25223 if { (ac_try="$ac_compile"
25224 case "(($ac_try" in
25225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226   *) ac_try_echo=$ac_try;;
25227 esac
25228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25229 $as_echo "$ac_try_echo") >&5
25230   (eval "$ac_compile") 2>conftest.er1
25231   ac_status=$?
25232   grep -v '^ *+' conftest.er1 >conftest.err
25233   rm -f conftest.er1
25234   cat conftest.err >&5
25235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); } && {
25237          test -z "$ac_c_werror_flag" ||
25238          test ! -s conftest.err
25239        } && test -s conftest.$ac_objext; then
25240   ac_lo=$ac_mid; break
25241 else
25242   $as_echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25244
25245         ac_hi=`expr '(' $ac_mid ')' - 1`
25246                         if test $ac_mid -le $ac_hi; then
25247                           ac_lo= ac_hi=
25248                           break
25249                         fi
25250                         ac_mid=`expr 2 '*' $ac_mid`
25251 fi
25252
25253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25254   done
25255 else
25256   $as_echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259         ac_lo= ac_hi=
25260 fi
25261
25262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25263 fi
25264
25265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25266 # Binary search between lo and hi bounds.
25267 while test "x$ac_lo" != "x$ac_hi"; do
25268   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25269   cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h.  */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h.  */
25275 $ac_includes_default
25276 int
25277 main ()
25278 {
25279 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25280 test_array [0] = 0
25281
25282   ;
25283   return 0;
25284 }
25285 _ACEOF
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
25288 case "(($ac_try" in
25289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290   *) ac_try_echo=$ac_try;;
25291 esac
25292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25293 $as_echo "$ac_try_echo") >&5
25294   (eval "$ac_compile") 2>conftest.er1
25295   ac_status=$?
25296   grep -v '^ *+' conftest.er1 >conftest.err
25297   rm -f conftest.er1
25298   cat conftest.err >&5
25299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); } && {
25301          test -z "$ac_c_werror_flag" ||
25302          test ! -s conftest.err
25303        } && test -s conftest.$ac_objext; then
25304   ac_hi=$ac_mid
25305 else
25306   $as_echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25308
25309         ac_lo=`expr '(' $ac_mid ')' + 1`
25310 fi
25311
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 done
25314 case $ac_lo in
25315 ?*) ac_cv_sizeof_long=$ac_lo;;
25316 '') if test "$ac_cv_type_long" = yes; then
25317      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25319 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25320 See \`config.log' for more details." >&5
25321 $as_echo "$as_me: error: cannot compute sizeof (long)
25322 See \`config.log' for more details." >&2;}
25323    { (exit 77); exit 77; }; }; }
25324    else
25325      ac_cv_sizeof_long=0
25326    fi ;;
25327 esac
25328 else
25329   cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h.  */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h.  */
25335 $ac_includes_default
25336 static long int longval () { return (long int) (sizeof (long)); }
25337 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25338 #include <stdio.h>
25339 #include <stdlib.h>
25340 int
25341 main ()
25342 {
25343
25344   FILE *f = fopen ("conftest.val", "w");
25345   if (! f)
25346     return 1;
25347   if (((long int) (sizeof (long))) < 0)
25348     {
25349       long int i = longval ();
25350       if (i != ((long int) (sizeof (long))))
25351         return 1;
25352       fprintf (f, "%ld", i);
25353     }
25354   else
25355     {
25356       unsigned long int i = ulongval ();
25357       if (i != ((long int) (sizeof (long))))
25358         return 1;
25359       fprintf (f, "%lu", i);
25360     }
25361   /* Do not output a trailing newline, as this causes \r\n confusion
25362      on some platforms.  */
25363   return ferror (f) || fclose (f) != 0;
25364
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 rm -f conftest$ac_exeext
25370 if { (ac_try="$ac_link"
25371 case "(($ac_try" in
25372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373   *) ac_try_echo=$ac_try;;
25374 esac
25375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25376 $as_echo "$ac_try_echo") >&5
25377   (eval "$ac_link") 2>&5
25378   ac_status=$?
25379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25381   { (case "(($ac_try" in
25382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383   *) ac_try_echo=$ac_try;;
25384 esac
25385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25386 $as_echo "$ac_try_echo") >&5
25387   (eval "$ac_try") 2>&5
25388   ac_status=$?
25389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; }; then
25391   ac_cv_sizeof_long=`cat conftest.val`
25392 else
25393   $as_echo "$as_me: program exited with status $ac_status" >&5
25394 $as_echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25396
25397 ( exit $ac_status )
25398 if test "$ac_cv_type_long" = yes; then
25399      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25401 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25402 See \`config.log' for more details." >&5
25403 $as_echo "$as_me: error: cannot compute sizeof (long)
25404 See \`config.log' for more details." >&2;}
25405    { (exit 77); exit 77; }; }; }
25406    else
25407      ac_cv_sizeof_long=0
25408    fi
25409 fi
25410 rm -rf conftest.dSYM
25411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25412 fi
25413 rm -f conftest.val
25414 fi
25415 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25416 $as_echo "$ac_cv_sizeof_long" >&6; }
25417
25418
25419
25420 cat >>confdefs.h <<_ACEOF
25421 #define SIZEOF_LONG $ac_cv_sizeof_long
25422 _ACEOF
25423
25424
25425
25426 # Decide whether float4 is passed by value: user-selectable, enabled by default
25427 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25428 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25429
25430
25431 # Check whether --enable-float4-byval was given.
25432 if test "${enable_float4_byval+set}" = set; then
25433   enableval=$enable_float4_byval;
25434   case $enableval in
25435     yes)
25436
25437 cat >>confdefs.h <<\_ACEOF
25438 #define USE_FLOAT4_BYVAL 1
25439 _ACEOF
25440
25441                float4passbyval=true
25442       ;;
25443     no)
25444       float4passbyval=false
25445       ;;
25446     *)
25447       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25448 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25449    { (exit 1); exit 1; }; }
25450       ;;
25451   esac
25452
25453 else
25454   enable_float4_byval=yes
25455
25456 cat >>confdefs.h <<\_ACEOF
25457 #define USE_FLOAT4_BYVAL 1
25458 _ACEOF
25459
25460                float4passbyval=true
25461 fi
25462
25463
25464 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25465 $as_echo "$enable_float4_byval" >&6; }
25466
25467 cat >>confdefs.h <<_ACEOF
25468 #define FLOAT4PASSBYVAL $float4passbyval
25469 _ACEOF
25470
25471
25472 # Decide whether float8 is passed by value.
25473 # Note: this setting also controls int8 and related types such as timestamp.
25474 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25475 # If not, trying to select it is an error.
25476 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25477 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25478 if test $ac_cv_sizeof_void_p -ge 8 ; then
25479
25480
25481 # Check whether --enable-float8-byval was given.
25482 if test "${enable_float8_byval+set}" = set; then
25483   enableval=$enable_float8_byval;
25484   case $enableval in
25485     yes)
25486       :
25487       ;;
25488     no)
25489       :
25490       ;;
25491     *)
25492       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25493 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25494    { (exit 1); exit 1; }; }
25495       ;;
25496   esac
25497
25498 else
25499   enable_float8_byval=yes
25500
25501 fi
25502
25503
25504 else
25505
25506
25507 # Check whether --enable-float8-byval was given.
25508 if test "${enable_float8_byval+set}" = set; then
25509   enableval=$enable_float8_byval;
25510   case $enableval in
25511     yes)
25512       :
25513       ;;
25514     no)
25515       :
25516       ;;
25517     *)
25518       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25519 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25520    { (exit 1); exit 1; }; }
25521       ;;
25522   esac
25523
25524 else
25525   enable_float8_byval=no
25526
25527 fi
25528
25529
25530   if test "$enable_float8_byval" = yes ; then
25531     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25532 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25533    { (exit 1); exit 1; }; }
25534   fi
25535 fi
25536 if test "$enable_float8_byval" = yes ; then
25537
25538 cat >>confdefs.h <<\_ACEOF
25539 #define USE_FLOAT8_BYVAL 1
25540 _ACEOF
25541
25542   float8passbyval=true
25543 else
25544   float8passbyval=false
25545 fi
25546 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25547 $as_echo "$enable_float8_byval" >&6; }
25548
25549 cat >>confdefs.h <<_ACEOF
25550 #define FLOAT8PASSBYVAL $float8passbyval
25551 _ACEOF
25552
25553
25554 # Determine memory alignment requirements for the basic C data types.
25555
25556 # The cast to long int works around a bug in the HP C Compiler,
25557 # see AC_CHECK_SIZEOF for more information.
25558 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25559 $as_echo_n "checking alignment of short... " >&6; }
25560 if test "${ac_cv_alignof_short+set}" = set; then
25561   $as_echo_n "(cached) " >&6
25562 else
25563   if test "$cross_compiling" = yes; then
25564   # Depending upon the size, compute the lo and hi bounds.
25565 cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h.  */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h.  */
25571 $ac_includes_default
25572 #ifndef offsetof
25573 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25574 #endif
25575 typedef struct { char x; short y; } ac__type_alignof_;
25576 int
25577 main ()
25578 {
25579 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25580 test_array [0] = 0
25581
25582   ;
25583   return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext
25587 if { (ac_try="$ac_compile"
25588 case "(($ac_try" in
25589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590   *) ac_try_echo=$ac_try;;
25591 esac
25592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25593 $as_echo "$ac_try_echo") >&5
25594   (eval "$ac_compile") 2>conftest.er1
25595   ac_status=$?
25596   grep -v '^ *+' conftest.er1 >conftest.err
25597   rm -f conftest.er1
25598   cat conftest.err >&5
25599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); } && {
25601          test -z "$ac_c_werror_flag" ||
25602          test ! -s conftest.err
25603        } && test -s conftest.$ac_objext; then
25604   ac_lo=0 ac_mid=0
25605   while :; do
25606     cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 $ac_includes_default
25613 #ifndef offsetof
25614 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25615 #endif
25616 typedef struct { char x; short y; } ac__type_alignof_;
25617 int
25618 main ()
25619 {
25620 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25621 test_array [0] = 0
25622
25623   ;
25624   return 0;
25625 }
25626 _ACEOF
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631   *) ac_try_echo=$ac_try;;
25632 esac
25633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635   (eval "$ac_compile") 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } && {
25642          test -z "$ac_c_werror_flag" ||
25643          test ! -s conftest.err
25644        } && test -s conftest.$ac_objext; then
25645   ac_hi=$ac_mid; break
25646 else
25647   $as_echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650         ac_lo=`expr $ac_mid + 1`
25651                         if test $ac_lo -le $ac_mid; then
25652                           ac_lo= ac_hi=
25653                           break
25654                         fi
25655                         ac_mid=`expr 2 '*' $ac_mid + 1`
25656 fi
25657
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659   done
25660 else
25661   $as_echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664         cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670 $ac_includes_default
25671 #ifndef offsetof
25672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25673 #endif
25674 typedef struct { char x; short y; } ac__type_alignof_;
25675 int
25676 main ()
25677 {
25678 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25679 test_array [0] = 0
25680
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 rm -f conftest.$ac_objext
25686 if { (ac_try="$ac_compile"
25687 case "(($ac_try" in
25688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689   *) ac_try_echo=$ac_try;;
25690 esac
25691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25692 $as_echo "$ac_try_echo") >&5
25693   (eval "$ac_compile") 2>conftest.er1
25694   ac_status=$?
25695   grep -v '^ *+' conftest.er1 >conftest.err
25696   rm -f conftest.er1
25697   cat conftest.err >&5
25698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); } && {
25700          test -z "$ac_c_werror_flag" ||
25701          test ! -s conftest.err
25702        } && test -s conftest.$ac_objext; then
25703   ac_hi=-1 ac_mid=-1
25704   while :; do
25705     cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711 $ac_includes_default
25712 #ifndef offsetof
25713 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25714 #endif
25715 typedef struct { char x; short y; } ac__type_alignof_;
25716 int
25717 main ()
25718 {
25719 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25720 test_array [0] = 0
25721
25722   ;
25723   return 0;
25724 }
25725 _ACEOF
25726 rm -f conftest.$ac_objext
25727 if { (ac_try="$ac_compile"
25728 case "(($ac_try" in
25729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730   *) ac_try_echo=$ac_try;;
25731 esac
25732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25733 $as_echo "$ac_try_echo") >&5
25734   (eval "$ac_compile") 2>conftest.er1
25735   ac_status=$?
25736   grep -v '^ *+' conftest.er1 >conftest.err
25737   rm -f conftest.er1
25738   cat conftest.err >&5
25739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); } && {
25741          test -z "$ac_c_werror_flag" ||
25742          test ! -s conftest.err
25743        } && test -s conftest.$ac_objext; then
25744   ac_lo=$ac_mid; break
25745 else
25746   $as_echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25748
25749         ac_hi=`expr '(' $ac_mid ')' - 1`
25750                         if test $ac_mid -le $ac_hi; then
25751                           ac_lo= ac_hi=
25752                           break
25753                         fi
25754                         ac_mid=`expr 2 '*' $ac_mid`
25755 fi
25756
25757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758   done
25759 else
25760   $as_echo "$as_me: failed program was:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25762
25763         ac_lo= ac_hi=
25764 fi
25765
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 fi
25768
25769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25770 # Binary search between lo and hi bounds.
25771 while test "x$ac_lo" != "x$ac_hi"; do
25772   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25773   cat >conftest.$ac_ext <<_ACEOF
25774 /* confdefs.h.  */
25775 _ACEOF
25776 cat confdefs.h >>conftest.$ac_ext
25777 cat >>conftest.$ac_ext <<_ACEOF
25778 /* end confdefs.h.  */
25779 $ac_includes_default
25780 #ifndef offsetof
25781 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25782 #endif
25783 typedef struct { char x; short y; } ac__type_alignof_;
25784 int
25785 main ()
25786 {
25787 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25788 test_array [0] = 0
25789
25790   ;
25791   return 0;
25792 }
25793 _ACEOF
25794 rm -f conftest.$ac_objext
25795 if { (ac_try="$ac_compile"
25796 case "(($ac_try" in
25797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798   *) ac_try_echo=$ac_try;;
25799 esac
25800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25801 $as_echo "$ac_try_echo") >&5
25802   (eval "$ac_compile") 2>conftest.er1
25803   ac_status=$?
25804   grep -v '^ *+' conftest.er1 >conftest.err
25805   rm -f conftest.er1
25806   cat conftest.err >&5
25807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); } && {
25809          test -z "$ac_c_werror_flag" ||
25810          test ! -s conftest.err
25811        } && test -s conftest.$ac_objext; then
25812   ac_hi=$ac_mid
25813 else
25814   $as_echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25816
25817         ac_lo=`expr '(' $ac_mid ')' + 1`
25818 fi
25819
25820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821 done
25822 case $ac_lo in
25823 ?*) ac_cv_alignof_short=$ac_lo;;
25824 '') if test "$ac_cv_type_short" = yes; then
25825      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25827 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25828 See \`config.log' for more details." >&5
25829 $as_echo "$as_me: error: cannot compute alignment of short
25830 See \`config.log' for more details." >&2;}
25831    { (exit 77); exit 77; }; }; }
25832    else
25833      ac_cv_alignof_short=0
25834    fi ;;
25835 esac
25836 else
25837   cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843 $ac_includes_default
25844 #ifndef offsetof
25845 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25846 #endif
25847 typedef struct { char x; short y; } ac__type_alignof_;
25848 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25849 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25850 #include <stdio.h>
25851 #include <stdlib.h>
25852 int
25853 main ()
25854 {
25855
25856   FILE *f = fopen ("conftest.val", "w");
25857   if (! f)
25858     return 1;
25859   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25860     {
25861       long int i = longval ();
25862       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25863         return 1;
25864       fprintf (f, "%ld", i);
25865     }
25866   else
25867     {
25868       unsigned long int i = ulongval ();
25869       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25870         return 1;
25871       fprintf (f, "%lu", i);
25872     }
25873   /* Do not output a trailing newline, as this causes \r\n confusion
25874      on some platforms.  */
25875   return ferror (f) || fclose (f) != 0;
25876
25877   ;
25878   return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest$ac_exeext
25882 if { (ac_try="$ac_link"
25883 case "(($ac_try" in
25884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885   *) ac_try_echo=$ac_try;;
25886 esac
25887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25888 $as_echo "$ac_try_echo") >&5
25889   (eval "$ac_link") 2>&5
25890   ac_status=$?
25891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25893   { (case "(($ac_try" in
25894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25895   *) ac_try_echo=$ac_try;;
25896 esac
25897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25898 $as_echo "$ac_try_echo") >&5
25899   (eval "$ac_try") 2>&5
25900   ac_status=$?
25901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); }; }; then
25903   ac_cv_alignof_short=`cat conftest.val`
25904 else
25905   $as_echo "$as_me: program exited with status $ac_status" >&5
25906 $as_echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25908
25909 ( exit $ac_status )
25910 if test "$ac_cv_type_short" = yes; then
25911      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25913 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25914 See \`config.log' for more details." >&5
25915 $as_echo "$as_me: error: cannot compute alignment of short
25916 See \`config.log' for more details." >&2;}
25917    { (exit 77); exit 77; }; }; }
25918    else
25919      ac_cv_alignof_short=0
25920    fi
25921 fi
25922 rm -rf conftest.dSYM
25923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25924 fi
25925 rm -f conftest.val
25926 fi
25927 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25928 $as_echo "$ac_cv_alignof_short" >&6; }
25929
25930
25931
25932 cat >>confdefs.h <<_ACEOF
25933 #define ALIGNOF_SHORT $ac_cv_alignof_short
25934 _ACEOF
25935
25936
25937 # The cast to long int works around a bug in the HP C Compiler,
25938 # see AC_CHECK_SIZEOF for more information.
25939 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25940 $as_echo_n "checking alignment of int... " >&6; }
25941 if test "${ac_cv_alignof_int+set}" = set; then
25942   $as_echo_n "(cached) " >&6
25943 else
25944   if test "$cross_compiling" = yes; then
25945   # Depending upon the size, compute the lo and hi bounds.
25946 cat >conftest.$ac_ext <<_ACEOF
25947 /* confdefs.h.  */
25948 _ACEOF
25949 cat confdefs.h >>conftest.$ac_ext
25950 cat >>conftest.$ac_ext <<_ACEOF
25951 /* end confdefs.h.  */
25952 $ac_includes_default
25953 #ifndef offsetof
25954 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25955 #endif
25956 typedef struct { char x; int y; } ac__type_alignof_;
25957 int
25958 main ()
25959 {
25960 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25961 test_array [0] = 0
25962
25963   ;
25964   return 0;
25965 }
25966 _ACEOF
25967 rm -f conftest.$ac_objext
25968 if { (ac_try="$ac_compile"
25969 case "(($ac_try" in
25970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971   *) ac_try_echo=$ac_try;;
25972 esac
25973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25974 $as_echo "$ac_try_echo") >&5
25975   (eval "$ac_compile") 2>conftest.er1
25976   ac_status=$?
25977   grep -v '^ *+' conftest.er1 >conftest.err
25978   rm -f conftest.er1
25979   cat conftest.err >&5
25980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); } && {
25982          test -z "$ac_c_werror_flag" ||
25983          test ! -s conftest.err
25984        } && test -s conftest.$ac_objext; then
25985   ac_lo=0 ac_mid=0
25986   while :; do
25987     cat >conftest.$ac_ext <<_ACEOF
25988 /* confdefs.h.  */
25989 _ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h.  */
25993 $ac_includes_default
25994 #ifndef offsetof
25995 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25996 #endif
25997 typedef struct { char x; int y; } ac__type_alignof_;
25998 int
25999 main ()
26000 {
26001 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26002 test_array [0] = 0
26003
26004   ;
26005   return 0;
26006 }
26007 _ACEOF
26008 rm -f conftest.$ac_objext
26009 if { (ac_try="$ac_compile"
26010 case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016   (eval "$ac_compile") 2>conftest.er1
26017   ac_status=$?
26018   grep -v '^ *+' conftest.er1 >conftest.err
26019   rm -f conftest.er1
26020   cat conftest.err >&5
26021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); } && {
26023          test -z "$ac_c_werror_flag" ||
26024          test ! -s conftest.err
26025        } && test -s conftest.$ac_objext; then
26026   ac_hi=$ac_mid; break
26027 else
26028   $as_echo "$as_me: failed program was:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26030
26031         ac_lo=`expr $ac_mid + 1`
26032                         if test $ac_lo -le $ac_mid; then
26033                           ac_lo= ac_hi=
26034                           break
26035                         fi
26036                         ac_mid=`expr 2 '*' $ac_mid + 1`
26037 fi
26038
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040   done
26041 else
26042   $as_echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26044
26045         cat >conftest.$ac_ext <<_ACEOF
26046 /* confdefs.h.  */
26047 _ACEOF
26048 cat confdefs.h >>conftest.$ac_ext
26049 cat >>conftest.$ac_ext <<_ACEOF
26050 /* end confdefs.h.  */
26051 $ac_includes_default
26052 #ifndef offsetof
26053 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26054 #endif
26055 typedef struct { char x; int y; } ac__type_alignof_;
26056 int
26057 main ()
26058 {
26059 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26060 test_array [0] = 0
26061
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 rm -f conftest.$ac_objext
26067 if { (ac_try="$ac_compile"
26068 case "(($ac_try" in
26069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070   *) ac_try_echo=$ac_try;;
26071 esac
26072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26073 $as_echo "$ac_try_echo") >&5
26074   (eval "$ac_compile") 2>conftest.er1
26075   ac_status=$?
26076   grep -v '^ *+' conftest.er1 >conftest.err
26077   rm -f conftest.er1
26078   cat conftest.err >&5
26079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); } && {
26081          test -z "$ac_c_werror_flag" ||
26082          test ! -s conftest.err
26083        } && test -s conftest.$ac_objext; then
26084   ac_hi=-1 ac_mid=-1
26085   while :; do
26086     cat >conftest.$ac_ext <<_ACEOF
26087 /* confdefs.h.  */
26088 _ACEOF
26089 cat confdefs.h >>conftest.$ac_ext
26090 cat >>conftest.$ac_ext <<_ACEOF
26091 /* end confdefs.h.  */
26092 $ac_includes_default
26093 #ifndef offsetof
26094 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26095 #endif
26096 typedef struct { char x; int y; } ac__type_alignof_;
26097 int
26098 main ()
26099 {
26100 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26101 test_array [0] = 0
26102
26103   ;
26104   return 0;
26105 }
26106 _ACEOF
26107 rm -f conftest.$ac_objext
26108 if { (ac_try="$ac_compile"
26109 case "(($ac_try" in
26110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111   *) ac_try_echo=$ac_try;;
26112 esac
26113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26114 $as_echo "$ac_try_echo") >&5
26115   (eval "$ac_compile") 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } && {
26122          test -z "$ac_c_werror_flag" ||
26123          test ! -s conftest.err
26124        } && test -s conftest.$ac_objext; then
26125   ac_lo=$ac_mid; break
26126 else
26127   $as_echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130         ac_hi=`expr '(' $ac_mid ')' - 1`
26131                         if test $ac_mid -le $ac_hi; then
26132                           ac_lo= ac_hi=
26133                           break
26134                         fi
26135                         ac_mid=`expr 2 '*' $ac_mid`
26136 fi
26137
26138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26139   done
26140 else
26141   $as_echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26143
26144         ac_lo= ac_hi=
26145 fi
26146
26147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26148 fi
26149
26150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 # Binary search between lo and hi bounds.
26152 while test "x$ac_lo" != "x$ac_hi"; do
26153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26154   cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 $ac_includes_default
26161 #ifndef offsetof
26162 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26163 #endif
26164 typedef struct { char x; int y; } ac__type_alignof_;
26165 int
26166 main ()
26167 {
26168 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26169 test_array [0] = 0
26170
26171   ;
26172   return 0;
26173 }
26174 _ACEOF
26175 rm -f conftest.$ac_objext
26176 if { (ac_try="$ac_compile"
26177 case "(($ac_try" in
26178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179   *) ac_try_echo=$ac_try;;
26180 esac
26181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26182 $as_echo "$ac_try_echo") >&5
26183   (eval "$ac_compile") 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } && {
26190          test -z "$ac_c_werror_flag" ||
26191          test ! -s conftest.err
26192        } && test -s conftest.$ac_objext; then
26193   ac_hi=$ac_mid
26194 else
26195   $as_echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198         ac_lo=`expr '(' $ac_mid ')' + 1`
26199 fi
26200
26201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26202 done
26203 case $ac_lo in
26204 ?*) ac_cv_alignof_int=$ac_lo;;
26205 '') if test "$ac_cv_type_int" = yes; then
26206      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26208 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26209 See \`config.log' for more details." >&5
26210 $as_echo "$as_me: error: cannot compute alignment of int
26211 See \`config.log' for more details." >&2;}
26212    { (exit 77); exit 77; }; }; }
26213    else
26214      ac_cv_alignof_int=0
26215    fi ;;
26216 esac
26217 else
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 $ac_includes_default
26225 #ifndef offsetof
26226 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26227 #endif
26228 typedef struct { char x; int y; } ac__type_alignof_;
26229 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26230 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26231 #include <stdio.h>
26232 #include <stdlib.h>
26233 int
26234 main ()
26235 {
26236
26237   FILE *f = fopen ("conftest.val", "w");
26238   if (! f)
26239     return 1;
26240   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26241     {
26242       long int i = longval ();
26243       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26244         return 1;
26245       fprintf (f, "%ld", i);
26246     }
26247   else
26248     {
26249       unsigned long int i = ulongval ();
26250       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26251         return 1;
26252       fprintf (f, "%lu", i);
26253     }
26254   /* Do not output a trailing newline, as this causes \r\n confusion
26255      on some platforms.  */
26256   return ferror (f) || fclose (f) != 0;
26257
26258   ;
26259   return 0;
26260 }
26261 _ACEOF
26262 rm -f conftest$ac_exeext
26263 if { (ac_try="$ac_link"
26264 case "(($ac_try" in
26265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266   *) ac_try_echo=$ac_try;;
26267 esac
26268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270   (eval "$ac_link") 2>&5
26271   ac_status=$?
26272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26274   { (case "(($ac_try" in
26275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276   *) ac_try_echo=$ac_try;;
26277 esac
26278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26279 $as_echo "$ac_try_echo") >&5
26280   (eval "$ac_try") 2>&5
26281   ac_status=$?
26282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); }; }; then
26284   ac_cv_alignof_int=`cat conftest.val`
26285 else
26286   $as_echo "$as_me: program exited with status $ac_status" >&5
26287 $as_echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290 ( exit $ac_status )
26291 if test "$ac_cv_type_int" = yes; then
26292      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26294 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26295 See \`config.log' for more details." >&5
26296 $as_echo "$as_me: error: cannot compute alignment of int
26297 See \`config.log' for more details." >&2;}
26298    { (exit 77); exit 77; }; }; }
26299    else
26300      ac_cv_alignof_int=0
26301    fi
26302 fi
26303 rm -rf conftest.dSYM
26304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26305 fi
26306 rm -f conftest.val
26307 fi
26308 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26309 $as_echo "$ac_cv_alignof_int" >&6; }
26310
26311
26312
26313 cat >>confdefs.h <<_ACEOF
26314 #define ALIGNOF_INT $ac_cv_alignof_int
26315 _ACEOF
26316
26317
26318 # The cast to long int works around a bug in the HP C Compiler,
26319 # see AC_CHECK_SIZEOF for more information.
26320 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26321 $as_echo_n "checking alignment of long... " >&6; }
26322 if test "${ac_cv_alignof_long+set}" = set; then
26323   $as_echo_n "(cached) " >&6
26324 else
26325   if test "$cross_compiling" = yes; then
26326   # Depending upon the size, compute the lo and hi bounds.
26327 cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26333 $ac_includes_default
26334 #ifndef offsetof
26335 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26336 #endif
26337 typedef struct { char x; long y; } ac__type_alignof_;
26338 int
26339 main ()
26340 {
26341 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26342 test_array [0] = 0
26343
26344   ;
26345   return 0;
26346 }
26347 _ACEOF
26348 rm -f conftest.$ac_objext
26349 if { (ac_try="$ac_compile"
26350 case "(($ac_try" in
26351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26352   *) ac_try_echo=$ac_try;;
26353 esac
26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26355 $as_echo "$ac_try_echo") >&5
26356   (eval "$ac_compile") 2>conftest.er1
26357   ac_status=$?
26358   grep -v '^ *+' conftest.er1 >conftest.err
26359   rm -f conftest.er1
26360   cat conftest.err >&5
26361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); } && {
26363          test -z "$ac_c_werror_flag" ||
26364          test ! -s conftest.err
26365        } && test -s conftest.$ac_objext; then
26366   ac_lo=0 ac_mid=0
26367   while :; do
26368     cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h.  */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h.  */
26374 $ac_includes_default
26375 #ifndef offsetof
26376 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26377 #endif
26378 typedef struct { char x; long y; } ac__type_alignof_;
26379 int
26380 main ()
26381 {
26382 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26383 test_array [0] = 0
26384
26385   ;
26386   return 0;
26387 }
26388 _ACEOF
26389 rm -f conftest.$ac_objext
26390 if { (ac_try="$ac_compile"
26391 case "(($ac_try" in
26392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26393   *) ac_try_echo=$ac_try;;
26394 esac
26395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26396 $as_echo "$ac_try_echo") >&5
26397   (eval "$ac_compile") 2>conftest.er1
26398   ac_status=$?
26399   grep -v '^ *+' conftest.er1 >conftest.err
26400   rm -f conftest.er1
26401   cat conftest.err >&5
26402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); } && {
26404          test -z "$ac_c_werror_flag" ||
26405          test ! -s conftest.err
26406        } && test -s conftest.$ac_objext; then
26407   ac_hi=$ac_mid; break
26408 else
26409   $as_echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412         ac_lo=`expr $ac_mid + 1`
26413                         if test $ac_lo -le $ac_mid; then
26414                           ac_lo= ac_hi=
26415                           break
26416                         fi
26417                         ac_mid=`expr 2 '*' $ac_mid + 1`
26418 fi
26419
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421   done
26422 else
26423   $as_echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26425
26426         cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432 $ac_includes_default
26433 #ifndef offsetof
26434 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26435 #endif
26436 typedef struct { char x; long y; } ac__type_alignof_;
26437 int
26438 main ()
26439 {
26440 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26441 test_array [0] = 0
26442
26443   ;
26444   return 0;
26445 }
26446 _ACEOF
26447 rm -f conftest.$ac_objext
26448 if { (ac_try="$ac_compile"
26449 case "(($ac_try" in
26450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451   *) ac_try_echo=$ac_try;;
26452 esac
26453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26454 $as_echo "$ac_try_echo") >&5
26455   (eval "$ac_compile") 2>conftest.er1
26456   ac_status=$?
26457   grep -v '^ *+' conftest.er1 >conftest.err
26458   rm -f conftest.er1
26459   cat conftest.err >&5
26460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); } && {
26462          test -z "$ac_c_werror_flag" ||
26463          test ! -s conftest.err
26464        } && test -s conftest.$ac_objext; then
26465   ac_hi=-1 ac_mid=-1
26466   while :; do
26467     cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473 $ac_includes_default
26474 #ifndef offsetof
26475 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26476 #endif
26477 typedef struct { char x; long y; } ac__type_alignof_;
26478 int
26479 main ()
26480 {
26481 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26482 test_array [0] = 0
26483
26484   ;
26485   return 0;
26486 }
26487 _ACEOF
26488 rm -f conftest.$ac_objext
26489 if { (ac_try="$ac_compile"
26490 case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26495 $as_echo "$ac_try_echo") >&5
26496   (eval "$ac_compile") 2>conftest.er1
26497   ac_status=$?
26498   grep -v '^ *+' conftest.er1 >conftest.err
26499   rm -f conftest.er1
26500   cat conftest.err >&5
26501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502   (exit $ac_status); } && {
26503          test -z "$ac_c_werror_flag" ||
26504          test ! -s conftest.err
26505        } && test -s conftest.$ac_objext; then
26506   ac_lo=$ac_mid; break
26507 else
26508   $as_echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26510
26511         ac_hi=`expr '(' $ac_mid ')' - 1`
26512                         if test $ac_mid -le $ac_hi; then
26513                           ac_lo= ac_hi=
26514                           break
26515                         fi
26516                         ac_mid=`expr 2 '*' $ac_mid`
26517 fi
26518
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520   done
26521 else
26522   $as_echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525         ac_lo= ac_hi=
26526 fi
26527
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 fi
26530
26531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26532 # Binary search between lo and hi bounds.
26533 while test "x$ac_lo" != "x$ac_hi"; do
26534   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26535   cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 $ac_includes_default
26542 #ifndef offsetof
26543 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26544 #endif
26545 typedef struct { char x; long y; } ac__type_alignof_;
26546 int
26547 main ()
26548 {
26549 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26550 test_array [0] = 0
26551
26552   ;
26553   return 0;
26554 }
26555 _ACEOF
26556 rm -f conftest.$ac_objext
26557 if { (ac_try="$ac_compile"
26558 case "(($ac_try" in
26559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560   *) ac_try_echo=$ac_try;;
26561 esac
26562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26563 $as_echo "$ac_try_echo") >&5
26564   (eval "$ac_compile") 2>conftest.er1
26565   ac_status=$?
26566   grep -v '^ *+' conftest.er1 >conftest.err
26567   rm -f conftest.er1
26568   cat conftest.err >&5
26569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); } && {
26571          test -z "$ac_c_werror_flag" ||
26572          test ! -s conftest.err
26573        } && test -s conftest.$ac_objext; then
26574   ac_hi=$ac_mid
26575 else
26576   $as_echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579         ac_lo=`expr '(' $ac_mid ')' + 1`
26580 fi
26581
26582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26583 done
26584 case $ac_lo in
26585 ?*) ac_cv_alignof_long=$ac_lo;;
26586 '') if test "$ac_cv_type_long" = yes; then
26587      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26589 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26590 See \`config.log' for more details." >&5
26591 $as_echo "$as_me: error: cannot compute alignment of long
26592 See \`config.log' for more details." >&2;}
26593    { (exit 77); exit 77; }; }; }
26594    else
26595      ac_cv_alignof_long=0
26596    fi ;;
26597 esac
26598 else
26599   cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605 $ac_includes_default
26606 #ifndef offsetof
26607 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26608 #endif
26609 typedef struct { char x; long y; } ac__type_alignof_;
26610 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26611 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26612 #include <stdio.h>
26613 #include <stdlib.h>
26614 int
26615 main ()
26616 {
26617
26618   FILE *f = fopen ("conftest.val", "w");
26619   if (! f)
26620     return 1;
26621   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26622     {
26623       long int i = longval ();
26624       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26625         return 1;
26626       fprintf (f, "%ld", i);
26627     }
26628   else
26629     {
26630       unsigned long int i = ulongval ();
26631       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26632         return 1;
26633       fprintf (f, "%lu", i);
26634     }
26635   /* Do not output a trailing newline, as this causes \r\n confusion
26636      on some platforms.  */
26637   return ferror (f) || fclose (f) != 0;
26638
26639   ;
26640   return 0;
26641 }
26642 _ACEOF
26643 rm -f conftest$ac_exeext
26644 if { (ac_try="$ac_link"
26645 case "(($ac_try" in
26646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26647   *) ac_try_echo=$ac_try;;
26648 esac
26649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26650 $as_echo "$ac_try_echo") >&5
26651   (eval "$ac_link") 2>&5
26652   ac_status=$?
26653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26655   { (case "(($ac_try" in
26656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657   *) ac_try_echo=$ac_try;;
26658 esac
26659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26660 $as_echo "$ac_try_echo") >&5
26661   (eval "$ac_try") 2>&5
26662   ac_status=$?
26663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); }; }; then
26665   ac_cv_alignof_long=`cat conftest.val`
26666 else
26667   $as_echo "$as_me: program exited with status $ac_status" >&5
26668 $as_echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26670
26671 ( exit $ac_status )
26672 if test "$ac_cv_type_long" = yes; then
26673      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26675 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26676 See \`config.log' for more details." >&5
26677 $as_echo "$as_me: error: cannot compute alignment of long
26678 See \`config.log' for more details." >&2;}
26679    { (exit 77); exit 77; }; }; }
26680    else
26681      ac_cv_alignof_long=0
26682    fi
26683 fi
26684 rm -rf conftest.dSYM
26685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26686 fi
26687 rm -f conftest.val
26688 fi
26689 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26690 $as_echo "$ac_cv_alignof_long" >&6; }
26691
26692
26693
26694 cat >>confdefs.h <<_ACEOF
26695 #define ALIGNOF_LONG $ac_cv_alignof_long
26696 _ACEOF
26697
26698
26699 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26700   # The cast to long int works around a bug in the HP C Compiler,
26701 # see AC_CHECK_SIZEOF for more information.
26702 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26703 $as_echo_n "checking alignment of long long int... " >&6; }
26704 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26705   $as_echo_n "(cached) " >&6
26706 else
26707   if test "$cross_compiling" = yes; then
26708   # Depending upon the size, compute the lo and hi bounds.
26709 cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 $ac_includes_default
26716 #ifndef offsetof
26717 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26718 #endif
26719 typedef struct { char x; long long int y; } ac__type_alignof_;
26720 int
26721 main ()
26722 {
26723 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26724 test_array [0] = 0
26725
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738   (eval "$ac_compile") 2>conftest.er1
26739   ac_status=$?
26740   grep -v '^ *+' conftest.er1 >conftest.err
26741   rm -f conftest.er1
26742   cat conftest.err >&5
26743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } && {
26745          test -z "$ac_c_werror_flag" ||
26746          test ! -s conftest.err
26747        } && test -s conftest.$ac_objext; then
26748   ac_lo=0 ac_mid=0
26749   while :; do
26750     cat >conftest.$ac_ext <<_ACEOF
26751 /* confdefs.h.  */
26752 _ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h.  */
26756 $ac_includes_default
26757 #ifndef offsetof
26758 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26759 #endif
26760 typedef struct { char x; long long int y; } ac__type_alignof_;
26761 int
26762 main ()
26763 {
26764 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26765 test_array [0] = 0
26766
26767   ;
26768   return 0;
26769 }
26770 _ACEOF
26771 rm -f conftest.$ac_objext
26772 if { (ac_try="$ac_compile"
26773 case "(($ac_try" in
26774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775   *) ac_try_echo=$ac_try;;
26776 esac
26777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26778 $as_echo "$ac_try_echo") >&5
26779   (eval "$ac_compile") 2>conftest.er1
26780   ac_status=$?
26781   grep -v '^ *+' conftest.er1 >conftest.err
26782   rm -f conftest.er1
26783   cat conftest.err >&5
26784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } && {
26786          test -z "$ac_c_werror_flag" ||
26787          test ! -s conftest.err
26788        } && test -s conftest.$ac_objext; then
26789   ac_hi=$ac_mid; break
26790 else
26791   $as_echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26793
26794         ac_lo=`expr $ac_mid + 1`
26795                         if test $ac_lo -le $ac_mid; then
26796                           ac_lo= ac_hi=
26797                           break
26798                         fi
26799                         ac_mid=`expr 2 '*' $ac_mid + 1`
26800 fi
26801
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803   done
26804 else
26805   $as_echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808         cat >conftest.$ac_ext <<_ACEOF
26809 /* confdefs.h.  */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h.  */
26814 $ac_includes_default
26815 #ifndef offsetof
26816 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26817 #endif
26818 typedef struct { char x; long long int y; } ac__type_alignof_;
26819 int
26820 main ()
26821 {
26822 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26823 test_array [0] = 0
26824
26825   ;
26826   return 0;
26827 }
26828 _ACEOF
26829 rm -f conftest.$ac_objext
26830 if { (ac_try="$ac_compile"
26831 case "(($ac_try" in
26832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833   *) ac_try_echo=$ac_try;;
26834 esac
26835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26836 $as_echo "$ac_try_echo") >&5
26837   (eval "$ac_compile") 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } && {
26844          test -z "$ac_c_werror_flag" ||
26845          test ! -s conftest.err
26846        } && test -s conftest.$ac_objext; then
26847   ac_hi=-1 ac_mid=-1
26848   while :; do
26849     cat >conftest.$ac_ext <<_ACEOF
26850 /* confdefs.h.  */
26851 _ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h.  */
26855 $ac_includes_default
26856 #ifndef offsetof
26857 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26858 #endif
26859 typedef struct { char x; long long int y; } ac__type_alignof_;
26860 int
26861 main ()
26862 {
26863 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26864 test_array [0] = 0
26865
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 rm -f conftest.$ac_objext
26871 if { (ac_try="$ac_compile"
26872 case "(($ac_try" in
26873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874   *) ac_try_echo=$ac_try;;
26875 esac
26876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26877 $as_echo "$ac_try_echo") >&5
26878   (eval "$ac_compile") 2>conftest.er1
26879   ac_status=$?
26880   grep -v '^ *+' conftest.er1 >conftest.err
26881   rm -f conftest.er1
26882   cat conftest.err >&5
26883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); } && {
26885          test -z "$ac_c_werror_flag" ||
26886          test ! -s conftest.err
26887        } && test -s conftest.$ac_objext; then
26888   ac_lo=$ac_mid; break
26889 else
26890   $as_echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26892
26893         ac_hi=`expr '(' $ac_mid ')' - 1`
26894                         if test $ac_mid -le $ac_hi; then
26895                           ac_lo= ac_hi=
26896                           break
26897                         fi
26898                         ac_mid=`expr 2 '*' $ac_mid`
26899 fi
26900
26901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902   done
26903 else
26904   $as_echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907         ac_lo= ac_hi=
26908 fi
26909
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 fi
26912
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 # Binary search between lo and hi bounds.
26915 while test "x$ac_lo" != "x$ac_hi"; do
26916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26917   cat >conftest.$ac_ext <<_ACEOF
26918 /* confdefs.h.  */
26919 _ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h.  */
26923 $ac_includes_default
26924 #ifndef offsetof
26925 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26926 #endif
26927 typedef struct { char x; long long int y; } ac__type_alignof_;
26928 int
26929 main ()
26930 {
26931 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26932 test_array [0] = 0
26933
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext
26939 if { (ac_try="$ac_compile"
26940 case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26945 $as_echo "$ac_try_echo") >&5
26946   (eval "$ac_compile") 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } && {
26953          test -z "$ac_c_werror_flag" ||
26954          test ! -s conftest.err
26955        } && test -s conftest.$ac_objext; then
26956   ac_hi=$ac_mid
26957 else
26958   $as_echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961         ac_lo=`expr '(' $ac_mid ')' + 1`
26962 fi
26963
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 done
26966 case $ac_lo in
26967 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26968 '') if test "$ac_cv_type_long_long_int" = yes; then
26969      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26971 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26972 See \`config.log' for more details." >&5
26973 $as_echo "$as_me: error: cannot compute alignment of long long int
26974 See \`config.log' for more details." >&2;}
26975    { (exit 77); exit 77; }; }; }
26976    else
26977      ac_cv_alignof_long_long_int=0
26978    fi ;;
26979 esac
26980 else
26981   cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h.  */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h.  */
26987 $ac_includes_default
26988 #ifndef offsetof
26989 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26990 #endif
26991 typedef struct { char x; long long int y; } ac__type_alignof_;
26992 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26993 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26994 #include <stdio.h>
26995 #include <stdlib.h>
26996 int
26997 main ()
26998 {
26999
27000   FILE *f = fopen ("conftest.val", "w");
27001   if (! f)
27002     return 1;
27003   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27004     {
27005       long int i = longval ();
27006       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27007         return 1;
27008       fprintf (f, "%ld", i);
27009     }
27010   else
27011     {
27012       unsigned long int i = ulongval ();
27013       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27014         return 1;
27015       fprintf (f, "%lu", i);
27016     }
27017   /* Do not output a trailing newline, as this causes \r\n confusion
27018      on some platforms.  */
27019   return ferror (f) || fclose (f) != 0;
27020
27021   ;
27022   return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest$ac_exeext
27026 if { (ac_try="$ac_link"
27027 case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27032 $as_echo "$ac_try_echo") >&5
27033   (eval "$ac_link") 2>&5
27034   ac_status=$?
27035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27037   { (case "(($ac_try" in
27038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039   *) ac_try_echo=$ac_try;;
27040 esac
27041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27042 $as_echo "$ac_try_echo") >&5
27043   (eval "$ac_try") 2>&5
27044   ac_status=$?
27045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); }; }; then
27047   ac_cv_alignof_long_long_int=`cat conftest.val`
27048 else
27049   $as_echo "$as_me: program exited with status $ac_status" >&5
27050 $as_echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27052
27053 ( exit $ac_status )
27054 if test "$ac_cv_type_long_long_int" = yes; then
27055      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27057 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27058 See \`config.log' for more details." >&5
27059 $as_echo "$as_me: error: cannot compute alignment of long long int
27060 See \`config.log' for more details." >&2;}
27061    { (exit 77); exit 77; }; }; }
27062    else
27063      ac_cv_alignof_long_long_int=0
27064    fi
27065 fi
27066 rm -rf conftest.dSYM
27067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27068 fi
27069 rm -f conftest.val
27070 fi
27071 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27072 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27073
27074
27075
27076 cat >>confdefs.h <<_ACEOF
27077 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27078 _ACEOF
27079
27080
27081 fi
27082 # The cast to long int works around a bug in the HP C Compiler,
27083 # see AC_CHECK_SIZEOF for more information.
27084 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27085 $as_echo_n "checking alignment of double... " >&6; }
27086 if test "${ac_cv_alignof_double+set}" = set; then
27087   $as_echo_n "(cached) " >&6
27088 else
27089   if test "$cross_compiling" = yes; then
27090   # Depending upon the size, compute the lo and hi bounds.
27091 cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097 $ac_includes_default
27098 #ifndef offsetof
27099 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27100 #endif
27101 typedef struct { char x; double y; } ac__type_alignof_;
27102 int
27103 main ()
27104 {
27105 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27106 test_array [0] = 0
27107
27108   ;
27109   return 0;
27110 }
27111 _ACEOF
27112 rm -f conftest.$ac_objext
27113 if { (ac_try="$ac_compile"
27114 case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27119 $as_echo "$ac_try_echo") >&5
27120   (eval "$ac_compile") 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } && {
27127          test -z "$ac_c_werror_flag" ||
27128          test ! -s conftest.err
27129        } && test -s conftest.$ac_objext; then
27130   ac_lo=0 ac_mid=0
27131   while :; do
27132     cat >conftest.$ac_ext <<_ACEOF
27133 /* confdefs.h.  */
27134 _ACEOF
27135 cat confdefs.h >>conftest.$ac_ext
27136 cat >>conftest.$ac_ext <<_ACEOF
27137 /* end confdefs.h.  */
27138 $ac_includes_default
27139 #ifndef offsetof
27140 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27141 #endif
27142 typedef struct { char x; double y; } ac__type_alignof_;
27143 int
27144 main ()
27145 {
27146 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27147 test_array [0] = 0
27148
27149   ;
27150   return 0;
27151 }
27152 _ACEOF
27153 rm -f conftest.$ac_objext
27154 if { (ac_try="$ac_compile"
27155 case "(($ac_try" in
27156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157   *) ac_try_echo=$ac_try;;
27158 esac
27159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27160 $as_echo "$ac_try_echo") >&5
27161   (eval "$ac_compile") 2>conftest.er1
27162   ac_status=$?
27163   grep -v '^ *+' conftest.er1 >conftest.err
27164   rm -f conftest.er1
27165   cat conftest.err >&5
27166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); } && {
27168          test -z "$ac_c_werror_flag" ||
27169          test ! -s conftest.err
27170        } && test -s conftest.$ac_objext; then
27171   ac_hi=$ac_mid; break
27172 else
27173   $as_echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27175
27176         ac_lo=`expr $ac_mid + 1`
27177                         if test $ac_lo -le $ac_mid; then
27178                           ac_lo= ac_hi=
27179                           break
27180                         fi
27181                         ac_mid=`expr 2 '*' $ac_mid + 1`
27182 fi
27183
27184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27185   done
27186 else
27187   $as_echo "$as_me: failed program was:" >&5
27188 sed 's/^/| /' conftest.$ac_ext >&5
27189
27190         cat >conftest.$ac_ext <<_ACEOF
27191 /* confdefs.h.  */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h.  */
27196 $ac_includes_default
27197 #ifndef offsetof
27198 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27199 #endif
27200 typedef struct { char x; double y; } ac__type_alignof_;
27201 int
27202 main ()
27203 {
27204 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27205 test_array [0] = 0
27206
27207   ;
27208   return 0;
27209 }
27210 _ACEOF
27211 rm -f conftest.$ac_objext
27212 if { (ac_try="$ac_compile"
27213 case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27218 $as_echo "$ac_try_echo") >&5
27219   (eval "$ac_compile") 2>conftest.er1
27220   ac_status=$?
27221   grep -v '^ *+' conftest.er1 >conftest.err
27222   rm -f conftest.er1
27223   cat conftest.err >&5
27224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225   (exit $ac_status); } && {
27226          test -z "$ac_c_werror_flag" ||
27227          test ! -s conftest.err
27228        } && test -s conftest.$ac_objext; then
27229   ac_hi=-1 ac_mid=-1
27230   while :; do
27231     cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h.  */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h.  */
27237 $ac_includes_default
27238 #ifndef offsetof
27239 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27240 #endif
27241 typedef struct { char x; double y; } ac__type_alignof_;
27242 int
27243 main ()
27244 {
27245 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27246 test_array [0] = 0
27247
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 rm -f conftest.$ac_objext
27253 if { (ac_try="$ac_compile"
27254 case "(($ac_try" in
27255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256   *) ac_try_echo=$ac_try;;
27257 esac
27258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27259 $as_echo "$ac_try_echo") >&5
27260   (eval "$ac_compile") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } && {
27267          test -z "$ac_c_werror_flag" ||
27268          test ! -s conftest.err
27269        } && test -s conftest.$ac_objext; then
27270   ac_lo=$ac_mid; break
27271 else
27272   $as_echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275         ac_hi=`expr '(' $ac_mid ')' - 1`
27276                         if test $ac_mid -le $ac_hi; then
27277                           ac_lo= ac_hi=
27278                           break
27279                         fi
27280                         ac_mid=`expr 2 '*' $ac_mid`
27281 fi
27282
27283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284   done
27285 else
27286   $as_echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27288
27289         ac_lo= ac_hi=
27290 fi
27291
27292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27293 fi
27294
27295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27296 # Binary search between lo and hi bounds.
27297 while test "x$ac_lo" != "x$ac_hi"; do
27298   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27299   cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h.  */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h.  */
27305 $ac_includes_default
27306 #ifndef offsetof
27307 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27308 #endif
27309 typedef struct { char x; double y; } ac__type_alignof_;
27310 int
27311 main ()
27312 {
27313 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27314 test_array [0] = 0
27315
27316   ;
27317   return 0;
27318 }
27319 _ACEOF
27320 rm -f conftest.$ac_objext
27321 if { (ac_try="$ac_compile"
27322 case "(($ac_try" in
27323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324   *) ac_try_echo=$ac_try;;
27325 esac
27326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27327 $as_echo "$ac_try_echo") >&5
27328   (eval "$ac_compile") 2>conftest.er1
27329   ac_status=$?
27330   grep -v '^ *+' conftest.er1 >conftest.err
27331   rm -f conftest.er1
27332   cat conftest.err >&5
27333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); } && {
27335          test -z "$ac_c_werror_flag" ||
27336          test ! -s conftest.err
27337        } && test -s conftest.$ac_objext; then
27338   ac_hi=$ac_mid
27339 else
27340   $as_echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343         ac_lo=`expr '(' $ac_mid ')' + 1`
27344 fi
27345
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 done
27348 case $ac_lo in
27349 ?*) ac_cv_alignof_double=$ac_lo;;
27350 '') if test "$ac_cv_type_double" = yes; then
27351      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27353 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27354 See \`config.log' for more details." >&5
27355 $as_echo "$as_me: error: cannot compute alignment of double
27356 See \`config.log' for more details." >&2;}
27357    { (exit 77); exit 77; }; }; }
27358    else
27359      ac_cv_alignof_double=0
27360    fi ;;
27361 esac
27362 else
27363   cat >conftest.$ac_ext <<_ACEOF
27364 /* confdefs.h.  */
27365 _ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h.  */
27369 $ac_includes_default
27370 #ifndef offsetof
27371 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27372 #endif
27373 typedef struct { char x; double y; } ac__type_alignof_;
27374 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27375 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27376 #include <stdio.h>
27377 #include <stdlib.h>
27378 int
27379 main ()
27380 {
27381
27382   FILE *f = fopen ("conftest.val", "w");
27383   if (! f)
27384     return 1;
27385   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27386     {
27387       long int i = longval ();
27388       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27389         return 1;
27390       fprintf (f, "%ld", i);
27391     }
27392   else
27393     {
27394       unsigned long int i = ulongval ();
27395       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27396         return 1;
27397       fprintf (f, "%lu", i);
27398     }
27399   /* Do not output a trailing newline, as this causes \r\n confusion
27400      on some platforms.  */
27401   return ferror (f) || fclose (f) != 0;
27402
27403   ;
27404   return 0;
27405 }
27406 _ACEOF
27407 rm -f conftest$ac_exeext
27408 if { (ac_try="$ac_link"
27409 case "(($ac_try" in
27410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411   *) ac_try_echo=$ac_try;;
27412 esac
27413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27414 $as_echo "$ac_try_echo") >&5
27415   (eval "$ac_link") 2>&5
27416   ac_status=$?
27417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27419   { (case "(($ac_try" in
27420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421   *) ac_try_echo=$ac_try;;
27422 esac
27423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27424 $as_echo "$ac_try_echo") >&5
27425   (eval "$ac_try") 2>&5
27426   ac_status=$?
27427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); }; }; then
27429   ac_cv_alignof_double=`cat conftest.val`
27430 else
27431   $as_echo "$as_me: program exited with status $ac_status" >&5
27432 $as_echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435 ( exit $ac_status )
27436 if test "$ac_cv_type_double" = yes; then
27437      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27439 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27440 See \`config.log' for more details." >&5
27441 $as_echo "$as_me: error: cannot compute alignment of double
27442 See \`config.log' for more details." >&2;}
27443    { (exit 77); exit 77; }; }; }
27444    else
27445      ac_cv_alignof_double=0
27446    fi
27447 fi
27448 rm -rf conftest.dSYM
27449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27450 fi
27451 rm -f conftest.val
27452 fi
27453 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27454 $as_echo "$ac_cv_alignof_double" >&6; }
27455
27456
27457
27458 cat >>confdefs.h <<_ACEOF
27459 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27460 _ACEOF
27461
27462
27463
27464 # Compute maximum alignment of any basic type.
27465 # We assume long's alignment is at least as strong as char, short, or int;
27466 # but we must check long long (if it exists) and double.
27467
27468 MAX_ALIGNOF=$ac_cv_alignof_long
27469 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27470   MAX_ALIGNOF=$ac_cv_alignof_double
27471 fi
27472 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27473   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27474 fi
27475
27476 cat >>confdefs.h <<_ACEOF
27477 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27478 _ACEOF
27479
27480
27481
27482 # Some platforms predefine the types int8, int16, etc.  Only check
27483 # a (hopefully) representative subset.
27484 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27485 $as_echo_n "checking for int8... " >&6; }
27486 if test "${ac_cv_type_int8+set}" = set; then
27487   $as_echo_n "(cached) " >&6
27488 else
27489   ac_cv_type_int8=no
27490 cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h.  */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h.  */
27496 #include <stdio.h>
27497 #ifdef HAVE_SUPPORTDEFS_H
27498 #include <SupportDefs.h>
27499 #endif
27500
27501 int
27502 main ()
27503 {
27504 if (sizeof (int8))
27505        return 0;
27506   ;
27507   return 0;
27508 }
27509 _ACEOF
27510 rm -f conftest.$ac_objext
27511 if { (ac_try="$ac_compile"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27517 $as_echo "$ac_try_echo") >&5
27518   (eval "$ac_compile") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } && {
27525          test -z "$ac_c_werror_flag" ||
27526          test ! -s conftest.err
27527        } && test -s conftest.$ac_objext; then
27528   cat >conftest.$ac_ext <<_ACEOF
27529 /* confdefs.h.  */
27530 _ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h.  */
27534 #include <stdio.h>
27535 #ifdef HAVE_SUPPORTDEFS_H
27536 #include <SupportDefs.h>
27537 #endif
27538
27539 int
27540 main ()
27541 {
27542 if (sizeof ((int8)))
27543           return 0;
27544   ;
27545   return 0;
27546 }
27547 _ACEOF
27548 rm -f conftest.$ac_objext
27549 if { (ac_try="$ac_compile"
27550 case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27555 $as_echo "$ac_try_echo") >&5
27556   (eval "$ac_compile") 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } && {
27563          test -z "$ac_c_werror_flag" ||
27564          test ! -s conftest.err
27565        } && test -s conftest.$ac_objext; then
27566   :
27567 else
27568   $as_echo "$as_me: failed program was:" >&5
27569 sed 's/^/| /' conftest.$ac_ext >&5
27570
27571         ac_cv_type_int8=yes
27572 fi
27573
27574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 else
27576   $as_echo "$as_me: failed program was:" >&5
27577 sed 's/^/| /' conftest.$ac_ext >&5
27578
27579
27580 fi
27581
27582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583 fi
27584 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27585 $as_echo "$ac_cv_type_int8" >&6; }
27586 if test "x$ac_cv_type_int8" = x""yes; then
27587
27588 cat >>confdefs.h <<_ACEOF
27589 #define HAVE_INT8 1
27590 _ACEOF
27591
27592
27593 fi
27594 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27595 $as_echo_n "checking for uint8... " >&6; }
27596 if test "${ac_cv_type_uint8+set}" = set; then
27597   $as_echo_n "(cached) " >&6
27598 else
27599   ac_cv_type_uint8=no
27600 cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 #include <stdio.h>
27607 #ifdef HAVE_SUPPORTDEFS_H
27608 #include <SupportDefs.h>
27609 #endif
27610
27611 int
27612 main ()
27613 {
27614 if (sizeof (uint8))
27615        return 0;
27616   ;
27617   return 0;
27618 }
27619 _ACEOF
27620 rm -f conftest.$ac_objext
27621 if { (ac_try="$ac_compile"
27622 case "(($ac_try" in
27623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624   *) ac_try_echo=$ac_try;;
27625 esac
27626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27627 $as_echo "$ac_try_echo") >&5
27628   (eval "$ac_compile") 2>conftest.er1
27629   ac_status=$?
27630   grep -v '^ *+' conftest.er1 >conftest.err
27631   rm -f conftest.er1
27632   cat conftest.err >&5
27633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); } && {
27635          test -z "$ac_c_werror_flag" ||
27636          test ! -s conftest.err
27637        } && test -s conftest.$ac_objext; then
27638   cat >conftest.$ac_ext <<_ACEOF
27639 /* confdefs.h.  */
27640 _ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h.  */
27644 #include <stdio.h>
27645 #ifdef HAVE_SUPPORTDEFS_H
27646 #include <SupportDefs.h>
27647 #endif
27648
27649 int
27650 main ()
27651 {
27652 if (sizeof ((uint8)))
27653           return 0;
27654   ;
27655   return 0;
27656 }
27657 _ACEOF
27658 rm -f conftest.$ac_objext
27659 if { (ac_try="$ac_compile"
27660 case "(($ac_try" in
27661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662   *) ac_try_echo=$ac_try;;
27663 esac
27664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27665 $as_echo "$ac_try_echo") >&5
27666   (eval "$ac_compile") 2>conftest.er1
27667   ac_status=$?
27668   grep -v '^ *+' conftest.er1 >conftest.err
27669   rm -f conftest.er1
27670   cat conftest.err >&5
27671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); } && {
27673          test -z "$ac_c_werror_flag" ||
27674          test ! -s conftest.err
27675        } && test -s conftest.$ac_objext; then
27676   :
27677 else
27678   $as_echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681         ac_cv_type_uint8=yes
27682 fi
27683
27684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27685 else
27686   $as_echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689
27690 fi
27691
27692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27693 fi
27694 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27695 $as_echo "$ac_cv_type_uint8" >&6; }
27696 if test "x$ac_cv_type_uint8" = x""yes; then
27697
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_UINT8 1
27700 _ACEOF
27701
27702
27703 fi
27704 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27705 $as_echo_n "checking for int64... " >&6; }
27706 if test "${ac_cv_type_int64+set}" = set; then
27707   $as_echo_n "(cached) " >&6
27708 else
27709   ac_cv_type_int64=no
27710 cat >conftest.$ac_ext <<_ACEOF
27711 /* confdefs.h.  */
27712 _ACEOF
27713 cat confdefs.h >>conftest.$ac_ext
27714 cat >>conftest.$ac_ext <<_ACEOF
27715 /* end confdefs.h.  */
27716 #include <stdio.h>
27717 #ifdef HAVE_SUPPORTDEFS_H
27718 #include <SupportDefs.h>
27719 #endif
27720
27721 int
27722 main ()
27723 {
27724 if (sizeof (int64))
27725        return 0;
27726   ;
27727   return 0;
27728 }
27729 _ACEOF
27730 rm -f conftest.$ac_objext
27731 if { (ac_try="$ac_compile"
27732 case "(($ac_try" in
27733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734   *) ac_try_echo=$ac_try;;
27735 esac
27736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27737 $as_echo "$ac_try_echo") >&5
27738   (eval "$ac_compile") 2>conftest.er1
27739   ac_status=$?
27740   grep -v '^ *+' conftest.er1 >conftest.err
27741   rm -f conftest.er1
27742   cat conftest.err >&5
27743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744   (exit $ac_status); } && {
27745          test -z "$ac_c_werror_flag" ||
27746          test ! -s conftest.err
27747        } && test -s conftest.$ac_objext; then
27748   cat >conftest.$ac_ext <<_ACEOF
27749 /* confdefs.h.  */
27750 _ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h.  */
27754 #include <stdio.h>
27755 #ifdef HAVE_SUPPORTDEFS_H
27756 #include <SupportDefs.h>
27757 #endif
27758
27759 int
27760 main ()
27761 {
27762 if (sizeof ((int64)))
27763           return 0;
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 rm -f conftest.$ac_objext
27769 if { (ac_try="$ac_compile"
27770 case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27775 $as_echo "$ac_try_echo") >&5
27776   (eval "$ac_compile") 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } && {
27783          test -z "$ac_c_werror_flag" ||
27784          test ! -s conftest.err
27785        } && test -s conftest.$ac_objext; then
27786   :
27787 else
27788   $as_echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27790
27791         ac_cv_type_int64=yes
27792 fi
27793
27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27795 else
27796   $as_echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27798
27799
27800 fi
27801
27802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27803 fi
27804 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27805 $as_echo "$ac_cv_type_int64" >&6; }
27806 if test "x$ac_cv_type_int64" = x""yes; then
27807
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_INT64 1
27810 _ACEOF
27811
27812
27813 fi
27814 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27815 $as_echo_n "checking for uint64... " >&6; }
27816 if test "${ac_cv_type_uint64+set}" = set; then
27817   $as_echo_n "(cached) " >&6
27818 else
27819   ac_cv_type_uint64=no
27820 cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826 #include <stdio.h>
27827 #ifdef HAVE_SUPPORTDEFS_H
27828 #include <SupportDefs.h>
27829 #endif
27830
27831 int
27832 main ()
27833 {
27834 if (sizeof (uint64))
27835        return 0;
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext
27841 if { (ac_try="$ac_compile"
27842 case "(($ac_try" in
27843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844   *) ac_try_echo=$ac_try;;
27845 esac
27846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27847 $as_echo "$ac_try_echo") >&5
27848   (eval "$ac_compile") 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } && {
27855          test -z "$ac_c_werror_flag" ||
27856          test ! -s conftest.err
27857        } && test -s conftest.$ac_objext; then
27858   cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h.  */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h.  */
27864 #include <stdio.h>
27865 #ifdef HAVE_SUPPORTDEFS_H
27866 #include <SupportDefs.h>
27867 #endif
27868
27869 int
27870 main ()
27871 {
27872 if (sizeof ((uint64)))
27873           return 0;
27874   ;
27875   return 0;
27876 }
27877 _ACEOF
27878 rm -f conftest.$ac_objext
27879 if { (ac_try="$ac_compile"
27880 case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27885 $as_echo "$ac_try_echo") >&5
27886   (eval "$ac_compile") 2>conftest.er1
27887   ac_status=$?
27888   grep -v '^ *+' conftest.er1 >conftest.err
27889   rm -f conftest.er1
27890   cat conftest.err >&5
27891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); } && {
27893          test -z "$ac_c_werror_flag" ||
27894          test ! -s conftest.err
27895        } && test -s conftest.$ac_objext; then
27896   :
27897 else
27898   $as_echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27900
27901         ac_cv_type_uint64=yes
27902 fi
27903
27904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27905 else
27906   $as_echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909
27910 fi
27911
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 fi
27914 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27915 $as_echo "$ac_cv_type_uint64" >&6; }
27916 if test "x$ac_cv_type_uint64" = x""yes; then
27917
27918 cat >>confdefs.h <<_ACEOF
27919 #define HAVE_UINT64 1
27920 _ACEOF
27921
27922
27923 fi
27924
27925
27926 # We also check for sig_atomic_t, which *should* be defined per ANSI
27927 # C, but is missing on some old platforms.
27928 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27929 $as_echo_n "checking for sig_atomic_t... " >&6; }
27930 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27931   $as_echo_n "(cached) " >&6
27932 else
27933   ac_cv_type_sig_atomic_t=no
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940 #include <signal.h>
27941
27942 int
27943 main ()
27944 {
27945 if (sizeof (sig_atomic_t))
27946        return 0;
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 rm -f conftest.$ac_objext
27952 if { (ac_try="$ac_compile"
27953 case "(($ac_try" in
27954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27955   *) ac_try_echo=$ac_try;;
27956 esac
27957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27958 $as_echo "$ac_try_echo") >&5
27959   (eval "$ac_compile") 2>conftest.er1
27960   ac_status=$?
27961   grep -v '^ *+' conftest.er1 >conftest.err
27962   rm -f conftest.er1
27963   cat conftest.err >&5
27964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965   (exit $ac_status); } && {
27966          test -z "$ac_c_werror_flag" ||
27967          test ! -s conftest.err
27968        } && test -s conftest.$ac_objext; then
27969   cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975 #include <signal.h>
27976
27977 int
27978 main ()
27979 {
27980 if (sizeof ((sig_atomic_t)))
27981           return 0;
27982   ;
27983   return 0;
27984 }
27985 _ACEOF
27986 rm -f conftest.$ac_objext
27987 if { (ac_try="$ac_compile"
27988 case "(($ac_try" in
27989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990   *) ac_try_echo=$ac_try;;
27991 esac
27992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27993 $as_echo "$ac_try_echo") >&5
27994   (eval "$ac_compile") 2>conftest.er1
27995   ac_status=$?
27996   grep -v '^ *+' conftest.er1 >conftest.err
27997   rm -f conftest.er1
27998   cat conftest.err >&5
27999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000   (exit $ac_status); } && {
28001          test -z "$ac_c_werror_flag" ||
28002          test ! -s conftest.err
28003        } && test -s conftest.$ac_objext; then
28004   :
28005 else
28006   $as_echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009         ac_cv_type_sig_atomic_t=yes
28010 fi
28011
28012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013 else
28014   $as_echo "$as_me: failed program was:" >&5
28015 sed 's/^/| /' conftest.$ac_ext >&5
28016
28017
28018 fi
28019
28020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28021 fi
28022 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28023 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28024 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28025
28026 cat >>confdefs.h <<_ACEOF
28027 #define HAVE_SIG_ATOMIC_T 1
28028 _ACEOF
28029
28030
28031 fi
28032
28033
28034
28035 if test "$PORTNAME" != "win32"
28036 then
28037 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28038 $as_echo_n "checking for POSIX signal interface... " >&6; }
28039 if test "${pgac_cv_func_posix_signals+set}" = set; then
28040   $as_echo_n "(cached) " >&6
28041 else
28042   cat >conftest.$ac_ext <<_ACEOF
28043 /* confdefs.h.  */
28044 _ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h.  */
28048 #include <signal.h>
28049
28050 int
28051 main ()
28052 {
28053 struct sigaction act, oact;
28054 sigemptyset(&act.sa_mask);
28055 act.sa_flags = SA_RESTART;
28056 sigaction(0, &act, &oact);
28057   ;
28058   return 0;
28059 }
28060 _ACEOF
28061 rm -f conftest.$ac_objext conftest$ac_exeext
28062 if { (ac_try="$ac_link"
28063 case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069   (eval "$ac_link") 2>conftest.er1
28070   ac_status=$?
28071   grep -v '^ *+' conftest.er1 >conftest.err
28072   rm -f conftest.er1
28073   cat conftest.err >&5
28074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); } && {
28076          test -z "$ac_c_werror_flag" ||
28077          test ! -s conftest.err
28078        } && test -s conftest$ac_exeext && {
28079          test "$cross_compiling" = yes ||
28080          $as_test_x conftest$ac_exeext
28081        }; then
28082   pgac_cv_func_posix_signals=yes
28083 else
28084   $as_echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28086
28087         pgac_cv_func_posix_signals=no
28088 fi
28089
28090 rm -rf conftest.dSYM
28091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28092       conftest$ac_exeext conftest.$ac_ext
28093 fi
28094 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28095 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28096 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28097
28098 cat >>confdefs.h <<\_ACEOF
28099 #define HAVE_POSIX_SIGNALS /**/
28100 _ACEOF
28101
28102 fi
28103 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28104
28105 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28106   { { $as_echo "$as_me:$LINENO: error:
28107 Thread-safety requires POSIX signals, which are not supported by this
28108 operating system;  use --disable-thread-safety to disable thread safety." >&5
28109 $as_echo "$as_me: error:
28110 Thread-safety requires POSIX signals, which are not supported by this
28111 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28112    { (exit 1); exit 1; }; }
28113 fi
28114 fi
28115
28116 # SunOS doesn't handle negative byte comparisons properly with +/- return
28117 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28118 $as_echo_n "checking for working memcmp... " >&6; }
28119 if test "${ac_cv_func_memcmp_working+set}" = set; then
28120   $as_echo_n "(cached) " >&6
28121 else
28122   if test "$cross_compiling" = yes; then
28123   ac_cv_func_memcmp_working=no
28124 else
28125   cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131 $ac_includes_default
28132 int
28133 main ()
28134 {
28135
28136   /* Some versions of memcmp are not 8-bit clean.  */
28137   char c0 = '\100', c1 = '\200', c2 = '\201';
28138   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28139     return 1;
28140
28141   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28142      or more and with at least one buffer not starting on a 4-byte boundary.
28143      William Lewis provided this test program.   */
28144   {
28145     char foo[21];
28146     char bar[21];
28147     int i;
28148     for (i = 0; i < 4; i++)
28149       {
28150         char *a = foo + i;
28151         char *b = bar + i;
28152         strcpy (a, "--------01111111");
28153         strcpy (b, "--------10000000");
28154         if (memcmp (a, b, 16) >= 0)
28155           return 1;
28156       }
28157     return 0;
28158   }
28159
28160   ;
28161   return 0;
28162 }
28163 _ACEOF
28164 rm -f conftest$ac_exeext
28165 if { (ac_try="$ac_link"
28166 case "(($ac_try" in
28167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168   *) ac_try_echo=$ac_try;;
28169 esac
28170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28171 $as_echo "$ac_try_echo") >&5
28172   (eval "$ac_link") 2>&5
28173   ac_status=$?
28174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28176   { (case "(($ac_try" in
28177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178   *) ac_try_echo=$ac_try;;
28179 esac
28180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28181 $as_echo "$ac_try_echo") >&5
28182   (eval "$ac_try") 2>&5
28183   ac_status=$?
28184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185   (exit $ac_status); }; }; then
28186   ac_cv_func_memcmp_working=yes
28187 else
28188   $as_echo "$as_me: program exited with status $ac_status" >&5
28189 $as_echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192 ( exit $ac_status )
28193 ac_cv_func_memcmp_working=no
28194 fi
28195 rm -rf conftest.dSYM
28196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28197 fi
28198
28199
28200 fi
28201 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28202 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28203 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28204   *" memcmp.$ac_objext "* ) ;;
28205   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28206  ;;
28207 esac
28208
28209
28210
28211
28212 # Select semaphore implementation type.
28213 if test "$PORTNAME" != "win32"; then
28214   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28215
28216 cat >>confdefs.h <<\_ACEOF
28217 #define USE_NAMED_POSIX_SEMAPHORES 1
28218 _ACEOF
28219
28220     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28221   else
28222     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28223
28224 cat >>confdefs.h <<\_ACEOF
28225 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28226 _ACEOF
28227
28228       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28229     else
28230
28231 cat >>confdefs.h <<\_ACEOF
28232 #define USE_SYSV_SEMAPHORES 1
28233 _ACEOF
28234
28235       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28236     fi
28237   fi
28238 else
28239
28240 cat >>confdefs.h <<\_ACEOF
28241 #define USE_WIN32_SEMAPHORES 1
28242 _ACEOF
28243
28244   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28245 fi
28246
28247
28248 # Select shared-memory implementation type.
28249 if test "$PORTNAME" != "win32"; then
28250
28251 cat >>confdefs.h <<\_ACEOF
28252 #define USE_SYSV_SHARED_MEMORY 1
28253 _ACEOF
28254
28255   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28256 else
28257
28258 cat >>confdefs.h <<\_ACEOF
28259 #define USE_WIN32_SHARED_MEMORY 1
28260 _ACEOF
28261
28262   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28263 fi
28264
28265 # Select latch implementation type.
28266 if test "$PORTNAME" != "win32"; then
28267   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28268 else
28269   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28270 fi
28271
28272 # If not set in template file, set bytes to use libc memset()
28273 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28274   MEMSET_LOOP_LIMIT=1024
28275 fi
28276
28277 cat >>confdefs.h <<_ACEOF
28278 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28279 _ACEOF
28280
28281
28282
28283 if test "$enable_nls" = yes ; then
28284
28285   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28286 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28287 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28288   $as_echo_n "(cached) " >&6
28289 else
28290   ac_func_search_save_LIBS=$LIBS
28291 cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297
28298 /* Override any GCC internal prototype to avoid an error.
28299    Use char because int might match the return type of a GCC
28300    builtin and then its argument prototype would still apply.  */
28301 #ifdef __cplusplus
28302 extern "C"
28303 #endif
28304 char bind_textdomain_codeset ();
28305 int
28306 main ()
28307 {
28308 return bind_textdomain_codeset ();
28309   ;
28310   return 0;
28311 }
28312 _ACEOF
28313 for ac_lib in '' intl; do
28314   if test -z "$ac_lib"; then
28315     ac_res="none required"
28316   else
28317     ac_res=-l$ac_lib
28318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28319   fi
28320   rm -f conftest.$ac_objext conftest$ac_exeext
28321 if { (ac_try="$ac_link"
28322 case "(($ac_try" in
28323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28324   *) ac_try_echo=$ac_try;;
28325 esac
28326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28327 $as_echo "$ac_try_echo") >&5
28328   (eval "$ac_link") 2>conftest.er1
28329   ac_status=$?
28330   grep -v '^ *+' conftest.er1 >conftest.err
28331   rm -f conftest.er1
28332   cat conftest.err >&5
28333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334   (exit $ac_status); } && {
28335          test -z "$ac_c_werror_flag" ||
28336          test ! -s conftest.err
28337        } && test -s conftest$ac_exeext && {
28338          test "$cross_compiling" = yes ||
28339          $as_test_x conftest$ac_exeext
28340        }; then
28341   ac_cv_search_bind_textdomain_codeset=$ac_res
28342 else
28343   $as_echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346
28347 fi
28348
28349 rm -rf conftest.dSYM
28350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28351       conftest$ac_exeext
28352   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28353   break
28354 fi
28355 done
28356 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28357   :
28358 else
28359   ac_cv_search_bind_textdomain_codeset=no
28360 fi
28361 rm conftest.$ac_ext
28362 LIBS=$ac_func_search_save_LIBS
28363 fi
28364 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28365 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28366 ac_res=$ac_cv_search_bind_textdomain_codeset
28367 if test "$ac_res" != no; then
28368   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28369
28370 else
28371   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28372 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28373    { (exit 1); exit 1; }; }
28374 fi
28375
28376   if test "${ac_cv_header_libintl_h+set}" = set; then
28377   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28378 $as_echo_n "checking for libintl.h... " >&6; }
28379 if test "${ac_cv_header_libintl_h+set}" = set; then
28380   $as_echo_n "(cached) " >&6
28381 fi
28382 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28383 $as_echo "$ac_cv_header_libintl_h" >&6; }
28384 else
28385   # Is the header compilable?
28386 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28387 $as_echo_n "checking libintl.h usability... " >&6; }
28388 cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394 $ac_includes_default
28395 #include <libintl.h>
28396 _ACEOF
28397 rm -f conftest.$ac_objext
28398 if { (ac_try="$ac_compile"
28399 case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28404 $as_echo "$ac_try_echo") >&5
28405   (eval "$ac_compile") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } && {
28412          test -z "$ac_c_werror_flag" ||
28413          test ! -s conftest.err
28414        } && test -s conftest.$ac_objext; then
28415   ac_header_compiler=yes
28416 else
28417   $as_echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28419
28420         ac_header_compiler=no
28421 fi
28422
28423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28424 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28425 $as_echo "$ac_header_compiler" >&6; }
28426
28427 # Is the header present?
28428 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28429 $as_echo_n "checking libintl.h presence... " >&6; }
28430 cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436 #include <libintl.h>
28437 _ACEOF
28438 if { (ac_try="$ac_cpp conftest.$ac_ext"
28439 case "(($ac_try" in
28440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441   *) ac_try_echo=$ac_try;;
28442 esac
28443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28444 $as_echo "$ac_try_echo") >&5
28445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28446   ac_status=$?
28447   grep -v '^ *+' conftest.er1 >conftest.err
28448   rm -f conftest.er1
28449   cat conftest.err >&5
28450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); } >/dev/null && {
28452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28453          test ! -s conftest.err
28454        }; then
28455   ac_header_preproc=yes
28456 else
28457   $as_echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28459
28460   ac_header_preproc=no
28461 fi
28462
28463 rm -f conftest.err conftest.$ac_ext
28464 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28465 $as_echo "$ac_header_preproc" >&6; }
28466
28467 # So?  What about this header?
28468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28469   yes:no: )
28470     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28471 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28472     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28473 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28474     ac_header_preproc=yes
28475     ;;
28476   no:yes:* )
28477     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28478 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28479     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28480 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28481     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28482 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28483     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28484 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28485     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28486 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28487     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28488 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28489     ( cat <<\_ASBOX
28490 ## ---------------------------------------- ##
28491 ## Report this to pgsql-bugs@postgresql.org ##
28492 ## ---------------------------------------- ##
28493 _ASBOX
28494      ) | sed "s/^/$as_me: WARNING:     /" >&2
28495     ;;
28496 esac
28497 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28498 $as_echo_n "checking for libintl.h... " >&6; }
28499 if test "${ac_cv_header_libintl_h+set}" = set; then
28500   $as_echo_n "(cached) " >&6
28501 else
28502   ac_cv_header_libintl_h=$ac_header_preproc
28503 fi
28504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28505 $as_echo "$ac_cv_header_libintl_h" >&6; }
28506
28507 fi
28508 if test "x$ac_cv_header_libintl_h" = x""yes; then
28509   :
28510 else
28511   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28512 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28513    { (exit 1); exit 1; }; }
28514 fi
28515
28516
28517   for ac_prog in msgfmt
28518 do
28519   # Extract the first word of "$ac_prog", so it can be a program name with args.
28520 set dummy $ac_prog; ac_word=$2
28521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28522 $as_echo_n "checking for $ac_word... " >&6; }
28523 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28524   $as_echo_n "(cached) " >&6
28525 else
28526   if test -n "$MSGFMT"; then
28527   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28528 else
28529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28530 for as_dir in $PATH
28531 do
28532   IFS=$as_save_IFS
28533   test -z "$as_dir" && as_dir=.
28534   for ac_exec_ext in '' $ac_executable_extensions; do
28535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28536     ac_cv_prog_MSGFMT="$ac_prog"
28537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28538     break 2
28539   fi
28540 done
28541 done
28542 IFS=$as_save_IFS
28543
28544 fi
28545 fi
28546 MSGFMT=$ac_cv_prog_MSGFMT
28547 if test -n "$MSGFMT"; then
28548   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28549 $as_echo "$MSGFMT" >&6; }
28550 else
28551   { $as_echo "$as_me:$LINENO: result: no" >&5
28552 $as_echo "no" >&6; }
28553 fi
28554
28555
28556   test -n "$MSGFMT" && break
28557 done
28558
28559   if test -z "$MSGFMT"; then
28560     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28561 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28562    { (exit 1); exit 1; }; }
28563   fi
28564   for ac_prog in msgmerge
28565 do
28566   # Extract the first word of "$ac_prog", so it can be a program name with args.
28567 set dummy $ac_prog; ac_word=$2
28568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28569 $as_echo_n "checking for $ac_word... " >&6; }
28570 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28571   $as_echo_n "(cached) " >&6
28572 else
28573   if test -n "$MSGMERGE"; then
28574   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28575 else
28576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28577 for as_dir in $PATH
28578 do
28579   IFS=$as_save_IFS
28580   test -z "$as_dir" && as_dir=.
28581   for ac_exec_ext in '' $ac_executable_extensions; do
28582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28583     ac_cv_prog_MSGMERGE="$ac_prog"
28584     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28585     break 2
28586   fi
28587 done
28588 done
28589 IFS=$as_save_IFS
28590
28591 fi
28592 fi
28593 MSGMERGE=$ac_cv_prog_MSGMERGE
28594 if test -n "$MSGMERGE"; then
28595   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28596 $as_echo "$MSGMERGE" >&6; }
28597 else
28598   { $as_echo "$as_me:$LINENO: result: no" >&5
28599 $as_echo "no" >&6; }
28600 fi
28601
28602
28603   test -n "$MSGMERGE" && break
28604 done
28605
28606   for ac_prog in xgettext
28607 do
28608   # Extract the first word of "$ac_prog", so it can be a program name with args.
28609 set dummy $ac_prog; ac_word=$2
28610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28611 $as_echo_n "checking for $ac_word... " >&6; }
28612 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28613   $as_echo_n "(cached) " >&6
28614 else
28615   if test -n "$XGETTEXT"; then
28616   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28617 else
28618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28619 for as_dir in $PATH
28620 do
28621   IFS=$as_save_IFS
28622   test -z "$as_dir" && as_dir=.
28623   for ac_exec_ext in '' $ac_executable_extensions; do
28624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28625     ac_cv_prog_XGETTEXT="$ac_prog"
28626     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28627     break 2
28628   fi
28629 done
28630 done
28631 IFS=$as_save_IFS
28632
28633 fi
28634 fi
28635 XGETTEXT=$ac_cv_prog_XGETTEXT
28636 if test -n "$XGETTEXT"; then
28637   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28638 $as_echo "$XGETTEXT" >&6; }
28639 else
28640   { $as_echo "$as_me:$LINENO: result: no" >&5
28641 $as_echo "no" >&6; }
28642 fi
28643
28644
28645   test -n "$XGETTEXT" && break
28646 done
28647
28648
28649 fi
28650
28651 # Check for Tcl configuration script tclConfig.sh
28652 if test "$with_tcl" = yes; then
28653     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28654 do
28655   # Extract the first word of "$ac_prog", so it can be a program name with args.
28656 set dummy $ac_prog; ac_word=$2
28657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28658 $as_echo_n "checking for $ac_word... " >&6; }
28659 if test "${ac_cv_path_TCLSH+set}" = set; then
28660   $as_echo_n "(cached) " >&6
28661 else
28662   case $TCLSH in
28663   [\\/]* | ?:[\\/]*)
28664   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28665   ;;
28666   *)
28667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28668 for as_dir in $PATH
28669 do
28670   IFS=$as_save_IFS
28671   test -z "$as_dir" && as_dir=.
28672   for ac_exec_ext in '' $ac_executable_extensions; do
28673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28674     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28676     break 2
28677   fi
28678 done
28679 done
28680 IFS=$as_save_IFS
28681
28682   ;;
28683 esac
28684 fi
28685 TCLSH=$ac_cv_path_TCLSH
28686 if test -n "$TCLSH"; then
28687   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28688 $as_echo "$TCLSH" >&6; }
28689 else
28690   { $as_echo "$as_me:$LINENO: result: no" >&5
28691 $as_echo "no" >&6; }
28692 fi
28693
28694
28695   test -n "$TCLSH" && break
28696 done
28697
28698 if test x"$TCLSH" = x""; then
28699   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28700 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28701    { (exit 1); exit 1; }; }
28702 fi
28703
28704 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28705 $as_echo_n "checking for tclConfig.sh... " >&6; }
28706 # Let user override test
28707 if test -z "$TCL_CONFIG_SH"; then
28708     pgac_test_dirs="$with_tclconfig"
28709
28710     set X $pgac_test_dirs; shift
28711     if test $# -eq 0; then
28712         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28713 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28714    { (exit 1); exit 1; }; }
28715         set X `echo 'puts $auto_path' | $TCLSH`; shift
28716     fi
28717
28718     for pgac_dir do
28719         if test -r "$pgac_dir/tclConfig.sh"; then
28720             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28721             break
28722         fi
28723     done
28724 fi
28725
28726 if test -z "$TCL_CONFIG_SH"; then
28727     { $as_echo "$as_me:$LINENO: result: no" >&5
28728 $as_echo "no" >&6; }
28729     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28730 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28731    { (exit 1); exit 1; }; }
28732 else
28733     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28734 $as_echo "$TCL_CONFIG_SH" >&6; }
28735 fi
28736
28737
28738
28739     . "$TCL_CONFIG_SH"
28740 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28741 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28742 eval TCL_LIBS=\"$TCL_LIBS\"
28743 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28744 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28745
28746         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28747     ac_save_CPPFLAGS=$CPPFLAGS
28748     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28749     if test "${ac_cv_header_tcl_h+set}" = set; then
28750   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28751 $as_echo_n "checking for tcl.h... " >&6; }
28752 if test "${ac_cv_header_tcl_h+set}" = set; then
28753   $as_echo_n "(cached) " >&6
28754 fi
28755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28756 $as_echo "$ac_cv_header_tcl_h" >&6; }
28757 else
28758   # Is the header compilable?
28759 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28760 $as_echo_n "checking tcl.h usability... " >&6; }
28761 cat >conftest.$ac_ext <<_ACEOF
28762 /* confdefs.h.  */
28763 _ACEOF
28764 cat confdefs.h >>conftest.$ac_ext
28765 cat >>conftest.$ac_ext <<_ACEOF
28766 /* end confdefs.h.  */
28767 $ac_includes_default
28768 #include <tcl.h>
28769 _ACEOF
28770 rm -f conftest.$ac_objext
28771 if { (ac_try="$ac_compile"
28772 case "(($ac_try" in
28773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774   *) ac_try_echo=$ac_try;;
28775 esac
28776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28777 $as_echo "$ac_try_echo") >&5
28778   (eval "$ac_compile") 2>conftest.er1
28779   ac_status=$?
28780   grep -v '^ *+' conftest.er1 >conftest.err
28781   rm -f conftest.er1
28782   cat conftest.err >&5
28783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); } && {
28785          test -z "$ac_c_werror_flag" ||
28786          test ! -s conftest.err
28787        } && test -s conftest.$ac_objext; then
28788   ac_header_compiler=yes
28789 else
28790   $as_echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793         ac_header_compiler=no
28794 fi
28795
28796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28798 $as_echo "$ac_header_compiler" >&6; }
28799
28800 # Is the header present?
28801 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28802 $as_echo_n "checking tcl.h presence... " >&6; }
28803 cat >conftest.$ac_ext <<_ACEOF
28804 /* confdefs.h.  */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h.  */
28809 #include <tcl.h>
28810 _ACEOF
28811 if { (ac_try="$ac_cpp conftest.$ac_ext"
28812 case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28817 $as_echo "$ac_try_echo") >&5
28818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28819   ac_status=$?
28820   grep -v '^ *+' conftest.er1 >conftest.err
28821   rm -f conftest.er1
28822   cat conftest.err >&5
28823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } >/dev/null && {
28825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28826          test ! -s conftest.err
28827        }; then
28828   ac_header_preproc=yes
28829 else
28830   $as_echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28832
28833   ac_header_preproc=no
28834 fi
28835
28836 rm -f conftest.err conftest.$ac_ext
28837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28838 $as_echo "$ac_header_preproc" >&6; }
28839
28840 # So?  What about this header?
28841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28842   yes:no: )
28843     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28844 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28845     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28846 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28847     ac_header_preproc=yes
28848     ;;
28849   no:yes:* )
28850     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28851 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28852     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28853 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28854     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28855 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28856     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28857 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28858     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28859 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28860     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28861 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28862     ( cat <<\_ASBOX
28863 ## ---------------------------------------- ##
28864 ## Report this to pgsql-bugs@postgresql.org ##
28865 ## ---------------------------------------- ##
28866 _ASBOX
28867      ) | sed "s/^/$as_me: WARNING:     /" >&2
28868     ;;
28869 esac
28870 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28871 $as_echo_n "checking for tcl.h... " >&6; }
28872 if test "${ac_cv_header_tcl_h+set}" = set; then
28873   $as_echo_n "(cached) " >&6
28874 else
28875   ac_cv_header_tcl_h=$ac_header_preproc
28876 fi
28877 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28878 $as_echo "$ac_cv_header_tcl_h" >&6; }
28879
28880 fi
28881 if test "x$ac_cv_header_tcl_h" = x""yes; then
28882   :
28883 else
28884   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28885 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28886    { (exit 1); exit 1; }; }
28887 fi
28888
28889
28890     CPPFLAGS=$ac_save_CPPFLAGS
28891 fi
28892
28893 # check for <Python.h>
28894 if test "$with_python" = yes; then
28895   ac_save_CPPFLAGS=$CPPFLAGS
28896   CPPFLAGS="$python_includespec $CPPFLAGS"
28897   if test "${ac_cv_header_Python_h+set}" = set; then
28898   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28899 $as_echo_n "checking for Python.h... " >&6; }
28900 if test "${ac_cv_header_Python_h+set}" = set; then
28901   $as_echo_n "(cached) " >&6
28902 fi
28903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28904 $as_echo "$ac_cv_header_Python_h" >&6; }
28905 else
28906   # Is the header compilable?
28907 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28908 $as_echo_n "checking Python.h usability... " >&6; }
28909 cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915 $ac_includes_default
28916 #include <Python.h>
28917 _ACEOF
28918 rm -f conftest.$ac_objext
28919 if { (ac_try="$ac_compile"
28920 case "(($ac_try" in
28921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922   *) ac_try_echo=$ac_try;;
28923 esac
28924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28925 $as_echo "$ac_try_echo") >&5
28926   (eval "$ac_compile") 2>conftest.er1
28927   ac_status=$?
28928   grep -v '^ *+' conftest.er1 >conftest.err
28929   rm -f conftest.er1
28930   cat conftest.err >&5
28931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); } && {
28933          test -z "$ac_c_werror_flag" ||
28934          test ! -s conftest.err
28935        } && test -s conftest.$ac_objext; then
28936   ac_header_compiler=yes
28937 else
28938   $as_echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941         ac_header_compiler=no
28942 fi
28943
28944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28946 $as_echo "$ac_header_compiler" >&6; }
28947
28948 # Is the header present?
28949 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
28950 $as_echo_n "checking Python.h presence... " >&6; }
28951 cat >conftest.$ac_ext <<_ACEOF
28952 /* confdefs.h.  */
28953 _ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h.  */
28957 #include <Python.h>
28958 _ACEOF
28959 if { (ac_try="$ac_cpp conftest.$ac_ext"
28960 case "(($ac_try" in
28961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962   *) ac_try_echo=$ac_try;;
28963 esac
28964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28965 $as_echo "$ac_try_echo") >&5
28966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28967   ac_status=$?
28968   grep -v '^ *+' conftest.er1 >conftest.err
28969   rm -f conftest.er1
28970   cat conftest.err >&5
28971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); } >/dev/null && {
28973          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28974          test ! -s conftest.err
28975        }; then
28976   ac_header_preproc=yes
28977 else
28978   $as_echo "$as_me: failed program was:" >&5
28979 sed 's/^/| /' conftest.$ac_ext >&5
28980
28981   ac_header_preproc=no
28982 fi
28983
28984 rm -f conftest.err conftest.$ac_ext
28985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28986 $as_echo "$ac_header_preproc" >&6; }
28987
28988 # So?  What about this header?
28989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28990   yes:no: )
28991     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
28992 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28993     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
28994 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
28995     ac_header_preproc=yes
28996     ;;
28997   no:yes:* )
28998     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
28999 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29000     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29001 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29002     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29003 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29004     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29005 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29006     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29007 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29008     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29009 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29010     ( cat <<\_ASBOX
29011 ## ---------------------------------------- ##
29012 ## Report this to pgsql-bugs@postgresql.org ##
29013 ## ---------------------------------------- ##
29014 _ASBOX
29015      ) | sed "s/^/$as_me: WARNING:     /" >&2
29016     ;;
29017 esac
29018 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29019 $as_echo_n "checking for Python.h... " >&6; }
29020 if test "${ac_cv_header_Python_h+set}" = set; then
29021   $as_echo_n "(cached) " >&6
29022 else
29023   ac_cv_header_Python_h=$ac_header_preproc
29024 fi
29025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29026 $as_echo "$ac_cv_header_Python_h" >&6; }
29027
29028 fi
29029 if test "x$ac_cv_header_Python_h" = x""yes; then
29030   :
29031 else
29032   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29033 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29034    { (exit 1); exit 1; }; }
29035 fi
29036
29037
29038   CPPFLAGS=$ac_save_CPPFLAGS
29039 fi
29040
29041 #
29042 # Check for DocBook and tools
29043 #
29044 for ac_prog in onsgmls nsgmls
29045 do
29046   # Extract the first word of "$ac_prog", so it can be a program name with args.
29047 set dummy $ac_prog; ac_word=$2
29048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29049 $as_echo_n "checking for $ac_word... " >&6; }
29050 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29051   $as_echo_n "(cached) " >&6
29052 else
29053   if test -n "$NSGMLS"; then
29054   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29055 else
29056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29057 for as_dir in $PATH
29058 do
29059   IFS=$as_save_IFS
29060   test -z "$as_dir" && as_dir=.
29061   for ac_exec_ext in '' $ac_executable_extensions; do
29062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29063     ac_cv_prog_NSGMLS="$ac_prog"
29064     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29065     break 2
29066   fi
29067 done
29068 done
29069 IFS=$as_save_IFS
29070
29071 fi
29072 fi
29073 NSGMLS=$ac_cv_prog_NSGMLS
29074 if test -n "$NSGMLS"; then
29075   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29076 $as_echo "$NSGMLS" >&6; }
29077 else
29078   { $as_echo "$as_me:$LINENO: result: no" >&5
29079 $as_echo "no" >&6; }
29080 fi
29081
29082
29083   test -n "$NSGMLS" && break
29084 done
29085
29086 for ac_prog in openjade jade
29087 do
29088   # Extract the first word of "$ac_prog", so it can be a program name with args.
29089 set dummy $ac_prog; ac_word=$2
29090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29091 $as_echo_n "checking for $ac_word... " >&6; }
29092 if test "${ac_cv_prog_JADE+set}" = set; then
29093   $as_echo_n "(cached) " >&6
29094 else
29095   if test -n "$JADE"; then
29096   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29097 else
29098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29099 for as_dir in $PATH
29100 do
29101   IFS=$as_save_IFS
29102   test -z "$as_dir" && as_dir=.
29103   for ac_exec_ext in '' $ac_executable_extensions; do
29104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29105     ac_cv_prog_JADE="$ac_prog"
29106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29107     break 2
29108   fi
29109 done
29110 done
29111 IFS=$as_save_IFS
29112
29113 fi
29114 fi
29115 JADE=$ac_cv_prog_JADE
29116 if test -n "$JADE"; then
29117   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29118 $as_echo "$JADE" >&6; }
29119 else
29120   { $as_echo "$as_me:$LINENO: result: no" >&5
29121 $as_echo "no" >&6; }
29122 fi
29123
29124
29125   test -n "$JADE" && break
29126 done
29127
29128
29129 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29130 $as_echo_n "checking for DocBook V4.2... " >&6; }
29131 if test "${pgac_cv_check_docbook+set}" = set; then
29132   $as_echo_n "(cached) " >&6
29133 else
29134   cat >conftest.sgml <<EOF
29135 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29136 <book>
29137  <title>test</title>
29138  <chapter>
29139   <title>random</title>
29140    <sect1>
29141     <title>testsect</title>
29142     <para>text</para>
29143   </sect1>
29144  </chapter>
29145 </book>
29146 EOF
29147
29148 pgac_cv_check_docbook=no
29149
29150 if test -n "$NSGMLS"; then
29151   $NSGMLS -s conftest.sgml 1>&5 2>&1
29152   if test $? -eq 0; then
29153     pgac_cv_check_docbook=yes
29154   fi
29155 fi
29156 rm -f conftest.sgml
29157 fi
29158 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29159 $as_echo "$pgac_cv_check_docbook" >&6; }
29160
29161 have_docbook=$pgac_cv_check_docbook
29162
29163
29164 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29165 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29166 if test "${pgac_cv_path_stylesheets+set}" = set; then
29167   $as_echo_n "(cached) " >&6
29168 else
29169   if test -n "$DOCBOOKSTYLE"; then
29170   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29171 else
29172   for pgac_prefix in /usr /usr/local /opt /sw; do
29173     for pgac_infix in share lib; do
29174       for pgac_postfix in \
29175         sgml/stylesheets/nwalsh-modular \
29176         sgml/stylesheets/docbook \
29177         sgml/stylesheets/dsssl/docbook \
29178         sgml/docbook-dsssl \
29179         sgml/docbook/dsssl/modular \
29180         sgml/docbook/stylesheet/dsssl/modular \
29181         sgml/docbook/dsssl-stylesheets \
29182         sgml/dsssl/docbook-dsssl-nwalsh
29183       do
29184         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29185         if test -r "$pgac_candidate/html/docbook.dsl" \
29186            && test -r "$pgac_candidate/print/docbook.dsl"
29187         then
29188           pgac_cv_path_stylesheets=$pgac_candidate
29189           break 3
29190         fi
29191       done
29192     done
29193   done
29194 fi
29195 fi
29196
29197 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29198
29199 if test -n "$DOCBOOKSTYLE"; then
29200   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29201 $as_echo "$DOCBOOKSTYLE" >&6; }
29202 else
29203   { $as_echo "$as_me:$LINENO: result: no" >&5
29204 $as_echo "no" >&6; }
29205 fi
29206 if test -n "$DOCBOOKSTYLE"; then
29207   for ac_prog in collateindex.pl
29208 do
29209   # Extract the first word of "$ac_prog", so it can be a program name with args.
29210 set dummy $ac_prog; ac_word=$2
29211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29212 $as_echo_n "checking for $ac_word... " >&6; }
29213 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29214   $as_echo_n "(cached) " >&6
29215 else
29216   case $COLLATEINDEX in
29217   [\\/]* | ?:[\\/]*)
29218   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29219   ;;
29220   *)
29221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29222 for as_dir in $DOCBOOKSTYLE/bin $PATH
29223 do
29224   IFS=$as_save_IFS
29225   test -z "$as_dir" && as_dir=.
29226   for ac_exec_ext in '' $ac_executable_extensions; do
29227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29228     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29229     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29230     break 2
29231   fi
29232 done
29233 done
29234 IFS=$as_save_IFS
29235
29236   ;;
29237 esac
29238 fi
29239 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29240 if test -n "$COLLATEINDEX"; then
29241   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29242 $as_echo "$COLLATEINDEX" >&6; }
29243 else
29244   { $as_echo "$as_me:$LINENO: result: no" >&5
29245 $as_echo "no" >&6; }
29246 fi
29247
29248
29249   test -n "$COLLATEINDEX" && break
29250 done
29251
29252 else
29253   for ac_prog in collateindex.pl
29254 do
29255   # Extract the first word of "$ac_prog", so it can be a program name with args.
29256 set dummy $ac_prog; ac_word=$2
29257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29258 $as_echo_n "checking for $ac_word... " >&6; }
29259 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29260   $as_echo_n "(cached) " >&6
29261 else
29262   case $COLLATEINDEX in
29263   [\\/]* | ?:[\\/]*)
29264   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29265   ;;
29266   *)
29267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29268 for as_dir in $PATH
29269 do
29270   IFS=$as_save_IFS
29271   test -z "$as_dir" && as_dir=.
29272   for ac_exec_ext in '' $ac_executable_extensions; do
29273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29274     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29276     break 2
29277   fi
29278 done
29279 done
29280 IFS=$as_save_IFS
29281
29282   ;;
29283 esac
29284 fi
29285 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29286 if test -n "$COLLATEINDEX"; then
29287   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29288 $as_echo "$COLLATEINDEX" >&6; }
29289 else
29290   { $as_echo "$as_me:$LINENO: result: no" >&5
29291 $as_echo "no" >&6; }
29292 fi
29293
29294
29295   test -n "$COLLATEINDEX" && break
29296 done
29297
29298 fi
29299 for ac_prog in xsltproc
29300 do
29301   # Extract the first word of "$ac_prog", so it can be a program name with args.
29302 set dummy $ac_prog; ac_word=$2
29303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29304 $as_echo_n "checking for $ac_word... " >&6; }
29305 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29306   $as_echo_n "(cached) " >&6
29307 else
29308   if test -n "$XSLTPROC"; then
29309   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29310 else
29311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29312 for as_dir in $PATH
29313 do
29314   IFS=$as_save_IFS
29315   test -z "$as_dir" && as_dir=.
29316   for ac_exec_ext in '' $ac_executable_extensions; do
29317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29318     ac_cv_prog_XSLTPROC="$ac_prog"
29319     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29320     break 2
29321   fi
29322 done
29323 done
29324 IFS=$as_save_IFS
29325
29326 fi
29327 fi
29328 XSLTPROC=$ac_cv_prog_XSLTPROC
29329 if test -n "$XSLTPROC"; then
29330   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29331 $as_echo "$XSLTPROC" >&6; }
29332 else
29333   { $as_echo "$as_me:$LINENO: result: no" >&5
29334 $as_echo "no" >&6; }
29335 fi
29336
29337
29338   test -n "$XSLTPROC" && break
29339 done
29340
29341 for ac_prog in osx sgml2xml sx
29342 do
29343   # Extract the first word of "$ac_prog", so it can be a program name with args.
29344 set dummy $ac_prog; ac_word=$2
29345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29346 $as_echo_n "checking for $ac_word... " >&6; }
29347 if test "${ac_cv_prog_OSX+set}" = set; then
29348   $as_echo_n "(cached) " >&6
29349 else
29350   if test -n "$OSX"; then
29351   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29352 else
29353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29354 for as_dir in $PATH
29355 do
29356   IFS=$as_save_IFS
29357   test -z "$as_dir" && as_dir=.
29358   for ac_exec_ext in '' $ac_executable_extensions; do
29359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29360     ac_cv_prog_OSX="$ac_prog"
29361     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29362     break 2
29363   fi
29364 done
29365 done
29366 IFS=$as_save_IFS
29367
29368 fi
29369 fi
29370 OSX=$ac_cv_prog_OSX
29371 if test -n "$OSX"; then
29372   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29373 $as_echo "$OSX" >&6; }
29374 else
29375   { $as_echo "$as_me:$LINENO: result: no" >&5
29376 $as_echo "no" >&6; }
29377 fi
29378
29379
29380   test -n "$OSX" && break
29381 done
29382
29383
29384 # Thread testing
29385
29386 # We have to run the thread test near the end so we have all our symbols
29387 # defined.  Cross compiling throws a warning.
29388 #
29389 if test "$enable_thread_safety" = yes; then
29390 if test "$PORTNAME" != "win32"
29391 then
29392 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29393 $as_echo_n "checking thread safety of required library functions... " >&6; }
29394
29395 _CFLAGS="$CFLAGS"
29396 _LIBS="$LIBS"
29397 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29398 LIBS="$LIBS $PTHREAD_LIBS"
29399 if test "$cross_compiling" = yes; then
29400   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29401 $as_echo "maybe" >&6; }
29402   { $as_echo "$as_me:$LINENO: WARNING:
29403 *** Skipping thread test program because of cross-compile build.
29404 *** Run the program in src/test/thread on the target machine.
29405 " >&5
29406 $as_echo "$as_me: WARNING:
29407 *** Skipping thread test program because of cross-compile build.
29408 *** Run the program in src/test/thread on the target machine.
29409 " >&2;}
29410 else
29411   cat >conftest.$ac_ext <<_ACEOF
29412 /* confdefs.h.  */
29413 _ACEOF
29414 cat confdefs.h >>conftest.$ac_ext
29415 cat >>conftest.$ac_ext <<_ACEOF
29416 /* end confdefs.h.  */
29417 #include "$srcdir/src/test/thread/thread_test.c"
29418 _ACEOF
29419 rm -f conftest$ac_exeext
29420 if { (ac_try="$ac_link"
29421 case "(($ac_try" in
29422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423   *) ac_try_echo=$ac_try;;
29424 esac
29425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29426 $as_echo "$ac_try_echo") >&5
29427   (eval "$ac_link") 2>&5
29428   ac_status=$?
29429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29431   { (case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29436 $as_echo "$ac_try_echo") >&5
29437   (eval "$ac_try") 2>&5
29438   ac_status=$?
29439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440   (exit $ac_status); }; }; then
29441   { $as_echo "$as_me:$LINENO: result: yes" >&5
29442 $as_echo "yes" >&6; }
29443 else
29444   $as_echo "$as_me: program exited with status $ac_status" >&5
29445 $as_echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29447
29448 ( exit $ac_status )
29449 { $as_echo "$as_me:$LINENO: result: no" >&5
29450 $as_echo "no" >&6; }
29451   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29452 This platform is not thread-safe.  Check the file 'config.log' or compile
29453 and run src/test/thread/thread_test for the exact reason.
29454 Use --disable-thread-safety to disable thread safety." >&5
29455 $as_echo "$as_me: error: thread test program failed
29456 This platform is not thread-safe.  Check the file 'config.log' or compile
29457 and run src/test/thread/thread_test for the exact reason.
29458 Use --disable-thread-safety to disable thread safety." >&2;}
29459    { (exit 1); exit 1; }; }
29460 fi
29461 rm -rf conftest.dSYM
29462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29463 fi
29464
29465
29466 CFLAGS="$_CFLAGS"
29467 LIBS="$_LIBS"
29468 else
29469 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29470 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29471 fi
29472 fi
29473
29474 # If compiler will take -Wl,--as-needed (or various platform-specific
29475 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29476 # trying to filter LIBS to the minimum for each executable.
29477 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29478 # libreadline; therefore we postpone testing it until we know what library
29479 # dependencies readline has.  The test code will try to link with $LIBS.
29480 if test "$with_readline" = yes; then
29481   link_test_func=readline
29482 else
29483   link_test_func=exit
29484 fi
29485
29486 if test "$PORTNAME" = "darwin"; then
29487   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29488 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29489 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29490   $as_echo_n "(cached) " >&6
29491 else
29492   pgac_save_LDFLAGS=$LDFLAGS
29493 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29494 if test "$cross_compiling" = yes; then
29495   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29496 else
29497   cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h.  */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h.  */
29503 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29504 int
29505 main ()
29506 {
29507
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 rm -f conftest$ac_exeext
29513 if { (ac_try="$ac_link"
29514 case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29519 $as_echo "$ac_try_echo") >&5
29520   (eval "$ac_link") 2>&5
29521   ac_status=$?
29522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29524   { (case "(($ac_try" in
29525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526   *) ac_try_echo=$ac_try;;
29527 esac
29528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29529 $as_echo "$ac_try_echo") >&5
29530   (eval "$ac_try") 2>&5
29531   ac_status=$?
29532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); }; }; then
29534   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29535 else
29536   $as_echo "$as_me: program exited with status $ac_status" >&5
29537 $as_echo "$as_me: failed program was:" >&5
29538 sed 's/^/| /' conftest.$ac_ext >&5
29539
29540 ( exit $ac_status )
29541 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29542 fi
29543 rm -rf conftest.dSYM
29544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29545 fi
29546
29547
29548 LDFLAGS="$pgac_save_LDFLAGS"
29549 fi
29550 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29551 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29552 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29553   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29554 fi
29555
29556 elif test "$PORTNAME" = "openbsd"; then
29557   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29558 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29559 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29560   $as_echo_n "(cached) " >&6
29561 else
29562   pgac_save_LDFLAGS=$LDFLAGS
29563 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29564 if test "$cross_compiling" = yes; then
29565   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29566 else
29567   cat >conftest.$ac_ext <<_ACEOF
29568 /* confdefs.h.  */
29569 _ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h.  */
29573 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29574 int
29575 main ()
29576 {
29577
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 rm -f conftest$ac_exeext
29583 if { (ac_try="$ac_link"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29589 $as_echo "$ac_try_echo") >&5
29590   (eval "$ac_link") 2>&5
29591   ac_status=$?
29592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29594   { (case "(($ac_try" in
29595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596   *) ac_try_echo=$ac_try;;
29597 esac
29598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29599 $as_echo "$ac_try_echo") >&5
29600   (eval "$ac_try") 2>&5
29601   ac_status=$?
29602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29605 else
29606   $as_echo "$as_me: program exited with status $ac_status" >&5
29607 $as_echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29609
29610 ( exit $ac_status )
29611 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29612 fi
29613 rm -rf conftest.dSYM
29614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29615 fi
29616
29617
29618 LDFLAGS="$pgac_save_LDFLAGS"
29619 fi
29620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29621 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29622 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29623   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29624 fi
29625
29626 else
29627   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29628 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29629 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29630   $as_echo_n "(cached) " >&6
29631 else
29632   pgac_save_LDFLAGS=$LDFLAGS
29633 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29634 if test "$cross_compiling" = yes; then
29635   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29636 else
29637   cat >conftest.$ac_ext <<_ACEOF
29638 /* confdefs.h.  */
29639 _ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h.  */
29643 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29644 int
29645 main ()
29646 {
29647
29648   ;
29649   return 0;
29650 }
29651 _ACEOF
29652 rm -f conftest$ac_exeext
29653 if { (ac_try="$ac_link"
29654 case "(($ac_try" in
29655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656   *) ac_try_echo=$ac_try;;
29657 esac
29658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29659 $as_echo "$ac_try_echo") >&5
29660   (eval "$ac_link") 2>&5
29661   ac_status=$?
29662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29664   { (case "(($ac_try" in
29665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666   *) ac_try_echo=$ac_try;;
29667 esac
29668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669 $as_echo "$ac_try_echo") >&5
29670   (eval "$ac_try") 2>&5
29671   ac_status=$?
29672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); }; }; then
29674   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29675 else
29676   $as_echo "$as_me: program exited with status $ac_status" >&5
29677 $as_echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29679
29680 ( exit $ac_status )
29681 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29682 fi
29683 rm -rf conftest.dSYM
29684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29685 fi
29686
29687
29688 LDFLAGS="$pgac_save_LDFLAGS"
29689 fi
29690 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29691 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29692 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29693   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29694 fi
29695
29696 fi
29697
29698
29699 # Begin output steps
29700
29701 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29702 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29703 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29704 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29705 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29706 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29707
29708 # Create compiler version string
29709 if test x"$GCC" = x"yes" ; then
29710   cc_string=`${CC} --version | sed q`
29711   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29712 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29713   cc_string=`${CC} -V 2>&1 | sed q`
29714 else
29715   cc_string=$CC
29716 fi
29717
29718
29719 cat >>confdefs.h <<_ACEOF
29720 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29721 _ACEOF
29722
29723
29724 # Supply a numeric version string for use by 3rd party add-ons
29725 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29726 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29727 tr '.' '        ' |
29728 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29729
29730 cat >>confdefs.h <<_ACEOF
29731 #define PG_VERSION_NUM $PG_VERSION_NUM
29732 _ACEOF
29733
29734
29735
29736 # prepare build tree if outside source tree
29737 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29738 # Note 2: /bin/pwd might be better than shell's built-in at getting
29739 #         a symlink-free name.
29740 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29741   vpath_build=no
29742 else
29743   vpath_build=yes
29744   if test "$no_create" != yes; then
29745     $as_echo_n "preparing build tree... " >&6
29746     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29747     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29748       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29749 $as_echo "$as_me: error: failed" >&2;}
29750    { (exit 1); exit 1; }; }
29751     { $as_echo "$as_me:$LINENO: result: done" >&5
29752 $as_echo "done" >&6; }
29753   fi
29754 fi
29755
29756
29757
29758 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29759
29760
29761 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}"
29762
29763
29764 if test "$PORTNAME" = "win32"; then
29765 ac_config_commands="$ac_config_commands check_win32_symlinks"
29766
29767 fi
29768
29769 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29770
29771
29772 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29773
29774
29775 cat >confcache <<\_ACEOF
29776 # This file is a shell script that caches the results of configure
29777 # tests run on this system so they can be shared between configure
29778 # scripts and configure runs, see configure's option --config-cache.
29779 # It is not useful on other systems.  If it contains results you don't
29780 # want to keep, you may remove or edit it.
29781 #
29782 # config.status only pays attention to the cache file if you give it
29783 # the --recheck option to rerun configure.
29784 #
29785 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29786 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29787 # following values.
29788
29789 _ACEOF
29790
29791 # The following way of writing the cache mishandles newlines in values,
29792 # but we know of no workaround that is simple, portable, and efficient.
29793 # So, we kill variables containing newlines.
29794 # Ultrix sh set writes to stderr and can't be redirected directly,
29795 # and sets the high bit in the cache file unless we assign to the vars.
29796 (
29797   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29798     eval ac_val=\$$ac_var
29799     case $ac_val in #(
29800     *${as_nl}*)
29801       case $ac_var in #(
29802       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29804       esac
29805       case $ac_var in #(
29806       _ | IFS | as_nl) ;; #(
29807       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29808       *) $as_unset $ac_var ;;
29809       esac ;;
29810     esac
29811   done
29812
29813   (set) 2>&1 |
29814     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29815     *${as_nl}ac_space=\ *)
29816       # `set' does not quote correctly, so add quotes (double-quote
29817       # substitution turns \\\\ into \\, and sed turns \\ into \).
29818       sed -n \
29819         "s/'/'\\\\''/g;
29820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29821       ;; #(
29822     *)
29823       # `set' quotes correctly as required by POSIX, so do not add quotes.
29824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29825       ;;
29826     esac |
29827     sort
29828 ) |
29829   sed '
29830      /^ac_cv_env_/b end
29831      t clear
29832      :clear
29833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29834      t end
29835      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29836      :end' >>confcache
29837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29838   if test -w "$cache_file"; then
29839     test "x$cache_file" != "x/dev/null" &&
29840       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29841 $as_echo "$as_me: updating cache $cache_file" >&6;}
29842     cat confcache >$cache_file
29843   else
29844     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29845 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29846   fi
29847 fi
29848 rm -f confcache
29849
29850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29851 # Let make expand exec_prefix.
29852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29853
29854 DEFS=-DHAVE_CONFIG_H
29855
29856 ac_libobjs=
29857 ac_ltlibobjs=
29858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29859   # 1. Remove the extension, and $U if already installed.
29860   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29861   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29862   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29863   #    will be set to the directory where LIBOBJS objects are built.
29864   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29865   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29866 done
29867 LIBOBJS=$ac_libobjs
29868
29869 LTLIBOBJS=$ac_ltlibobjs
29870
29871
29872
29873
29874 : ${CONFIG_STATUS=./config.status}
29875 ac_write_fail=0
29876 ac_clean_files_save=$ac_clean_files
29877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29878 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29880 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29881 #! $SHELL
29882 # Generated by $as_me.
29883 # Run this file to recreate the current configuration.
29884 # Compiler output produced by configure, useful for debugging
29885 # configure, is in config.log if it exists.
29886
29887 debug=false
29888 ac_cs_recheck=false
29889 ac_cs_silent=false
29890 SHELL=\${CONFIG_SHELL-$SHELL}
29891 _ACEOF
29892
29893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29894 ## --------------------- ##
29895 ## M4sh Initialization.  ##
29896 ## --------------------- ##
29897
29898 # Be more Bourne compatible
29899 DUALCASE=1; export DUALCASE # for MKS sh
29900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29901   emulate sh
29902   NULLCMD=:
29903   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29904   # is contrary to our usage.  Disable this feature.
29905   alias -g '${1+"$@"}'='"$@"'
29906   setopt NO_GLOB_SUBST
29907 else
29908   case `(set -o) 2>/dev/null` in
29909   *posix*) set -o posix ;;
29910 esac
29911
29912 fi
29913
29914
29915
29916
29917 # PATH needs CR
29918 # Avoid depending upon Character Ranges.
29919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29922 as_cr_digits='0123456789'
29923 as_cr_alnum=$as_cr_Letters$as_cr_digits
29924
29925 as_nl='
29926 '
29927 export as_nl
29928 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29929 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29930 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29931 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29932 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29933   as_echo='printf %s\n'
29934   as_echo_n='printf %s'
29935 else
29936   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29937     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29938     as_echo_n='/usr/ucb/echo -n'
29939   else
29940     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29941     as_echo_n_body='eval
29942       arg=$1;
29943       case $arg in
29944       *"$as_nl"*)
29945         expr "X$arg" : "X\\(.*\\)$as_nl";
29946         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29947       esac;
29948       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29949     '
29950     export as_echo_n_body
29951     as_echo_n='sh -c $as_echo_n_body as_echo'
29952   fi
29953   export as_echo_body
29954   as_echo='sh -c $as_echo_body as_echo'
29955 fi
29956
29957 # The user is always right.
29958 if test "${PATH_SEPARATOR+set}" != set; then
29959   PATH_SEPARATOR=:
29960   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29961     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29962       PATH_SEPARATOR=';'
29963   }
29964 fi
29965
29966 # Support unset when possible.
29967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29968   as_unset=unset
29969 else
29970   as_unset=false
29971 fi
29972
29973
29974 # IFS
29975 # We need space, tab and new line, in precisely that order.  Quoting is
29976 # there to prevent editors from complaining about space-tab.
29977 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29978 # splitting by setting IFS to empty value.)
29979 IFS=" ""        $as_nl"
29980
29981 # Find who we are.  Look in the path if we contain no directory separator.
29982 case $0 in
29983   *[\\/]* ) as_myself=$0 ;;
29984   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29985 for as_dir in $PATH
29986 do
29987   IFS=$as_save_IFS
29988   test -z "$as_dir" && as_dir=.
29989   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29990 done
29991 IFS=$as_save_IFS
29992
29993      ;;
29994 esac
29995 # We did not find ourselves, most probably we were run as `sh COMMAND'
29996 # in which case we are not to be found in the path.
29997 if test "x$as_myself" = x; then
29998   as_myself=$0
29999 fi
30000 if test ! -f "$as_myself"; then
30001   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30002   { (exit 1); exit 1; }
30003 fi
30004
30005 # Work around bugs in pre-3.0 UWIN ksh.
30006 for as_var in ENV MAIL MAILPATH
30007 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30008 done
30009 PS1='$ '
30010 PS2='> '
30011 PS4='+ '
30012
30013 # NLS nuisances.
30014 LC_ALL=C
30015 export LC_ALL
30016 LANGUAGE=C
30017 export LANGUAGE
30018
30019 # Required to use basename.
30020 if expr a : '\(a\)' >/dev/null 2>&1 &&
30021    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30022   as_expr=expr
30023 else
30024   as_expr=false
30025 fi
30026
30027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30028   as_basename=basename
30029 else
30030   as_basename=false
30031 fi
30032
30033
30034 # Name of the executable.
30035 as_me=`$as_basename -- "$0" ||
30036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30037          X"$0" : 'X\(//\)$' \| \
30038          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30039 $as_echo X/"$0" |
30040     sed '/^.*\/\([^/][^/]*\)\/*$/{
30041             s//\1/
30042             q
30043           }
30044           /^X\/\(\/\/\)$/{
30045             s//\1/
30046             q
30047           }
30048           /^X\/\(\/\).*/{
30049             s//\1/
30050             q
30051           }
30052           s/.*/./; q'`
30053
30054 # CDPATH.
30055 $as_unset CDPATH
30056
30057
30058
30059   as_lineno_1=$LINENO
30060   as_lineno_2=$LINENO
30061   test "x$as_lineno_1" != "x$as_lineno_2" &&
30062   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30063
30064   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30065   # uniformly replaced by the line number.  The first 'sed' inserts a
30066   # line-number line after each line using $LINENO; the second 'sed'
30067   # does the real work.  The second script uses 'N' to pair each
30068   # line-number line with the line containing $LINENO, and appends
30069   # trailing '-' during substitution so that $LINENO is not a special
30070   # case at line end.
30071   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30072   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30073   # E. McMahon (1931-1989) for sed's syntax.  :-)
30074   sed -n '
30075     p
30076     /[$]LINENO/=
30077   ' <$as_myself |
30078     sed '
30079       s/[$]LINENO.*/&-/
30080       t lineno
30081       b
30082       :lineno
30083       N
30084       :loop
30085       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30086       t loop
30087       s/-\n.*//
30088     ' >$as_me.lineno &&
30089   chmod +x "$as_me.lineno" ||
30090     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30091    { (exit 1); exit 1; }; }
30092
30093   # Don't try to exec as it changes $[0], causing all sort of problems
30094   # (the dirname of $[0] is not the place where we might find the
30095   # original and so on.  Autoconf is especially sensitive to this).
30096   . "./$as_me.lineno"
30097   # Exit status is that of the last command.
30098   exit
30099 }
30100
30101
30102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30103   as_dirname=dirname
30104 else
30105   as_dirname=false
30106 fi
30107
30108 ECHO_C= ECHO_N= ECHO_T=
30109 case `echo -n x` in
30110 -n*)
30111   case `echo 'x\c'` in
30112   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30113   *)   ECHO_C='\c';;
30114   esac;;
30115 *)
30116   ECHO_N='-n';;
30117 esac
30118 if expr a : '\(a\)' >/dev/null 2>&1 &&
30119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30120   as_expr=expr
30121 else
30122   as_expr=false
30123 fi
30124
30125 rm -f conf$$ conf$$.exe conf$$.file
30126 if test -d conf$$.dir; then
30127   rm -f conf$$.dir/conf$$.file
30128 else
30129   rm -f conf$$.dir
30130   mkdir conf$$.dir 2>/dev/null
30131 fi
30132 if (echo >conf$$.file) 2>/dev/null; then
30133   if ln -s conf$$.file conf$$ 2>/dev/null; then
30134     as_ln_s='ln -s'
30135     # ... but there are two gotchas:
30136     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30137     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30138     # In both cases, we have to default to `cp -p'.
30139     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30140       as_ln_s='cp -p'
30141   elif ln conf$$.file conf$$ 2>/dev/null; then
30142     as_ln_s=ln
30143   else
30144     as_ln_s='cp -p'
30145   fi
30146 else
30147   as_ln_s='cp -p'
30148 fi
30149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30150 rmdir conf$$.dir 2>/dev/null
30151
30152 if mkdir -p . 2>/dev/null; then
30153   as_mkdir_p=:
30154 else
30155   test -d ./-p && rmdir ./-p
30156   as_mkdir_p=false
30157 fi
30158
30159 if test -x / >/dev/null 2>&1; then
30160   as_test_x='test -x'
30161 else
30162   if ls -dL / >/dev/null 2>&1; then
30163     as_ls_L_option=L
30164   else
30165     as_ls_L_option=
30166   fi
30167   as_test_x='
30168     eval sh -c '\''
30169       if test -d "$1"; then
30170         test -d "$1/.";
30171       else
30172         case $1 in
30173         -*)set "./$1";;
30174         esac;
30175         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30176         ???[sx]*):;;*)false;;esac;fi
30177     '\'' sh
30178   '
30179 fi
30180 as_executable_p=$as_test_x
30181
30182 # Sed expression to map a string onto a valid CPP name.
30183 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30184
30185 # Sed expression to map a string onto a valid variable name.
30186 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30187
30188
30189 exec 6>&1
30190
30191 # Save the log message, to keep $[0] and so on meaningful, and to
30192 # report actual input values of CONFIG_FILES etc. instead of their
30193 # values after options handling.
30194 ac_log="
30195 This file was extended by PostgreSQL $as_me 9.2devel, which was
30196 generated by GNU Autoconf 2.63.  Invocation command line was
30197
30198   CONFIG_FILES    = $CONFIG_FILES
30199   CONFIG_HEADERS  = $CONFIG_HEADERS
30200   CONFIG_LINKS    = $CONFIG_LINKS
30201   CONFIG_COMMANDS = $CONFIG_COMMANDS
30202   $ $0 $@
30203
30204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30205 "
30206
30207 _ACEOF
30208
30209 case $ac_config_files in *"
30210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30211 esac
30212
30213 case $ac_config_headers in *"
30214 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30215 esac
30216
30217
30218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30219 # Files that config.status was made for.
30220 config_files="$ac_config_files"
30221 config_headers="$ac_config_headers"
30222 config_links="$ac_config_links"
30223 config_commands="$ac_config_commands"
30224
30225 _ACEOF
30226
30227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30228 ac_cs_usage="\
30229 \`$as_me' instantiates files from templates according to the
30230 current configuration.
30231
30232 Usage: $0 [OPTION]... [FILE]...
30233
30234   -h, --help       print this help, then exit
30235   -V, --version    print version number and configuration settings, then exit
30236   -q, --quiet, --silent
30237                    do not print progress messages
30238   -d, --debug      don't remove temporary files
30239       --recheck    update $as_me by reconfiguring in the same conditions
30240       --file=FILE[:TEMPLATE]
30241                    instantiate the configuration file FILE
30242       --header=FILE[:TEMPLATE]
30243                    instantiate the configuration header FILE
30244
30245 Configuration files:
30246 $config_files
30247
30248 Configuration headers:
30249 $config_headers
30250
30251 Configuration links:
30252 $config_links
30253
30254 Configuration commands:
30255 $config_commands
30256
30257 Report bugs to <bug-autoconf@gnu.org>."
30258
30259 _ACEOF
30260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30261 ac_cs_version="\\
30262 PostgreSQL config.status 9.2devel
30263 configured by $0, generated by GNU Autoconf 2.63,
30264   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30265
30266 Copyright (C) 2008 Free Software Foundation, Inc.
30267 This config.status script is free software; the Free Software Foundation
30268 gives unlimited permission to copy, distribute and modify it."
30269
30270 ac_pwd='$ac_pwd'
30271 srcdir='$srcdir'
30272 MKDIR_P='$MKDIR_P'
30273 AWK='$AWK'
30274 test -n "\$AWK" || AWK=awk
30275 _ACEOF
30276
30277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30278 # The default lists apply if the user does not specify any file.
30279 ac_need_defaults=:
30280 while test $# != 0
30281 do
30282   case $1 in
30283   --*=*)
30284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30285     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30286     ac_shift=:
30287     ;;
30288   *)
30289     ac_option=$1
30290     ac_optarg=$2
30291     ac_shift=shift
30292     ;;
30293   esac
30294
30295   case $ac_option in
30296   # Handling of the options.
30297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30298     ac_cs_recheck=: ;;
30299   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30300     $as_echo "$ac_cs_version"; exit ;;
30301   --debug | --debu | --deb | --de | --d | -d )
30302     debug=: ;;
30303   --file | --fil | --fi | --f )
30304     $ac_shift
30305     case $ac_optarg in
30306     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30307     esac
30308     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30309     ac_need_defaults=false;;
30310   --header | --heade | --head | --hea )
30311     $ac_shift
30312     case $ac_optarg in
30313     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30314     esac
30315     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30316     ac_need_defaults=false;;
30317   --he | --h)
30318     # Conflict between --help and --header
30319     { $as_echo "$as_me: error: ambiguous option: $1
30320 Try \`$0 --help' for more information." >&2
30321    { (exit 1); exit 1; }; };;
30322   --help | --hel | -h )
30323     $as_echo "$ac_cs_usage"; exit ;;
30324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30326     ac_cs_silent=: ;;
30327
30328   # This is an error.
30329   -*) { $as_echo "$as_me: error: unrecognized option: $1
30330 Try \`$0 --help' for more information." >&2
30331    { (exit 1); exit 1; }; } ;;
30332
30333   *) ac_config_targets="$ac_config_targets $1"
30334      ac_need_defaults=false ;;
30335
30336   esac
30337   shift
30338 done
30339
30340 ac_configure_extra_args=
30341
30342 if $ac_cs_silent; then
30343   exec 6>/dev/null
30344   ac_configure_extra_args="$ac_configure_extra_args --silent"
30345 fi
30346
30347 _ACEOF
30348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30349 if \$ac_cs_recheck; then
30350   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30351   shift
30352   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30353   CONFIG_SHELL='$SHELL'
30354   export CONFIG_SHELL
30355   exec "\$@"
30356 fi
30357
30358 _ACEOF
30359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30360 exec 5>>config.log
30361 {
30362   echo
30363   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30364 ## Running $as_me. ##
30365 _ASBOX
30366   $as_echo "$ac_log"
30367 } >&5
30368
30369 _ACEOF
30370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30371 _ACEOF
30372
30373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30374
30375 # Handling of arguments.
30376 for ac_config_target in $ac_config_targets
30377 do
30378   case $ac_config_target in
30379     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30380     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30381     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30382     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30383     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30384     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30385     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30386     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30387     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30388     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30389     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30390     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30391     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30392
30393   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30394 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30395    { (exit 1); exit 1; }; };;
30396   esac
30397 done
30398
30399
30400 # If the user did not use the arguments to specify the items to instantiate,
30401 # then the envvar interface is used.  Set only those that are not.
30402 # We use the long form for the default assignment because of an extremely
30403 # bizarre bug on SunOS 4.1.3.
30404 if $ac_need_defaults; then
30405   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30406   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30407   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30408   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30409 fi
30410
30411 # Have a temporary directory for convenience.  Make it in the build tree
30412 # simply because there is no reason against having it here, and in addition,
30413 # creating and moving files from /tmp can sometimes cause problems.
30414 # Hook for its removal unless debugging.
30415 # Note that there is a small window in which the directory will not be cleaned:
30416 # after its creation but before its name has been assigned to `$tmp'.
30417 $debug ||
30418 {
30419   tmp=
30420   trap 'exit_status=$?
30421   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30422 ' 0
30423   trap '{ (exit 1); exit 1; }' 1 2 13 15
30424 }
30425 # Create a (secure) tmp directory for tmp files.
30426
30427 {
30428   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30429   test -n "$tmp" && test -d "$tmp"
30430 }  ||
30431 {
30432   tmp=./conf$$-$RANDOM
30433   (umask 077 && mkdir "$tmp")
30434 } ||
30435 {
30436    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30437    { (exit 1); exit 1; }
30438 }
30439
30440 # Set up the scripts for CONFIG_FILES section.
30441 # No need to generate them if there are no CONFIG_FILES.
30442 # This happens for instance with `./config.status config.h'.
30443 if test -n "$CONFIG_FILES"; then
30444
30445
30446 ac_cr='\r'
30447 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30448 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30449   ac_cs_awk_cr='\\r'
30450 else
30451   ac_cs_awk_cr=$ac_cr
30452 fi
30453
30454 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30455 _ACEOF
30456
30457
30458 {
30459   echo "cat >conf$$subs.awk <<_ACEOF" &&
30460   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30461   echo "_ACEOF"
30462 } >conf$$subs.sh ||
30463   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30464 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30465    { (exit 1); exit 1; }; }
30466 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30467 ac_delim='%!_!# '
30468 for ac_last_try in false false false false false :; do
30469   . ./conf$$subs.sh ||
30470     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30471 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30472    { (exit 1); exit 1; }; }
30473
30474   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30475   if test $ac_delim_n = $ac_delim_num; then
30476     break
30477   elif $ac_last_try; then
30478     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30479 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30480    { (exit 1); exit 1; }; }
30481   else
30482     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30483   fi
30484 done
30485 rm -f conf$$subs.sh
30486
30487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30488 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30489 _ACEOF
30490 sed -n '
30491 h
30492 s/^/S["/; s/!.*/"]=/
30493 p
30494 g
30495 s/^[^!]*!//
30496 :repl
30497 t repl
30498 s/'"$ac_delim"'$//
30499 t delim
30500 :nl
30501 h
30502 s/\(.\{148\}\).*/\1/
30503 t more1
30504 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30505 p
30506 n
30507 b repl
30508 :more1
30509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30510 p
30511 g
30512 s/.\{148\}//
30513 t nl
30514 :delim
30515 h
30516 s/\(.\{148\}\).*/\1/
30517 t more2
30518 s/["\\]/\\&/g; s/^/"/; s/$/"/
30519 p
30520 b
30521 :more2
30522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30523 p
30524 g
30525 s/.\{148\}//
30526 t delim
30527 ' <conf$$subs.awk | sed '
30528 /^[^""]/{
30529   N
30530   s/\n//
30531 }
30532 ' >>$CONFIG_STATUS || ac_write_fail=1
30533 rm -f conf$$subs.awk
30534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30535 _ACAWK
30536 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30537   for (key in S) S_is_set[key] = 1
30538   FS = "\a"
30539
30540 }
30541 {
30542   line = $ 0
30543   nfields = split(line, field, "@")
30544   substed = 0
30545   len = length(field[1])
30546   for (i = 2; i < nfields; i++) {
30547     key = field[i]
30548     keylen = length(key)
30549     if (S_is_set[key]) {
30550       value = S[key]
30551       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30552       len += length(value) + length(field[++i])
30553       substed = 1
30554     } else
30555       len += 1 + keylen
30556   }
30557
30558   print line
30559 }
30560
30561 _ACAWK
30562 _ACEOF
30563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30564 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30565   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30566 else
30567   cat
30568 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30569   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30570 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30571    { (exit 1); exit 1; }; }
30572 _ACEOF
30573
30574 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30575 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30576 # trailing colons and then remove the whole line if VPATH becomes empty
30577 # (actually we leave an empty line to preserve line numbers).
30578 if test "x$srcdir" = x.; then
30579   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30580 s/:*\$(srcdir):*/:/
30581 s/:*\${srcdir}:*/:/
30582 s/:*@srcdir@:*/:/
30583 s/^\([^=]*=[     ]*\):*/\1/
30584 s/:*$//
30585 s/^[^=]*=[       ]*$//
30586 }'
30587 fi
30588
30589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30590 fi # test -n "$CONFIG_FILES"
30591
30592 # Set up the scripts for CONFIG_HEADERS section.
30593 # No need to generate them if there are no CONFIG_HEADERS.
30594 # This happens for instance with `./config.status Makefile'.
30595 if test -n "$CONFIG_HEADERS"; then
30596 cat >"$tmp/defines.awk" <<\_ACAWK ||
30597 BEGIN {
30598 _ACEOF
30599
30600 # Transform confdefs.h into an awk script `defines.awk', embedded as
30601 # here-document in config.status, that substitutes the proper values into
30602 # config.h.in to produce config.h.
30603
30604 # Create a delimiter string that does not exist in confdefs.h, to ease
30605 # handling of long lines.
30606 ac_delim='%!_!# '
30607 for ac_last_try in false false :; do
30608   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30609   if test -z "$ac_t"; then
30610     break
30611   elif $ac_last_try; then
30612     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30613 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30614    { (exit 1); exit 1; }; }
30615   else
30616     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30617   fi
30618 done
30619
30620 # For the awk script, D is an array of macro values keyed by name,
30621 # likewise P contains macro parameters if any.  Preserve backslash
30622 # newline sequences.
30623
30624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30625 sed -n '
30626 s/.\{148\}/&'"$ac_delim"'/g
30627 t rset
30628 :rset
30629 s/^[     ]*#[    ]*define[       ][      ]*/ /
30630 t def
30631 d
30632 :def
30633 s/\\$//
30634 t bsnl
30635 s/["\\]/\\&/g
30636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30637 D["\1"]=" \3"/p
30638 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30639 d
30640 :bsnl
30641 s/["\\]/\\&/g
30642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30643 D["\1"]=" \3\\\\\\n"\\/p
30644 t cont
30645 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30646 t cont
30647 d
30648 :cont
30649 n
30650 s/.\{148\}/&'"$ac_delim"'/g
30651 t clear
30652 :clear
30653 s/\\$//
30654 t bsnlc
30655 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30656 d
30657 :bsnlc
30658 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30659 b cont
30660 ' <confdefs.h | sed '
30661 s/'"$ac_delim"'/"\\\
30662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30663
30664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30665   for (key in D) D_is_set[key] = 1
30666   FS = "\a"
30667 }
30668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30669   line = \$ 0
30670   split(line, arg, " ")
30671   if (arg[1] == "#") {
30672     defundef = arg[2]
30673     mac1 = arg[3]
30674   } else {
30675     defundef = substr(arg[1], 2)
30676     mac1 = arg[2]
30677   }
30678   split(mac1, mac2, "(") #)
30679   macro = mac2[1]
30680   prefix = substr(line, 1, index(line, defundef) - 1)
30681   if (D_is_set[macro]) {
30682     # Preserve the white space surrounding the "#".
30683     print prefix "define", macro P[macro] D[macro]
30684     next
30685   } else {
30686     # Replace #undef with comments.  This is necessary, for example,
30687     # in the case of _POSIX_SOURCE, which is predefined and required
30688     # on some systems where configure will not decide to define it.
30689     if (defundef == "undef") {
30690       print "/*", prefix defundef, macro, "*/"
30691       next
30692     }
30693   }
30694 }
30695 { print }
30696 _ACAWK
30697 _ACEOF
30698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30699   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30700 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30701    { (exit 1); exit 1; }; }
30702 fi # test -n "$CONFIG_HEADERS"
30703
30704
30705 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30706 shift
30707 for ac_tag
30708 do
30709   case $ac_tag in
30710   :[FHLC]) ac_mode=$ac_tag; continue;;
30711   esac
30712   case $ac_mode$ac_tag in
30713   :[FHL]*:*);;
30714   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30715 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30716    { (exit 1); exit 1; }; };;
30717   :[FH]-) ac_tag=-:-;;
30718   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30719   esac
30720   ac_save_IFS=$IFS
30721   IFS=:
30722   set x $ac_tag
30723   IFS=$ac_save_IFS
30724   shift
30725   ac_file=$1
30726   shift
30727
30728   case $ac_mode in
30729   :L) ac_source=$1;;
30730   :[FH])
30731     ac_file_inputs=
30732     for ac_f
30733     do
30734       case $ac_f in
30735       -) ac_f="$tmp/stdin";;
30736       *) # Look for the file first in the build tree, then in the source tree
30737          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30738          # because $ac_f cannot contain `:'.
30739          test -f "$ac_f" ||
30740            case $ac_f in
30741            [\\/$]*) false;;
30742            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30743            esac ||
30744            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30745 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30746    { (exit 1); exit 1; }; };;
30747       esac
30748       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30749       ac_file_inputs="$ac_file_inputs '$ac_f'"
30750     done
30751
30752     # Let's still pretend it is `configure' which instantiates (i.e., don't
30753     # use $as_me), people would be surprised to read:
30754     #    /* config.h.  Generated by config.status.  */
30755     configure_input='Generated from '`
30756           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30757         `' by configure.'
30758     if test x"$ac_file" != x-; then
30759       configure_input="$ac_file.  $configure_input"
30760       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30761 $as_echo "$as_me: creating $ac_file" >&6;}
30762     fi
30763     # Neutralize special characters interpreted by sed in replacement strings.
30764     case $configure_input in #(
30765     *\&* | *\|* | *\\* )
30766        ac_sed_conf_input=`$as_echo "$configure_input" |
30767        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30768     *) ac_sed_conf_input=$configure_input;;
30769     esac
30770
30771     case $ac_tag in
30772     *:-:* | *:-) cat >"$tmp/stdin" \
30773       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30774 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30775    { (exit 1); exit 1; }; } ;;
30776     esac
30777     ;;
30778   esac
30779
30780   ac_dir=`$as_dirname -- "$ac_file" ||
30781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30782          X"$ac_file" : 'X\(//\)[^/]' \| \
30783          X"$ac_file" : 'X\(//\)$' \| \
30784          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30785 $as_echo X"$ac_file" |
30786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30787             s//\1/
30788             q
30789           }
30790           /^X\(\/\/\)[^/].*/{
30791             s//\1/
30792             q
30793           }
30794           /^X\(\/\/\)$/{
30795             s//\1/
30796             q
30797           }
30798           /^X\(\/\).*/{
30799             s//\1/
30800             q
30801           }
30802           s/.*/./; q'`
30803   { as_dir="$ac_dir"
30804   case $as_dir in #(
30805   -*) as_dir=./$as_dir;;
30806   esac
30807   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30808     as_dirs=
30809     while :; do
30810       case $as_dir in #(
30811       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30812       *) as_qdir=$as_dir;;
30813       esac
30814       as_dirs="'$as_qdir' $as_dirs"
30815       as_dir=`$as_dirname -- "$as_dir" ||
30816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30817          X"$as_dir" : 'X\(//\)[^/]' \| \
30818          X"$as_dir" : 'X\(//\)$' \| \
30819          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30820 $as_echo X"$as_dir" |
30821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30822             s//\1/
30823             q
30824           }
30825           /^X\(\/\/\)[^/].*/{
30826             s//\1/
30827             q
30828           }
30829           /^X\(\/\/\)$/{
30830             s//\1/
30831             q
30832           }
30833           /^X\(\/\).*/{
30834             s//\1/
30835             q
30836           }
30837           s/.*/./; q'`
30838       test -d "$as_dir" && break
30839     done
30840     test -z "$as_dirs" || eval "mkdir $as_dirs"
30841   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30842 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30843    { (exit 1); exit 1; }; }; }
30844   ac_builddir=.
30845
30846 case "$ac_dir" in
30847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30848 *)
30849   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30850   # A ".." for each directory in $ac_dir_suffix.
30851   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30852   case $ac_top_builddir_sub in
30853   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30854   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30855   esac ;;
30856 esac
30857 ac_abs_top_builddir=$ac_pwd
30858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30859 # for backward compatibility:
30860 ac_top_builddir=$ac_top_build_prefix
30861
30862 case $srcdir in
30863   .)  # We are building in place.
30864     ac_srcdir=.
30865     ac_top_srcdir=$ac_top_builddir_sub
30866     ac_abs_top_srcdir=$ac_pwd ;;
30867   [\\/]* | ?:[\\/]* )  # Absolute name.
30868     ac_srcdir=$srcdir$ac_dir_suffix;
30869     ac_top_srcdir=$srcdir
30870     ac_abs_top_srcdir=$srcdir ;;
30871   *) # Relative name.
30872     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30873     ac_top_srcdir=$ac_top_build_prefix$srcdir
30874     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30875 esac
30876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30877
30878
30879   case $ac_mode in
30880   :F)
30881   #
30882   # CONFIG_FILE
30883   #
30884
30885   ac_MKDIR_P=$MKDIR_P
30886   case $MKDIR_P in
30887   [\\/$]* | ?:[\\/]* ) ;;
30888   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30889   esac
30890 _ACEOF
30891
30892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30893 # If the template does not know about datarootdir, expand it.
30894 # FIXME: This hack should be removed a few years after 2.60.
30895 ac_datarootdir_hack=; ac_datarootdir_seen=
30896
30897 ac_sed_dataroot='
30898 /datarootdir/ {
30899   p
30900   q
30901 }
30902 /@datadir@/p
30903 /@docdir@/p
30904 /@infodir@/p
30905 /@localedir@/p
30906 /@mandir@/p
30907 '
30908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30909 *datarootdir*) ac_datarootdir_seen=yes;;
30910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30911   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30913 _ACEOF
30914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30915   ac_datarootdir_hack='
30916   s&@datadir@&$datadir&g
30917   s&@docdir@&$docdir&g
30918   s&@infodir@&$infodir&g
30919   s&@localedir@&$localedir&g
30920   s&@mandir@&$mandir&g
30921     s&\\\${datarootdir}&$datarootdir&g' ;;
30922 esac
30923 _ACEOF
30924
30925 # Neutralize VPATH when `$srcdir' = `.'.
30926 # Shell code in configure.ac might set extrasub.
30927 # FIXME: do we really want to maintain this feature?
30928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30929 ac_sed_extra="$ac_vpsub
30930 $extrasub
30931 _ACEOF
30932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30933 :t
30934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30935 s|@configure_input@|$ac_sed_conf_input|;t t
30936 s&@top_builddir@&$ac_top_builddir_sub&;t t
30937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30938 s&@srcdir@&$ac_srcdir&;t t
30939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30940 s&@top_srcdir@&$ac_top_srcdir&;t t
30941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30942 s&@builddir@&$ac_builddir&;t t
30943 s&@abs_builddir@&$ac_abs_builddir&;t t
30944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30945 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30946 $ac_datarootdir_hack
30947 "
30948 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30949   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30950 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30951    { (exit 1); exit 1; }; }
30952
30953 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30954   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30955   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30956   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30957 which seems to be undefined.  Please make sure it is defined." >&5
30958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30959 which seems to be undefined.  Please make sure it is defined." >&2;}
30960
30961   rm -f "$tmp/stdin"
30962   case $ac_file in
30963   -) cat "$tmp/out" && rm -f "$tmp/out";;
30964   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30965   esac \
30966   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30967 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30968    { (exit 1); exit 1; }; }
30969  ;;
30970   :H)
30971   #
30972   # CONFIG_HEADER
30973   #
30974   if test x"$ac_file" != x-; then
30975     {
30976       $as_echo "/* $configure_input  */" \
30977       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30978     } >"$tmp/config.h" \
30979       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30980 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30981    { (exit 1); exit 1; }; }
30982     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30983       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30984 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30985     else
30986       rm -f "$ac_file"
30987       mv "$tmp/config.h" "$ac_file" \
30988         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30989 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30990    { (exit 1); exit 1; }; }
30991     fi
30992   else
30993     $as_echo "/* $configure_input  */" \
30994       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30995       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30996 $as_echo "$as_me: error: could not create -" >&2;}
30997    { (exit 1); exit 1; }; }
30998   fi
30999  ;;
31000   :L)
31001   #
31002   # CONFIG_LINK
31003   #
31004
31005   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31006     :
31007   else
31008     # Prefer the file from the source tree if names are identical.
31009     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31010       ac_source=$srcdir/$ac_source
31011     fi
31012
31013     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31014 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31015
31016     if test ! -r "$ac_source"; then
31017       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31018 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31019    { (exit 1); exit 1; }; }
31020     fi
31021     rm -f "$ac_file"
31022
31023     # Try a relative symlink, then a hard link, then a copy.
31024     case $srcdir in
31025     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31026         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31027     esac
31028     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31029       ln "$ac_source" "$ac_file" 2>/dev/null ||
31030       cp -p "$ac_source" "$ac_file" ||
31031       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31032 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31033    { (exit 1); exit 1; }; }
31034   fi
31035  ;;
31036   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31037 $as_echo "$as_me: executing $ac_file commands" >&6;}
31038  ;;
31039   esac
31040
31041
31042   case $ac_file$ac_mode in
31043     "check_win32_symlinks":C)
31044 # Links sometimes fail undetected on Mingw -
31045 # so here we detect it and warn the user
31046 for FILE in $CONFIG_LINKS
31047  do
31048         # test -e works for symlinks in the MinGW console
31049         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31050 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31051  done
31052  ;;
31053     "src/include/pg_config.h":H)
31054 # Update timestamp for pg_config.h (see Makefile.global)
31055 echo >src/include/stamp-h
31056  ;;
31057     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31058
31059   esac
31060 done # for ac_tag
31061
31062
31063 { (exit 0); exit 0; }
31064 _ACEOF
31065 chmod +x $CONFIG_STATUS
31066 ac_clean_files=$ac_clean_files_save
31067
31068 test $ac_write_fail = 0 ||
31069   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31070 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31071    { (exit 1); exit 1; }; }
31072
31073
31074 # configure is writing to config.log, and then calls config.status.
31075 # config.status does its own redirection, appending to config.log.
31076 # Unfortunately, on DOS this fails, as config.log is still kept open
31077 # by configure, so config.status won't be able to write to it; its
31078 # output is simply discarded.  So we exec the FD to /dev/null,
31079 # effectively closing config.log, so it can be properly (re)opened and
31080 # appended to by config.status.  When coming back to configure, we
31081 # need to make the FD available again.
31082 if test "$no_create" != yes; then
31083   ac_cs_success=:
31084   ac_config_status_args=
31085   test "$silent" = yes &&
31086     ac_config_status_args="$ac_config_status_args --quiet"
31087   exec 5>/dev/null
31088   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31089   exec 5>>config.log
31090   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31091   # would make configure fail if this is the last instruction.
31092   $ac_cs_success || { (exit 1); exit 1; }
31093 fi
31094 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31095   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31096 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31097 fi
31098