]> granicus.if.org Git - postgresql/blob - configure
Introduce filtering dictionary support to tsearch. Propagate --nolocale option
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 8.5devel.
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-2009, 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='8.5devel'
602 PACKAGE_STRING='PostgreSQL 8.5devel'
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 LIBOBJS
671 HAVE_IPV6
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 PYTHON
681 perl_embed_ldflags
682 perl_useshrplib
683 perl_privlibexp
684 perl_archlibexp
685 PERL
686 FLEXFLAGS
687 FLEX
688 BISONFLAGS
689 BISON
690 AWK
691 LN_S
692 TAR
693 WINDRES
694 DLLWRAP
695 DLLTOOL
696 AR
697 STRIP_SHARED_LIB
698 STRIP_STATIC_LIB
699 STRIP
700 RANLIB
701 ld_R_works
702 with_gnu_ld
703 LD
704 LDFLAGS_SL
705 ELF_SYS
706 EGREP
707 GREP
708 with_zlib
709 with_system_tzdata
710 with_libxslt
711 with_libxml
712 XML2_CONFIG
713 with_ossp_uuid
714 with_openssl
715 with_bonjour
716 with_ldap
717 with_pam
718 krb_srvtab
719 with_krb5
720 with_gssapi
721 with_python
722 with_perl
723 with_tcl
724 enable_thread_safety
725 INCLUDES
726 autodepend
727 TAS
728 GCC
729 CPP
730 SUN_STUDIO_CC
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 enable_dtrace
739 DTRACEFLAGS
740 DTRACE
741 enable_coverage
742 GENHTML
743 LCOV
744 GCOV
745 enable_profiling
746 enable_debug
747 enable_rpath
748 enable_shared
749 default_port
750 WANTED_LANGUAGES
751 enable_nls
752 PORTNAME
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 PG_MAJORVERSION
762 configure_args
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 with_template
804 with_includes
805 with_libraries
806 with_libs
807 enable_integer_datetimes
808 enable_nls
809 with_pgport
810 enable_shared
811 enable_rpath
812 enable_spinlocks
813 enable_debug
814 enable_profiling
815 enable_coverage
816 enable_dtrace
817 with_blocksize
818 with_segsize
819 with_wal_blocksize
820 with_wal_segsize
821 with_CC
822 enable_depend
823 enable_cassert
824 enable_thread_safety
825 enable_thread_safety_force
826 with_tcl
827 with_tclconfig
828 with_perl
829 with_python
830 with_gssapi
831 with_krb5
832 with_krb_srvnam
833 with_pam
834 with_ldap
835 with_bonjour
836 with_openssl
837 with_readline
838 with_libedit_preferred
839 with_ossp_uuid
840 with_libxml
841 with_libxslt
842 with_system_tzdata
843 with_zlib
844 with_gnu_ld
845 enable_float4_byval
846 enable_float8_byval
847 enable_largefile
848 '
849       ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP
858 LDFLAGS_SL
859 DOCBOOKSTYLE'
860
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
883
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914   # If the previous option needs an argument, assign it.
915   if test -n "$ac_prev"; then
916     eval $ac_prev=\$ac_option
917     ac_prev=
918     continue
919   fi
920
921   case $ac_option in
922   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923   *)    ac_optarg=yes ;;
924   esac
925
926   # Accept the important Cygnus configure options, so we can diagnose typos.
927
928   case $ac_dashdash$ac_option in
929   --)
930     ac_dashdash=yes ;;
931
932   -bindir | --bindir | --bindi | --bind | --bin | --bi)
933     ac_prev=bindir ;;
934   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935     bindir=$ac_optarg ;;
936
937   -build | --build | --buil | --bui | --bu)
938     ac_prev=build_alias ;;
939   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940     build_alias=$ac_optarg ;;
941
942   -cache-file | --cache-file | --cache-fil | --cache-fi \
943   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944     ac_prev=cache_file ;;
945   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947     cache_file=$ac_optarg ;;
948
949   --config-cache | -C)
950     cache_file=config.cache ;;
951
952   -datadir | --datadir | --datadi | --datad)
953     ac_prev=datadir ;;
954   -datadir=* | --datadir=* | --datadi=* | --datad=*)
955     datadir=$ac_optarg ;;
956
957   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958   | --dataroo | --dataro | --datar)
959     ac_prev=datarootdir ;;
960   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962     datarootdir=$ac_optarg ;;
963
964   -disable-* | --disable-*)
965     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966     # Reject names that are not valid shell variable names.
967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
969    { (exit 1); exit 1; }; }
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=no ;;
980
981   -docdir | --docdir | --docdi | --doc | --do)
982     ac_prev=docdir ;;
983   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984     docdir=$ac_optarg ;;
985
986   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987     ac_prev=dvidir ;;
988   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989     dvidir=$ac_optarg ;;
990
991   -enable-* | --enable-*)
992     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
996    { (exit 1); exit 1; }; }
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1201    { (exit 1); exit 1; }; }
1202     ac_useropt_orig=$ac_useropt
1203     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204     case $ac_user_opts in
1205       *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209          ac_unrecognized_sep=', ';;
1210     esac
1211     eval with_$ac_useropt=\$ac_optarg ;;
1212
1213   -without-* | --without-*)
1214     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_useropt_orig=$ac_useropt
1220     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221     case $ac_user_opts in
1222       *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226          ac_unrecognized_sep=', ';;
1227     esac
1228     eval with_$ac_useropt=no ;;
1229
1230   --x)
1231     # Obsolete; use --with-x.
1232     with_x=yes ;;
1233
1234   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235   | --x-incl | --x-inc | --x-in | --x-i)
1236     ac_prev=x_includes ;;
1237   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239     x_includes=$ac_optarg ;;
1240
1241   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243     ac_prev=x_libraries ;;
1244   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246     x_libraries=$ac_optarg ;;
1247
1248   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250    { (exit 1); exit 1; }; }
1251     ;;
1252
1253   *=*)
1254     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258    { (exit 1); exit 1; }; }
1259     eval $ac_envvar=\$ac_optarg
1260     export $ac_envvar ;;
1261
1262   *)
1263     # FIXME: should be removed in autoconf 3.0.
1264     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268     ;;
1269
1270   esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1276    { (exit 1); exit 1; }; }
1277 fi
1278
1279 if test -n "$ac_unrecognized_opts"; then
1280   case $enable_option_checking in
1281     no) ;;
1282     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1283    { (exit 1); exit 1; }; } ;;
1284     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285   esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290                 datadir sysconfdir sharedstatedir localstatedir includedir \
1291                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292                 libdir localedir mandir
1293 do
1294   eval ac_val=\$$ac_var
1295   # Remove trailing slashes.
1296   case $ac_val in
1297     */ )
1298       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299       eval $ac_var=\$ac_val;;
1300   esac
1301   # Be sure to have absolute directory names.
1302   case $ac_val in
1303     [\\/$]* | ?:[\\/]* )  continue;;
1304     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305   esac
1306   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307    { (exit 1); exit 1; }; }
1308 done
1309
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1316
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319   if test "x$build_alias" = x; then
1320     cross_compiling=maybe
1321     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322     If a cross compiler is detected then cross compile mode will be used." >&2
1323   elif test "x$build_alias" != "x$host_alias"; then
1324     cross_compiling=yes
1325   fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1338    { (exit 1); exit 1; }; }
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1341    { (exit 1); exit 1; }; }
1342
1343
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346   ac_srcdir_defaulted=yes
1347   # Try the directory containing this script, then the parent directory.
1348   ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350          X"$as_myself" : 'X\(//\)[^/]' \| \
1351          X"$as_myself" : 'X\(//\)$' \| \
1352          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)[^/].*/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)$/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\).*/{
1367             s//\1/
1368             q
1369           }
1370           s/.*/./; q'`
1371   srcdir=$ac_confdir
1372   if test ! -r "$srcdir/$ac_unique_file"; then
1373     srcdir=..
1374   fi
1375 else
1376   ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381    { (exit 1); exit 1; }; }
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1386    { (exit 1); exit 1; }; }
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 System types:
1470   --build=BUILD     configure for building on BUILD [guessed]
1471   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476   case $ac_init_help in
1477      short | recursive ) echo "Configuration of PostgreSQL 8.5devel:";;
1478    esac
1479   cat <<\_ACEOF
1480
1481 Optional Features:
1482   --disable-option-checking  ignore unrecognized --enable/--with options
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --disable-integer-datetimes
1486                           disable 64-bit integer date/time support
1487   --enable-nls[=LANGUAGES]
1488                           enable Native Language Support
1489   --disable-shared        do not build shared libraries
1490   --disable-rpath         do not embed shared library search path in
1491                           executables
1492   --disable-spinlocks     do not use spinlocks
1493   --enable-debug          build with debugging symbols (-g)
1494   --enable-profiling      build with profiling enabled
1495   --enable-coverage       build with coverage testing instrumentation
1496   --enable-dtrace         build with DTrace support
1497   --enable-depend         turn on automatic dependency tracking
1498   --enable-cassert        enable assertion checks (for debugging)
1499   --enable-thread-safety  make client libraries thread-safe
1500   --enable-thread-safety-force
1501                           force thread-safety despite thread test failure
1502   --disable-float4-byval  disable float4 passed by value
1503   --disable-float8-byval  disable float8 passed by value
1504   --disable-largefile     omit support for large files
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-template=NAME    override operating system template
1510   --with-includes=DIRS    look for additional header files in DIRS
1511   --with-libraries=DIRS   look for additional libraries in DIRS
1512   --with-libs=DIRS        alternative spelling of --with-libraries
1513   --with-pgport=PORTNUM   set default port number [5432]
1514   --with-blocksize=BLOCKSIZE
1515                           set table block size in kB [8]
1516   --with-segsize=SEGSIZE  set table segment size in GB [1]
1517   --with-wal-blocksize=BLOCKSIZE
1518                           set WAL block size in kB [8]
1519   --with-wal-segsize=SEGSIZE
1520                           set WAL segment size in MB [16]
1521   --with-CC=CMD           set compiler (deprecated)
1522   --with-tcl              build Tcl modules (PL/Tcl)
1523   --with-tclconfig=DIR    tclConfig.sh is in DIR
1524   --with-perl             build Perl modules (PL/Perl)
1525   --with-python           build Python modules (PL/Python)
1526   --with-gssapi           build with GSSAPI support
1527   --with-krb5             build with Kerberos 5 support
1528   --with-krb-srvnam=NAME  default service principal name in Kerberos
1529                           [postgres]
1530   --with-pam              build with PAM support
1531   --with-ldap             build with LDAP support
1532   --with-bonjour          build with Bonjour support
1533   --with-openssl          build with OpenSSL support
1534   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1535   --with-libedit-preferred
1536                           prefer BSD Libedit over GNU Readline
1537   --with-ossp-uuid        use OSSP UUID library when building
1538                           contrib/uuid-ossp
1539   --with-libxml           build with XML support
1540   --with-libxslt          use XSLT support when building contrib/xml2
1541   --with-system-tzdata=DIR
1542                           use system time zone data in DIR
1543   --without-zlib          do not use Zlib
1544   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1545
1546 Some influential environment variables:
1547   CC          C compiler command
1548   CFLAGS      C compiler flags
1549   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550               nonstandard directory <lib dir>
1551   LIBS        libraries to pass to the linker, e.g. -l<library>
1552   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553               you have headers in a nonstandard directory <include dir>
1554   CPP         C preprocessor
1555   LDFLAGS_SL  linker flags for shared library linking
1556   DOCBOOKSTYLE
1557               location of DocBook stylesheets
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" ||
1571       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572       continue
1573     ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579   # A ".." for each directory in $ac_dir_suffix.
1580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581   case $ac_top_builddir_sub in
1582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584   esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592   .)  # We are building in place.
1593     ac_srcdir=.
1594     ac_top_srcdir=$ac_top_builddir_sub
1595     ac_abs_top_srcdir=$ac_pwd ;;
1596   [\\/]* | ?:[\\/]* )  # Absolute name.
1597     ac_srcdir=$srcdir$ac_dir_suffix;
1598     ac_top_srcdir=$srcdir
1599     ac_abs_top_srcdir=$srcdir ;;
1600   *) # Relative name.
1601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602     ac_top_srcdir=$ac_top_build_prefix$srcdir
1603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607     cd "$ac_dir" || { ac_status=$?; continue; }
1608     # Check for guested configure.
1609     if test -f "$ac_srcdir/configure.gnu"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612     elif test -f "$ac_srcdir/configure"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure" --help=recursive
1615     else
1616       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617     fi || ac_status=$?
1618     cd "$ac_pwd" || { ac_status=$?; break; }
1619   done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624   cat <<\_ACEOF
1625 PostgreSQL configure 8.5devel
1626 generated by GNU Autoconf 2.63
1627
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632
1633 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1634 _ACEOF
1635   exit
1636 fi
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1640
1641 It was created by PostgreSQL $as_me 8.5devel, which was
1642 generated by GNU Autoconf 2.63.  Invocation command line was
1643
1644   $ $0 $@
1645
1646 _ACEOF
1647 exec 5>>config.log
1648 {
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1653
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1662
1663 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1664 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1667 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1668 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1669 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1670
1671 _ASUNAME
1672
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705   for ac_arg
1706   do
1707     case $ac_arg in
1708     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710     | -silent | --silent | --silen | --sile | --sil)
1711       continue ;;
1712     *\'*)
1713       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     esac
1715     case $ac_pass in
1716     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717     2)
1718       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719       if test $ac_must_keep_next = true; then
1720         ac_must_keep_next=false # Got value, back to normal.
1721       else
1722         case $ac_arg in
1723           *=* | --config-cache | -C | -disable-* | --disable-* \
1724           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726           | -with-* | --with-* | -without-* | --without-* | --x)
1727             case "$ac_configure_args0 " in
1728               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729             esac
1730             ;;
1731           -* ) ac_must_keep_next=true ;;
1732         esac
1733       fi
1734       ac_configure_args="$ac_configure_args '$ac_arg'"
1735       ;;
1736     esac
1737   done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log.  We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748   # Save into config.log some information that might help in debugging.
1749   {
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757     echo
1758     # The following way of writing the cache mishandles newlines in values,
1759 (
1760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761     eval ac_val=\$$ac_var
1762     case $ac_val in #(
1763     *${as_nl}*)
1764       case $ac_var in #(
1765       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1767       esac
1768       case $ac_var in #(
1769       _ | IFS | as_nl) ;; #(
1770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771       *) $as_unset $ac_var ;;
1772       esac ;;
1773     esac
1774   done
1775   (set) 2>&1 |
1776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777     *${as_nl}ac_space=\ *)
1778       sed -n \
1779         "s/'\''/'\''\\\\'\'''\''/g;
1780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781       ;; #(
1782     *)
1783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784       ;;
1785     esac |
1786     sort
1787 )
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795     echo
1796     for ac_var in $ac_subst_vars
1797     do
1798       eval ac_val=\$$ac_var
1799       case $ac_val in
1800       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801       esac
1802       $as_echo "$ac_var='\''$ac_val'\''"
1803     done | sort
1804     echo
1805
1806     if test -n "$ac_subst_files"; then
1807       cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812       echo
1813       for ac_var in $ac_subst_files
1814       do
1815         eval ac_val=\$$ac_var
1816         case $ac_val in
1817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818         esac
1819         $as_echo "$ac_var='\''$ac_val'\''"
1820       done | sort
1821       echo
1822     fi
1823
1824     if test -s confdefs.h; then
1825       cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830       echo
1831       cat confdefs.h
1832       echo
1833     fi
1834     test "$ac_signal" != 0 &&
1835       $as_echo "$as_me: caught signal $ac_signal"
1836     $as_echo "$as_me: exit $exit_status"
1837   } >&5
1838   rm -f core *.core core.conftest.* &&
1839     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840     exit $exit_status
1841 ' 0
1842 for ac_signal in 1 2 13 15; do
1843   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1846
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1849
1850 # Predefined preprocessor variables.
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1875
1876
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882   ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884   ac_site_file1=$prefix/share/config.site
1885   ac_site_file2=$prefix/etc/config.site
1886 else
1887   ac_site_file1=$ac_default_prefix/share/config.site
1888   ac_site_file2=$ac_default_prefix/etc/config.site
1889 fi
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 do
1892   test "x$ac_site_file" = xNONE && continue
1893   if test -r "$ac_site_file"; then
1894     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         # differences in whitespace do not lead to failure.
1939         ac_old_val_w=`echo x $ac_old_val`
1940         ac_new_val_w=`echo x $ac_new_val`
1941         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944           ac_cache_corrupted=:
1945         else
1946           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948           eval $ac_var=\$ac_old_val
1949         fi
1950         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1952         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010
2011
2012
2013 ac_aux_dir=
2014 for ac_dir in config "$srcdir"/config; do
2015   if test -f "$ac_dir/install-sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install-sh -c"
2018     break
2019   elif test -f "$ac_dir/install.sh"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/install.sh -c"
2022     break
2023   elif test -f "$ac_dir/shtool"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/shtool install -c"
2026     break
2027   fi
2028 done
2029 if test -z "$ac_aux_dir"; then
2030   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2042
2043
2044
2045 configure_args=$ac_configure_args
2046
2047
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2054
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2058 _ACEOF
2059
2060
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070   $as_echo_n "(cached) " >&6
2071 else
2072   ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078    { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082    { (exit 1); exit 1; }; }
2083
2084 fi
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2088 *-*-*) ;;
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091    { (exit 1); exit 1; }; };;
2092 esac
2093 build=$ac_cv_build
2094 ac_save_IFS=$IFS; IFS='-'
2095 set x $ac_cv_build
2096 shift
2097 build_cpu=$1
2098 build_vendor=$2
2099 shift; shift
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2102 build_os=$*
2103 IFS=$ac_save_IFS
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2105
2106
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110   $as_echo_n "(cached) " >&6
2111 else
2112   if test "x$host_alias" = x; then
2113   ac_cv_host=$ac_cv_build
2114 else
2115   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 fi
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2124 case $ac_cv_host in
2125 *-*-*) ;;
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128    { (exit 1); exit 1; }; };;
2129 esac
2130 host=$ac_cv_host
2131 ac_save_IFS=$IFS; IFS='-'
2132 set x $ac_cv_host
2133 shift
2134 host_cpu=$1
2135 host_vendor=$2
2136 shift; shift
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2139 host_os=$*
2140 IFS=$ac_save_IFS
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2142
2143
2144
2145 template=
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2148
2149
2150
2151
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154   withval=$with_template;
2155   case $withval in
2156     yes)
2157       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159    { (exit 1); exit 1; }; }
2160       ;;
2161     no)
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     *)
2167
2168   case $withval in
2169     list)   echo; ls "$srcdir/src/template"; exit;;
2170     *)      if test -f "$srcdir/src/template/$with_template" ; then
2171               template=$withval
2172             else
2173               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175    { (exit 1); exit 1; }; }
2176             fi;;
2177   esac
2178
2179       ;;
2180   esac
2181
2182 else
2183
2184 # --with-template not given
2185
2186 case $host_os in
2187      aix*) template=aix ;;
2188     bsdi*) template=bsdi ;;
2189   cygwin*) template=cygwin ;;
2190   darwin*) template=darwin ;;
2191     dgux*) template=dgux ;;
2192  freebsd*) template=freebsd ;;
2193     hpux*) template=hpux ;;
2194     irix*) template=irix ;;
2195  linux*|gnu*|k*bsd*-gnu)
2196            template=linux ;;
2197    mingw*) template=win32 ;;
2198   netbsd*) template=netbsd ;;
2199 nextstep*) template=nextstep ;;
2200  openbsd*) template=openbsd ;;
2201      osf*) template=osf ;;
2202      sco*) template=sco ;;
2203  solaris*) template=solaris ;;
2204    sunos*) template=sunos4 ;;
2205  sysv4.2*)
2206         case $host_vendor in
2207           univel) template=univel ;;
2208         esac ;;
2209    sysv4*) template=svr4 ;;
2210    sysv5*) template=unixware ;;
2211   ultrix*) template=ultrix4 ;;
2212 esac
2213
2214   if test x"$template" = x"" ; then
2215     { { $as_echo "$as_me:$LINENO: error:
2216 *******************************************************************
2217 PostgreSQL has apparently not been ported to your platform yet.
2218 To try a manual configuration, look into the src/template directory
2219 for a similar platform and use the '--with-template=' option.
2220
2221 Please also contact <pgsql-bugs@postgresql.org> to see about
2222 rectifying this.  Include the above 'checking host system type...'
2223 line.
2224 *******************************************************************
2225 " >&5
2226 $as_echo "$as_me: error:
2227 *******************************************************************
2228 PostgreSQL has apparently not been ported to your platform yet.
2229 To try a manual configuration, look into the src/template directory
2230 for a similar platform and use the '--with-template=' option.
2231
2232 Please also contact <pgsql-bugs@postgresql.org> to see about
2233 rectifying this.  Include the above 'checking host system type...'
2234 line.
2235 *******************************************************************
2236 " >&2;}
2237    { (exit 1); exit 1; }; }
2238   fi
2239
2240
2241 fi
2242
2243
2244
2245 { $as_echo "$as_me:$LINENO: result: $template" >&5
2246 $as_echo "$template" >&6; }
2247
2248 PORTNAME=$template
2249
2250
2251 # Initialize default assumption that we do not need separate assembly code
2252 # for TAS (test-and-set).  This can be overridden by the template file
2253 # when it's executed.
2254 need_tas=no
2255 tas_file=dummy.s
2256
2257
2258
2259 ##
2260 ## Command line options
2261 ##
2262
2263 #
2264 # Add non-standard directories to the include path
2265 #
2266
2267
2268
2269 # Check whether --with-includes was given.
2270 if test "${with_includes+set}" = set; then
2271   withval=$with_includes;
2272   case $withval in
2273     yes)
2274       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2275 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2276    { (exit 1); exit 1; }; }
2277       ;;
2278     no)
2279       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2280 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2281    { (exit 1); exit 1; }; }
2282       ;;
2283     *)
2284
2285       ;;
2286   esac
2287
2288 fi
2289
2290
2291
2292
2293 #
2294 # Add non-standard directories to the library search path
2295 #
2296
2297
2298
2299 # Check whether --with-libraries was given.
2300 if test "${with_libraries+set}" = set; then
2301   withval=$with_libraries;
2302   case $withval in
2303     yes)
2304       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2305 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2306    { (exit 1); exit 1; }; }
2307       ;;
2308     no)
2309       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2310 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2311    { (exit 1); exit 1; }; }
2312       ;;
2313     *)
2314       LIBRARY_DIRS=$withval
2315       ;;
2316   esac
2317
2318 fi
2319
2320
2321
2322
2323
2324
2325 # Check whether --with-libs was given.
2326 if test "${with_libs+set}" = set; then
2327   withval=$with_libs;
2328   case $withval in
2329     yes)
2330       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2331 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2332    { (exit 1); exit 1; }; }
2333       ;;
2334     no)
2335       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2336 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2337    { (exit 1); exit 1; }; }
2338       ;;
2339     *)
2340       LIBRARY_DIRS=$withval
2341       ;;
2342   esac
2343
2344 fi
2345
2346
2347
2348
2349 #
2350 # 64-bit integer date/time storage: enabled by default.
2351 #
2352 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2353 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2354
2355
2356 # Check whether --enable-integer-datetimes was given.
2357 if test "${enable_integer_datetimes+set}" = set; then
2358   enableval=$enable_integer_datetimes;
2359   case $enableval in
2360     yes)
2361
2362 cat >>confdefs.h <<\_ACEOF
2363 #define USE_INTEGER_DATETIMES 1
2364 _ACEOF
2365
2366       ;;
2367     no)
2368       :
2369       ;;
2370     *)
2371       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2372 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2373    { (exit 1); exit 1; }; }
2374       ;;
2375   esac
2376
2377 else
2378   enable_integer_datetimes=yes
2379
2380 cat >>confdefs.h <<\_ACEOF
2381 #define USE_INTEGER_DATETIMES 1
2382 _ACEOF
2383
2384 fi
2385
2386
2387 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2388 $as_echo "$enable_integer_datetimes" >&6; }
2389
2390
2391 #
2392 # NLS
2393 #
2394 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2395 $as_echo_n "checking whether NLS is wanted... " >&6; }
2396
2397
2398 # Check whether --enable-nls was given.
2399 if test "${enable_nls+set}" = set; then
2400   enableval=$enable_nls;
2401   case $enableval in
2402     yes)
2403       :
2404       ;;
2405     no)
2406       :
2407       ;;
2408     *)
2409       enable_nls=yes
2410 WANTED_LANGUAGES=$enableval
2411       ;;
2412   esac
2413
2414 else
2415   enable_nls=no
2416 fi
2417
2418
2419
2420 if test "$enable_nls" = yes; then
2421
2422 cat >>confdefs.h <<\_ACEOF
2423 #define ENABLE_NLS 1
2424 _ACEOF
2425
2426 fi
2427
2428 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2429 $as_echo "$enable_nls" >&6; }
2430
2431
2432
2433 #
2434 # Default port number (--with-pgport), default 5432
2435 #
2436 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2437 $as_echo_n "checking for default port number... " >&6; }
2438
2439
2440
2441 # Check whether --with-pgport was given.
2442 if test "${with_pgport+set}" = set; then
2443   withval=$with_pgport;
2444   case $withval in
2445     yes)
2446       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2447 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2448    { (exit 1); exit 1; }; }
2449       ;;
2450     no)
2451       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2452 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2453    { (exit 1); exit 1; }; }
2454       ;;
2455     *)
2456       default_port=$withval
2457       ;;
2458   esac
2459
2460 else
2461   default_port=5432
2462 fi
2463
2464
2465 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2466 $as_echo "$default_port" >&6; }
2467 # Need both of these because some places want an integer and some a string
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define DEF_PGPORT ${default_port}
2471 _ACEOF
2472
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define DEF_PGPORT_STR "${default_port}"
2476 _ACEOF
2477
2478
2479
2480 #
2481 # Option to disable shared libraries
2482 #
2483
2484
2485 # Check whether --enable-shared was given.
2486 if test "${enable_shared+set}" = set; then
2487   enableval=$enable_shared;
2488   case $enableval in
2489     yes)
2490       :
2491       ;;
2492     no)
2493       :
2494       ;;
2495     *)
2496       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2497 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2498    { (exit 1); exit 1; }; }
2499       ;;
2500   esac
2501
2502 else
2503   enable_shared=yes
2504
2505 fi
2506
2507
2508
2509
2510 #
2511 # '-rpath'-like feature can be disabled
2512 #
2513
2514
2515 # Check whether --enable-rpath was given.
2516 if test "${enable_rpath+set}" = set; then
2517   enableval=$enable_rpath;
2518   case $enableval in
2519     yes)
2520       :
2521       ;;
2522     no)
2523       :
2524       ;;
2525     *)
2526       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2527 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2528    { (exit 1); exit 1; }; }
2529       ;;
2530   esac
2531
2532 else
2533   enable_rpath=yes
2534
2535 fi
2536
2537
2538
2539
2540 #
2541 # Spinlocks
2542 #
2543
2544
2545 # Check whether --enable-spinlocks was given.
2546 if test "${enable_spinlocks+set}" = set; then
2547   enableval=$enable_spinlocks;
2548   case $enableval in
2549     yes)
2550       :
2551       ;;
2552     no)
2553       :
2554       ;;
2555     *)
2556       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2557 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2558    { (exit 1); exit 1; }; }
2559       ;;
2560   esac
2561
2562 else
2563   enable_spinlocks=yes
2564
2565 fi
2566
2567
2568
2569 #
2570 # --enable-debug adds -g to compiler flags
2571 #
2572
2573
2574 # Check whether --enable-debug was given.
2575 if test "${enable_debug+set}" = set; then
2576   enableval=$enable_debug;
2577   case $enableval in
2578     yes)
2579       :
2580       ;;
2581     no)
2582       :
2583       ;;
2584     *)
2585       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2586 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2587    { (exit 1); exit 1; }; }
2588       ;;
2589   esac
2590
2591 else
2592   enable_debug=no
2593
2594 fi
2595
2596
2597
2598
2599 #
2600 # --enable-profiling enables gcc profiling
2601 #
2602
2603
2604 # Check whether --enable-profiling was given.
2605 if test "${enable_profiling+set}" = set; then
2606   enableval=$enable_profiling;
2607   case $enableval in
2608     yes)
2609       :
2610       ;;
2611     no)
2612       :
2613       ;;
2614     *)
2615       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2616 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2617    { (exit 1); exit 1; }; }
2618       ;;
2619   esac
2620
2621 else
2622   enable_profiling=no
2623
2624 fi
2625
2626
2627
2628
2629 #
2630 # --enable-coverage enables generation of code coverage metrics with gcov
2631 #
2632
2633
2634 # Check whether --enable-coverage was given.
2635 if test "${enable_coverage+set}" = set; then
2636   enableval=$enable_coverage;
2637   case $enableval in
2638     yes)
2639       for ac_prog in gcov
2640 do
2641   # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_GCOV+set}" = set; then
2646   $as_echo_n "(cached) " >&6
2647 else
2648   if test -n "$GCOV"; then
2649   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656   for ac_exec_ext in '' $ac_executable_extensions; do
2657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658     ac_cv_prog_GCOV="$ac_prog"
2659     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 GCOV=$ac_cv_prog_GCOV
2669 if test -n "$GCOV"; then
2670   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2671 $as_echo "$GCOV" >&6; }
2672 else
2673   { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677
2678   test -n "$GCOV" && break
2679 done
2680
2681 if test -z "$GCOV"; then
2682   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2683 $as_echo "$as_me: error: gcov not found" >&2;}
2684    { (exit 1); exit 1; }; }
2685 fi
2686 for ac_prog in lcov
2687 do
2688   # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_LCOV+set}" = set; then
2693   $as_echo_n "(cached) " >&6
2694 else
2695   if test -n "$LCOV"; then
2696   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701   IFS=$as_save_IFS
2702   test -z "$as_dir" && as_dir=.
2703   for ac_exec_ext in '' $ac_executable_extensions; do
2704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705     ac_cv_prog_LCOV="$ac_prog"
2706     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707     break 2
2708   fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 LCOV=$ac_cv_prog_LCOV
2716 if test -n "$LCOV"; then
2717   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2718 $as_echo "$LCOV" >&6; }
2719 else
2720   { $as_echo "$as_me:$LINENO: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725   test -n "$LCOV" && break
2726 done
2727
2728 if test -z "$LCOV"; then
2729   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2730 $as_echo "$as_me: error: lcov not found" >&2;}
2731    { (exit 1); exit 1; }; }
2732 fi
2733 for ac_prog in genhtml
2734 do
2735   # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_GENHTML+set}" = set; then
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$GENHTML"; then
2743   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_GENHTML="$ac_prog"
2753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 GENHTML=$ac_cv_prog_GENHTML
2763 if test -n "$GENHTML"; then
2764   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2765 $as_echo "$GENHTML" >&6; }
2766 else
2767   { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771
2772   test -n "$GENHTML" && break
2773 done
2774
2775 if test -z "$GENHTML"; then
2776   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2777 $as_echo "$as_me: error: genhtml not found" >&2;}
2778    { (exit 1); exit 1; }; }
2779 fi
2780       ;;
2781     no)
2782       :
2783       ;;
2784     *)
2785       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2786 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2787    { (exit 1); exit 1; }; }
2788       ;;
2789   esac
2790
2791 else
2792   enable_coverage=no
2793
2794 fi
2795
2796
2797
2798
2799 #
2800 # DTrace
2801 #
2802
2803
2804 # Check whether --enable-dtrace was given.
2805 if test "${enable_dtrace+set}" = set; then
2806   enableval=$enable_dtrace;
2807   case $enableval in
2808     yes)
2809
2810 cat >>confdefs.h <<\_ACEOF
2811 #define ENABLE_DTRACE 1
2812 _ACEOF
2813
2814 for ac_prog in dtrace
2815 do
2816   # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_DTRACE+set}" = set; then
2821   $as_echo_n "(cached) " >&6
2822 else
2823   if test -n "$DTRACE"; then
2824   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833     ac_cv_prog_DTRACE="$ac_prog"
2834     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 DTRACE=$ac_cv_prog_DTRACE
2844 if test -n "$DTRACE"; then
2845   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2846 $as_echo "$DTRACE" >&6; }
2847 else
2848   { $as_echo "$as_me:$LINENO: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853   test -n "$DTRACE" && break
2854 done
2855
2856 if test -z "$DTRACE"; then
2857   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2858 $as_echo "$as_me: error: dtrace not found" >&2;}
2859    { (exit 1); exit 1; }; }
2860 fi
2861
2862       ;;
2863     no)
2864       :
2865       ;;
2866     *)
2867       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2868 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2869    { (exit 1); exit 1; }; }
2870       ;;
2871   esac
2872
2873 else
2874   enable_dtrace=no
2875
2876 fi
2877
2878
2879
2880
2881 #
2882 # Block size
2883 #
2884 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2885 $as_echo_n "checking for block size... " >&6; }
2886
2887
2888
2889 # Check whether --with-blocksize was given.
2890 if test "${with_blocksize+set}" = set; then
2891   withval=$with_blocksize;
2892   case $withval in
2893     yes)
2894       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2895 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2896    { (exit 1); exit 1; }; }
2897       ;;
2898     no)
2899       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2900 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2901    { (exit 1); exit 1; }; }
2902       ;;
2903     *)
2904       blocksize=$withval
2905       ;;
2906   esac
2907
2908 else
2909   blocksize=8
2910 fi
2911
2912
2913 case ${blocksize} in
2914   1) BLCKSZ=1024;;
2915   2) BLCKSZ=2048;;
2916   4) BLCKSZ=4096;;
2917   8) BLCKSZ=8192;;
2918  16) BLCKSZ=16384;;
2919  32) BLCKSZ=32768;;
2920   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2921 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2922    { (exit 1); exit 1; }; }
2923 esac
2924 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2925 $as_echo "${blocksize}kB" >&6; }
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define BLCKSZ ${BLCKSZ}
2930 _ACEOF
2931
2932
2933 #
2934 # Relation segment size
2935 #
2936 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2937 $as_echo_n "checking for segment size... " >&6; }
2938
2939
2940
2941 # Check whether --with-segsize was given.
2942 if test "${with_segsize+set}" = set; then
2943   withval=$with_segsize;
2944   case $withval in
2945     yes)
2946       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2948    { (exit 1); exit 1; }; }
2949       ;;
2950     no)
2951       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2953    { (exit 1); exit 1; }; }
2954       ;;
2955     *)
2956       segsize=$withval
2957       ;;
2958   esac
2959
2960 else
2961   segsize=1
2962 fi
2963
2964
2965 # this expression is set up to avoid unnecessary integer overflow
2966 # blocksize is already guaranteed to be a factor of 1024
2967 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2968 test $? -eq 0 || exit 1
2969 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2970 $as_echo "${segsize}GB" >&6; }
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define RELSEG_SIZE ${RELSEG_SIZE}
2975 _ACEOF
2976
2977
2978 #
2979 # WAL block size
2980 #
2981 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2982 $as_echo_n "checking for WAL block size... " >&6; }
2983
2984
2985
2986 # Check whether --with-wal-blocksize was given.
2987 if test "${with_wal_blocksize+set}" = set; then
2988   withval=$with_wal_blocksize;
2989   case $withval in
2990     yes)
2991       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2992 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2993    { (exit 1); exit 1; }; }
2994       ;;
2995     no)
2996       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2997 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2998    { (exit 1); exit 1; }; }
2999       ;;
3000     *)
3001       wal_blocksize=$withval
3002       ;;
3003   esac
3004
3005 else
3006   wal_blocksize=8
3007 fi
3008
3009
3010 case ${wal_blocksize} in
3011   1) XLOG_BLCKSZ=1024;;
3012   2) XLOG_BLCKSZ=2048;;
3013   4) XLOG_BLCKSZ=4096;;
3014   8) XLOG_BLCKSZ=8192;;
3015  16) XLOG_BLCKSZ=16384;;
3016  32) XLOG_BLCKSZ=32768;;
3017  64) XLOG_BLCKSZ=65536;;
3018   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3019 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3020    { (exit 1); exit 1; }; }
3021 esac
3022 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3023 $as_echo "${wal_blocksize}kB" >&6; }
3024
3025
3026 cat >>confdefs.h <<_ACEOF
3027 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3028 _ACEOF
3029
3030
3031 #
3032 # WAL segment size
3033 #
3034 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3035 $as_echo_n "checking for WAL segment size... " >&6; }
3036
3037
3038
3039 # Check whether --with-wal-segsize was given.
3040 if test "${with_wal_segsize+set}" = set; then
3041   withval=$with_wal_segsize;
3042   case $withval in
3043     yes)
3044       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3045 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3046    { (exit 1); exit 1; }; }
3047       ;;
3048     no)
3049       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3050 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3051    { (exit 1); exit 1; }; }
3052       ;;
3053     *)
3054       wal_segsize=$withval
3055       ;;
3056   esac
3057
3058 else
3059   wal_segsize=16
3060 fi
3061
3062
3063 case ${wal_segsize} in
3064   1) ;;
3065   2) ;;
3066   4) ;;
3067   8) ;;
3068  16) ;;
3069  32) ;;
3070  64) ;;
3071   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3072 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3073    { (exit 1); exit 1; }; }
3074 esac
3075 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3076 $as_echo "${wal_segsize}MB" >&6; }
3077
3078
3079 cat >>confdefs.h <<_ACEOF
3080 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3081 _ACEOF
3082
3083
3084 #
3085 # C compiler
3086 #
3087
3088 # For historical reasons you can also use --with-CC to specify the C compiler
3089 # to use, although the standard way to do this is to set the CC environment
3090 # variable.
3091
3092
3093
3094 # Check whether --with-CC was given.
3095 if test "${with_CC+set}" = set; then
3096   withval=$with_CC;
3097   case $withval in
3098     yes)
3099       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3100 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3101    { (exit 1); exit 1; }; }
3102       ;;
3103     no)
3104       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3105 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3106    { (exit 1); exit 1; }; }
3107       ;;
3108     *)
3109       CC=$with_CC
3110       ;;
3111   esac
3112
3113 fi
3114
3115
3116
3117 case $template in
3118   aix) pgac_cc_list="gcc xlc";;
3119  irix) pgac_cc_list="cc";; # no gcc
3120     *) pgac_cc_list="gcc cc";;
3121 esac
3122
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 if test -n "$ac_tool_prefix"; then
3129   for ac_prog in $pgac_cc_list
3130   do
3131     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$CC"; then
3139   ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146   for ac_exec_ext in '' $ac_executable_extensions; do
3147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163   { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168     test -n "$CC" && break
3169   done
3170 fi
3171 if test -z "$CC"; then
3172   ac_ct_CC=$CC
3173   for ac_prog in $pgac_cc_list
3174 do
3175   # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3180   $as_echo_n "(cached) " >&6
3181 else
3182   if test -n "$ac_ct_CC"; then
3183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190   for ac_exec_ext in '' $ac_executable_extensions; do
3191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192     ac_cv_prog_ac_ct_CC="$ac_prog"
3193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207   { $as_echo "$as_me:$LINENO: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212   test -n "$ac_ct_CC" && break
3213 done
3214
3215   if test "x$ac_ct_CC" = x; then
3216     CC=""
3217   else
3218     case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224     CC=$ac_ct_CC
3225   fi
3226 fi
3227
3228
3229 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&5
3233 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&2;}
3235    { (exit 1); exit 1; }; }; }
3236
3237 # Provide some information about the compiler.
3238 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3239 set X $ac_compile
3240 ac_compiler=$2
3241 { (ac_try="$ac_compiler --version >&5"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3247 $as_echo "$ac_try_echo") >&5
3248   (eval "$ac_compiler --version >&5") 2>&5
3249   ac_status=$?
3250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }
3252 { (ac_try="$ac_compiler -v >&5"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258 $as_echo "$ac_try_echo") >&5
3259   (eval "$ac_compiler -v >&5") 2>&5
3260   ac_status=$?
3261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }
3263 { (ac_try="$ac_compiler -V >&5"
3264 case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270   (eval "$ac_compiler -V >&5") 2>&5
3271   ac_status=$?
3272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }
3274
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281
3282 int
3283 main ()
3284 {
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 ac_clean_files_save=$ac_clean_files
3291 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3292 # Try to create an executable without -o first, disregard a.out.
3293 # It will help us diagnose broken compilers, and finding out an intuition
3294 # of exeext.
3295 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3296 $as_echo_n "checking for C compiler default output file name... " >&6; }
3297 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298
3299 # The possible output files:
3300 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301
3302 ac_rmfiles=
3303 for ac_file in $ac_files
3304 do
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3308   esac
3309 done
3310 rm -f $ac_rmfiles
3311
3312 if { (ac_try="$ac_link_default"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319   (eval "$ac_link_default") 2>&5
3320   ac_status=$?
3321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }; then
3323   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3325 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3326 # so that the user can short-circuit this test for compilers unknown to
3327 # Autoconf.
3328 for ac_file in $ac_files ''
3329 do
3330   test -f "$ac_file" || continue
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333         ;;
3334     [ab].out )
3335         # We found the default executable, but exeext='' is most
3336         # certainly right.
3337         break;;
3338     *.* )
3339         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340         then :; else
3341            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342         fi
3343         # We set ac_cv_exeext here because the later test for it is not
3344         # safe: cross compilers may not add the suffix if given an `-o'
3345         # argument, so we may need to know it at that point already.
3346         # Even if this section looks crufty: it has the advantage of
3347         # actually working.
3348         break;;
3349     * )
3350         break;;
3351   esac
3352 done
3353 test "$ac_cv_exeext" = no && ac_cv_exeext=
3354
3355 else
3356   ac_file=''
3357 fi
3358
3359 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3360 $as_echo "$ac_file" >&6; }
3361 if test -z "$ac_file"; then
3362   $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&5
3369 $as_echo "$as_me: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&2;}
3371    { (exit 77); exit 77; }; }; }
3372 fi
3373
3374 ac_exeext=$ac_cv_exeext
3375
3376 # Check that the compiler produces executables we can run.  If not, either
3377 # the compiler is broken, or we cross compile.
3378 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3379 $as_echo_n "checking whether the C compiler works... " >&6; }
3380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383   if { ac_try='./$ac_file'
3384   { (case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390   (eval "$ac_try") 2>&5
3391   ac_status=$?
3392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; }; then
3394     cross_compiling=no
3395   else
3396     if test "$cross_compiling" = maybe; then
3397         cross_compiling=yes
3398     else
3399         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." >&5
3404 $as_echo "$as_me: error: cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." >&2;}
3407    { (exit 1); exit 1; }; }; }
3408     fi
3409   fi
3410 fi
3411 { $as_echo "$as_me:$LINENO: result: yes" >&5
3412 $as_echo "yes" >&6; }
3413
3414 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3415 ac_clean_files=$ac_clean_files_save
3416 # Check that the compiler produces executables we can run.  If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3419 $as_echo_n "checking whether we are cross compiling... " >&6; }
3420 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3421 $as_echo "$cross_compiling" >&6; }
3422
3423 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { (ac_try="$ac_link"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432   (eval "$ac_link") 2>&5
3433   ac_status=$?
3434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; then
3436   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 # `rm'.
3440 for ac_file in conftest.exe conftest conftest.*; do
3441   test -f "$ac_file" || continue
3442   case $ac_file in
3443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445           break;;
3446     * ) break;;
3447   esac
3448 done
3449 else
3450   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&5
3454 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&2;}
3456    { (exit 1); exit 1; }; }; }
3457 fi
3458
3459 rm -f conftest$ac_cv_exeext
3460 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3461 $as_echo "$ac_cv_exeext" >&6; }
3462
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3465 ac_exeext=$EXEEXT
3466 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if test "${ac_cv_objext+set}" = set; then
3469   $as_echo_n "(cached) " >&6
3470 else
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477
3478 int
3479 main ()
3480 {
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.o conftest.obj
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494   (eval "$ac_compile") 2>&5
3495   ac_status=$?
3496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); }; then
3498   for ac_file in conftest.o conftest.obj conftest.*; do
3499   test -f "$ac_file" || continue;
3500   case $ac_file in
3501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3502     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503        break;;
3504   esac
3505 done
3506 else
3507   $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&5
3514 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&2;}
3516    { (exit 1); exit 1; }; }; }
3517 fi
3518
3519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520 fi
3521 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3522 $as_echo "$ac_cv_objext" >&6; }
3523 OBJEXT=$ac_cv_objext
3524 ac_objext=$OBJEXT
3525 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3526 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3528   $as_echo_n "(cached) " >&6
3529 else
3530   cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h.  */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h.  */
3536
3537 int
3538 main ()
3539 {
3540 #ifndef __GNUC__
3541        choke me
3542 #endif
3543
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (ac_try="$ac_compile"
3550 case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556   (eval "$ac_compile") 2>conftest.er1
3557   ac_status=$?
3558   grep -v '^ *+' conftest.er1 >conftest.err
3559   rm -f conftest.er1
3560   cat conftest.err >&5
3561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } && {
3563          test -z "$ac_c_werror_flag" ||
3564          test ! -s conftest.err
3565        } && test -s conftest.$ac_objext; then
3566   ac_compiler_gnu=yes
3567 else
3568   $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571         ac_compiler_gnu=no
3572 fi
3573
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576
3577 fi
3578 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580 if test $ac_compiler_gnu = yes; then
3581   GCC=yes
3582 else
3583   GCC=
3584 fi
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3589 if test "${ac_cv_prog_cc_g+set}" = set; then
3590   $as_echo_n "(cached) " >&6
3591 else
3592   ac_save_c_werror_flag=$ac_c_werror_flag
3593    ac_c_werror_flag=yes
3594    ac_cv_prog_cc_g=no
3595    CFLAGS="-g"
3596    cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3618 $as_echo "$ac_try_echo") >&5
3619   (eval "$ac_compile") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } && {
3626          test -z "$ac_c_werror_flag" ||
3627          test ! -s conftest.err
3628        } && test -s conftest.$ac_objext; then
3629   ac_cv_prog_cc_g=yes
3630 else
3631   $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634         CFLAGS=""
3635       cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641
3642 int
3643 main ()
3644 {
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3657 $as_echo "$ac_try_echo") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } && {
3665          test -z "$ac_c_werror_flag" ||
3666          test ! -s conftest.err
3667        } && test -s conftest.$ac_objext; then
3668   :
3669 else
3670   $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673         ac_c_werror_flag=$ac_save_c_werror_flag
3674          CFLAGS="-g"
3675          cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h.  */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h.  */
3681
3682 int
3683 main ()
3684 {
3685
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3697 $as_echo "$ac_try_echo") >&5
3698   (eval "$ac_compile") 2>conftest.er1
3699   ac_status=$?
3700   grep -v '^ *+' conftest.er1 >conftest.err
3701   rm -f conftest.er1
3702   cat conftest.err >&5
3703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } && {
3705          test -z "$ac_c_werror_flag" ||
3706          test ! -s conftest.err
3707        } && test -s conftest.$ac_objext; then
3708   ac_cv_prog_cc_g=yes
3709 else
3710   $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713
3714 fi
3715
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 fi
3718
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723    ac_c_werror_flag=$ac_save_c_werror_flag
3724 fi
3725 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3726 $as_echo "$ac_cv_prog_cc_g" >&6; }
3727 if test "$ac_test_CFLAGS" = set; then
3728   CFLAGS=$ac_save_CFLAGS
3729 elif test $ac_cv_prog_cc_g = yes; then
3730   if test "$GCC" = yes; then
3731     CFLAGS="-g -O2"
3732   else
3733     CFLAGS="-g"
3734   fi
3735 else
3736   if test "$GCC" = yes; then
3737     CFLAGS="-O2"
3738   else
3739     CFLAGS=
3740   fi
3741 fi
3742 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744 if test "${ac_cv_prog_cc_c89+set}" = set; then
3745   $as_echo_n "(cached) " >&6
3746 else
3747   ac_cv_prog_cc_c89=no
3748 ac_save_CC=$CC
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h.  */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h.  */
3755 #include <stdarg.h>
3756 #include <stdio.h>
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3763      char **p;
3764      int i;
3765 {
3766   return p[i];
3767 }
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3769 {
3770   char *s;
3771   va_list v;
3772   va_start (v,p);
3773   s = g (p, va_arg (v,int));
3774   va_end (v);
3775   return s;
3776 }
3777
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3779    function prototypes and stuff, but not '\xHH' hex character constants.
3780    These don't provoke an error unfortunately, instead are silently treated
3781    as 'x'.  The following induces an error, until -std is added to get
3782    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3783    array size at least.  It's necessary to write '\x00'==0 to get something
3784    that's true only with -std.  */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3786
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788    inside strings and character constants.  */
3789 #define FOO(x) 'x'
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3791
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3796 int argc;
3797 char **argv;
3798 int
3799 main ()
3800 {
3801 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3807         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3808 do
3809   CC="$ac_save_CC $ac_arg"
3810   rm -f conftest.$ac_objext
3811 if { (ac_try="$ac_compile"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817 $as_echo "$ac_try_echo") >&5
3818   (eval "$ac_compile") 2>conftest.er1
3819   ac_status=$?
3820   grep -v '^ *+' conftest.er1 >conftest.err
3821   rm -f conftest.er1
3822   cat conftest.err >&5
3823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); } && {
3825          test -z "$ac_c_werror_flag" ||
3826          test ! -s conftest.err
3827        } && test -s conftest.$ac_objext; then
3828   ac_cv_prog_cc_c89=$ac_arg
3829 else
3830   $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833
3834 fi
3835
3836 rm -f core conftest.err conftest.$ac_objext
3837   test "x$ac_cv_prog_cc_c89" != "xno" && break
3838 done
3839 rm -f conftest.$ac_ext
3840 CC=$ac_save_CC
3841
3842 fi
3843 # AC_CACHE_VAL
3844 case "x$ac_cv_prog_cc_c89" in
3845   x)
3846     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3847 $as_echo "none needed" >&6; } ;;
3848   xno)
3849     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3850 $as_echo "unsupported" >&6; } ;;
3851   *)
3852     CC="$CC $ac_cv_prog_cc_c89"
3853     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3855 esac
3856
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864
3865 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3866 # but has idiosyncrasies of its own.  We assume icc will define
3867 # __INTEL_COMPILER regardless of CFLAGS.
3868
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879 #ifndef __INTEL_COMPILER
3880 choke me
3881 #endif
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3893 $as_echo "$ac_try_echo") >&5
3894   (eval "$ac_compile") 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } && {
3901          test -z "$ac_c_werror_flag" ||
3902          test ! -s conftest.err
3903        } && test -s conftest.$ac_objext; then
3904   ICC=yes
3905 else
3906   $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909         ICC=no
3910 fi
3911
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913
3914 # Check if it's Sun Studio compiler. We assume that
3915 # __SUNPRO_C will be defined for Sun Studio compilers
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926 #ifndef __SUNPRO_C
3927 choke me
3928 #endif
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3935 case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941   (eval "$ac_compile") 2>conftest.er1
3942   ac_status=$?
3943   grep -v '^ *+' conftest.er1 >conftest.err
3944   rm -f conftest.er1
3945   cat conftest.err >&5
3946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); } && {
3948          test -z "$ac_c_werror_flag" ||
3949          test ! -s conftest.err
3950        } && test -s conftest.$ac_objext; then
3951   SUN_STUDIO_CC=yes
3952 else
3953   $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956         SUN_STUDIO_CC=no
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961
3962
3963 unset CFLAGS
3964
3965 #
3966 # Read the template
3967 #
3968 . "$srcdir/src/template/$template" || exit
3969
3970 # CFLAGS are selected so:
3971 # If the user specifies something in the environment, that is used.
3972 # else:  If the template file set something, that is used.
3973 # else:  If coverage was enabled, don't set anything.
3974 # else:  If the compiler is GCC, then we use -O2.
3975 # else:  If the compiler is something else, then we use -O, unless debugging.
3976
3977 if test "$ac_env_CFLAGS_set" = set; then
3978   CFLAGS=$ac_env_CFLAGS_value
3979 elif test "${CFLAGS+set}" = set; then
3980   : # (keep what template set)
3981 elif test "$enable_coverage" = yes; then
3982   : # no optimization by default
3983 elif test "$GCC" = yes; then
3984   CFLAGS="-O2"
3985 else
3986   # if the user selected debug mode, don't use -O
3987   if test "$enable_debug" != yes; then
3988     CFLAGS="-O"
3989   fi
3990 fi
3991
3992 # Some versions of GCC support some additional useful warning flags.
3993 # Check whether they are supported, and add them to CFLAGS if so.
3994 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3995 # but has its own.  Also check other compiler-specific flags here.
3996
3997 if test "$GCC" = yes -a "$ICC" = no; then
3998   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3999   # These work in some but not all gcc versions
4000   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4001 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4002 pgac_save_CFLAGS=$CFLAGS
4003 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010
4011 int
4012 main ()
4013 {
4014
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4021 case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4026 $as_echo "$ac_try_echo") >&5
4027   (eval "$ac_compile") 2>conftest.er1
4028   ac_status=$?
4029   grep -v '^ *+' conftest.er1 >conftest.err
4030   rm -f conftest.er1
4031   cat conftest.err >&5
4032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } && {
4034          test -z "$ac_c_werror_flag" ||
4035          test ! -s conftest.err
4036        } && test -s conftest.$ac_objext; then
4037   { $as_echo "$as_me:$LINENO: result: yes" >&5
4038 $as_echo "yes" >&6; }
4039 else
4040   $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043         CFLAGS="$pgac_save_CFLAGS"
4044                     { $as_echo "$as_me:$LINENO: result: no" >&5
4045 $as_echo "no" >&6; }
4046 fi
4047
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049
4050   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4051 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4052 pgac_save_CFLAGS=$CFLAGS
4053 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060
4061 int
4062 main ()
4063 {
4064
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4076 $as_echo "$ac_try_echo") >&5
4077   (eval "$ac_compile") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } && {
4084          test -z "$ac_c_werror_flag" ||
4085          test ! -s conftest.err
4086        } && test -s conftest.$ac_objext; then
4087   { $as_echo "$as_me:$LINENO: result: yes" >&5
4088 $as_echo "yes" >&6; }
4089 else
4090   $as_echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093         CFLAGS="$pgac_save_CFLAGS"
4094                     { $as_echo "$as_me:$LINENO: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099
4100   # Disable strict-aliasing rules; needed for gcc 3.3+
4101   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4102 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4103 pgac_save_CFLAGS=$CFLAGS
4104 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4122 case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127 $as_echo "$ac_try_echo") >&5
4128   (eval "$ac_compile") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } && {
4135          test -z "$ac_c_werror_flag" ||
4136          test ! -s conftest.err
4137        } && test -s conftest.$ac_objext; then
4138   { $as_echo "$as_me:$LINENO: result: yes" >&5
4139 $as_echo "yes" >&6; }
4140 else
4141   $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144         CFLAGS="$pgac_save_CFLAGS"
4145                     { $as_echo "$as_me:$LINENO: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150
4151   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4152   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4153 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4154 pgac_save_CFLAGS=$CFLAGS
4155 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162
4163 int
4164 main ()
4165 {
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178 $as_echo "$ac_try_echo") >&5
4179   (eval "$ac_compile") 2>conftest.er1
4180   ac_status=$?
4181   grep -v '^ *+' conftest.er1 >conftest.err
4182   rm -f conftest.er1
4183   cat conftest.err >&5
4184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } && {
4186          test -z "$ac_c_werror_flag" ||
4187          test ! -s conftest.err
4188        } && test -s conftest.$ac_objext; then
4189   { $as_echo "$as_me:$LINENO: result: yes" >&5
4190 $as_echo "yes" >&6; }
4191 else
4192   $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195         CFLAGS="$pgac_save_CFLAGS"
4196                     { $as_echo "$as_me:$LINENO: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201
4202 elif test "$ICC" = yes; then
4203   # Intel's compiler has a bug/misoptimization in checking for
4204   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4205   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4206 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4207 pgac_save_CFLAGS=$CFLAGS
4208 CFLAGS="$pgac_save_CFLAGS -mp1"
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215
4216 int
4217 main ()
4218 {
4219
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (ac_try="$ac_compile"
4226 case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231 $as_echo "$ac_try_echo") >&5
4232   (eval "$ac_compile") 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } && {
4239          test -z "$ac_c_werror_flag" ||
4240          test ! -s conftest.err
4241        } && test -s conftest.$ac_objext; then
4242   { $as_echo "$as_me:$LINENO: result: yes" >&5
4243 $as_echo "yes" >&6; }
4244 else
4245   $as_echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248         CFLAGS="$pgac_save_CFLAGS"
4249                     { $as_echo "$as_me:$LINENO: result: no" >&5
4250 $as_echo "no" >&6; }
4251 fi
4252
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254
4255   # Make sure strict aliasing is off (though this is said to be the default)
4256   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4257 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4258 pgac_save_CFLAGS=$CFLAGS
4259 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h.  */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h.  */
4266
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4277 case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4282 $as_echo "$ac_try_echo") >&5
4283   (eval "$ac_compile") 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } && {
4290          test -z "$ac_c_werror_flag" ||
4291          test ! -s conftest.err
4292        } && test -s conftest.$ac_objext; then
4293   { $as_echo "$as_me:$LINENO: result: yes" >&5
4294 $as_echo "yes" >&6; }
4295 else
4296   $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299         CFLAGS="$pgac_save_CFLAGS"
4300                     { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305
4306 elif test "$PORTNAME" = "aix"; then
4307   # AIX's xlc has to have strict aliasing turned off too
4308   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4309 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4310 pgac_save_CFLAGS=$CFLAGS
4311 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318
4319 int
4320 main ()
4321 {
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (ac_try="$ac_compile"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4334 $as_echo "$ac_try_echo") >&5
4335   (eval "$ac_compile") 2>conftest.er1
4336   ac_status=$?
4337   grep -v '^ *+' conftest.er1 >conftest.err
4338   rm -f conftest.er1
4339   cat conftest.err >&5
4340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } && {
4342          test -z "$ac_c_werror_flag" ||
4343          test ! -s conftest.err
4344        } && test -s conftest.$ac_objext; then
4345   { $as_echo "$as_me:$LINENO: result: yes" >&5
4346 $as_echo "yes" >&6; }
4347 else
4348   $as_echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351         CFLAGS="$pgac_save_CFLAGS"
4352                     { $as_echo "$as_me:$LINENO: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357
4358 fi
4359
4360 # supply -g if --enable-debug
4361 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4362   CFLAGS="$CFLAGS -g"
4363 fi
4364
4365 # enable code coverage if --enable-coverage
4366 if test "$enable_coverage" = yes; then
4367   if test "$GCC" = yes; then
4368     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4369   else
4370     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4371 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4372    { (exit 1); exit 1; }; }
4373   fi
4374 fi
4375
4376 # enable profiling if --enable-profiling
4377 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4378   if test "$GCC" = yes; then
4379
4380 cat >>confdefs.h <<\_ACEOF
4381 #define PROFILE_PID_DIR 1
4382 _ACEOF
4383
4384     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4385   else
4386     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4387 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4388    { (exit 1); exit 1; }; }
4389   fi
4390 fi
4391
4392 # We already have this in Makefile.win32, but configure needs it too
4393 if test "$PORTNAME" = "win32"; then
4394   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4395 fi
4396
4397 # Check if the compiler still works with the template settings
4398 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4399 $as_echo_n "checking whether the C compiler still works... " >&6; }
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h.  */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h.  */
4406
4407 int
4408 main ()
4409 {
4410 return 0;
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 rm -f conftest.$ac_objext conftest$ac_exeext
4416 if { (ac_try="$ac_link"
4417 case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4422 $as_echo "$ac_try_echo") >&5
4423   (eval "$ac_link") 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } && {
4430          test -z "$ac_c_werror_flag" ||
4431          test ! -s conftest.err
4432        } && test -s conftest$ac_exeext && {
4433          test "$cross_compiling" = yes ||
4434          $as_test_x conftest$ac_exeext
4435        }; then
4436   { $as_echo "$as_me:$LINENO: result: yes" >&5
4437 $as_echo "yes" >&6; }
4438 else
4439   $as_echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442         { $as_echo "$as_me:$LINENO: result: no" >&5
4443 $as_echo "no" >&6; }
4444    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4445 $as_echo "$as_me: error: cannot proceed" >&2;}
4446    { (exit 1); exit 1; }; }
4447 fi
4448
4449 rm -rf conftest.dSYM
4450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4451       conftest$ac_exeext conftest.$ac_ext
4452
4453 # Defend against gcc -ffast-math
4454 if test "$GCC" = yes; then
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461
4462 int
4463 main ()
4464 {
4465 #ifdef __FAST_MATH__
4466 choke me
4467 #endif
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4474 case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480   (eval "$ac_compile") 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } && {
4487          test -z "$ac_c_werror_flag" ||
4488          test ! -s conftest.err
4489        } && test -s conftest.$ac_objext; then
4490   :
4491 else
4492   $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4496 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4497    { (exit 1); exit 1; }; }
4498 fi
4499
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 fi
4502
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4509 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4510 # On Suns, sometimes $CPP names a directory.
4511 if test -n "$CPP" && test -d "$CPP"; then
4512   CPP=
4513 fi
4514 if test -z "$CPP"; then
4515   if test "${ac_cv_prog_CPP+set}" = set; then
4516   $as_echo_n "(cached) " >&6
4517 else
4518       # Double quotes because CPP needs to be expanded
4519     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4520     do
4521       ac_preproc_ok=false
4522 for ac_c_preproc_warn_flag in '' yes
4523 do
4524   # Use a header file that comes with gcc, so configuring glibc
4525   # with a fresh cross-compiler works.
4526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527   # <limits.h> exists even on freestanding compilers.
4528   # On the NeXT, cc -E runs the code through the compiler's parser,
4529   # not just through cpp. "Syntax error" is here to catch this case.
4530   cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541                      Syntax error
4542 _ACEOF
4543 if { (ac_try="$ac_cpp conftest.$ac_ext"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549 $as_echo "$ac_try_echo") >&5
4550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } >/dev/null && {
4557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4558          test ! -s conftest.err
4559        }; then
4560   :
4561 else
4562   $as_echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565   # Broken: fails on valid input.
4566 continue
4567 fi
4568
4569 rm -f conftest.err conftest.$ac_ext
4570
4571   # OK, works on sane cases.  Now check whether nonexistent headers
4572   # can be detected and how.
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 #include <ac_nonexistent.h>
4580 _ACEOF
4581 if { (ac_try="$ac_cpp conftest.$ac_ext"
4582 case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } >/dev/null && {
4595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4596          test ! -s conftest.err
4597        }; then
4598   # Broken: success on invalid input.
4599 continue
4600 else
4601   $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604   # Passes both tests.
4605 ac_preproc_ok=:
4606 break
4607 fi
4608
4609 rm -f conftest.err conftest.$ac_ext
4610
4611 done
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.err conftest.$ac_ext
4614 if $ac_preproc_ok; then
4615   break
4616 fi
4617
4618     done
4619     ac_cv_prog_CPP=$CPP
4620
4621 fi
4622   CPP=$ac_cv_prog_CPP
4623 else
4624   ac_cv_prog_CPP=$CPP
4625 fi
4626 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4627 $as_echo "$CPP" >&6; }
4628 ac_preproc_ok=false
4629 for ac_c_preproc_warn_flag in '' yes
4630 do
4631   # Use a header file that comes with gcc, so configuring glibc
4632   # with a fresh cross-compiler works.
4633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634   # <limits.h> exists even on freestanding compilers.
4635   # On the NeXT, cc -E runs the code through the compiler's parser,
4636   # not just through cpp. "Syntax error" is here to catch this case.
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #ifdef __STDC__
4644 # include <limits.h>
4645 #else
4646 # include <assert.h>
4647 #endif
4648                      Syntax error
4649 _ACEOF
4650 if { (ac_try="$ac_cpp conftest.$ac_ext"
4651 case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4656 $as_echo "$ac_try_echo") >&5
4657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } >/dev/null && {
4664          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4665          test ! -s conftest.err
4666        }; then
4667   :
4668 else
4669   $as_echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672   # Broken: fails on valid input.
4673 continue
4674 fi
4675
4676 rm -f conftest.err conftest.$ac_ext
4677
4678   # OK, works on sane cases.  Now check whether nonexistent headers
4679   # can be detected and how.
4680   cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 #include <ac_nonexistent.h>
4687 _ACEOF
4688 if { (ac_try="$ac_cpp conftest.$ac_ext"
4689 case "(($ac_try" in
4690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691   *) ac_try_echo=$ac_try;;
4692 esac
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } >/dev/null && {
4702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703          test ! -s conftest.err
4704        }; then
4705   # Broken: success on invalid input.
4706 continue
4707 else
4708   $as_echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711   # Passes both tests.
4712 ac_preproc_ok=:
4713 break
4714 fi
4715
4716 rm -f conftest.err conftest.$ac_ext
4717
4718 done
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.$ac_ext
4721 if $ac_preproc_ok; then
4722   :
4723 else
4724   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4726 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4727 See \`config.log' for more details." >&5
4728 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&2;}
4730    { (exit 1); exit 1; }; }; }
4731 fi
4732
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739
4740
4741
4742 #
4743 # Set up TAS assembly code if needed; the template file has now had its
4744 # chance to request this.
4745 #
4746 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4747
4748
4749 if test "$need_tas" = yes ; then
4750   TAS=tas.o
4751 else
4752   TAS=""
4753 fi
4754
4755
4756
4757 #
4758 # Automatic dependency tracking
4759 #
4760
4761
4762 # Check whether --enable-depend was given.
4763 if test "${enable_depend+set}" = set; then
4764   enableval=$enable_depend;
4765   case $enableval in
4766     yes)
4767       autodepend=yes
4768       ;;
4769     no)
4770       :
4771       ;;
4772     *)
4773       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4774 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4775    { (exit 1); exit 1; }; }
4776       ;;
4777   esac
4778
4779 else
4780   enable_depend=no
4781
4782 fi
4783
4784
4785
4786
4787
4788 #
4789 # Enable assert checks
4790 #
4791
4792
4793 # Check whether --enable-cassert was given.
4794 if test "${enable_cassert+set}" = set; then
4795   enableval=$enable_cassert;
4796   case $enableval in
4797     yes)
4798
4799 cat >>confdefs.h <<\_ACEOF
4800 #define USE_ASSERT_CHECKING 1
4801 _ACEOF
4802
4803       ;;
4804     no)
4805       :
4806       ;;
4807     *)
4808       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4809 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4810    { (exit 1); exit 1; }; }
4811       ;;
4812   esac
4813
4814 else
4815   enable_cassert=no
4816
4817 fi
4818
4819
4820
4821
4822 #
4823 # Include directories
4824 #
4825 ac_save_IFS=$IFS
4826 IFS="${IFS}${PATH_SEPARATOR}"
4827 # SRCH_INC comes from the template file
4828 for dir in $with_includes $SRCH_INC; do
4829   if test -d "$dir"; then
4830     INCLUDES="$INCLUDES -I$dir"
4831   else
4832     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4833 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4834   fi
4835 done
4836 IFS=$ac_save_IFS
4837
4838
4839
4840 #
4841 # Library directories
4842 #
4843 ac_save_IFS=$IFS
4844 IFS="${IFS}${PATH_SEPARATOR}"
4845 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4846 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4847   if test -d "$dir"; then
4848     LIBDIRS="$LIBDIRS -L$dir"
4849   else
4850     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4851 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4852   fi
4853 done
4854 IFS=$ac_save_IFS
4855
4856 #
4857 # Enable thread-safe client libraries
4858 #
4859 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4860 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4861 if test "$PORTNAME" != "win32"; then
4862
4863
4864 # Check whether --enable-thread-safety was given.
4865 if test "${enable_thread_safety+set}" = set; then
4866   enableval=$enable_thread_safety;
4867   case $enableval in
4868     yes)
4869       :
4870       ;;
4871     no)
4872       :
4873       ;;
4874     *)
4875       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4876 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4877    { (exit 1); exit 1; }; }
4878       ;;
4879   esac
4880
4881 else
4882   enable_thread_safety=no
4883
4884 fi
4885
4886
4887 else
4888 # Win32 should always use threads
4889
4890
4891 # Check whether --enable-thread-safety was given.
4892 if test "${enable_thread_safety+set}" = set; then
4893   enableval=$enable_thread_safety;
4894   case $enableval in
4895     yes)
4896       :
4897       ;;
4898     no)
4899       :
4900       ;;
4901     *)
4902       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4903 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4904    { (exit 1); exit 1; }; }
4905       ;;
4906   esac
4907
4908 else
4909   enable_thread_safety=yes
4910
4911 fi
4912
4913
4914 fi
4915
4916
4917
4918 # Check whether --enable-thread-safety-force was given.
4919 if test "${enable_thread_safety_force+set}" = set; then
4920   enableval=$enable_thread_safety_force;
4921   case $enableval in
4922     yes)
4923       :
4924       ;;
4925     no)
4926       :
4927       ;;
4928     *)
4929       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4930 $as_echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4931    { (exit 1); exit 1; }; }
4932       ;;
4933   esac
4934
4935 else
4936   enable_thread_safety_force=no
4937
4938 fi
4939
4940
4941 if test "$enable_thread_safety" = yes -o \
4942         "$enable_thread_safety_force" = yes; then
4943   enable_thread_safety="yes"    # for 'force'
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define ENABLE_THREAD_SAFETY 1
4947 _ACEOF
4948
4949 fi
4950 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4951 $as_echo "$enable_thread_safety" >&6; }
4952
4953
4954 #
4955 # Optionally build Tcl modules (PL/Tcl)
4956 #
4957 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4958 $as_echo_n "checking whether to build with Tcl... " >&6; }
4959
4960
4961
4962 # Check whether --with-tcl was given.
4963 if test "${with_tcl+set}" = set; then
4964   withval=$with_tcl;
4965   case $withval in
4966     yes)
4967       :
4968       ;;
4969     no)
4970       :
4971       ;;
4972     *)
4973       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4974 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4975    { (exit 1); exit 1; }; }
4976       ;;
4977   esac
4978
4979 else
4980   with_tcl=no
4981
4982 fi
4983
4984
4985 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4986 $as_echo "$with_tcl" >&6; }
4987
4988
4989 # We see if the path to the Tcl/Tk configuration scripts is specified.
4990 # This will override the use of tclsh to find the paths to search.
4991
4992
4993
4994
4995 # Check whether --with-tclconfig was given.
4996 if test "${with_tclconfig+set}" = set; then
4997   withval=$with_tclconfig;
4998   case $withval in
4999     yes)
5000       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5001 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5002    { (exit 1); exit 1; }; }
5003       ;;
5004     no)
5005       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5006 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5007    { (exit 1); exit 1; }; }
5008       ;;
5009     *)
5010
5011       ;;
5012   esac
5013
5014 fi
5015
5016
5017
5018 #
5019 # Optionally build Perl modules (PL/Perl)
5020 #
5021 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5022 $as_echo_n "checking whether to build Perl modules... " >&6; }
5023
5024
5025
5026 # Check whether --with-perl was given.
5027 if test "${with_perl+set}" = set; then
5028   withval=$with_perl;
5029   case $withval in
5030     yes)
5031       :
5032       ;;
5033     no)
5034       :
5035       ;;
5036     *)
5037       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5038 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5039    { (exit 1); exit 1; }; }
5040       ;;
5041   esac
5042
5043 else
5044   with_perl=no
5045
5046 fi
5047
5048
5049 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5050 $as_echo "$with_perl" >&6; }
5051
5052
5053 #
5054 # Optionally build Python modules (PL/Python)
5055 #
5056 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5057 $as_echo_n "checking whether to build Python modules... " >&6; }
5058
5059
5060
5061 # Check whether --with-python was given.
5062 if test "${with_python+set}" = set; then
5063   withval=$with_python;
5064   case $withval in
5065     yes)
5066       :
5067       ;;
5068     no)
5069       :
5070       ;;
5071     *)
5072       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5073 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5074    { (exit 1); exit 1; }; }
5075       ;;
5076   esac
5077
5078 else
5079   with_python=no
5080
5081 fi
5082
5083
5084 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5085 $as_echo "$with_python" >&6; }
5086
5087
5088 #
5089 # GSSAPI
5090 #
5091 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5092 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5093
5094
5095
5096 # Check whether --with-gssapi was given.
5097 if test "${with_gssapi+set}" = set; then
5098   withval=$with_gssapi;
5099   case $withval in
5100     yes)
5101
5102
5103 cat >>confdefs.h <<\_ACEOF
5104 #define ENABLE_GSS 1
5105 _ACEOF
5106
5107   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5108
5109       ;;
5110     no)
5111       :
5112       ;;
5113     *)
5114       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5115 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5116    { (exit 1); exit 1; }; }
5117       ;;
5118   esac
5119
5120 else
5121   with_gssapi=no
5122
5123 fi
5124
5125
5126 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5127 $as_echo "$with_gssapi" >&6; }
5128
5129
5130 #
5131 # Kerberos 5
5132 #
5133 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5134 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5135
5136
5137
5138 # Check whether --with-krb5 was given.
5139 if test "${with_krb5+set}" = set; then
5140   withval=$with_krb5;
5141   case $withval in
5142     yes)
5143
5144
5145 cat >>confdefs.h <<\_ACEOF
5146 #define KRB5 1
5147 _ACEOF
5148
5149   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5150
5151       ;;
5152     no)
5153       :
5154       ;;
5155     *)
5156       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5157 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5158    { (exit 1); exit 1; }; }
5159       ;;
5160   esac
5161
5162 else
5163   with_krb5=no
5164
5165 fi
5166
5167
5168 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5169 $as_echo "$with_krb5" >&6; }
5170
5171
5172
5173
5174
5175
5176 #
5177 # Kerberos configuration parameters
5178 #
5179
5180
5181
5182 # Check whether --with-krb-srvnam was given.
5183 if test "${with_krb_srvnam+set}" = set; then
5184   withval=$with_krb_srvnam;
5185   case $withval in
5186     yes)
5187       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5188 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5189    { (exit 1); exit 1; }; }
5190       ;;
5191     no)
5192       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5193 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5194    { (exit 1); exit 1; }; }
5195       ;;
5196     *)
5197
5198       ;;
5199   esac
5200
5201 else
5202   with_krb_srvnam="postgres"
5203 fi
5204
5205
5206
5207 cat >>confdefs.h <<_ACEOF
5208 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5209 _ACEOF
5210
5211
5212
5213 #
5214 # PAM
5215 #
5216 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5217 $as_echo_n "checking whether to build with PAM support... " >&6; }
5218
5219
5220
5221 # Check whether --with-pam was given.
5222 if test "${with_pam+set}" = set; then
5223   withval=$with_pam;
5224   case $withval in
5225     yes)
5226
5227 cat >>confdefs.h <<\_ACEOF
5228 #define USE_PAM 1
5229 _ACEOF
5230
5231       ;;
5232     no)
5233       :
5234       ;;
5235     *)
5236       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5237 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5238    { (exit 1); exit 1; }; }
5239       ;;
5240   esac
5241
5242 else
5243   with_pam=no
5244
5245 fi
5246
5247
5248 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5249 $as_echo "$with_pam" >&6; }
5250
5251
5252
5253 #
5254 # LDAP
5255 #
5256 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5257 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5258
5259
5260
5261 # Check whether --with-ldap was given.
5262 if test "${with_ldap+set}" = set; then
5263   withval=$with_ldap;
5264   case $withval in
5265     yes)
5266
5267 cat >>confdefs.h <<\_ACEOF
5268 #define USE_LDAP 1
5269 _ACEOF
5270
5271       ;;
5272     no)
5273       :
5274       ;;
5275     *)
5276       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5277 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5278    { (exit 1); exit 1; }; }
5279       ;;
5280   esac
5281
5282 else
5283   with_ldap=no
5284
5285 fi
5286
5287
5288 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5289 $as_echo "$with_ldap" >&6; }
5290
5291
5292
5293 #
5294 # Bonjour
5295 #
5296 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5297 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5298
5299
5300
5301 # Check whether --with-bonjour was given.
5302 if test "${with_bonjour+set}" = set; then
5303   withval=$with_bonjour;
5304   case $withval in
5305     yes)
5306
5307 cat >>confdefs.h <<\_ACEOF
5308 #define USE_BONJOUR 1
5309 _ACEOF
5310
5311       ;;
5312     no)
5313       :
5314       ;;
5315     *)
5316       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5317 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5318    { (exit 1); exit 1; }; }
5319       ;;
5320   esac
5321
5322 else
5323   with_bonjour=no
5324
5325 fi
5326
5327
5328 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5329 $as_echo "$with_bonjour" >&6; }
5330
5331
5332
5333 #
5334 # OpenSSL
5335 #
5336 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5337 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5338
5339
5340
5341 # Check whether --with-openssl was given.
5342 if test "${with_openssl+set}" = set; then
5343   withval=$with_openssl;
5344   case $withval in
5345     yes)
5346
5347 cat >>confdefs.h <<\_ACEOF
5348 #define USE_SSL 1
5349 _ACEOF
5350
5351       ;;
5352     no)
5353       :
5354       ;;
5355     *)
5356       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5357 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5358    { (exit 1); exit 1; }; }
5359       ;;
5360   esac
5361
5362 else
5363   with_openssl=no
5364
5365 fi
5366
5367
5368 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5369 $as_echo "$with_openssl" >&6; }
5370
5371
5372
5373 #
5374 # Readline
5375 #
5376
5377
5378
5379 # Check whether --with-readline was given.
5380 if test "${with_readline+set}" = set; then
5381   withval=$with_readline;
5382   case $withval in
5383     yes)
5384       :
5385       ;;
5386     no)
5387       :
5388       ;;
5389     *)
5390       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5391 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5392    { (exit 1); exit 1; }; }
5393       ;;
5394   esac
5395
5396 else
5397   with_readline=yes
5398
5399 fi
5400
5401
5402 # readline on MinGW has problems with backslashes in psql and other bugs.
5403 # This is particularly a problem with non-US code pages.
5404 # Therefore disable its use until we understand the cause. 2004-07-20
5405 if test "$PORTNAME" = "win32"; then
5406   if test "$with_readline" = yes; then
5407     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5408 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5409     with_readline=no
5410   fi
5411 fi
5412
5413
5414 #
5415 # Prefer libedit
5416 #
5417
5418
5419
5420 # Check whether --with-libedit-preferred was given.
5421 if test "${with_libedit_preferred+set}" = set; then
5422   withval=$with_libedit_preferred;
5423   case $withval in
5424     yes)
5425       :
5426       ;;
5427     no)
5428       :
5429       ;;
5430     *)
5431       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5432 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5433    { (exit 1); exit 1; }; }
5434       ;;
5435   esac
5436
5437 else
5438   with_libedit_preferred=no
5439
5440 fi
5441
5442
5443
5444
5445 #
5446 # OSSP UUID library
5447 #
5448
5449
5450
5451 # Check whether --with-ossp-uuid was given.
5452 if test "${with_ossp_uuid+set}" = set; then
5453   withval=$with_ossp_uuid;
5454   case $withval in
5455     yes)
5456       :
5457       ;;
5458     no)
5459       :
5460       ;;
5461     *)
5462       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5463 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5464    { (exit 1); exit 1; }; }
5465       ;;
5466   esac
5467
5468 else
5469   with_ossp_uuid=no
5470
5471 fi
5472
5473
5474
5475
5476
5477 #
5478 # XML
5479 #
5480
5481
5482
5483 # Check whether --with-libxml was given.
5484 if test "${with_libxml+set}" = set; then
5485   withval=$with_libxml;
5486   case $withval in
5487     yes)
5488
5489 cat >>confdefs.h <<\_ACEOF
5490 #define USE_LIBXML 1
5491 _ACEOF
5492
5493       ;;
5494     no)
5495       :
5496       ;;
5497     *)
5498       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5499 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5500    { (exit 1); exit 1; }; }
5501       ;;
5502   esac
5503
5504 else
5505   with_libxml=no
5506
5507 fi
5508
5509
5510
5511 if test "$with_libxml" = yes ; then
5512   for ac_prog in xml2-config
5513 do
5514   # Extract the first word of "$ac_prog", so it can be a program name with args.
5515 set dummy $ac_prog; ac_word=$2
5516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5519   $as_echo_n "(cached) " >&6
5520 else
5521   if test -n "$XML2_CONFIG"; then
5522   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527   IFS=$as_save_IFS
5528   test -z "$as_dir" && as_dir=.
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531     ac_cv_prog_XML2_CONFIG="$ac_prog"
5532     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533     break 2
5534   fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 fi
5540 fi
5541 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5542 if test -n "$XML2_CONFIG"; then
5543   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5544 $as_echo "$XML2_CONFIG" >&6; }
5545 else
5546   { $as_echo "$as_me:$LINENO: result: no" >&5
5547 $as_echo "no" >&6; }
5548 fi
5549
5550
5551   test -n "$XML2_CONFIG" && break
5552 done
5553
5554   if test -n "$XML2_CONFIG"; then
5555     for pgac_option in `$XML2_CONFIG --cflags`; do
5556       case $pgac_option in
5557         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5558       esac
5559     done
5560     for pgac_option in `$XML2_CONFIG --libs`; do
5561       case $pgac_option in
5562         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5563       esac
5564     done
5565   fi
5566 fi
5567
5568
5569
5570 #
5571 # XSLT
5572 #
5573
5574
5575
5576 # Check whether --with-libxslt was given.
5577 if test "${with_libxslt+set}" = set; then
5578   withval=$with_libxslt;
5579   case $withval in
5580     yes)
5581
5582 cat >>confdefs.h <<\_ACEOF
5583 #define USE_LIBXSLT 1
5584 _ACEOF
5585
5586       ;;
5587     no)
5588       :
5589       ;;
5590     *)
5591       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5592 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5593    { (exit 1); exit 1; }; }
5594       ;;
5595   esac
5596
5597 else
5598   with_libxslt=no
5599
5600 fi
5601
5602
5603
5604
5605
5606
5607 #
5608 # tzdata
5609 #
5610
5611
5612
5613 # Check whether --with-system-tzdata was given.
5614 if test "${with_system_tzdata+set}" = set; then
5615   withval=$with_system_tzdata;
5616   case $withval in
5617     yes)
5618       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5619 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5620    { (exit 1); exit 1; }; }
5621       ;;
5622     no)
5623       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5624 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5625    { (exit 1); exit 1; }; }
5626       ;;
5627     *)
5628
5629       ;;
5630   esac
5631
5632 fi
5633
5634
5635
5636
5637 #
5638 # Zlib
5639 #
5640
5641
5642
5643 # Check whether --with-zlib was given.
5644 if test "${with_zlib+set}" = set; then
5645   withval=$with_zlib;
5646   case $withval in
5647     yes)
5648       :
5649       ;;
5650     no)
5651       :
5652       ;;
5653     *)
5654       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5655 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5656    { (exit 1); exit 1; }; }
5657       ;;
5658   esac
5659
5660 else
5661   with_zlib=yes
5662
5663 fi
5664
5665
5666
5667
5668 #
5669 # Elf
5670 #
5671
5672 # Assume system is ELF if it predefines __ELF__ as 1,
5673 # otherwise believe host_os based default.
5674 case $host_os in
5675     freebsd1*|freebsd2*) elf=no;;
5676     freebsd3*|freebsd4*) elf=yes;;
5677 esac
5678
5679
5680 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5681 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5682 if test "${ac_cv_path_GREP+set}" = set; then
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -z "$GREP"; then
5686   ac_path_GREP_found=false
5687   # Loop through the user's path and test for each of PROGNAME-LIST
5688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693   for ac_prog in grep ggrep; do
5694     for ac_exec_ext in '' $ac_executable_extensions; do
5695       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5696       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5697 # Check for GNU ac_path_GREP and select it if it is found.
5698   # Check for GNU $ac_path_GREP
5699 case `"$ac_path_GREP" --version 2>&1` in
5700 *GNU*)
5701   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5702 *)
5703   ac_count=0
5704   $as_echo_n 0123456789 >"conftest.in"
5705   while :
5706   do
5707     cat "conftest.in" "conftest.in" >"conftest.tmp"
5708     mv "conftest.tmp" "conftest.in"
5709     cp "conftest.in" "conftest.nl"
5710     $as_echo 'GREP' >> "conftest.nl"
5711     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5712     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5713     ac_count=`expr $ac_count + 1`
5714     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5715       # Best one so far, save it but keep looking for a better one
5716       ac_cv_path_GREP="$ac_path_GREP"
5717       ac_path_GREP_max=$ac_count
5718     fi
5719     # 10*(2^10) chars as input seems more than enough
5720     test $ac_count -gt 10 && break
5721   done
5722   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5723 esac
5724
5725       $ac_path_GREP_found && break 3
5726     done
5727   done
5728 done
5729 IFS=$as_save_IFS
5730   if test -z "$ac_cv_path_GREP"; then
5731     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5732 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5733    { (exit 1); exit 1; }; }
5734   fi
5735 else
5736   ac_cv_path_GREP=$GREP
5737 fi
5738
5739 fi
5740 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5741 $as_echo "$ac_cv_path_GREP" >&6; }
5742  GREP="$ac_cv_path_GREP"
5743
5744
5745 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5746 $as_echo_n "checking for egrep... " >&6; }
5747 if test "${ac_cv_path_EGREP+set}" = set; then
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5751    then ac_cv_path_EGREP="$GREP -E"
5752    else
5753      if test -z "$EGREP"; then
5754   ac_path_EGREP_found=false
5755   # Loop through the user's path and test for each of PROGNAME-LIST
5756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761   for ac_prog in egrep; do
5762     for ac_exec_ext in '' $ac_executable_extensions; do
5763       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5764       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5765 # Check for GNU ac_path_EGREP and select it if it is found.
5766   # Check for GNU $ac_path_EGREP
5767 case `"$ac_path_EGREP" --version 2>&1` in
5768 *GNU*)
5769   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5770 *)
5771   ac_count=0
5772   $as_echo_n 0123456789 >"conftest.in"
5773   while :
5774   do
5775     cat "conftest.in" "conftest.in" >"conftest.tmp"
5776     mv "conftest.tmp" "conftest.in"
5777     cp "conftest.in" "conftest.nl"
5778     $as_echo 'EGREP' >> "conftest.nl"
5779     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781     ac_count=`expr $ac_count + 1`
5782     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5783       # Best one so far, save it but keep looking for a better one
5784       ac_cv_path_EGREP="$ac_path_EGREP"
5785       ac_path_EGREP_max=$ac_count
5786     fi
5787     # 10*(2^10) chars as input seems more than enough
5788     test $ac_count -gt 10 && break
5789   done
5790   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 esac
5792
5793       $ac_path_EGREP_found && break 3
5794     done
5795   done
5796 done
5797 IFS=$as_save_IFS
5798   if test -z "$ac_cv_path_EGREP"; then
5799     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5800 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5801    { (exit 1); exit 1; }; }
5802   fi
5803 else
5804   ac_cv_path_EGREP=$EGREP
5805 fi
5806
5807    fi
5808 fi
5809 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5810 $as_echo "$ac_cv_path_EGREP" >&6; }
5811  EGREP="$ac_cv_path_EGREP"
5812
5813
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820 #if __ELF__
5821   yes
5822 #endif
5823
5824 _ACEOF
5825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826   $EGREP "yes" >/dev/null 2>&1; then
5827   ELF_SYS=true
5828 else
5829   if test "X$elf" = "Xyes" ; then
5830   ELF_SYS=true
5831 else
5832   ELF_SYS=
5833 fi
5834 fi
5835 rm -f conftest*
5836
5837
5838
5839 #
5840 # Assignments
5841 #
5842
5843 CPPFLAGS="$CPPFLAGS $INCLUDES"
5844 LDFLAGS="$LDFLAGS $LIBDIRS"
5845
5846
5847
5848
5849 # Check whether --with-gnu-ld was given.
5850 if test "${with_gnu_ld+set}" = set; then
5851   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5852 else
5853   with_gnu_ld=no
5854 fi
5855
5856 ac_prog=ld
5857 if test "$GCC" = yes; then
5858   # Check if gcc -print-prog-name=ld gives a path.
5859   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5860 $as_echo_n "checking for ld used by GCC... " >&6; }
5861   case $host in
5862   *-*-mingw*)
5863     # gcc leaves a trailing carriage return which upsets mingw
5864     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5865   *)
5866     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5867   esac
5868   case "$ac_prog" in
5869     # Accept absolute paths.
5870     [\\/]* | [A-Za-z]:[\\/]*)
5871       re_direlt='/[^/][^/]*/\.\./'
5872       # Canonicalize the path of ld
5873       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5874       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5875         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5876       done
5877       test -z "$LD" && LD="$ac_prog"
5878       ;;
5879   "")
5880     # If it fails, then pretend we aren't using GCC.
5881     ac_prog=ld
5882     ;;
5883   *)
5884     # If it is relative, then search for the first ld in PATH.
5885     with_gnu_ld=unknown
5886     ;;
5887   esac
5888 elif test "$with_gnu_ld" = yes; then
5889   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5890 $as_echo_n "checking for GNU ld... " >&6; }
5891 else
5892   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5893 $as_echo_n "checking for non-GNU ld... " >&6; }
5894 fi
5895 if test "${ac_cv_path_LD+set}" = set; then
5896   $as_echo_n "(cached) " >&6
5897 else
5898   if test -z "$LD"; then
5899   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5900   for ac_dir in $PATH; do
5901     test -z "$ac_dir" && ac_dir=.
5902     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5903       ac_cv_path_LD="$ac_dir/$ac_prog"
5904       # Check to see if the program is GNU ld.  I'd rather use --version,
5905       # but apparently some GNU ld's only accept -v.
5906       # Break only if it was the GNU/non-GNU ld that we prefer.
5907       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5908         test "$with_gnu_ld" != no && break
5909       else
5910         test "$with_gnu_ld" != yes && break
5911       fi
5912     fi
5913   done
5914   IFS="$ac_save_ifs"
5915 else
5916   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5917 fi
5918 fi
5919
5920 LD="$ac_cv_path_LD"
5921 if test -n "$LD"; then
5922   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5923 $as_echo "$LD" >&6; }
5924 else
5925   { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5929 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5930    { (exit 1); exit 1; }; }
5931 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5932 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5933 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5934   $as_echo_n "(cached) " >&6
5935 else
5936   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5937 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5938   ac_cv_prog_gnu_ld=yes
5939 else
5940   ac_cv_prog_gnu_ld=no
5941 fi
5942 fi
5943 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5944 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5945 with_gnu_ld=$ac_cv_prog_gnu_ld
5946
5947
5948
5949
5950 case $host_os in sysv5*)
5951   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5952 $as_echo_n "checking whether ld -R works... " >&6; }
5953 if test "${pgac_cv_prog_ld_R+set}" = set; then
5954   $as_echo_n "(cached) " >&6
5955 else
5956
5957     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5958     cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964
5965 int
5966 main ()
5967 {
5968
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981   (eval "$ac_link") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } && {
5988          test -z "$ac_c_werror_flag" ||
5989          test ! -s conftest.err
5990        } && test -s conftest$ac_exeext && {
5991          test "$cross_compiling" = yes ||
5992          $as_test_x conftest$ac_exeext
5993        }; then
5994   pgac_cv_prog_ld_R=yes
5995 else
5996   $as_echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999         pgac_cv_prog_ld_R=no
6000 fi
6001
6002 rm -rf conftest.dSYM
6003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6004       conftest$ac_exeext conftest.$ac_ext
6005     LDFLAGS=$pgac_save_LDFLAGS
6006
6007 fi
6008 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6009 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6010   ld_R_works=$pgac_cv_prog_ld_R
6011
6012 esac
6013 if test -n "$ac_tool_prefix"; then
6014   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_RANLIB+set}" = set; then
6019   $as_echo_n "(cached) " >&6
6020 else
6021   if test -n "$RANLIB"; then
6022   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029   for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6032     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 RANLIB=$ac_cv_prog_RANLIB
6042 if test -n "$RANLIB"; then
6043   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6044 $as_echo "$RANLIB" >&6; }
6045 else
6046   { $as_echo "$as_me:$LINENO: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_RANLIB"; then
6053   ac_ct_RANLIB=$RANLIB
6054   # Extract the first word of "ranlib", so it can be a program name with args.
6055 set dummy ranlib; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$ac_ct_RANLIB"; then
6062   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_ac_ct_RANLIB="ranlib"
6072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6082 if test -n "$ac_ct_RANLIB"; then
6083   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6084 $as_echo "$ac_ct_RANLIB" >&6; }
6085 else
6086   { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090   if test "x$ac_ct_RANLIB" = x; then
6091     RANLIB=":"
6092   else
6093     case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099     RANLIB=$ac_ct_RANLIB
6100   fi
6101 else
6102   RANLIB="$ac_cv_prog_RANLIB"
6103 fi
6104
6105
6106   if test -n "$ac_tool_prefix"; then
6107   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}strip; ac_word=$2
6109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if test "${ac_cv_prog_STRIP+set}" = set; then
6112   $as_echo_n "(cached) " >&6
6113 else
6114   if test -n "$STRIP"; then
6115   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6125     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 STRIP=$ac_cv_prog_STRIP
6135 if test -n "$STRIP"; then
6136   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6137 $as_echo "$STRIP" >&6; }
6138 else
6139   { $as_echo "$as_me:$LINENO: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 fi
6145 if test -z "$ac_cv_prog_STRIP"; then
6146   ac_ct_STRIP=$STRIP
6147   # Extract the first word of "strip", so it can be a program name with args.
6148 set dummy strip; ac_word=$2
6149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$ac_ct_STRIP"; then
6155   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_ac_ct_STRIP="strip"
6165     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6175 if test -n "$ac_ct_STRIP"; then
6176   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6177 $as_echo "$ac_ct_STRIP" >&6; }
6178 else
6179   { $as_echo "$as_me:$LINENO: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183   if test "x$ac_ct_STRIP" = x; then
6184     STRIP=":"
6185   else
6186     case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     STRIP=$ac_ct_STRIP
6193   fi
6194 else
6195   STRIP="$ac_cv_prog_STRIP"
6196 fi
6197
6198
6199   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6200 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6201   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6202     STRIP_STATIC_LIB="$STRIP -x"
6203     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6204     { $as_echo "$as_me:$LINENO: result: yes" >&5
6205 $as_echo "yes" >&6; }
6206   else
6207     STRIP_STATIC_LIB=:
6208     STRIP_SHARED_LIB=:
6209     { $as_echo "$as_me:$LINENO: result: no" >&5
6210 $as_echo "no" >&6; }
6211   fi
6212
6213
6214
6215 if test -n "$ac_tool_prefix"; then
6216   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ar; ac_word=$2
6218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_AR+set}" = set; then
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if test -n "$AR"; then
6224   ac_cv_prog_AR="$AR" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233     ac_cv_prog_AR="${ac_tool_prefix}ar"
6234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 AR=$ac_cv_prog_AR
6244 if test -n "$AR"; then
6245   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6247 else
6248   { $as_echo "$as_me:$LINENO: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253 fi
6254 if test -z "$ac_cv_prog_AR"; then
6255   ac_ct_AR=$AR
6256   # Extract the first word of "ar", so it can be a program name with args.
6257 set dummy ar; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -n "$ac_ct_AR"; then
6264   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_ac_ct_AR="ar"
6274     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6284 if test -n "$ac_ct_AR"; then
6285   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6286 $as_echo "$ac_ct_AR" >&6; }
6287 else
6288   { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292   if test "x$ac_ct_AR" = x; then
6293     AR="ar"
6294   else
6295     case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301     AR=$ac_ct_AR
6302   fi
6303 else
6304   AR="$ac_cv_prog_AR"
6305 fi
6306
6307 if test "$PORTNAME" = "win32"; then
6308   if test -n "$ac_tool_prefix"; then
6309   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6314   $as_echo_n "(cached) " >&6
6315 else
6316   if test -n "$DLLTOOL"; then
6317   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6327     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 DLLTOOL=$ac_cv_prog_DLLTOOL
6337 if test -n "$DLLTOOL"; then
6338   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6339 $as_echo "$DLLTOOL" >&6; }
6340 else
6341   { $as_echo "$as_me:$LINENO: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344
6345
6346 fi
6347 if test -z "$ac_cv_prog_DLLTOOL"; then
6348   ac_ct_DLLTOOL=$DLLTOOL
6349   # Extract the first word of "dlltool", so it can be a program name with args.
6350 set dummy dlltool; ac_word=$2
6351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -n "$ac_ct_DLLTOOL"; then
6357   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6367     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6377 if test -n "$ac_ct_DLLTOOL"; then
6378   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6379 $as_echo "$ac_ct_DLLTOOL" >&6; }
6380 else
6381   { $as_echo "$as_me:$LINENO: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385   if test "x$ac_ct_DLLTOOL" = x; then
6386     DLLTOOL="dlltool"
6387   else
6388     case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394     DLLTOOL=$ac_ct_DLLTOOL
6395   fi
6396 else
6397   DLLTOOL="$ac_cv_prog_DLLTOOL"
6398 fi
6399
6400   if test -n "$ac_tool_prefix"; then
6401   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6406   $as_echo_n "(cached) " >&6
6407 else
6408   if test -n "$DLLWRAP"; then
6409   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416   for ac_exec_ext in '' $ac_executable_extensions; do
6417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 DLLWRAP=$ac_cv_prog_DLLWRAP
6429 if test -n "$DLLWRAP"; then
6430   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6431 $as_echo "$DLLWRAP" >&6; }
6432 else
6433   { $as_echo "$as_me:$LINENO: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437
6438 fi
6439 if test -z "$ac_cv_prog_DLLWRAP"; then
6440   ac_ct_DLLWRAP=$DLLWRAP
6441   # Extract the first word of "dllwrap", so it can be a program name with args.
6442 set dummy dllwrap; ac_word=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6446   $as_echo_n "(cached) " >&6
6447 else
6448   if test -n "$ac_ct_DLLWRAP"; then
6449   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456   for ac_exec_ext in '' $ac_executable_extensions; do
6457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6459     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460     break 2
6461   fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6469 if test -n "$ac_ct_DLLWRAP"; then
6470   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6471 $as_echo "$ac_ct_DLLWRAP" >&6; }
6472 else
6473   { $as_echo "$as_me:$LINENO: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477   if test "x$ac_ct_DLLWRAP" = x; then
6478     DLLWRAP="dllwrap"
6479   else
6480     case $cross_compiling:$ac_tool_warned in
6481 yes:)
6482 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486     DLLWRAP=$ac_ct_DLLWRAP
6487   fi
6488 else
6489   DLLWRAP="$ac_cv_prog_DLLWRAP"
6490 fi
6491
6492   if test -n "$ac_tool_prefix"; then
6493   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6494 set dummy ${ac_tool_prefix}windres; ac_word=$2
6495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if test "${ac_cv_prog_WINDRES+set}" = set; then
6498   $as_echo_n "(cached) " >&6
6499 else
6500   if test -n "$WINDRES"; then
6501   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508   for ac_exec_ext in '' $ac_executable_extensions; do
6509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6511     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515 done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 WINDRES=$ac_cv_prog_WINDRES
6521 if test -n "$WINDRES"; then
6522   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6523 $as_echo "$WINDRES" >&6; }
6524 else
6525   { $as_echo "$as_me:$LINENO: result: no" >&5
6526 $as_echo "no" >&6; }
6527 fi
6528
6529
6530 fi
6531 if test -z "$ac_cv_prog_WINDRES"; then
6532   ac_ct_WINDRES=$WINDRES
6533   # Extract the first word of "windres", so it can be a program name with args.
6534 set dummy windres; ac_word=$2
6535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6538   $as_echo_n "(cached) " >&6
6539 else
6540   if test -n "$ac_ct_WINDRES"; then
6541   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548   for ac_exec_ext in '' $ac_executable_extensions; do
6549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550     ac_cv_prog_ac_ct_WINDRES="windres"
6551     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6561 if test -n "$ac_ct_WINDRES"; then
6562   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6563 $as_echo "$ac_ct_WINDRES" >&6; }
6564 else
6565   { $as_echo "$as_me:$LINENO: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568
6569   if test "x$ac_ct_WINDRES" = x; then
6570     WINDRES="windres"
6571   else
6572     case $cross_compiling:$ac_tool_warned in
6573 yes:)
6574 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576 ac_tool_warned=yes ;;
6577 esac
6578     WINDRES=$ac_ct_WINDRES
6579   fi
6580 else
6581   WINDRES="$ac_cv_prog_WINDRES"
6582 fi
6583
6584 fi
6585
6586 # Extract the first word of "tar", so it can be a program name with args.
6587 set dummy tar; ac_word=$2
6588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_path_TAR+set}" = set; then
6591   $as_echo_n "(cached) " >&6
6592 else
6593   case $TAR in
6594   [\\/]* | ?:[\\/]*)
6595   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6596   ;;
6597   *)
6598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603   for ac_exec_ext in '' $ac_executable_extensions; do
6604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6606     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613   ;;
6614 esac
6615 fi
6616 TAR=$ac_cv_path_TAR
6617 if test -n "$TAR"; then
6618   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6619 $as_echo "$TAR" >&6; }
6620 else
6621   { $as_echo "$as_me:$LINENO: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625
6626 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6627 $as_echo_n "checking whether ln -s works... " >&6; }
6628 LN_S=$as_ln_s
6629 if test "$LN_S" = "ln -s"; then
6630   { $as_echo "$as_me:$LINENO: result: yes" >&5
6631 $as_echo "yes" >&6; }
6632 else
6633   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6634 $as_echo "no, using $LN_S" >&6; }
6635 fi
6636
6637 for ac_prog in gawk mawk nawk awk
6638 do
6639   # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_AWK+set}" = set; then
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$AWK"; then
6647   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_AWK="$ac_prog"
6657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 AWK=$ac_cv_prog_AWK
6667 if test -n "$AWK"; then
6668   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6669 $as_echo "$AWK" >&6; }
6670 else
6671   { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676   test -n "$AWK" && break
6677 done
6678
6679
6680 # Let the user override the search
6681 if test -z "$BISON"; then
6682   for ac_prog in bison
6683 do
6684   # Extract the first word of "$ac_prog", so it can be a program name with args.
6685 set dummy $ac_prog; ac_word=$2
6686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_path_BISON+set}" = set; then
6689   $as_echo_n "(cached) " >&6
6690 else
6691   case $BISON in
6692   [\\/]* | ?:[\\/]*)
6693   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6694   ;;
6695   *)
6696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701   for ac_exec_ext in '' $ac_executable_extensions; do
6702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6704     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711   ;;
6712 esac
6713 fi
6714 BISON=$ac_cv_path_BISON
6715 if test -n "$BISON"; then
6716   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6717 $as_echo "$BISON" >&6; }
6718 else
6719   { $as_echo "$as_me:$LINENO: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724   test -n "$BISON" && break
6725 done
6726
6727 fi
6728
6729 if test "$BISON"; then
6730   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6731   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6732 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6733   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6734   then
6735     { $as_echo "$as_me:$LINENO: WARNING:
6736 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6737 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6738 $as_echo "$as_me: WARNING:
6739 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6740 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6741     BISON=""
6742   fi
6743 fi
6744
6745 if test -z "$BISON"; then
6746   { $as_echo "$as_me:$LINENO: WARNING:
6747 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6748 *** change any of the parser definition files.  You can obtain Bison from
6749 *** a GNU mirror site.  (If you are using the official distribution of
6750 *** PostgreSQL then you do not need to worry about this, because the Bison
6751 *** output is pre-generated.)" >&5
6752 $as_echo "$as_me: WARNING:
6753 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6754 *** change any of the parser definition files.  You can obtain Bison from
6755 *** a GNU mirror site.  (If you are using the official distribution of
6756 *** PostgreSQL then you do not need to worry about this, because the Bison
6757 *** output is pre-generated.)" >&2;}
6758 fi
6759 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6760
6761
6762 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6763 $as_echo_n "checking for flex... " >&6; }
6764 if test "${pgac_cv_path_flex+set}" = set; then
6765   $as_echo_n "(cached) " >&6
6766 else
6767   # Let the user override the test
6768 if test -n "$FLEX"; then
6769   pgac_cv_path_flex=$FLEX
6770 else
6771   pgac_save_IFS=$IFS
6772   IFS=$PATH_SEPARATOR
6773   for pgac_dir in $PATH; do
6774     IFS=$pgac_save_IFS
6775     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6776       pgac_dir=`pwd`
6777     fi
6778     for pgac_prog in flex lex; do
6779       pgac_candidate="$pgac_dir/$pgac_prog"
6780       if test -f "$pgac_candidate" \
6781         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6782       then
6783         echo '%%'  > conftest.l
6784         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6785           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6786           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6787           then
6788             pgac_cv_path_flex=$pgac_candidate
6789             break 2
6790           else
6791             { $as_echo "$as_me:$LINENO: WARNING:
6792 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6793 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6794 $as_echo "$as_me: WARNING:
6795 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6796 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6797           fi
6798         fi
6799       fi
6800     done
6801   done
6802   rm -f conftest.l lex.yy.c
6803   : ${pgac_cv_path_flex=no}
6804 fi
6805
6806 fi
6807 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6808 $as_echo "$pgac_cv_path_flex" >&6; }
6809 if test x"$pgac_cv_path_flex" = x"no"; then
6810   { $as_echo "$as_me:$LINENO: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6812 *** change any of the scanner definition files.  You can obtain Flex from
6813 *** a GNU mirror site.  (If you are using the official distribution of
6814 *** PostgreSQL then you do not need to worry about this because the Flex
6815 *** output is pre-generated.)" >&5
6816 $as_echo "$as_me: WARNING:
6817 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6818 *** change any of the scanner definition files.  You can obtain Flex from
6819 *** a GNU mirror site.  (If you are using the official distribution of
6820 *** PostgreSQL then you do not need to worry about this because the Flex
6821 *** output is pre-generated.)" >&2;}
6822
6823   FLEX=
6824 else
6825   FLEX=$pgac_cv_path_flex
6826   pgac_flex_version=`$FLEX --version 2>/dev/null`
6827   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6828 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6829 fi
6830
6831
6832
6833
6834
6835 # Extract the first word of "perl", so it can be a program name with args.
6836 set dummy perl; ac_word=$2
6837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_path_PERL+set}" = set; then
6840   $as_echo_n "(cached) " >&6
6841 else
6842   case $PERL in
6843   [\\/]* | ?:[\\/]*)
6844   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6845   ;;
6846   *)
6847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852   for ac_exec_ext in '' $ac_executable_extensions; do
6853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6855     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862   ;;
6863 esac
6864 fi
6865 PERL=$ac_cv_path_PERL
6866 if test -n "$PERL"; then
6867   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6868 $as_echo "$PERL" >&6; }
6869 else
6870   { $as_echo "$as_me:$LINENO: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875 if test "$with_perl" = yes; then
6876
6877 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6878 $as_echo_n "checking for Perl archlibexp... " >&6; }
6879 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6880 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6881 $as_echo "$perl_archlibexp" >&6; }
6882 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6883 $as_echo_n "checking for Perl privlibexp... " >&6; }
6884 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6885 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6886 $as_echo "$perl_privlibexp" >&6; }
6887 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6888 $as_echo_n "checking for Perl useshrplib... " >&6; }
6889 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6890 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6891 $as_echo "$perl_useshrplib" >&6; }
6892
6893 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6894 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6895 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6896 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6897 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6898 if test -z "$perl_embed_ldflags" ; then
6899         { $as_echo "$as_me:$LINENO: result: no" >&5
6900 $as_echo "no" >&6; }
6901         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6902 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6903 installed." >&5
6904 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6905 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6906 installed." >&2;}
6907    { (exit 1); exit 1; }; }
6908 else
6909         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6910 $as_echo "$perl_embed_ldflags" >&6; }
6911 fi
6912
6913 fi
6914
6915 if test "$with_python" = yes; then
6916   # Extract the first word of "python", so it can be a program name with args.
6917 set dummy python; ac_word=$2
6918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_path_PYTHON+set}" = set; then
6921   $as_echo_n "(cached) " >&6
6922 else
6923   case $PYTHON in
6924   [\\/]* | ?:[\\/]*)
6925   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6926   ;;
6927   *)
6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933   for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6936     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943   ;;
6944 esac
6945 fi
6946 PYTHON=$ac_cv_path_PYTHON
6947 if test -n "$PYTHON"; then
6948   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6949 $as_echo "$PYTHON" >&6; }
6950 else
6951   { $as_echo "$as_me:$LINENO: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955
6956 if test x"$PYTHON" = x""; then
6957   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6958 $as_echo "$as_me: error: Python not found" >&2;}
6959    { (exit 1); exit 1; }; }
6960 fi
6961
6962
6963 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6964 $as_echo_n "checking for Python distutils module... " >&6; }
6965 if "${PYTHON}" 2>&- -c 'import distutils'
6966 then
6967     { $as_echo "$as_me:$LINENO: result: yes" >&5
6968 $as_echo "yes" >&6; }
6969 else
6970     { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6972     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
6973 $as_echo "$as_me: error: distutils module not found" >&2;}
6974    { (exit 1); exit 1; }; }
6975 fi
6976 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
6977 $as_echo_n "checking Python configuration directory... " >&6; }
6978 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6979 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'))"`
6980 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6981
6982 # This should be enough of a message.
6983 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
6984 $as_echo "$python_configdir" >&6; }
6985
6986
6987 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6988 $as_echo_n "checking how to link an embedded Python application... " >&6; }
6989
6990 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6991 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6992 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6993 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6994
6995 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6996 then
6997         # New way: use the official shared library
6998         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6999         python_libspec="-L${python_libdir} -l${ldlibrary}"
7000 else
7001         # Old way: use libpython from python_configdir
7002         python_libdir="${python_configdir}"
7003         python_libspec="-L${python_libdir} -lpython${python_version}"
7004 fi
7005
7006 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7007
7008 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7009 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7010
7011
7012 # threaded python is not supported on bsd's
7013 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7014 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7015 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7016 if test "$pythreads" = "1"; then
7017   { $as_echo "$as_me:$LINENO: result: yes" >&5
7018 $as_echo "yes" >&6; }
7019   case $host_os in
7020   openbsd*|freebsd*)
7021     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7022 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7023    { (exit 1); exit 1; }; }
7024     ;;
7025   esac
7026 else
7027   { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 fi
7033
7034 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7035   # Extract the first word of "zic", so it can be a program name with args.
7036 set dummy zic; ac_word=$2
7037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_path_ZIC+set}" = set; then
7040   $as_echo_n "(cached) " >&6
7041 else
7042   case $ZIC in
7043   [\\/]* | ?:[\\/]*)
7044   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7045   ;;
7046   *)
7047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052   for ac_exec_ext in '' $ac_executable_extensions; do
7053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7055     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062   ;;
7063 esac
7064 fi
7065 ZIC=$ac_cv_path_ZIC
7066 if test -n "$ZIC"; then
7067   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7068 $as_echo "$ZIC" >&6; }
7069 else
7070   { $as_echo "$as_me:$LINENO: result: no" >&5
7071 $as_echo "no" >&6; }
7072 fi
7073
7074
7075   if test -z "$ZIC"; then
7076     { { $as_echo "$as_me:$LINENO: error:
7077 When cross-compiling, either use the option --with-system-tzdata to use
7078 existing time-zone data, or set the environment variable ZIC to a zic
7079 program to use during the build." >&5
7080 $as_echo "$as_me: error:
7081 When cross-compiling, either use the option --with-system-tzdata to use
7082 existing time-zone data, or set the environment variable ZIC to a zic
7083 program to use during the build." >&2;}
7084    { (exit 1); exit 1; }; }
7085   fi
7086 fi
7087
7088
7089 ##
7090 ## Libraries
7091 ##
7092 ## Most libraries are included only if they demonstrably provide a function
7093 ## we need, but libm is an exception: always include it, because there are
7094 ## too many compilers that play cute optimization games that will break
7095 ## probes for standard functions such as pow().
7096 ##
7097
7098
7099 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7100 $as_echo_n "checking for main in -lm... " >&6; }
7101 if test "${ac_cv_lib_m_main+set}" = set; then
7102   $as_echo_n "(cached) " >&6
7103 else
7104   ac_check_lib_save_LIBS=$LIBS
7105 LIBS="-lm  $LIBS"
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112
7113
7114 int
7115 main ()
7116 {
7117 return main ();
7118   ;
7119   return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (ac_try="$ac_link"
7124 case "(($ac_try" in
7125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126   *) ac_try_echo=$ac_try;;
7127 esac
7128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129 $as_echo "$ac_try_echo") >&5
7130   (eval "$ac_link") 2>conftest.er1
7131   ac_status=$?
7132   grep -v '^ *+' conftest.er1 >conftest.err
7133   rm -f conftest.er1
7134   cat conftest.err >&5
7135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } && {
7137          test -z "$ac_c_werror_flag" ||
7138          test ! -s conftest.err
7139        } && test -s conftest$ac_exeext && {
7140          test "$cross_compiling" = yes ||
7141          $as_test_x conftest$ac_exeext
7142        }; then
7143   ac_cv_lib_m_main=yes
7144 else
7145   $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148         ac_cv_lib_m_main=no
7149 fi
7150
7151 rm -rf conftest.dSYM
7152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7153       conftest$ac_exeext conftest.$ac_ext
7154 LIBS=$ac_check_lib_save_LIBS
7155 fi
7156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7157 $as_echo "$ac_cv_lib_m_main" >&6; }
7158 if test "x$ac_cv_lib_m_main" = x""yes; then
7159   cat >>confdefs.h <<_ACEOF
7160 #define HAVE_LIBM 1
7161 _ACEOF
7162
7163   LIBS="-lm $LIBS"
7164
7165 fi
7166
7167 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7168 $as_echo_n "checking for library containing setproctitle... " >&6; }
7169 if test "${ac_cv_search_setproctitle+set}" = set; then
7170   $as_echo_n "(cached) " >&6
7171 else
7172   ac_func_search_save_LIBS=$LIBS
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179
7180 /* Override any GCC internal prototype to avoid an error.
7181    Use char because int might match the return type of a GCC
7182    builtin and then its argument prototype would still apply.  */
7183 #ifdef __cplusplus
7184 extern "C"
7185 #endif
7186 char setproctitle ();
7187 int
7188 main ()
7189 {
7190 return setproctitle ();
7191   ;
7192   return 0;
7193 }
7194 _ACEOF
7195 for ac_lib in '' util; do
7196   if test -z "$ac_lib"; then
7197     ac_res="none required"
7198   else
7199     ac_res=-l$ac_lib
7200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7201   fi
7202   rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (ac_try="$ac_link"
7204 case "(($ac_try" in
7205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206   *) ac_try_echo=$ac_try;;
7207 esac
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210   (eval "$ac_link") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && {
7217          test -z "$ac_c_werror_flag" ||
7218          test ! -s conftest.err
7219        } && test -s conftest$ac_exeext && {
7220          test "$cross_compiling" = yes ||
7221          $as_test_x conftest$ac_exeext
7222        }; then
7223   ac_cv_search_setproctitle=$ac_res
7224 else
7225   $as_echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228
7229 fi
7230
7231 rm -rf conftest.dSYM
7232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7233       conftest$ac_exeext
7234   if test "${ac_cv_search_setproctitle+set}" = set; then
7235   break
7236 fi
7237 done
7238 if test "${ac_cv_search_setproctitle+set}" = set; then
7239   :
7240 else
7241   ac_cv_search_setproctitle=no
7242 fi
7243 rm conftest.$ac_ext
7244 LIBS=$ac_func_search_save_LIBS
7245 fi
7246 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7247 $as_echo "$ac_cv_search_setproctitle" >&6; }
7248 ac_res=$ac_cv_search_setproctitle
7249 if test "$ac_res" != no; then
7250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7251
7252 fi
7253
7254 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7255 $as_echo_n "checking for library containing dlopen... " >&6; }
7256 if test "${ac_cv_search_dlopen+set}" = set; then
7257   $as_echo_n "(cached) " >&6
7258 else
7259   ac_func_search_save_LIBS=$LIBS
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266
7267 /* Override any GCC internal prototype to avoid an error.
7268    Use char because int might match the return type of a GCC
7269    builtin and then its argument prototype would still apply.  */
7270 #ifdef __cplusplus
7271 extern "C"
7272 #endif
7273 char dlopen ();
7274 int
7275 main ()
7276 {
7277 return dlopen ();
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 for ac_lib in '' dl; do
7283   if test -z "$ac_lib"; then
7284     ac_res="none required"
7285   else
7286     ac_res=-l$ac_lib
7287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7288   fi
7289   rm -f conftest.$ac_objext conftest$ac_exeext
7290 if { (ac_try="$ac_link"
7291 case "(($ac_try" in
7292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293   *) ac_try_echo=$ac_try;;
7294 esac
7295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7296 $as_echo "$ac_try_echo") >&5
7297   (eval "$ac_link") 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } && {
7304          test -z "$ac_c_werror_flag" ||
7305          test ! -s conftest.err
7306        } && test -s conftest$ac_exeext && {
7307          test "$cross_compiling" = yes ||
7308          $as_test_x conftest$ac_exeext
7309        }; then
7310   ac_cv_search_dlopen=$ac_res
7311 else
7312   $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315
7316 fi
7317
7318 rm -rf conftest.dSYM
7319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7320       conftest$ac_exeext
7321   if test "${ac_cv_search_dlopen+set}" = set; then
7322   break
7323 fi
7324 done
7325 if test "${ac_cv_search_dlopen+set}" = set; then
7326   :
7327 else
7328   ac_cv_search_dlopen=no
7329 fi
7330 rm conftest.$ac_ext
7331 LIBS=$ac_func_search_save_LIBS
7332 fi
7333 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7334 $as_echo "$ac_cv_search_dlopen" >&6; }
7335 ac_res=$ac_cv_search_dlopen
7336 if test "$ac_res" != no; then
7337   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7338
7339 fi
7340
7341 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7342 $as_echo_n "checking for library containing socket... " >&6; }
7343 if test "${ac_cv_search_socket+set}" = set; then
7344   $as_echo_n "(cached) " >&6
7345 else
7346   ac_func_search_save_LIBS=$LIBS
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353
7354 /* Override any GCC internal prototype to avoid an error.
7355    Use char because int might match the return type of a GCC
7356    builtin and then its argument prototype would still apply.  */
7357 #ifdef __cplusplus
7358 extern "C"
7359 #endif
7360 char socket ();
7361 int
7362 main ()
7363 {
7364 return socket ();
7365   ;
7366   return 0;
7367 }
7368 _ACEOF
7369 for ac_lib in '' socket wsock32; do
7370   if test -z "$ac_lib"; then
7371     ac_res="none required"
7372   else
7373     ac_res=-l$ac_lib
7374     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7375   fi
7376   rm -f conftest.$ac_objext conftest$ac_exeext
7377 if { (ac_try="$ac_link"
7378 case "(($ac_try" in
7379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380   *) ac_try_echo=$ac_try;;
7381 esac
7382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7383 $as_echo "$ac_try_echo") >&5
7384   (eval "$ac_link") 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } && {
7391          test -z "$ac_c_werror_flag" ||
7392          test ! -s conftest.err
7393        } && test -s conftest$ac_exeext && {
7394          test "$cross_compiling" = yes ||
7395          $as_test_x conftest$ac_exeext
7396        }; then
7397   ac_cv_search_socket=$ac_res
7398 else
7399   $as_echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402
7403 fi
7404
7405 rm -rf conftest.dSYM
7406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7407       conftest$ac_exeext
7408   if test "${ac_cv_search_socket+set}" = set; then
7409   break
7410 fi
7411 done
7412 if test "${ac_cv_search_socket+set}" = set; then
7413   :
7414 else
7415   ac_cv_search_socket=no
7416 fi
7417 rm conftest.$ac_ext
7418 LIBS=$ac_func_search_save_LIBS
7419 fi
7420 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7421 $as_echo "$ac_cv_search_socket" >&6; }
7422 ac_res=$ac_cv_search_socket
7423 if test "$ac_res" != no; then
7424   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7425
7426 fi
7427
7428 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7429 $as_echo_n "checking for library containing shl_load... " >&6; }
7430 if test "${ac_cv_search_shl_load+set}" = set; then
7431   $as_echo_n "(cached) " >&6
7432 else
7433   ac_func_search_save_LIBS=$LIBS
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h.  */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h.  */
7440
7441 /* Override any GCC internal prototype to avoid an error.
7442    Use char because int might match the return type of a GCC
7443    builtin and then its argument prototype would still apply.  */
7444 #ifdef __cplusplus
7445 extern "C"
7446 #endif
7447 char shl_load ();
7448 int
7449 main ()
7450 {
7451 return shl_load ();
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 for ac_lib in '' dld; do
7457   if test -z "$ac_lib"; then
7458     ac_res="none required"
7459   else
7460     ac_res=-l$ac_lib
7461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7462   fi
7463   rm -f conftest.$ac_objext conftest$ac_exeext
7464 if { (ac_try="$ac_link"
7465 case "(($ac_try" in
7466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467   *) ac_try_echo=$ac_try;;
7468 esac
7469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7470 $as_echo "$ac_try_echo") >&5
7471   (eval "$ac_link") 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } && {
7478          test -z "$ac_c_werror_flag" ||
7479          test ! -s conftest.err
7480        } && test -s conftest$ac_exeext && {
7481          test "$cross_compiling" = yes ||
7482          $as_test_x conftest$ac_exeext
7483        }; then
7484   ac_cv_search_shl_load=$ac_res
7485 else
7486   $as_echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7488
7489
7490 fi
7491
7492 rm -rf conftest.dSYM
7493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7494       conftest$ac_exeext
7495   if test "${ac_cv_search_shl_load+set}" = set; then
7496   break
7497 fi
7498 done
7499 if test "${ac_cv_search_shl_load+set}" = set; then
7500   :
7501 else
7502   ac_cv_search_shl_load=no
7503 fi
7504 rm conftest.$ac_ext
7505 LIBS=$ac_func_search_save_LIBS
7506 fi
7507 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7508 $as_echo "$ac_cv_search_shl_load" >&6; }
7509 ac_res=$ac_cv_search_shl_load
7510 if test "$ac_res" != no; then
7511   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7512
7513 fi
7514
7515 # We only use libld in port/dynloader/aix.c
7516 case $host_os in
7517      aix*)
7518         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7519 $as_echo_n "checking for library containing ldopen... " >&6; }
7520 if test "${ac_cv_search_ldopen+set}" = set; then
7521   $as_echo_n "(cached) " >&6
7522 else
7523   ac_func_search_save_LIBS=$LIBS
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530
7531 /* Override any GCC internal prototype to avoid an error.
7532    Use char because int might match the return type of a GCC
7533    builtin and then its argument prototype would still apply.  */
7534 #ifdef __cplusplus
7535 extern "C"
7536 #endif
7537 char ldopen ();
7538 int
7539 main ()
7540 {
7541 return ldopen ();
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 for ac_lib in '' ld; do
7547   if test -z "$ac_lib"; then
7548     ac_res="none required"
7549   else
7550     ac_res=-l$ac_lib
7551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7552   fi
7553   rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (ac_try="$ac_link"
7555 case "(($ac_try" in
7556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557   *) ac_try_echo=$ac_try;;
7558 esac
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561   (eval "$ac_link") 2>conftest.er1
7562   ac_status=$?
7563   grep -v '^ *+' conftest.er1 >conftest.err
7564   rm -f conftest.er1
7565   cat conftest.err >&5
7566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); } && {
7568          test -z "$ac_c_werror_flag" ||
7569          test ! -s conftest.err
7570        } && test -s conftest$ac_exeext && {
7571          test "$cross_compiling" = yes ||
7572          $as_test_x conftest$ac_exeext
7573        }; then
7574   ac_cv_search_ldopen=$ac_res
7575 else
7576   $as_echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579
7580 fi
7581
7582 rm -rf conftest.dSYM
7583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7584       conftest$ac_exeext
7585   if test "${ac_cv_search_ldopen+set}" = set; then
7586   break
7587 fi
7588 done
7589 if test "${ac_cv_search_ldopen+set}" = set; then
7590   :
7591 else
7592   ac_cv_search_ldopen=no
7593 fi
7594 rm conftest.$ac_ext
7595 LIBS=$ac_func_search_save_LIBS
7596 fi
7597 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7598 $as_echo "$ac_cv_search_ldopen" >&6; }
7599 ac_res=$ac_cv_search_ldopen
7600 if test "$ac_res" != no; then
7601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7602
7603 fi
7604
7605         ;;
7606 esac
7607 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7608 $as_echo_n "checking for library containing getopt_long... " >&6; }
7609 if test "${ac_cv_search_getopt_long+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 getopt_long ();
7627 int
7628 main ()
7629 {
7630 return getopt_long ();
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 for ac_lib in '' getopt gnugetopt; 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_getopt_long=$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_getopt_long+set}" = set; then
7675   break
7676 fi
7677 done
7678 if test "${ac_cv_search_getopt_long+set}" = set; then
7679   :
7680 else
7681   ac_cv_search_getopt_long=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_getopt_long" >&5
7687 $as_echo "$ac_cv_search_getopt_long" >&6; }
7688 ac_res=$ac_cv_search_getopt_long
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 crypt" >&5
7695 $as_echo_n "checking for library containing crypt... " >&6; }
7696 if test "${ac_cv_search_crypt+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 crypt ();
7714 int
7715 main ()
7716 {
7717 return crypt ();
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 for ac_lib in '' crypt; 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_crypt=$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_crypt+set}" = set; then
7762   break
7763 fi
7764 done
7765 if test "${ac_cv_search_crypt+set}" = set; then
7766   :
7767 else
7768   ac_cv_search_crypt=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_crypt" >&5
7774 $as_echo "$ac_cv_search_crypt" >&6; }
7775 ac_res=$ac_cv_search_crypt
7776 if test "$ac_res" != no; then
7777   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7778
7779 fi
7780
7781 # Solaris:
7782 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7783 $as_echo_n "checking for library containing fdatasync... " >&6; }
7784 if test "${ac_cv_search_fdatasync+set}" = set; then
7785   $as_echo_n "(cached) " >&6
7786 else
7787   ac_func_search_save_LIBS=$LIBS
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794
7795 /* Override any GCC internal prototype to avoid an error.
7796    Use char because int might match the return type of a GCC
7797    builtin and then its argument prototype would still apply.  */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 char fdatasync ();
7802 int
7803 main ()
7804 {
7805 return fdatasync ();
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 for ac_lib in '' rt posix4; do
7811   if test -z "$ac_lib"; then
7812     ac_res="none required"
7813   else
7814     ac_res=-l$ac_lib
7815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7816   fi
7817   rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7819 case "(($ac_try" in
7820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821   *) ac_try_echo=$ac_try;;
7822 esac
7823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825   (eval "$ac_link") 2>conftest.er1
7826   ac_status=$?
7827   grep -v '^ *+' conftest.er1 >conftest.err
7828   rm -f conftest.er1
7829   cat conftest.err >&5
7830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } && {
7832          test -z "$ac_c_werror_flag" ||
7833          test ! -s conftest.err
7834        } && test -s conftest$ac_exeext && {
7835          test "$cross_compiling" = yes ||
7836          $as_test_x conftest$ac_exeext
7837        }; then
7838   ac_cv_search_fdatasync=$ac_res
7839 else
7840   $as_echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843
7844 fi
7845
7846 rm -rf conftest.dSYM
7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7848       conftest$ac_exeext
7849   if test "${ac_cv_search_fdatasync+set}" = set; then
7850   break
7851 fi
7852 done
7853 if test "${ac_cv_search_fdatasync+set}" = set; then
7854   :
7855 else
7856   ac_cv_search_fdatasync=no
7857 fi
7858 rm conftest.$ac_ext
7859 LIBS=$ac_func_search_save_LIBS
7860 fi
7861 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7862 $as_echo "$ac_cv_search_fdatasync" >&6; }
7863 ac_res=$ac_cv_search_fdatasync
7864 if test "$ac_res" != no; then
7865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7866
7867 fi
7868
7869 # Required for thread_test.c on Solaris 2.5:
7870 # Other ports use it too (HP-UX) so test unconditionally
7871 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7872 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7873 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7874   $as_echo_n "(cached) " >&6
7875 else
7876   ac_func_search_save_LIBS=$LIBS
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h.  */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h.  */
7883
7884 /* Override any GCC internal prototype to avoid an error.
7885    Use char because int might match the return type of a GCC
7886    builtin and then its argument prototype would still apply.  */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 char gethostbyname_r ();
7891 int
7892 main ()
7893 {
7894 return gethostbyname_r ();
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 for ac_lib in '' nsl; do
7900   if test -z "$ac_lib"; then
7901     ac_res="none required"
7902   else
7903     ac_res=-l$ac_lib
7904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7905   fi
7906   rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910   *) ac_try_echo=$ac_try;;
7911 esac
7912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914   (eval "$ac_link") 2>conftest.er1
7915   ac_status=$?
7916   grep -v '^ *+' conftest.er1 >conftest.err
7917   rm -f conftest.er1
7918   cat conftest.err >&5
7919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); } && {
7921          test -z "$ac_c_werror_flag" ||
7922          test ! -s conftest.err
7923        } && test -s conftest$ac_exeext && {
7924          test "$cross_compiling" = yes ||
7925          $as_test_x conftest$ac_exeext
7926        }; then
7927   ac_cv_search_gethostbyname_r=$ac_res
7928 else
7929   $as_echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932
7933 fi
7934
7935 rm -rf conftest.dSYM
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937       conftest$ac_exeext
7938   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7939   break
7940 fi
7941 done
7942 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7943   :
7944 else
7945   ac_cv_search_gethostbyname_r=no
7946 fi
7947 rm conftest.$ac_ext
7948 LIBS=$ac_func_search_save_LIBS
7949 fi
7950 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7951 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7952 ac_res=$ac_cv_search_gethostbyname_r
7953 if test "$ac_res" != no; then
7954   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7955
7956 fi
7957
7958 # Cygwin:
7959 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7960 $as_echo_n "checking for library containing shmget... " >&6; }
7961 if test "${ac_cv_search_shmget+set}" = set; then
7962   $as_echo_n "(cached) " >&6
7963 else
7964   ac_func_search_save_LIBS=$LIBS
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971
7972 /* Override any GCC internal prototype to avoid an error.
7973    Use char because int might match the return type of a GCC
7974    builtin and then its argument prototype would still apply.  */
7975 #ifdef __cplusplus
7976 extern "C"
7977 #endif
7978 char shmget ();
7979 int
7980 main ()
7981 {
7982 return shmget ();
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 for ac_lib in '' cygipc; do
7988   if test -z "$ac_lib"; then
7989     ac_res="none required"
7990   else
7991     ac_res=-l$ac_lib
7992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7993   fi
7994   rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7996 case "(($ac_try" in
7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998   *) ac_try_echo=$ac_try;;
7999 esac
8000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8001 $as_echo "$ac_try_echo") >&5
8002   (eval "$ac_link") 2>conftest.er1
8003   ac_status=$?
8004   grep -v '^ *+' conftest.er1 >conftest.err
8005   rm -f conftest.er1
8006   cat conftest.err >&5
8007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); } && {
8009          test -z "$ac_c_werror_flag" ||
8010          test ! -s conftest.err
8011        } && test -s conftest$ac_exeext && {
8012          test "$cross_compiling" = yes ||
8013          $as_test_x conftest$ac_exeext
8014        }; then
8015   ac_cv_search_shmget=$ac_res
8016 else
8017   $as_echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020
8021 fi
8022
8023 rm -rf conftest.dSYM
8024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8025       conftest$ac_exeext
8026   if test "${ac_cv_search_shmget+set}" = set; then
8027   break
8028 fi
8029 done
8030 if test "${ac_cv_search_shmget+set}" = set; then
8031   :
8032 else
8033   ac_cv_search_shmget=no
8034 fi
8035 rm conftest.$ac_ext
8036 LIBS=$ac_func_search_save_LIBS
8037 fi
8038 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8039 $as_echo "$ac_cv_search_shmget" >&6; }
8040 ac_res=$ac_cv_search_shmget
8041 if test "$ac_res" != no; then
8042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8043
8044 fi
8045
8046
8047 if test "$with_readline" = yes; then
8048
8049
8050 if test "${pgac_cv_check_readline+set}" = set; then
8051   $as_echo_n "(cached) " >&6
8052 else
8053   pgac_cv_check_readline=no
8054 pgac_save_LIBS=$LIBS
8055 if test x"$with_libedit_preferred" != x"yes"
8056 then    READLINE_ORDER="-lreadline -ledit"
8057 else    READLINE_ORDER="-ledit -lreadline"
8058 fi
8059 for pgac_rllib in $READLINE_ORDER ; do
8060   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8061 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8062   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8063     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8064     cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070
8071 /* Override any GCC internal prototype to avoid an error.
8072    Use char because int might match the return type of a GCC
8073    builtin and then its argument prototype would still apply.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 char readline ();
8078 int
8079 main ()
8080 {
8081 return readline ();
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8088 case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094   (eval "$ac_link") 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } && {
8101          test -z "$ac_c_werror_flag" ||
8102          test ! -s conftest.err
8103        } && test -s conftest$ac_exeext && {
8104          test "$cross_compiling" = yes ||
8105          $as_test_x conftest$ac_exeext
8106        }; then
8107
8108       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8109       # recognize dependent libraries; assume curses is needed if we didn't
8110       # find any dependency.
8111       case $host_os in
8112         netbsd* | openbsd* | irix*)
8113           if test x"$pgac_lib" = x"" ; then
8114             pgac_lib=" -lcurses"
8115           fi ;;
8116       esac
8117
8118       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8119       break
8120
8121 else
8122   $as_echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125
8126 fi
8127
8128 rm -rf conftest.dSYM
8129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8130       conftest$ac_exeext conftest.$ac_ext
8131   done
8132   if test "$pgac_cv_check_readline" != no ; then
8133     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8134 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8135     break
8136   else
8137     { $as_echo "$as_me:$LINENO: result: no" >&5
8138 $as_echo "no" >&6; }
8139   fi
8140 done
8141 LIBS=$pgac_save_LIBS
8142
8143 fi
8144
8145 if test "$pgac_cv_check_readline" != no ; then
8146   LIBS="$pgac_cv_check_readline $LIBS"
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_LIBREADLINE 1
8150 _ACEOF
8151
8152 fi
8153
8154
8155   if test x"$pgac_cv_check_readline" = x"no"; then
8156     { { $as_echo "$as_me:$LINENO: error: readline library not found
8157 If you have readline already installed, see config.log for details on the
8158 failure.  It is possible the compiler isn't looking in the proper directory.
8159 Use --without-readline to disable readline support." >&5
8160 $as_echo "$as_me: error: readline library not found
8161 If you have readline already installed, see config.log for details on the
8162 failure.  It is possible the compiler isn't looking in the proper directory.
8163 Use --without-readline to disable readline support." >&2;}
8164    { (exit 1); exit 1; }; }
8165   fi
8166 fi
8167
8168 if test "$with_zlib" = yes; then
8169
8170 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8171 $as_echo_n "checking for inflate in -lz... " >&6; }
8172 if test "${ac_cv_lib_z_inflate+set}" = set; then
8173   $as_echo_n "(cached) " >&6
8174 else
8175   ac_check_lib_save_LIBS=$LIBS
8176 LIBS="-lz  $LIBS"
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183
8184 /* Override any GCC internal prototype to avoid an error.
8185    Use char because int might match the return type of a GCC
8186    builtin and then its argument prototype would still apply.  */
8187 #ifdef __cplusplus
8188 extern "C"
8189 #endif
8190 char inflate ();
8191 int
8192 main ()
8193 {
8194 return inflate ();
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8201 case "(($ac_try" in
8202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203   *) ac_try_echo=$ac_try;;
8204 esac
8205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8206 $as_echo "$ac_try_echo") >&5
8207   (eval "$ac_link") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } && {
8214          test -z "$ac_c_werror_flag" ||
8215          test ! -s conftest.err
8216        } && test -s conftest$ac_exeext && {
8217          test "$cross_compiling" = yes ||
8218          $as_test_x conftest$ac_exeext
8219        }; then
8220   ac_cv_lib_z_inflate=yes
8221 else
8222   $as_echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225         ac_cv_lib_z_inflate=no
8226 fi
8227
8228 rm -rf conftest.dSYM
8229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230       conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8232 fi
8233 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8234 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8235 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8236   cat >>confdefs.h <<_ACEOF
8237 #define HAVE_LIBZ 1
8238 _ACEOF
8239
8240   LIBS="-lz $LIBS"
8241
8242 else
8243   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8244 If you have zlib already installed, see config.log for details on the
8245 failure.  It is possible the compiler isn't looking in the proper directory.
8246 Use --without-zlib to disable zlib support." >&5
8247 $as_echo "$as_me: error: zlib library not found
8248 If you have zlib already installed, see config.log for details on the
8249 failure.  It is possible the compiler isn't looking in the proper directory.
8250 Use --without-zlib to disable zlib support." >&2;}
8251    { (exit 1); exit 1; }; }
8252 fi
8253
8254 fi
8255
8256 if test "$enable_spinlocks" = yes; then
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_SPINLOCKS 1
8260 _ACEOF
8261
8262 else
8263   { $as_echo "$as_me:$LINENO: WARNING:
8264 *** Not using spinlocks will cause poor performance." >&5
8265 $as_echo "$as_me: WARNING:
8266 *** Not using spinlocks will cause poor performance." >&2;}
8267 fi
8268
8269 if test "$with_gssapi" = yes ; then
8270   if test "$PORTNAME" != "win32"; then
8271     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8272 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8273 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8274   $as_echo_n "(cached) " >&6
8275 else
8276   ac_func_search_save_LIBS=$LIBS
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283
8284 /* Override any GCC internal prototype to avoid an error.
8285    Use char because int might match the return type of a GCC
8286    builtin and then its argument prototype would still apply.  */
8287 #ifdef __cplusplus
8288 extern "C"
8289 #endif
8290 char gss_init_sec_context ();
8291 int
8292 main ()
8293 {
8294 return gss_init_sec_context ();
8295   ;
8296   return 0;
8297 }
8298 _ACEOF
8299 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8300   if test -z "$ac_lib"; then
8301     ac_res="none required"
8302   else
8303     ac_res=-l$ac_lib
8304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8305   fi
8306   rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (ac_try="$ac_link"
8308 case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313 $as_echo "$ac_try_echo") >&5
8314   (eval "$ac_link") 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } && {
8321          test -z "$ac_c_werror_flag" ||
8322          test ! -s conftest.err
8323        } && test -s conftest$ac_exeext && {
8324          test "$cross_compiling" = yes ||
8325          $as_test_x conftest$ac_exeext
8326        }; then
8327   ac_cv_search_gss_init_sec_context=$ac_res
8328 else
8329   $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332
8333 fi
8334
8335 rm -rf conftest.dSYM
8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8337       conftest$ac_exeext
8338   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8339   break
8340 fi
8341 done
8342 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8343   :
8344 else
8345   ac_cv_search_gss_init_sec_context=no
8346 fi
8347 rm conftest.$ac_ext
8348 LIBS=$ac_func_search_save_LIBS
8349 fi
8350 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8351 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8352 ac_res=$ac_cv_search_gss_init_sec_context
8353 if test "$ac_res" != no; then
8354   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8355
8356 else
8357   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8358 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8359    { (exit 1); exit 1; }; }
8360 fi
8361
8362   else
8363     LIBS="$LIBS -lgssapi32"
8364   fi
8365 fi
8366
8367 if test "$with_krb5" = yes ; then
8368   if test "$PORTNAME" != "win32"; then
8369      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8370 $as_echo_n "checking for library containing com_err... " >&6; }
8371 if test "${ac_cv_search_com_err+set}" = set; then
8372   $as_echo_n "(cached) " >&6
8373 else
8374   ac_func_search_save_LIBS=$LIBS
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h.  */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h.  */
8381
8382 /* Override any GCC internal prototype to avoid an error.
8383    Use char because int might match the return type of a GCC
8384    builtin and then its argument prototype would still apply.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 char com_err ();
8389 int
8390 main ()
8391 {
8392 return com_err ();
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8398   if test -z "$ac_lib"; then
8399     ac_res="none required"
8400   else
8401     ac_res=-l$ac_lib
8402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8403   fi
8404   rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (ac_try="$ac_link"
8406 case "(($ac_try" in
8407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408   *) ac_try_echo=$ac_try;;
8409 esac
8410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8411 $as_echo "$ac_try_echo") >&5
8412   (eval "$ac_link") 2>conftest.er1
8413   ac_status=$?
8414   grep -v '^ *+' conftest.er1 >conftest.err
8415   rm -f conftest.er1
8416   cat conftest.err >&5
8417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } && {
8419          test -z "$ac_c_werror_flag" ||
8420          test ! -s conftest.err
8421        } && test -s conftest$ac_exeext && {
8422          test "$cross_compiling" = yes ||
8423          $as_test_x conftest$ac_exeext
8424        }; then
8425   ac_cv_search_com_err=$ac_res
8426 else
8427   $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430
8431 fi
8432
8433 rm -rf conftest.dSYM
8434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8435       conftest$ac_exeext
8436   if test "${ac_cv_search_com_err+set}" = set; then
8437   break
8438 fi
8439 done
8440 if test "${ac_cv_search_com_err+set}" = set; then
8441   :
8442 else
8443   ac_cv_search_com_err=no
8444 fi
8445 rm conftest.$ac_ext
8446 LIBS=$ac_func_search_save_LIBS
8447 fi
8448 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8449 $as_echo "$ac_cv_search_com_err" >&6; }
8450 ac_res=$ac_cv_search_com_err
8451 if test "$ac_res" != no; then
8452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8453
8454 else
8455   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8456 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8457    { (exit 1); exit 1; }; }
8458 fi
8459
8460      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8461 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8462 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8463   $as_echo_n "(cached) " >&6
8464 else
8465   ac_func_search_save_LIBS=$LIBS
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 /* Override any GCC internal prototype to avoid an error.
8474    Use char because int might match the return type of a GCC
8475    builtin and then its argument prototype would still apply.  */
8476 #ifdef __cplusplus
8477 extern "C"
8478 #endif
8479 char krb5_sendauth ();
8480 int
8481 main ()
8482 {
8483 return krb5_sendauth ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8489   if test -z "$ac_lib"; then
8490     ac_res="none required"
8491   else
8492     ac_res=-l$ac_lib
8493     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8494   fi
8495   rm -f conftest.$ac_objext conftest$ac_exeext
8496 if { (ac_try="$ac_link"
8497 case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8502 $as_echo "$ac_try_echo") >&5
8503   (eval "$ac_link") 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } && {
8510          test -z "$ac_c_werror_flag" ||
8511          test ! -s conftest.err
8512        } && test -s conftest$ac_exeext && {
8513          test "$cross_compiling" = yes ||
8514          $as_test_x conftest$ac_exeext
8515        }; then
8516   ac_cv_search_krb5_sendauth=$ac_res
8517 else
8518   $as_echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521
8522 fi
8523
8524 rm -rf conftest.dSYM
8525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8526       conftest$ac_exeext
8527   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8528   break
8529 fi
8530 done
8531 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8532   :
8533 else
8534   ac_cv_search_krb5_sendauth=no
8535 fi
8536 rm conftest.$ac_ext
8537 LIBS=$ac_func_search_save_LIBS
8538 fi
8539 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8540 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8541 ac_res=$ac_cv_search_krb5_sendauth
8542 if test "$ac_res" != no; then
8543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544
8545 else
8546   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8547 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8548    { (exit 1); exit 1; }; }
8549 fi
8550
8551   else
8552      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8553 $as_echo_n "checking for library containing com_err... " >&6; }
8554 if test "${ac_cv_search_com_err+set}" = set; then
8555   $as_echo_n "(cached) " >&6
8556 else
8557   ac_func_search_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any GCC internal prototype to avoid an error.
8566    Use char because int might match the return type of a GCC
8567    builtin and then its argument prototype would still apply.  */
8568 #ifdef __cplusplus
8569 extern "C"
8570 #endif
8571 char com_err ();
8572 int
8573 main ()
8574 {
8575 return com_err ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8581   if test -z "$ac_lib"; then
8582     ac_res="none required"
8583   else
8584     ac_res=-l$ac_lib
8585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8586   fi
8587   rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595   (eval "$ac_link") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_c_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest$ac_exeext && {
8605          test "$cross_compiling" = yes ||
8606          $as_test_x conftest$ac_exeext
8607        }; then
8608   ac_cv_search_com_err=$ac_res
8609 else
8610   $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613
8614 fi
8615
8616 rm -rf conftest.dSYM
8617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8618       conftest$ac_exeext
8619   if test "${ac_cv_search_com_err+set}" = set; then
8620   break
8621 fi
8622 done
8623 if test "${ac_cv_search_com_err+set}" = set; then
8624   :
8625 else
8626   ac_cv_search_com_err=no
8627 fi
8628 rm conftest.$ac_ext
8629 LIBS=$ac_func_search_save_LIBS
8630 fi
8631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8632 $as_echo "$ac_cv_search_com_err" >&6; }
8633 ac_res=$ac_cv_search_com_err
8634 if test "$ac_res" != no; then
8635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8636
8637 else
8638   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8639 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8640    { (exit 1); exit 1; }; }
8641 fi
8642
8643   fi
8644 fi
8645
8646 if test "$with_openssl" = yes ; then
8647     if test "$PORTNAME" != "win32"; then
8648
8649 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8650 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8651 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8652   $as_echo_n "(cached) " >&6
8653 else
8654   ac_check_lib_save_LIBS=$LIBS
8655 LIBS="-lcrypto  $LIBS"
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 /* Override any GCC internal prototype to avoid an error.
8664    Use char because int might match the return type of a GCC
8665    builtin and then its argument prototype would still apply.  */
8666 #ifdef __cplusplus
8667 extern "C"
8668 #endif
8669 char CRYPTO_new_ex_data ();
8670 int
8671 main ()
8672 {
8673 return CRYPTO_new_ex_data ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (ac_try="$ac_link"
8680 case "(($ac_try" in
8681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682   *) ac_try_echo=$ac_try;;
8683 esac
8684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685 $as_echo "$ac_try_echo") >&5
8686   (eval "$ac_link") 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } && {
8693          test -z "$ac_c_werror_flag" ||
8694          test ! -s conftest.err
8695        } && test -s conftest$ac_exeext && {
8696          test "$cross_compiling" = yes ||
8697          $as_test_x conftest$ac_exeext
8698        }; then
8699   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8700 else
8701   $as_echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8705 fi
8706
8707 rm -rf conftest.dSYM
8708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8709       conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8711 fi
8712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8713 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8714 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8715   cat >>confdefs.h <<_ACEOF
8716 #define HAVE_LIBCRYPTO 1
8717 _ACEOF
8718
8719   LIBS="-lcrypto $LIBS"
8720
8721 else
8722   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8723 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8724    { (exit 1); exit 1; }; }
8725 fi
8726
8727
8728 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8729 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8730 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8731   $as_echo_n "(cached) " >&6
8732 else
8733   ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lssl  $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any GCC internal prototype to avoid an error.
8743    Use char because int might match the return type of a GCC
8744    builtin and then its argument prototype would still apply.  */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 char SSL_library_init ();
8749 int
8750 main ()
8751 {
8752 return SSL_library_init ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } && {
8772          test -z "$ac_c_werror_flag" ||
8773          test ! -s conftest.err
8774        } && test -s conftest$ac_exeext && {
8775          test "$cross_compiling" = yes ||
8776          $as_test_x conftest$ac_exeext
8777        }; then
8778   ac_cv_lib_ssl_SSL_library_init=yes
8779 else
8780   $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783         ac_cv_lib_ssl_SSL_library_init=no
8784 fi
8785
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8788       conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8790 fi
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8792 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8793 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8794   cat >>confdefs.h <<_ACEOF
8795 #define HAVE_LIBSSL 1
8796 _ACEOF
8797
8798   LIBS="-lssl $LIBS"
8799
8800 else
8801   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8802 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8803    { (exit 1); exit 1; }; }
8804 fi
8805
8806   else
8807
8808 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8809 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8810 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8811   $as_echo_n "(cached) " >&6
8812 else
8813   ac_check_lib_save_LIBS=$LIBS
8814 LIBS="-leay32  $LIBS"
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822 /* Override any GCC internal prototype to avoid an error.
8823    Use char because int might match the return type of a GCC
8824    builtin and then its argument prototype would still apply.  */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 char CRYPTO_new_ex_data ();
8829 int
8830 main ()
8831 {
8832 return CRYPTO_new_ex_data ();
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (ac_try="$ac_link"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8844 $as_echo "$ac_try_echo") >&5
8845   (eval "$ac_link") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } && {
8852          test -z "$ac_c_werror_flag" ||
8853          test ! -s conftest.err
8854        } && test -s conftest$ac_exeext && {
8855          test "$cross_compiling" = yes ||
8856          $as_test_x conftest$ac_exeext
8857        }; then
8858   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8859 else
8860   $as_echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8864 fi
8865
8866 rm -rf conftest.dSYM
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868       conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8870 fi
8871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8872 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8873 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8874   cat >>confdefs.h <<_ACEOF
8875 #define HAVE_LIBEAY32 1
8876 _ACEOF
8877
8878   LIBS="-leay32 $LIBS"
8879
8880 else
8881   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8882 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8883    { (exit 1); exit 1; }; }
8884 fi
8885
8886
8887 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8888 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8889 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8890   $as_echo_n "(cached) " >&6
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-lssleay32  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any GCC internal prototype to avoid an error.
8902    Use char because int might match the return type of a GCC
8903    builtin and then its argument prototype would still apply.  */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char SSL_library_init ();
8908 int
8909 main ()
8910 {
8911 return SSL_library_init ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8923 $as_echo "$ac_try_echo") >&5
8924   (eval "$ac_link") 2>conftest.er1
8925   ac_status=$?
8926   grep -v '^ *+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } && {
8931          test -z "$ac_c_werror_flag" ||
8932          test ! -s conftest.err
8933        } && test -s conftest$ac_exeext && {
8934          test "$cross_compiling" = yes ||
8935          $as_test_x conftest$ac_exeext
8936        }; then
8937   ac_cv_lib_ssleay32_SSL_library_init=yes
8938 else
8939   $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942         ac_cv_lib_ssleay32_SSL_library_init=no
8943 fi
8944
8945 rm -rf conftest.dSYM
8946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8947       conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8949 fi
8950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8951 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8952 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8953   cat >>confdefs.h <<_ACEOF
8954 #define HAVE_LIBSSLEAY32 1
8955 _ACEOF
8956
8957   LIBS="-lssleay32 $LIBS"
8958
8959 else
8960   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8961 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8962    { (exit 1); exit 1; }; }
8963 fi
8964
8965   fi
8966 fi
8967
8968 if test "$with_pam" = yes ; then
8969
8970 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8971 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8972 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8973   $as_echo_n "(cached) " >&6
8974 else
8975   ac_check_lib_save_LIBS=$LIBS
8976 LIBS="-lpam  $LIBS"
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983
8984 /* Override any GCC internal prototype to avoid an error.
8985    Use char because int might match the return type of a GCC
8986    builtin and then its argument prototype would still apply.  */
8987 #ifdef __cplusplus
8988 extern "C"
8989 #endif
8990 char pam_start ();
8991 int
8992 main ()
8993 {
8994 return pam_start ();
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (ac_try="$ac_link"
9001 case "(($ac_try" in
9002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003   *) ac_try_echo=$ac_try;;
9004 esac
9005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9006 $as_echo "$ac_try_echo") >&5
9007   (eval "$ac_link") 2>conftest.er1
9008   ac_status=$?
9009   grep -v '^ *+' conftest.er1 >conftest.err
9010   rm -f conftest.er1
9011   cat conftest.err >&5
9012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } && {
9014          test -z "$ac_c_werror_flag" ||
9015          test ! -s conftest.err
9016        } && test -s conftest$ac_exeext && {
9017          test "$cross_compiling" = yes ||
9018          $as_test_x conftest$ac_exeext
9019        }; then
9020   ac_cv_lib_pam_pam_start=yes
9021 else
9022   $as_echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025         ac_cv_lib_pam_pam_start=no
9026 fi
9027
9028 rm -rf conftest.dSYM
9029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9030       conftest$ac_exeext conftest.$ac_ext
9031 LIBS=$ac_check_lib_save_LIBS
9032 fi
9033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9034 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9035 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9036   cat >>confdefs.h <<_ACEOF
9037 #define HAVE_LIBPAM 1
9038 _ACEOF
9039
9040   LIBS="-lpam $LIBS"
9041
9042 else
9043   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9044 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9045    { (exit 1); exit 1; }; }
9046 fi
9047
9048 fi
9049
9050 if test "$with_libxml" = yes ; then
9051
9052 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9053 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9054 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9055   $as_echo_n "(cached) " >&6
9056 else
9057   ac_check_lib_save_LIBS=$LIBS
9058 LIBS="-lxml2  $LIBS"
9059 cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h.  */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h.  */
9065
9066 /* Override any GCC internal prototype to avoid an error.
9067    Use char because int might match the return type of a GCC
9068    builtin and then its argument prototype would still apply.  */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 char xmlSaveToBuffer ();
9073 int
9074 main ()
9075 {
9076 return xmlSaveToBuffer ();
9077   ;
9078   return 0;
9079 }
9080 _ACEOF
9081 rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (ac_try="$ac_link"
9083 case "(($ac_try" in
9084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9085   *) ac_try_echo=$ac_try;;
9086 esac
9087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9088 $as_echo "$ac_try_echo") >&5
9089   (eval "$ac_link") 2>conftest.er1
9090   ac_status=$?
9091   grep -v '^ *+' conftest.er1 >conftest.err
9092   rm -f conftest.er1
9093   cat conftest.err >&5
9094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } && {
9096          test -z "$ac_c_werror_flag" ||
9097          test ! -s conftest.err
9098        } && test -s conftest$ac_exeext && {
9099          test "$cross_compiling" = yes ||
9100          $as_test_x conftest$ac_exeext
9101        }; then
9102   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9103 else
9104   $as_echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107         ac_cv_lib_xml2_xmlSaveToBuffer=no
9108 fi
9109
9110 rm -rf conftest.dSYM
9111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9112       conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9114 fi
9115 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9116 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9117 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9118   cat >>confdefs.h <<_ACEOF
9119 #define HAVE_LIBXML2 1
9120 _ACEOF
9121
9122   LIBS="-lxml2 $LIBS"
9123
9124 else
9125   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9126 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9127    { (exit 1); exit 1; }; }
9128 fi
9129
9130 fi
9131
9132 if test "$with_libxslt" = yes ; then
9133
9134 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9135 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9136 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9137   $as_echo_n "(cached) " >&6
9138 else
9139   ac_check_lib_save_LIBS=$LIBS
9140 LIBS="-lxslt  $LIBS"
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h.  */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h.  */
9147
9148 /* Override any GCC internal prototype to avoid an error.
9149    Use char because int might match the return type of a GCC
9150    builtin and then its argument prototype would still apply.  */
9151 #ifdef __cplusplus
9152 extern "C"
9153 #endif
9154 char xsltCleanupGlobals ();
9155 int
9156 main ()
9157 {
9158 return xsltCleanupGlobals ();
9159   ;
9160   return 0;
9161 }
9162 _ACEOF
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (ac_try="$ac_link"
9165 case "(($ac_try" in
9166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167   *) ac_try_echo=$ac_try;;
9168 esac
9169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9170 $as_echo "$ac_try_echo") >&5
9171   (eval "$ac_link") 2>conftest.er1
9172   ac_status=$?
9173   grep -v '^ *+' conftest.er1 >conftest.err
9174   rm -f conftest.er1
9175   cat conftest.err >&5
9176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } && {
9178          test -z "$ac_c_werror_flag" ||
9179          test ! -s conftest.err
9180        } && test -s conftest$ac_exeext && {
9181          test "$cross_compiling" = yes ||
9182          $as_test_x conftest$ac_exeext
9183        }; then
9184   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9185 else
9186   $as_echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189         ac_cv_lib_xslt_xsltCleanupGlobals=no
9190 fi
9191
9192 rm -rf conftest.dSYM
9193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9194       conftest$ac_exeext conftest.$ac_ext
9195 LIBS=$ac_check_lib_save_LIBS
9196 fi
9197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9198 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9199 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9200   cat >>confdefs.h <<_ACEOF
9201 #define HAVE_LIBXSLT 1
9202 _ACEOF
9203
9204   LIBS="-lxslt $LIBS"
9205
9206 else
9207   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9208 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9209    { (exit 1); exit 1; }; }
9210 fi
9211
9212 fi
9213
9214 # for contrib/uuid-ossp
9215 if test "$with_ossp_uuid" = yes ; then
9216   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9217 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9218 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9219   $as_echo_n "(cached) " >&6
9220 else
9221   ac_check_lib_save_LIBS=$LIBS
9222 LIBS="-lossp-uuid  $LIBS"
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229
9230 /* Override any GCC internal prototype to avoid an error.
9231    Use char because int might match the return type of a GCC
9232    builtin and then its argument prototype would still apply.  */
9233 #ifdef __cplusplus
9234 extern "C"
9235 #endif
9236 char uuid_export ();
9237 int
9238 main ()
9239 {
9240 return uuid_export ();
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9247 case "(($ac_try" in
9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249   *) ac_try_echo=$ac_try;;
9250 esac
9251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9252 $as_echo "$ac_try_echo") >&5
9253   (eval "$ac_link") 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } && {
9260          test -z "$ac_c_werror_flag" ||
9261          test ! -s conftest.err
9262        } && test -s conftest$ac_exeext && {
9263          test "$cross_compiling" = yes ||
9264          $as_test_x conftest$ac_exeext
9265        }; then
9266   ac_cv_lib_ossp_uuid_uuid_export=yes
9267 else
9268   $as_echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271         ac_cv_lib_ossp_uuid_uuid_export=no
9272 fi
9273
9274 rm -rf conftest.dSYM
9275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9276       conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9280 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9281 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9282   OSSP_UUID_LIBS="-lossp-uuid"
9283 else
9284   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9285 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9286 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9287   $as_echo_n "(cached) " >&6
9288 else
9289   ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-luuid  $LIBS"
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299    Use char because int might match the return type of a GCC
9300    builtin and then its argument prototype would still apply.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char uuid_export ();
9305 int
9306 main ()
9307 {
9308 return uuid_export ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9320 $as_echo "$ac_try_echo") >&5
9321   (eval "$ac_link") 2>conftest.er1
9322   ac_status=$?
9323   grep -v '^ *+' conftest.er1 >conftest.err
9324   rm -f conftest.er1
9325   cat conftest.err >&5
9326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } && {
9328          test -z "$ac_c_werror_flag" ||
9329          test ! -s conftest.err
9330        } && test -s conftest$ac_exeext && {
9331          test "$cross_compiling" = yes ||
9332          $as_test_x conftest$ac_exeext
9333        }; then
9334   ac_cv_lib_uuid_uuid_export=yes
9335 else
9336   $as_echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339         ac_cv_lib_uuid_uuid_export=no
9340 fi
9341
9342 rm -rf conftest.dSYM
9343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9344       conftest$ac_exeext conftest.$ac_ext
9345 LIBS=$ac_check_lib_save_LIBS
9346 fi
9347 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9348 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9349 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9350   OSSP_UUID_LIBS="-luuid"
9351 else
9352   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9353 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9354    { (exit 1); exit 1; }; }
9355 fi
9356
9357 fi
9358
9359 fi
9360
9361
9362
9363 ##
9364 ## Header files
9365 ##
9366
9367 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9368 $as_echo_n "checking for ANSI C header files... " >&6; }
9369 if test "${ac_cv_header_stdc+set}" = set; then
9370   $as_echo_n "(cached) " >&6
9371 else
9372   cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378 #include <stdlib.h>
9379 #include <stdarg.h>
9380 #include <string.h>
9381 #include <float.h>
9382
9383 int
9384 main ()
9385 {
9386
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9393 case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399   (eval "$ac_compile") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } && {
9406          test -z "$ac_c_werror_flag" ||
9407          test ! -s conftest.err
9408        } && test -s conftest.$ac_objext; then
9409   ac_cv_header_stdc=yes
9410 else
9411   $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414         ac_cv_header_stdc=no
9415 fi
9416
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418
9419 if test $ac_cv_header_stdc = yes; then
9420   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9421   cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <string.h>
9428
9429 _ACEOF
9430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431   $EGREP "memchr" >/dev/null 2>&1; then
9432   :
9433 else
9434   ac_cv_header_stdc=no
9435 fi
9436 rm -f conftest*
9437
9438 fi
9439
9440 if test $ac_cv_header_stdc = yes; then
9441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9442   cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448 #include <stdlib.h>
9449
9450 _ACEOF
9451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9452   $EGREP "free" >/dev/null 2>&1; then
9453   :
9454 else
9455   ac_cv_header_stdc=no
9456 fi
9457 rm -f conftest*
9458
9459 fi
9460
9461 if test $ac_cv_header_stdc = yes; then
9462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9463   if test "$cross_compiling" = yes; then
9464   :
9465 else
9466   cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472 #include <ctype.h>
9473 #include <stdlib.h>
9474 #if ((' ' & 0x0FF) == 0x020)
9475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9477 #else
9478 # define ISLOWER(c) \
9479                    (('a' <= (c) && (c) <= 'i') \
9480                      || ('j' <= (c) && (c) <= 'r') \
9481                      || ('s' <= (c) && (c) <= 'z'))
9482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9483 #endif
9484
9485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9486 int
9487 main ()
9488 {
9489   int i;
9490   for (i = 0; i < 256; i++)
9491     if (XOR (islower (i), ISLOWER (i))
9492         || toupper (i) != TOUPPER (i))
9493       return 2;
9494   return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9499 case "(($ac_try" in
9500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501   *) ac_try_echo=$ac_try;;
9502 esac
9503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9504 $as_echo "$ac_try_echo") >&5
9505   (eval "$ac_link") 2>&5
9506   ac_status=$?
9507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9509   { (case "(($ac_try" in
9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511   *) ac_try_echo=$ac_try;;
9512 esac
9513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9514 $as_echo "$ac_try_echo") >&5
9515   (eval "$ac_try") 2>&5
9516   ac_status=$?
9517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); }; }; then
9519   :
9520 else
9521   $as_echo "$as_me: program exited with status $ac_status" >&5
9522 $as_echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 ( exit $ac_status )
9526 ac_cv_header_stdc=no
9527 fi
9528 rm -rf conftest.dSYM
9529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9530 fi
9531
9532
9533 fi
9534 fi
9535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9536 $as_echo "$ac_cv_header_stdc" >&6; }
9537 if test $ac_cv_header_stdc = yes; then
9538
9539 cat >>confdefs.h <<\_ACEOF
9540 #define STDC_HEADERS 1
9541 _ACEOF
9542
9543 fi
9544
9545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9556                   inttypes.h stdint.h unistd.h
9557 do
9558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9560 $as_echo_n "checking for $ac_header... " >&6; }
9561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9562   $as_echo_n "(cached) " >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 $ac_includes_default
9571
9572 #include <$ac_header>
9573 _ACEOF
9574 rm -f conftest.$ac_objext
9575 if { (ac_try="$ac_compile"
9576 case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9581 $as_echo "$ac_try_echo") >&5
9582   (eval "$ac_compile") 2>conftest.er1
9583   ac_status=$?
9584   grep -v '^ *+' conftest.er1 >conftest.err
9585   rm -f conftest.er1
9586   cat conftest.err >&5
9587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } && {
9589          test -z "$ac_c_werror_flag" ||
9590          test ! -s conftest.err
9591        } && test -s conftest.$ac_objext; then
9592   eval "$as_ac_Header=yes"
9593 else
9594   $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597         eval "$as_ac_Header=no"
9598 fi
9599
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 fi
9602 ac_res=`eval 'as_val=${'$as_ac_Header'}
9603                  $as_echo "$as_val"'`
9604                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9605 $as_echo "$ac_res" >&6; }
9606 as_val=`eval 'as_val=${'$as_ac_Header'}
9607                  $as_echo "$as_val"'`
9608    if test "x$as_val" = x""yes; then
9609   cat >>confdefs.h <<_ACEOF
9610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9611 _ACEOF
9612
9613 fi
9614
9615 done
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9646 do
9647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9649   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9650 $as_echo_n "checking for $ac_header... " >&6; }
9651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9652   $as_echo_n "(cached) " >&6
9653 fi
9654 ac_res=`eval 'as_val=${'$as_ac_Header'}
9655                  $as_echo "$as_val"'`
9656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9657 $as_echo "$ac_res" >&6; }
9658 else
9659   # Is the header compilable?
9660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9661 $as_echo_n "checking $ac_header usability... " >&6; }
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 $ac_includes_default
9669 #include <$ac_header>
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9673 case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9678 $as_echo "$ac_try_echo") >&5
9679   (eval "$ac_compile") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && {
9686          test -z "$ac_c_werror_flag" ||
9687          test ! -s conftest.err
9688        } && test -s conftest.$ac_objext; then
9689   ac_header_compiler=yes
9690 else
9691   $as_echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694         ac_header_compiler=no
9695 fi
9696
9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9699 $as_echo "$ac_header_compiler" >&6; }
9700
9701 # Is the header present?
9702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9703 $as_echo_n "checking $ac_header presence... " >&6; }
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h.  */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h.  */
9710 #include <$ac_header>
9711 _ACEOF
9712 if { (ac_try="$ac_cpp conftest.$ac_ext"
9713 case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9718 $as_echo "$ac_try_echo") >&5
9719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } >/dev/null && {
9726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9727          test ! -s conftest.err
9728        }; then
9729   ac_header_preproc=yes
9730 else
9731   $as_echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734   ac_header_preproc=no
9735 fi
9736
9737 rm -f conftest.err conftest.$ac_ext
9738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9739 $as_echo "$ac_header_preproc" >&6; }
9740
9741 # So?  What about this header?
9742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9743   yes:no: )
9744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9748     ac_header_preproc=yes
9749     ;;
9750   no:yes:* )
9751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9754 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9758 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9763     ( cat <<\_ASBOX
9764 ## ---------------------------------------- ##
9765 ## Report this to pgsql-bugs@postgresql.org ##
9766 ## ---------------------------------------- ##
9767 _ASBOX
9768      ) | sed "s/^/$as_me: WARNING:     /" >&2
9769     ;;
9770 esac
9771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 $as_echo_n "checking for $ac_header... " >&6; }
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774   $as_echo_n "(cached) " >&6
9775 else
9776   eval "$as_ac_Header=\$ac_header_preproc"
9777 fi
9778 ac_res=`eval 'as_val=${'$as_ac_Header'}
9779                  $as_echo "$as_val"'`
9780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9781 $as_echo "$ac_res" >&6; }
9782
9783 fi
9784 as_val=`eval 'as_val=${'$as_ac_Header'}
9785                  $as_echo "$as_val"'`
9786    if test "x$as_val" = x""yes; then
9787   cat >>confdefs.h <<_ACEOF
9788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9789 _ACEOF
9790
9791 fi
9792
9793 done
9794
9795
9796 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9797 # netinet/in.h is included first.
9798
9799 for ac_header in netinet/in.h
9800 do
9801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806   $as_echo_n "(cached) " >&6
9807 fi
9808 ac_res=`eval 'as_val=${'$as_ac_Header'}
9809                  $as_echo "$as_val"'`
9810                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9811 $as_echo "$ac_res" >&6; }
9812 else
9813   # Is the header compilable?
9814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 $as_echo_n "checking $ac_header usability... " >&6; }
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 $ac_includes_default
9823 #include <$ac_header>
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9832 $as_echo "$ac_try_echo") >&5
9833   (eval "$ac_compile") 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
9837   cat conftest.err >&5
9838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } && {
9840          test -z "$ac_c_werror_flag" ||
9841          test ! -s conftest.err
9842        } && test -s conftest.$ac_objext; then
9843   ac_header_compiler=yes
9844 else
9845   $as_echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         ac_header_compiler=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9853 $as_echo "$ac_header_compiler" >&6; }
9854
9855 # Is the header present?
9856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9857 $as_echo_n "checking $ac_header presence... " >&6; }
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864 #include <$ac_header>
9865 _ACEOF
9866 if { (ac_try="$ac_cpp conftest.$ac_ext"
9867 case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9872 $as_echo "$ac_try_echo") >&5
9873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } >/dev/null && {
9880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9881          test ! -s conftest.err
9882        }; then
9883   ac_header_preproc=yes
9884 else
9885   $as_echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888   ac_header_preproc=no
9889 fi
9890
9891 rm -f conftest.err conftest.$ac_ext
9892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9893 $as_echo "$ac_header_preproc" >&6; }
9894
9895 # So?  What about this header?
9896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9897   yes:no: )
9898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9902     ac_header_preproc=yes
9903     ;;
9904   no:yes:* )
9905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9908 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9912 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9917     ( cat <<\_ASBOX
9918 ## ---------------------------------------- ##
9919 ## Report this to pgsql-bugs@postgresql.org ##
9920 ## ---------------------------------------- ##
9921 _ASBOX
9922      ) | sed "s/^/$as_me: WARNING:     /" >&2
9923     ;;
9924 esac
9925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9926 $as_echo_n "checking for $ac_header... " >&6; }
9927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928   $as_echo_n "(cached) " >&6
9929 else
9930   eval "$as_ac_Header=\$ac_header_preproc"
9931 fi
9932 ac_res=`eval 'as_val=${'$as_ac_Header'}
9933                  $as_echo "$as_val"'`
9934                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9935 $as_echo "$ac_res" >&6; }
9936
9937 fi
9938 as_val=`eval 'as_val=${'$as_ac_Header'}
9939                  $as_echo "$as_val"'`
9940    if test "x$as_val" = x""yes; then
9941   cat >>confdefs.h <<_ACEOF
9942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 _ACEOF
9944
9945 fi
9946
9947 done
9948
9949
9950 for ac_header in netinet/tcp.h
9951 do
9952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9954 $as_echo_n "checking for $ac_header... " >&6; }
9955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9956   $as_echo_n "(cached) " >&6
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964 $ac_includes_default
9965 #ifdef HAVE_NETINET_IN_H
9966 #include <netinet/in.h>
9967 #endif
9968
9969
9970 #include <$ac_header>
9971 _ACEOF
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9974 case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980   (eval "$ac_compile") 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } && {
9987          test -z "$ac_c_werror_flag" ||
9988          test ! -s conftest.err
9989        } && test -s conftest.$ac_objext; then
9990   eval "$as_ac_Header=yes"
9991 else
9992   $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995         eval "$as_ac_Header=no"
9996 fi
9997
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 fi
10000 ac_res=`eval 'as_val=${'$as_ac_Header'}
10001                  $as_echo "$as_val"'`
10002                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10003 $as_echo "$ac_res" >&6; }
10004 as_val=`eval 'as_val=${'$as_ac_Header'}
10005                  $as_echo "$as_val"'`
10006    if test "x$as_val" = x""yes; then
10007   cat >>confdefs.h <<_ACEOF
10008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10009 _ACEOF
10010
10011 fi
10012
10013 done
10014
10015
10016 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10017
10018 for ac_header in readline/readline.h
10019 do
10020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 $as_echo_n "checking for $ac_header... " >&6; }
10024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025   $as_echo_n "(cached) " >&6
10026 fi
10027 ac_res=`eval 'as_val=${'$as_ac_Header'}
10028                  $as_echo "$as_val"'`
10029                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10030 $as_echo "$ac_res" >&6; }
10031 else
10032   # Is the header compilable?
10033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10034 $as_echo_n "checking $ac_header usability... " >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 $ac_includes_default
10042 #include <$ac_header>
10043 _ACEOF
10044 rm -f conftest.$ac_objext
10045 if { (ac_try="$ac_compile"
10046 case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051 $as_echo "$ac_try_echo") >&5
10052   (eval "$ac_compile") 2>conftest.er1
10053   ac_status=$?
10054   grep -v '^ *+' conftest.er1 >conftest.err
10055   rm -f conftest.er1
10056   cat conftest.err >&5
10057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && {
10059          test -z "$ac_c_werror_flag" ||
10060          test ! -s conftest.err
10061        } && test -s conftest.$ac_objext; then
10062   ac_header_compiler=yes
10063 else
10064   $as_echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067         ac_header_compiler=no
10068 fi
10069
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 $as_echo "$ac_header_compiler" >&6; }
10073
10074 # Is the header present?
10075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076 $as_echo_n "checking $ac_header presence... " >&6; }
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 #include <$ac_header>
10084 _ACEOF
10085 if { (ac_try="$ac_cpp conftest.$ac_ext"
10086 case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091 $as_echo "$ac_try_echo") >&5
10092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } >/dev/null && {
10099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10100          test ! -s conftest.err
10101        }; then
10102   ac_header_preproc=yes
10103 else
10104   $as_echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107   ac_header_preproc=no
10108 fi
10109
10110 rm -f conftest.err conftest.$ac_ext
10111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 $as_echo "$ac_header_preproc" >&6; }
10113
10114 # So?  What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10116   yes:no: )
10117     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121     ac_header_preproc=yes
10122     ;;
10123   no:yes:* )
10124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10127 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10131 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136     ( cat <<\_ASBOX
10137 ## ---------------------------------------- ##
10138 ## Report this to pgsql-bugs@postgresql.org ##
10139 ## ---------------------------------------- ##
10140 _ASBOX
10141      ) | sed "s/^/$as_me: WARNING:     /" >&2
10142     ;;
10143 esac
10144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10145 $as_echo_n "checking for $ac_header... " >&6; }
10146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147   $as_echo_n "(cached) " >&6
10148 else
10149   eval "$as_ac_Header=\$ac_header_preproc"
10150 fi
10151 ac_res=`eval 'as_val=${'$as_ac_Header'}
10152                  $as_echo "$as_val"'`
10153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10155
10156 fi
10157 as_val=`eval 'as_val=${'$as_ac_Header'}
10158                  $as_echo "$as_val"'`
10159    if test "x$as_val" = x""yes; then
10160   cat >>confdefs.h <<_ACEOF
10161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10162 _ACEOF
10163
10164 else
10165
10166 for ac_header in readline.h
10167 do
10168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10170   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10171 $as_echo_n "checking for $ac_header... " >&6; }
10172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10173   $as_echo_n "(cached) " >&6
10174 fi
10175 ac_res=`eval 'as_val=${'$as_ac_Header'}
10176                  $as_echo "$as_val"'`
10177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10178 $as_echo "$ac_res" >&6; }
10179 else
10180   # Is the header compilable?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10182 $as_echo_n "checking $ac_header usability... " >&6; }
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189 $ac_includes_default
10190 #include <$ac_header>
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (ac_try="$ac_compile"
10194 case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10199 $as_echo "$ac_try_echo") >&5
10200   (eval "$ac_compile") 2>conftest.er1
10201   ac_status=$?
10202   grep -v '^ *+' conftest.er1 >conftest.err
10203   rm -f conftest.er1
10204   cat conftest.err >&5
10205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } && {
10207          test -z "$ac_c_werror_flag" ||
10208          test ! -s conftest.err
10209        } && test -s conftest.$ac_objext; then
10210   ac_header_compiler=yes
10211 else
10212   $as_echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10214
10215         ac_header_compiler=no
10216 fi
10217
10218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10220 $as_echo "$ac_header_compiler" >&6; }
10221
10222 # Is the header present?
10223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10224 $as_echo_n "checking $ac_header presence... " >&6; }
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231 #include <$ac_header>
10232 _ACEOF
10233 if { (ac_try="$ac_cpp conftest.$ac_ext"
10234 case "(($ac_try" in
10235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236   *) ac_try_echo=$ac_try;;
10237 esac
10238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239 $as_echo "$ac_try_echo") >&5
10240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } >/dev/null && {
10247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10248          test ! -s conftest.err
10249        }; then
10250   ac_header_preproc=yes
10251 else
10252   $as_echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255   ac_header_preproc=no
10256 fi
10257
10258 rm -f conftest.err conftest.$ac_ext
10259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10260 $as_echo "$ac_header_preproc" >&6; }
10261
10262 # So?  What about this header?
10263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10264   yes:no: )
10265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10269     ac_header_preproc=yes
10270     ;;
10271   no:yes:* )
10272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10275 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10279 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10284     ( cat <<\_ASBOX
10285 ## ---------------------------------------- ##
10286 ## Report this to pgsql-bugs@postgresql.org ##
10287 ## ---------------------------------------- ##
10288 _ASBOX
10289      ) | sed "s/^/$as_me: WARNING:     /" >&2
10290     ;;
10291 esac
10292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 $as_echo_n "checking for $ac_header... " >&6; }
10294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10295   $as_echo_n "(cached) " >&6
10296 else
10297   eval "$as_ac_Header=\$ac_header_preproc"
10298 fi
10299 ac_res=`eval 'as_val=${'$as_ac_Header'}
10300                  $as_echo "$as_val"'`
10301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10302 $as_echo "$ac_res" >&6; }
10303
10304 fi
10305 as_val=`eval 'as_val=${'$as_ac_Header'}
10306                  $as_echo "$as_val"'`
10307    if test "x$as_val" = x""yes; then
10308   cat >>confdefs.h <<_ACEOF
10309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10310 _ACEOF
10311
10312 else
10313   { { $as_echo "$as_me:$LINENO: error: readline header not found
10314 If you have readline already installed, see config.log for details on the
10315 failure.  It is possible the compiler isn't looking in the proper directory.
10316 Use --without-readline to disable readline support." >&5
10317 $as_echo "$as_me: error: readline header not found
10318 If you have readline already installed, see config.log for details on the
10319 failure.  It is possible the compiler isn't looking in the proper directory.
10320 Use --without-readline to disable readline support." >&2;}
10321    { (exit 1); exit 1; }; }
10322 fi
10323
10324 done
10325
10326 fi
10327
10328 done
10329
10330
10331 for ac_header in readline/history.h
10332 do
10333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10335   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 $as_echo_n "checking for $ac_header... " >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338   $as_echo_n "(cached) " >&6
10339 fi
10340 ac_res=`eval 'as_val=${'$as_ac_Header'}
10341                  $as_echo "$as_val"'`
10342                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10343 $as_echo "$ac_res" >&6; }
10344 else
10345   # Is the header compilable?
10346 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10347 $as_echo_n "checking $ac_header usability... " >&6; }
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354 $ac_includes_default
10355 #include <$ac_header>
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10364 $as_echo "$ac_try_echo") >&5
10365   (eval "$ac_compile") 2>conftest.er1
10366   ac_status=$?
10367   grep -v '^ *+' conftest.er1 >conftest.err
10368   rm -f conftest.er1
10369   cat conftest.err >&5
10370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } && {
10372          test -z "$ac_c_werror_flag" ||
10373          test ! -s conftest.err
10374        } && test -s conftest.$ac_objext; then
10375   ac_header_compiler=yes
10376 else
10377   $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         ac_header_compiler=no
10381 fi
10382
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10385 $as_echo "$ac_header_compiler" >&6; }
10386
10387 # Is the header present?
10388 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10389 $as_echo_n "checking $ac_header presence... " >&6; }
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396 #include <$ac_header>
10397 _ACEOF
10398 if { (ac_try="$ac_cpp conftest.$ac_ext"
10399 case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10404 $as_echo "$ac_try_echo") >&5
10405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } >/dev/null && {
10412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10413          test ! -s conftest.err
10414        }; then
10415   ac_header_preproc=yes
10416 else
10417   $as_echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420   ac_header_preproc=no
10421 fi
10422
10423 rm -f conftest.err conftest.$ac_ext
10424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10425 $as_echo "$ac_header_preproc" >&6; }
10426
10427 # So?  What about this header?
10428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10429   yes:no: )
10430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10431 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10434     ac_header_preproc=yes
10435     ;;
10436   no:yes:* )
10437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10438 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10440 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10442 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10444 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10448 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10449     ( cat <<\_ASBOX
10450 ## ---------------------------------------- ##
10451 ## Report this to pgsql-bugs@postgresql.org ##
10452 ## ---------------------------------------- ##
10453 _ASBOX
10454      ) | sed "s/^/$as_me: WARNING:     /" >&2
10455     ;;
10456 esac
10457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10458 $as_echo_n "checking for $ac_header... " >&6; }
10459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460   $as_echo_n "(cached) " >&6
10461 else
10462   eval "$as_ac_Header=\$ac_header_preproc"
10463 fi
10464 ac_res=`eval 'as_val=${'$as_ac_Header'}
10465                  $as_echo "$as_val"'`
10466                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10467 $as_echo "$ac_res" >&6; }
10468
10469 fi
10470 as_val=`eval 'as_val=${'$as_ac_Header'}
10471                  $as_echo "$as_val"'`
10472    if test "x$as_val" = x""yes; then
10473   cat >>confdefs.h <<_ACEOF
10474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10475 _ACEOF
10476
10477 else
10478
10479 for ac_header in history.h
10480 do
10481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10483   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10484 $as_echo_n "checking for $ac_header... " >&6; }
10485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10486   $as_echo_n "(cached) " >&6
10487 fi
10488 ac_res=`eval 'as_val=${'$as_ac_Header'}
10489                  $as_echo "$as_val"'`
10490                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10491 $as_echo "$ac_res" >&6; }
10492 else
10493   # Is the header compilable?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10495 $as_echo_n "checking $ac_header usability... " >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 $ac_includes_default
10503 #include <$ac_header>
10504 _ACEOF
10505 rm -f conftest.$ac_objext
10506 if { (ac_try="$ac_compile"
10507 case "(($ac_try" in
10508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509   *) ac_try_echo=$ac_try;;
10510 esac
10511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10512 $as_echo "$ac_try_echo") >&5
10513   (eval "$ac_compile") 2>conftest.er1
10514   ac_status=$?
10515   grep -v '^ *+' conftest.er1 >conftest.err
10516   rm -f conftest.er1
10517   cat conftest.err >&5
10518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } && {
10520          test -z "$ac_c_werror_flag" ||
10521          test ! -s conftest.err
10522        } && test -s conftest.$ac_objext; then
10523   ac_header_compiler=yes
10524 else
10525   $as_echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10527
10528         ac_header_compiler=no
10529 fi
10530
10531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10533 $as_echo "$ac_header_compiler" >&6; }
10534
10535 # Is the header present?
10536 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10537 $as_echo_n "checking $ac_header presence... " >&6; }
10538 cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h.  */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h.  */
10544 #include <$ac_header>
10545 _ACEOF
10546 if { (ac_try="$ac_cpp conftest.$ac_ext"
10547 case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } >/dev/null && {
10560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10561          test ! -s conftest.err
10562        }; then
10563   ac_header_preproc=yes
10564 else
10565   $as_echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568   ac_header_preproc=no
10569 fi
10570
10571 rm -f conftest.err conftest.$ac_ext
10572 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10573 $as_echo "$ac_header_preproc" >&6; }
10574
10575 # So?  What about this header?
10576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10577   yes:no: )
10578     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10579 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10580     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10582     ac_header_preproc=yes
10583     ;;
10584   no:yes:* )
10585     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10586 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10587     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10588 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10589     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10590 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10591     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10592 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10597     ( cat <<\_ASBOX
10598 ## ---------------------------------------- ##
10599 ## Report this to pgsql-bugs@postgresql.org ##
10600 ## ---------------------------------------- ##
10601 _ASBOX
10602      ) | sed "s/^/$as_me: WARNING:     /" >&2
10603     ;;
10604 esac
10605 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 $as_echo_n "checking for $ac_header... " >&6; }
10607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608   $as_echo_n "(cached) " >&6
10609 else
10610   eval "$as_ac_Header=\$ac_header_preproc"
10611 fi
10612 ac_res=`eval 'as_val=${'$as_ac_Header'}
10613                  $as_echo "$as_val"'`
10614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10615 $as_echo "$ac_res" >&6; }
10616
10617 fi
10618 as_val=`eval 'as_val=${'$as_ac_Header'}
10619                  $as_echo "$as_val"'`
10620    if test "x$as_val" = x""yes; then
10621   cat >>confdefs.h <<_ACEOF
10622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623 _ACEOF
10624
10625 else
10626   { { $as_echo "$as_me:$LINENO: error: history header not found
10627 If you have readline already installed, see config.log for details on the
10628 failure.  It is possible the compiler isn't looking in the proper directory.
10629 Use --without-readline to disable readline support." >&5
10630 $as_echo "$as_me: error: history header not found
10631 If you have readline already installed, see config.log for details on the
10632 failure.  It is possible the compiler isn't looking in the proper directory.
10633 Use --without-readline to disable readline support." >&2;}
10634    { (exit 1); exit 1; }; }
10635 fi
10636
10637 done
10638
10639 fi
10640
10641 done
10642
10643 fi
10644
10645 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10646 # Some installations of libedit usurp /usr/include/readline/, which seems
10647 # bad practice, since in combined installations readline will have its headers
10648 # there.  We might have to resort to AC_EGREP checks to make sure we found
10649 # the proper header...
10650
10651 for ac_header in editline/readline.h
10652 do
10653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658   $as_echo_n "(cached) " >&6
10659 fi
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661                  $as_echo "$as_val"'`
10662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10664 else
10665   # Is the header compilable?
10666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 $as_echo_n "checking $ac_header usability... " >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674 $ac_includes_default
10675 #include <$ac_header>
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685   (eval "$ac_compile") 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } && {
10692          test -z "$ac_c_werror_flag" ||
10693          test ! -s conftest.err
10694        } && test -s conftest.$ac_objext; then
10695   ac_header_compiler=yes
10696 else
10697   $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700         ac_header_compiler=no
10701 fi
10702
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 $as_echo "$ac_header_compiler" >&6; }
10706
10707 # Is the header present?
10708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 $as_echo_n "checking $ac_header presence... " >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716 #include <$ac_header>
10717 _ACEOF
10718 if { (ac_try="$ac_cpp conftest.$ac_ext"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } >/dev/null && {
10732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10733          test ! -s conftest.err
10734        }; then
10735   ac_header_preproc=yes
10736 else
10737   $as_echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740   ac_header_preproc=no
10741 fi
10742
10743 rm -f conftest.err conftest.$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 $as_echo "$ac_header_preproc" >&6; }
10746
10747 # So?  What about this header?
10748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10749   yes:no: )
10750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10754     ac_header_preproc=yes
10755     ;;
10756   no:yes:* )
10757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10760 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10763     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10764 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10769     ( cat <<\_ASBOX
10770 ## ---------------------------------------- ##
10771 ## Report this to pgsql-bugs@postgresql.org ##
10772 ## ---------------------------------------- ##
10773 _ASBOX
10774      ) | sed "s/^/$as_me: WARNING:     /" >&2
10775     ;;
10776 esac
10777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10778 $as_echo_n "checking for $ac_header... " >&6; }
10779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10780   $as_echo_n "(cached) " >&6
10781 else
10782   eval "$as_ac_Header=\$ac_header_preproc"
10783 fi
10784 ac_res=`eval 'as_val=${'$as_ac_Header'}
10785                  $as_echo "$as_val"'`
10786                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10787 $as_echo "$ac_res" >&6; }
10788
10789 fi
10790 as_val=`eval 'as_val=${'$as_ac_Header'}
10791                  $as_echo "$as_val"'`
10792    if test "x$as_val" = x""yes; then
10793   cat >>confdefs.h <<_ACEOF
10794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10795 _ACEOF
10796
10797 else
10798
10799 for ac_header in readline.h
10800 do
10801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 $as_echo_n "checking for $ac_header... " >&6; }
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806   $as_echo_n "(cached) " >&6
10807 fi
10808 ac_res=`eval 'as_val=${'$as_ac_Header'}
10809                  $as_echo "$as_val"'`
10810                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10811 $as_echo "$ac_res" >&6; }
10812 else
10813   # Is the header compilable?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 $as_echo_n "checking $ac_header usability... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 $ac_includes_default
10823 #include <$ac_header>
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833   (eval "$ac_compile") 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } && {
10840          test -z "$ac_c_werror_flag" ||
10841          test ! -s conftest.err
10842        } && test -s conftest.$ac_objext; then
10843   ac_header_compiler=yes
10844 else
10845   $as_echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848         ac_header_compiler=no
10849 fi
10850
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 $as_echo "$ac_header_compiler" >&6; }
10854
10855 # Is the header present?
10856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 $as_echo_n "checking $ac_header presence... " >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 #include <$ac_header>
10865 _ACEOF
10866 if { (ac_try="$ac_cpp conftest.$ac_ext"
10867 case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10874   ac_status=$?
10875   grep -v '^ *+' conftest.er1 >conftest.err
10876   rm -f conftest.er1
10877   cat conftest.err >&5
10878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } >/dev/null && {
10880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10881          test ! -s conftest.err
10882        }; then
10883   ac_header_preproc=yes
10884 else
10885   $as_echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888   ac_header_preproc=no
10889 fi
10890
10891 rm -f conftest.err conftest.$ac_ext
10892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 $as_echo "$ac_header_preproc" >&6; }
10894
10895 # So?  What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897   yes:no: )
10898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902     ac_header_preproc=yes
10903     ;;
10904   no:yes:* )
10905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10908 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10912 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10917     ( cat <<\_ASBOX
10918 ## ---------------------------------------- ##
10919 ## Report this to pgsql-bugs@postgresql.org ##
10920 ## ---------------------------------------- ##
10921 _ASBOX
10922      ) | sed "s/^/$as_me: WARNING:     /" >&2
10923     ;;
10924 esac
10925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 $as_echo_n "checking for $ac_header... " >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928   $as_echo_n "(cached) " >&6
10929 else
10930   eval "$as_ac_Header=\$ac_header_preproc"
10931 fi
10932 ac_res=`eval 'as_val=${'$as_ac_Header'}
10933                  $as_echo "$as_val"'`
10934                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10935 $as_echo "$ac_res" >&6; }
10936
10937 fi
10938 as_val=`eval 'as_val=${'$as_ac_Header'}
10939                  $as_echo "$as_val"'`
10940    if test "x$as_val" = x""yes; then
10941   cat >>confdefs.h <<_ACEOF
10942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943 _ACEOF
10944
10945 else
10946
10947 for ac_header in readline/readline.h
10948 do
10949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10951   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 $as_echo_n "checking for $ac_header... " >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954   $as_echo_n "(cached) " >&6
10955 fi
10956 ac_res=`eval 'as_val=${'$as_ac_Header'}
10957                  $as_echo "$as_val"'`
10958                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10959 $as_echo "$ac_res" >&6; }
10960 else
10961   # Is the header compilable?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10963 $as_echo_n "checking $ac_header usability... " >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 $ac_includes_default
10971 #include <$ac_header>
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10980 $as_echo "$ac_try_echo") >&5
10981   (eval "$ac_compile") 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } && {
10988          test -z "$ac_c_werror_flag" ||
10989          test ! -s conftest.err
10990        } && test -s conftest.$ac_objext; then
10991   ac_header_compiler=yes
10992 else
10993   $as_echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996         ac_header_compiler=no
10997 fi
10998
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11001 $as_echo "$ac_header_compiler" >&6; }
11002
11003 # Is the header present?
11004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11005 $as_echo_n "checking $ac_header presence... " >&6; }
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 #include <$ac_header>
11013 _ACEOF
11014 if { (ac_try="$ac_cpp conftest.$ac_ext"
11015 case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11020 $as_echo "$ac_try_echo") >&5
11021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11022   ac_status=$?
11023   grep -v '^ *+' conftest.er1 >conftest.err
11024   rm -f conftest.er1
11025   cat conftest.err >&5
11026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); } >/dev/null && {
11028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11029          test ! -s conftest.err
11030        }; then
11031   ac_header_preproc=yes
11032 else
11033   $as_echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036   ac_header_preproc=no
11037 fi
11038
11039 rm -f conftest.err conftest.$ac_ext
11040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11041 $as_echo "$ac_header_preproc" >&6; }
11042
11043 # So?  What about this header?
11044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11045   yes:no: )
11046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11050     ac_header_preproc=yes
11051     ;;
11052   no:yes:* )
11053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11056 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11057     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11059     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11060 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11065     ( cat <<\_ASBOX
11066 ## ---------------------------------------- ##
11067 ## Report this to pgsql-bugs@postgresql.org ##
11068 ## ---------------------------------------- ##
11069 _ASBOX
11070      ) | sed "s/^/$as_me: WARNING:     /" >&2
11071     ;;
11072 esac
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 else
11078   eval "$as_ac_Header=\$ac_header_preproc"
11079 fi
11080 ac_res=`eval 'as_val=${'$as_ac_Header'}
11081                  $as_echo "$as_val"'`
11082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11083 $as_echo "$ac_res" >&6; }
11084
11085 fi
11086 as_val=`eval 'as_val=${'$as_ac_Header'}
11087                  $as_echo "$as_val"'`
11088    if test "x$as_val" = x""yes; then
11089   cat >>confdefs.h <<_ACEOF
11090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11091 _ACEOF
11092
11093 else
11094   { { $as_echo "$as_me:$LINENO: error: readline header not found
11095 If you have libedit already installed, see config.log for details on the
11096 failure.  It is possible the compiler isn't looking in the proper directory.
11097 Use --without-readline to disable libedit support." >&5
11098 $as_echo "$as_me: error: readline header not found
11099 If you have libedit already installed, see config.log for details on the
11100 failure.  It is possible the compiler isn't looking in the proper directory.
11101 Use --without-readline to disable libedit support." >&2;}
11102    { (exit 1); exit 1; }; }
11103 fi
11104
11105 done
11106
11107 fi
11108
11109 done
11110
11111 fi
11112
11113 done
11114
11115 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11116 # not be there at all.  Hence, don't complain if not found.  We must check
11117 # though, since in yet other versions it is an independent header.
11118
11119 for ac_header in editline/history.h
11120 do
11121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 $as_echo_n "checking for $ac_header... " >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126   $as_echo_n "(cached) " >&6
11127 fi
11128 ac_res=`eval 'as_val=${'$as_ac_Header'}
11129                  $as_echo "$as_val"'`
11130                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11131 $as_echo "$ac_res" >&6; }
11132 else
11133   # Is the header compilable?
11134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 $as_echo_n "checking $ac_header usability... " >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11152 $as_echo "$ac_try_echo") >&5
11153   (eval "$ac_compile") 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } && {
11160          test -z "$ac_c_werror_flag" ||
11161          test ! -s conftest.err
11162        } && test -s conftest.$ac_objext; then
11163   ac_header_compiler=yes
11164 else
11165   $as_echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168         ac_header_compiler=no
11169 fi
11170
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11173 $as_echo "$ac_header_compiler" >&6; }
11174
11175 # Is the header present?
11176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11177 $as_echo_n "checking $ac_header presence... " >&6; }
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h.  */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h.  */
11184 #include <$ac_header>
11185 _ACEOF
11186 if { (ac_try="$ac_cpp conftest.$ac_ext"
11187 case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } >/dev/null && {
11200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11201          test ! -s conftest.err
11202        }; then
11203   ac_header_preproc=yes
11204 else
11205   $as_echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208   ac_header_preproc=no
11209 fi
11210
11211 rm -f conftest.err conftest.$ac_ext
11212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11213 $as_echo "$ac_header_preproc" >&6; }
11214
11215 # So?  What about this header?
11216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11217   yes:no: )
11218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11222     ac_header_preproc=yes
11223     ;;
11224   no:yes:* )
11225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11228 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11232 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11237     ( cat <<\_ASBOX
11238 ## ---------------------------------------- ##
11239 ## Report this to pgsql-bugs@postgresql.org ##
11240 ## ---------------------------------------- ##
11241 _ASBOX
11242      ) | sed "s/^/$as_me: WARNING:     /" >&2
11243     ;;
11244 esac
11245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 $as_echo_n "checking for $ac_header... " >&6; }
11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248   $as_echo_n "(cached) " >&6
11249 else
11250   eval "$as_ac_Header=\$ac_header_preproc"
11251 fi
11252 ac_res=`eval 'as_val=${'$as_ac_Header'}
11253                  $as_echo "$as_val"'`
11254                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11255 $as_echo "$ac_res" >&6; }
11256
11257 fi
11258 as_val=`eval 'as_val=${'$as_ac_Header'}
11259                  $as_echo "$as_val"'`
11260    if test "x$as_val" = x""yes; then
11261   cat >>confdefs.h <<_ACEOF
11262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263 _ACEOF
11264
11265 else
11266
11267 for ac_header in history.h
11268 do
11269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 $as_echo_n "checking for $ac_header... " >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274   $as_echo_n "(cached) " >&6
11275 fi
11276 ac_res=`eval 'as_val=${'$as_ac_Header'}
11277                  $as_echo "$as_val"'`
11278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11279 $as_echo "$ac_res" >&6; }
11280 else
11281   # Is the header compilable?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283 $as_echo_n "checking $ac_header usability... " >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 $ac_includes_default
11291 #include <$ac_header>
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11300 $as_echo "$ac_try_echo") >&5
11301   (eval "$ac_compile") 2>conftest.er1
11302   ac_status=$?
11303   grep -v '^ *+' conftest.er1 >conftest.err
11304   rm -f conftest.er1
11305   cat conftest.err >&5
11306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } && {
11308          test -z "$ac_c_werror_flag" ||
11309          test ! -s conftest.err
11310        } && test -s conftest.$ac_objext; then
11311   ac_header_compiler=yes
11312 else
11313   $as_echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316         ac_header_compiler=no
11317 fi
11318
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321 $as_echo "$ac_header_compiler" >&6; }
11322
11323 # Is the header present?
11324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325 $as_echo_n "checking $ac_header presence... " >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 #include <$ac_header>
11333 _ACEOF
11334 if { (ac_try="$ac_cpp conftest.$ac_ext"
11335 case "(($ac_try" in
11336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337   *) ac_try_echo=$ac_try;;
11338 esac
11339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11340 $as_echo "$ac_try_echo") >&5
11341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } >/dev/null && {
11348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11349          test ! -s conftest.err
11350        }; then
11351   ac_header_preproc=yes
11352 else
11353   $as_echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356   ac_header_preproc=no
11357 fi
11358
11359 rm -f conftest.err conftest.$ac_ext
11360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 $as_echo "$ac_header_preproc" >&6; }
11362
11363 # So?  What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365   yes:no: )
11366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370     ac_header_preproc=yes
11371     ;;
11372   no:yes:* )
11373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11376 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11380 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385     ( cat <<\_ASBOX
11386 ## ---------------------------------------- ##
11387 ## Report this to pgsql-bugs@postgresql.org ##
11388 ## ---------------------------------------- ##
11389 _ASBOX
11390      ) | sed "s/^/$as_me: WARNING:     /" >&2
11391     ;;
11392 esac
11393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 $as_echo_n "checking for $ac_header... " >&6; }
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396   $as_echo_n "(cached) " >&6
11397 else
11398   eval "$as_ac_Header=\$ac_header_preproc"
11399 fi
11400 ac_res=`eval 'as_val=${'$as_ac_Header'}
11401                  $as_echo "$as_val"'`
11402                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11403 $as_echo "$ac_res" >&6; }
11404
11405 fi
11406 as_val=`eval 'as_val=${'$as_ac_Header'}
11407                  $as_echo "$as_val"'`
11408    if test "x$as_val" = x""yes; then
11409   cat >>confdefs.h <<_ACEOF
11410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 _ACEOF
11412
11413 else
11414
11415 for ac_header in readline/history.h
11416 do
11417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11420 $as_echo_n "checking for $ac_header... " >&6; }
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422   $as_echo_n "(cached) " >&6
11423 fi
11424 ac_res=`eval 'as_val=${'$as_ac_Header'}
11425                  $as_echo "$as_val"'`
11426                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11427 $as_echo "$ac_res" >&6; }
11428 else
11429   # Is the header compilable?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11431 $as_echo_n "checking $ac_header usability... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 $ac_includes_default
11439 #include <$ac_header>
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (ac_try="$ac_compile"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449   (eval "$ac_compile") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } && {
11456          test -z "$ac_c_werror_flag" ||
11457          test ! -s conftest.err
11458        } && test -s conftest.$ac_objext; then
11459   ac_header_compiler=yes
11460 else
11461   $as_echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464         ac_header_compiler=no
11465 fi
11466
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 $as_echo "$ac_header_compiler" >&6; }
11470
11471 # Is the header present?
11472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473 $as_echo_n "checking $ac_header presence... " >&6; }
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 #include <$ac_header>
11481 _ACEOF
11482 if { (ac_try="$ac_cpp conftest.$ac_ext"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11488 $as_echo "$ac_try_echo") >&5
11489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } >/dev/null && {
11496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11497          test ! -s conftest.err
11498        }; then
11499   ac_header_preproc=yes
11500 else
11501   $as_echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504   ac_header_preproc=no
11505 fi
11506
11507 rm -f conftest.err conftest.$ac_ext
11508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509 $as_echo "$ac_header_preproc" >&6; }
11510
11511 # So?  What about this header?
11512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11513   yes:no: )
11514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518     ac_header_preproc=yes
11519     ;;
11520   no:yes:* )
11521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11524 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11528 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11533     ( cat <<\_ASBOX
11534 ## ---------------------------------------- ##
11535 ## Report this to pgsql-bugs@postgresql.org ##
11536 ## ---------------------------------------- ##
11537 _ASBOX
11538      ) | sed "s/^/$as_me: WARNING:     /" >&2
11539     ;;
11540 esac
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 else
11546   eval "$as_ac_Header=\$ac_header_preproc"
11547 fi
11548 ac_res=`eval 'as_val=${'$as_ac_Header'}
11549                  $as_echo "$as_val"'`
11550                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11551 $as_echo "$ac_res" >&6; }
11552
11553 fi
11554 as_val=`eval 'as_val=${'$as_ac_Header'}
11555                  $as_echo "$as_val"'`
11556    if test "x$as_val" = x""yes; then
11557   cat >>confdefs.h <<_ACEOF
11558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11559 _ACEOF
11560
11561 fi
11562
11563 done
11564
11565 fi
11566
11567 done
11568
11569 fi
11570
11571 done
11572
11573 fi
11574
11575 if test "$with_zlib" = yes; then
11576   if test "${ac_cv_header_zlib_h+set}" = set; then
11577   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11578 $as_echo_n "checking for zlib.h... " >&6; }
11579 if test "${ac_cv_header_zlib_h+set}" = set; then
11580   $as_echo_n "(cached) " >&6
11581 fi
11582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11583 $as_echo "$ac_cv_header_zlib_h" >&6; }
11584 else
11585   # Is the header compilable?
11586 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11587 $as_echo_n "checking zlib.h usability... " >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 $ac_includes_default
11595 #include <zlib.h>
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11604 $as_echo "$ac_try_echo") >&5
11605   (eval "$ac_compile") 2>conftest.er1
11606   ac_status=$?
11607   grep -v '^ *+' conftest.er1 >conftest.err
11608   rm -f conftest.er1
11609   cat conftest.err >&5
11610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } && {
11612          test -z "$ac_c_werror_flag" ||
11613          test ! -s conftest.err
11614        } && test -s conftest.$ac_objext; then
11615   ac_header_compiler=yes
11616 else
11617   $as_echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620         ac_header_compiler=no
11621 fi
11622
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11625 $as_echo "$ac_header_compiler" >&6; }
11626
11627 # Is the header present?
11628 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11629 $as_echo_n "checking zlib.h presence... " >&6; }
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636 #include <zlib.h>
11637 _ACEOF
11638 if { (ac_try="$ac_cpp conftest.$ac_ext"
11639 case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11644 $as_echo "$ac_try_echo") >&5
11645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11646   ac_status=$?
11647   grep -v '^ *+' conftest.er1 >conftest.err
11648   rm -f conftest.er1
11649   cat conftest.err >&5
11650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); } >/dev/null && {
11652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11653          test ! -s conftest.err
11654        }; then
11655   ac_header_preproc=yes
11656 else
11657   $as_echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660   ac_header_preproc=no
11661 fi
11662
11663 rm -f conftest.err conftest.$ac_ext
11664 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11665 $as_echo "$ac_header_preproc" >&6; }
11666
11667 # So?  What about this header?
11668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11669   yes:no: )
11670     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11671 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11672     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11673 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11674     ac_header_preproc=yes
11675     ;;
11676   no:yes:* )
11677     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11678 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11679     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11680 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11681     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11682 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11683     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11684 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11685     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11686 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11687     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11688 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11689     ( cat <<\_ASBOX
11690 ## ---------------------------------------- ##
11691 ## Report this to pgsql-bugs@postgresql.org ##
11692 ## ---------------------------------------- ##
11693 _ASBOX
11694      ) | sed "s/^/$as_me: WARNING:     /" >&2
11695     ;;
11696 esac
11697 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11698 $as_echo_n "checking for zlib.h... " >&6; }
11699 if test "${ac_cv_header_zlib_h+set}" = set; then
11700   $as_echo_n "(cached) " >&6
11701 else
11702   ac_cv_header_zlib_h=$ac_header_preproc
11703 fi
11704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11705 $as_echo "$ac_cv_header_zlib_h" >&6; }
11706
11707 fi
11708 if test "x$ac_cv_header_zlib_h" = x""yes; then
11709   :
11710 else
11711   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11712 If you have zlib already installed, see config.log for details on the
11713 failure.  It is possible the compiler isn't looking in the proper directory.
11714 Use --without-zlib to disable zlib support." >&5
11715 $as_echo "$as_me: error: zlib header not found
11716 If you have zlib already installed, see config.log for details on the
11717 failure.  It is possible the compiler isn't looking in the proper directory.
11718 Use --without-zlib to disable zlib support." >&2;}
11719    { (exit 1); exit 1; }; }
11720 fi
11721
11722
11723 fi
11724
11725 if test "$with_gssapi" = yes ; then
11726
11727 for ac_header in gssapi/gssapi.h
11728 do
11729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11732 $as_echo_n "checking for $ac_header... " >&6; }
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734   $as_echo_n "(cached) " >&6
11735 fi
11736 ac_res=`eval 'as_val=${'$as_ac_Header'}
11737                  $as_echo "$as_val"'`
11738                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11739 $as_echo "$ac_res" >&6; }
11740 else
11741   # Is the header compilable?
11742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11743 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
11751 #include <$ac_header>
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (ac_try="$ac_compile"
11755 case "(($ac_try" in
11756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757   *) ac_try_echo=$ac_try;;
11758 esac
11759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11760 $as_echo "$ac_try_echo") >&5
11761   (eval "$ac_compile") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } && {
11768          test -z "$ac_c_werror_flag" ||
11769          test ! -s conftest.err
11770        } && test -s conftest.$ac_objext; then
11771   ac_header_compiler=yes
11772 else
11773   $as_echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776         ac_header_compiler=no
11777 fi
11778
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 $as_echo "$ac_header_compiler" >&6; }
11782
11783 # Is the header present?
11784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785 $as_echo_n "checking $ac_header presence... " >&6; }
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 #include <$ac_header>
11793 _ACEOF
11794 if { (ac_try="$ac_cpp conftest.$ac_ext"
11795 case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11800 $as_echo "$ac_try_echo") >&5
11801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11802   ac_status=$?
11803   grep -v '^ *+' conftest.er1 >conftest.err
11804   rm -f conftest.er1
11805   cat conftest.err >&5
11806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } >/dev/null && {
11808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11809          test ! -s conftest.err
11810        }; then
11811   ac_header_preproc=yes
11812 else
11813   $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816   ac_header_preproc=no
11817 fi
11818
11819 rm -f conftest.err conftest.$ac_ext
11820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 $as_echo "$ac_header_preproc" >&6; }
11822
11823 # So?  What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825   yes:no: )
11826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830     ac_header_preproc=yes
11831     ;;
11832   no:yes:* )
11833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11836 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11840 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845     ( cat <<\_ASBOX
11846 ## ---------------------------------------- ##
11847 ## Report this to pgsql-bugs@postgresql.org ##
11848 ## ---------------------------------------- ##
11849 _ASBOX
11850      ) | sed "s/^/$as_me: WARNING:     /" >&2
11851     ;;
11852 esac
11853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11854 $as_echo_n "checking for $ac_header... " >&6; }
11855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856   $as_echo_n "(cached) " >&6
11857 else
11858   eval "$as_ac_Header=\$ac_header_preproc"
11859 fi
11860 ac_res=`eval 'as_val=${'$as_ac_Header'}
11861                  $as_echo "$as_val"'`
11862                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11863 $as_echo "$ac_res" >&6; }
11864
11865 fi
11866 as_val=`eval 'as_val=${'$as_ac_Header'}
11867                  $as_echo "$as_val"'`
11868    if test "x$as_val" = x""yes; then
11869   cat >>confdefs.h <<_ACEOF
11870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11871 _ACEOF
11872
11873 else
11874
11875 for ac_header in gssapi.h
11876 do
11877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11879   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 $as_echo_n "checking for $ac_header... " >&6; }
11881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11882   $as_echo_n "(cached) " >&6
11883 fi
11884 ac_res=`eval 'as_val=${'$as_ac_Header'}
11885                  $as_echo "$as_val"'`
11886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11887 $as_echo "$ac_res" >&6; }
11888 else
11889   # Is the header compilable?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11891 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
11899 #include <$ac_header>
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11908 $as_echo "$ac_try_echo") >&5
11909   (eval "$ac_compile") 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } && {
11916          test -z "$ac_c_werror_flag" ||
11917          test ! -s conftest.err
11918        } && test -s conftest.$ac_objext; then
11919   ac_header_compiler=yes
11920 else
11921   $as_echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924         ac_header_compiler=no
11925 fi
11926
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11929 $as_echo "$ac_header_compiler" >&6; }
11930
11931 # Is the header present?
11932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11933 $as_echo_n "checking $ac_header presence... " >&6; }
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940 #include <$ac_header>
11941 _ACEOF
11942 if { (ac_try="$ac_cpp conftest.$ac_ext"
11943 case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11948 $as_echo "$ac_try_echo") >&5
11949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } >/dev/null && {
11956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11957          test ! -s conftest.err
11958        }; then
11959   ac_header_preproc=yes
11960 else
11961   $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964   ac_header_preproc=no
11965 fi
11966
11967 rm -f conftest.err conftest.$ac_ext
11968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11969 $as_echo "$ac_header_preproc" >&6; }
11970
11971 # So?  What about this header?
11972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11973   yes:no: )
11974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11978     ac_header_preproc=yes
11979     ;;
11980   no:yes:* )
11981     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11984 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11987     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11988 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11989     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11991     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11993     ( cat <<\_ASBOX
11994 ## ---------------------------------------- ##
11995 ## Report this to pgsql-bugs@postgresql.org ##
11996 ## ---------------------------------------- ##
11997 _ASBOX
11998      ) | sed "s/^/$as_me: WARNING:     /" >&2
11999     ;;
12000 esac
12001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12002 $as_echo_n "checking for $ac_header... " >&6; }
12003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004   $as_echo_n "(cached) " >&6
12005 else
12006   eval "$as_ac_Header=\$ac_header_preproc"
12007 fi
12008 ac_res=`eval 'as_val=${'$as_ac_Header'}
12009                  $as_echo "$as_val"'`
12010                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12011 $as_echo "$ac_res" >&6; }
12012
12013 fi
12014 as_val=`eval 'as_val=${'$as_ac_Header'}
12015                  $as_echo "$as_val"'`
12016    if test "x$as_val" = x""yes; then
12017   cat >>confdefs.h <<_ACEOF
12018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12019 _ACEOF
12020
12021 else
12022   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12023 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12024    { (exit 1); exit 1; }; }
12025 fi
12026
12027 done
12028
12029 fi
12030
12031 done
12032
12033 fi
12034
12035 if test "$with_krb5" = yes ; then
12036   if test "${ac_cv_header_krb5_h+set}" = set; then
12037   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12038 $as_echo_n "checking for krb5.h... " >&6; }
12039 if test "${ac_cv_header_krb5_h+set}" = set; then
12040   $as_echo_n "(cached) " >&6
12041 fi
12042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12043 $as_echo "$ac_cv_header_krb5_h" >&6; }
12044 else
12045   # Is the header compilable?
12046 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12047 $as_echo_n "checking krb5.h usability... " >&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 $ac_includes_default
12055 #include <krb5.h>
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (ac_try="$ac_compile"
12059 case "(($ac_try" in
12060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061   *) ac_try_echo=$ac_try;;
12062 esac
12063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12064 $as_echo "$ac_try_echo") >&5
12065   (eval "$ac_compile") 2>conftest.er1
12066   ac_status=$?
12067   grep -v '^ *+' conftest.er1 >conftest.err
12068   rm -f conftest.er1
12069   cat conftest.err >&5
12070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } && {
12072          test -z "$ac_c_werror_flag" ||
12073          test ! -s conftest.err
12074        } && test -s conftest.$ac_objext; then
12075   ac_header_compiler=yes
12076 else
12077   $as_echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080         ac_header_compiler=no
12081 fi
12082
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12085 $as_echo "$ac_header_compiler" >&6; }
12086
12087 # Is the header present?
12088 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12089 $as_echo_n "checking krb5.h presence... " >&6; }
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096 #include <krb5.h>
12097 _ACEOF
12098 if { (ac_try="$ac_cpp conftest.$ac_ext"
12099 case "(($ac_try" in
12100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101   *) ac_try_echo=$ac_try;;
12102 esac
12103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12104 $as_echo "$ac_try_echo") >&5
12105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } >/dev/null && {
12112          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12113          test ! -s conftest.err
12114        }; then
12115   ac_header_preproc=yes
12116 else
12117   $as_echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120   ac_header_preproc=no
12121 fi
12122
12123 rm -f conftest.err conftest.$ac_ext
12124 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12125 $as_echo "$ac_header_preproc" >&6; }
12126
12127 # So?  What about this header?
12128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12129   yes:no: )
12130     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12131 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12132     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12133 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12134     ac_header_preproc=yes
12135     ;;
12136   no:yes:* )
12137     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12138 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12139     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12140 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12141     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12142 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12143     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12144 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12145     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12146 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12147     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12148 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12149     ( cat <<\_ASBOX
12150 ## ---------------------------------------- ##
12151 ## Report this to pgsql-bugs@postgresql.org ##
12152 ## ---------------------------------------- ##
12153 _ASBOX
12154      ) | sed "s/^/$as_me: WARNING:     /" >&2
12155     ;;
12156 esac
12157 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12158 $as_echo_n "checking for krb5.h... " >&6; }
12159 if test "${ac_cv_header_krb5_h+set}" = set; then
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_cv_header_krb5_h=$ac_header_preproc
12163 fi
12164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12165 $as_echo "$ac_cv_header_krb5_h" >&6; }
12166
12167 fi
12168 if test "x$ac_cv_header_krb5_h" = x""yes; then
12169   :
12170 else
12171   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12172 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12173    { (exit 1); exit 1; }; }
12174 fi
12175
12176
12177 fi
12178
12179 if test "$with_openssl" = yes ; then
12180   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12181   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12182 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12183 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12184   $as_echo_n "(cached) " >&6
12185 fi
12186 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12187 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12188 else
12189   # Is the header compilable?
12190 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12191 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198 $ac_includes_default
12199 #include <openssl/ssl.h>
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208 $as_echo "$ac_try_echo") >&5
12209   (eval "$ac_compile") 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } && {
12216          test -z "$ac_c_werror_flag" ||
12217          test ! -s conftest.err
12218        } && test -s conftest.$ac_objext; then
12219   ac_header_compiler=yes
12220 else
12221   $as_echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224         ac_header_compiler=no
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 $as_echo "$ac_header_compiler" >&6; }
12230
12231 # Is the header present?
12232 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12233 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240 #include <openssl/ssl.h>
12241 _ACEOF
12242 if { (ac_try="$ac_cpp conftest.$ac_ext"
12243 case "(($ac_try" in
12244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245   *) ac_try_echo=$ac_try;;
12246 esac
12247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12248 $as_echo "$ac_try_echo") >&5
12249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } >/dev/null && {
12256          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12257          test ! -s conftest.err
12258        }; then
12259   ac_header_preproc=yes
12260 else
12261   $as_echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12263
12264   ac_header_preproc=no
12265 fi
12266
12267 rm -f conftest.err conftest.$ac_ext
12268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269 $as_echo "$ac_header_preproc" >&6; }
12270
12271 # So?  What about this header?
12272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12273   yes:no: )
12274     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12275 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12277 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12278     ac_header_preproc=yes
12279     ;;
12280   no:yes:* )
12281     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12282 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12283     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12284 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12285     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12286 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12287     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12288 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12289     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12290 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12291     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12292 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12293     ( cat <<\_ASBOX
12294 ## ---------------------------------------- ##
12295 ## Report this to pgsql-bugs@postgresql.org ##
12296 ## ---------------------------------------- ##
12297 _ASBOX
12298      ) | sed "s/^/$as_me: WARNING:     /" >&2
12299     ;;
12300 esac
12301 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12302 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12303 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12304   $as_echo_n "(cached) " >&6
12305 else
12306   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12307 fi
12308 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12309 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12310
12311 fi
12312 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12313   :
12314 else
12315   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12316 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12317    { (exit 1); exit 1; }; }
12318 fi
12319
12320
12321   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12322   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12323 $as_echo_n "checking for openssl/err.h... " >&6; }
12324 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12325   $as_echo_n "(cached) " >&6
12326 fi
12327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12328 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12329 else
12330   # Is the header compilable?
12331 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12332 $as_echo_n "checking openssl/err.h usability... " >&6; }
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 $ac_includes_default
12340 #include <openssl/err.h>
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350   (eval "$ac_compile") 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } && {
12357          test -z "$ac_c_werror_flag" ||
12358          test ! -s conftest.err
12359        } && test -s conftest.$ac_objext; then
12360   ac_header_compiler=yes
12361 else
12362   $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365         ac_header_compiler=no
12366 fi
12367
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12370 $as_echo "$ac_header_compiler" >&6; }
12371
12372 # Is the header present?
12373 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12374 $as_echo_n "checking openssl/err.h presence... " >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381 #include <openssl/err.h>
12382 _ACEOF
12383 if { (ac_try="$ac_cpp conftest.$ac_ext"
12384 case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12391   ac_status=$?
12392   grep -v '^ *+' conftest.er1 >conftest.err
12393   rm -f conftest.er1
12394   cat conftest.err >&5
12395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } >/dev/null && {
12397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12398          test ! -s conftest.err
12399        }; then
12400   ac_header_preproc=yes
12401 else
12402   $as_echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405   ac_header_preproc=no
12406 fi
12407
12408 rm -f conftest.err conftest.$ac_ext
12409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12410 $as_echo "$ac_header_preproc" >&6; }
12411
12412 # So?  What about this header?
12413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12414   yes:no: )
12415     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12416 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12417     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12418 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12419     ac_header_preproc=yes
12420     ;;
12421   no:yes:* )
12422     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12423 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12424     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12425 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12426     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12427 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12428     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12429 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12430     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12431 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12432     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12433 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12434     ( cat <<\_ASBOX
12435 ## ---------------------------------------- ##
12436 ## Report this to pgsql-bugs@postgresql.org ##
12437 ## ---------------------------------------- ##
12438 _ASBOX
12439      ) | sed "s/^/$as_me: WARNING:     /" >&2
12440     ;;
12441 esac
12442 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12443 $as_echo_n "checking for openssl/err.h... " >&6; }
12444 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12445   $as_echo_n "(cached) " >&6
12446 else
12447   ac_cv_header_openssl_err_h=$ac_header_preproc
12448 fi
12449 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12450 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12451
12452 fi
12453 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12454   :
12455 else
12456   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12457 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12458    { (exit 1); exit 1; }; }
12459 fi
12460
12461
12462
12463 for ac_func in ERR_set_mark
12464 do
12465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12466 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12467 $as_echo_n "checking for $ac_func... " >&6; }
12468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12469   $as_echo_n "(cached) " >&6
12470 else
12471   cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h.  */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h.  */
12477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12479 #define $ac_func innocuous_$ac_func
12480
12481 /* System header to define __stub macros and hopefully few prototypes,
12482     which can conflict with char $ac_func (); below.
12483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484     <limits.h> exists even on freestanding compilers.  */
12485
12486 #ifdef __STDC__
12487 # include <limits.h>
12488 #else
12489 # include <assert.h>
12490 #endif
12491
12492 #undef $ac_func
12493
12494 /* Override any GCC internal prototype to avoid an error.
12495    Use char because int might match the return type of a GCC
12496    builtin and then its argument prototype would still apply.  */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char $ac_func ();
12501 /* The GNU C library defines this for functions which it implements
12502     to always fail with ENOSYS.  Some functions are actually named
12503     something starting with __ and the normal name is an alias.  */
12504 #if defined __stub_$ac_func || defined __stub___$ac_func
12505 choke me
12506 #endif
12507
12508 int
12509 main ()
12510 {
12511 return $ac_func ();
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12523 $as_echo "$ac_try_echo") >&5
12524   (eval "$ac_link") 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } && {
12531          test -z "$ac_c_werror_flag" ||
12532          test ! -s conftest.err
12533        } && test -s conftest$ac_exeext && {
12534          test "$cross_compiling" = yes ||
12535          $as_test_x conftest$ac_exeext
12536        }; then
12537   eval "$as_ac_var=yes"
12538 else
12539   $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542         eval "$as_ac_var=no"
12543 fi
12544
12545 rm -rf conftest.dSYM
12546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12547       conftest$ac_exeext conftest.$ac_ext
12548 fi
12549 ac_res=`eval 'as_val=${'$as_ac_var'}
12550                  $as_echo "$as_val"'`
12551                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12552 $as_echo "$ac_res" >&6; }
12553 as_val=`eval 'as_val=${'$as_ac_var'}
12554                  $as_echo "$as_val"'`
12555    if test "x$as_val" = x""yes; then
12556   cat >>confdefs.h <<_ACEOF
12557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 _ACEOF
12559
12560 fi
12561 done
12562
12563 fi
12564
12565 if test "$with_pam" = yes ; then
12566
12567 for ac_header in security/pam_appl.h
12568 do
12569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12571   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12572 $as_echo_n "checking for $ac_header... " >&6; }
12573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12574   $as_echo_n "(cached) " >&6
12575 fi
12576 ac_res=`eval 'as_val=${'$as_ac_Header'}
12577                  $as_echo "$as_val"'`
12578                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12579 $as_echo "$ac_res" >&6; }
12580 else
12581   # Is the header compilable?
12582 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12583 $as_echo_n "checking $ac_header usability... " >&6; }
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 $ac_includes_default
12591 #include <$ac_header>
12592 _ACEOF
12593 rm -f conftest.$ac_objext
12594 if { (ac_try="$ac_compile"
12595 case "(($ac_try" in
12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597   *) ac_try_echo=$ac_try;;
12598 esac
12599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12600 $as_echo "$ac_try_echo") >&5
12601   (eval "$ac_compile") 2>conftest.er1
12602   ac_status=$?
12603   grep -v '^ *+' conftest.er1 >conftest.err
12604   rm -f conftest.er1
12605   cat conftest.err >&5
12606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); } && {
12608          test -z "$ac_c_werror_flag" ||
12609          test ! -s conftest.err
12610        } && test -s conftest.$ac_objext; then
12611   ac_header_compiler=yes
12612 else
12613   $as_echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616         ac_header_compiler=no
12617 fi
12618
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12621 $as_echo "$ac_header_compiler" >&6; }
12622
12623 # Is the header present?
12624 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12625 $as_echo_n "checking $ac_header presence... " >&6; }
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h.  */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h.  */
12632 #include <$ac_header>
12633 _ACEOF
12634 if { (ac_try="$ac_cpp conftest.$ac_ext"
12635 case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640 $as_echo "$ac_try_echo") >&5
12641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } >/dev/null && {
12648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12649          test ! -s conftest.err
12650        }; then
12651   ac_header_preproc=yes
12652 else
12653   $as_echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656   ac_header_preproc=no
12657 fi
12658
12659 rm -f conftest.err conftest.$ac_ext
12660 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12661 $as_echo "$ac_header_preproc" >&6; }
12662
12663 # So?  What about this header?
12664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12665   yes:no: )
12666     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12667 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12670     ac_header_preproc=yes
12671     ;;
12672   no:yes:* )
12673     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12674 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12675     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12676 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12677     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12678 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12679     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12680 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12681     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12683     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12684 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12685     ( cat <<\_ASBOX
12686 ## ---------------------------------------- ##
12687 ## Report this to pgsql-bugs@postgresql.org ##
12688 ## ---------------------------------------- ##
12689 _ASBOX
12690      ) | sed "s/^/$as_me: WARNING:     /" >&2
12691     ;;
12692 esac
12693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12694 $as_echo_n "checking for $ac_header... " >&6; }
12695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12696   $as_echo_n "(cached) " >&6
12697 else
12698   eval "$as_ac_Header=\$ac_header_preproc"
12699 fi
12700 ac_res=`eval 'as_val=${'$as_ac_Header'}
12701                  $as_echo "$as_val"'`
12702                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12703 $as_echo "$ac_res" >&6; }
12704
12705 fi
12706 as_val=`eval 'as_val=${'$as_ac_Header'}
12707                  $as_echo "$as_val"'`
12708    if test "x$as_val" = x""yes; then
12709   cat >>confdefs.h <<_ACEOF
12710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12711 _ACEOF
12712
12713 else
12714
12715 for ac_header in pam/pam_appl.h
12716 do
12717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12719   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 $as_echo_n "checking for $ac_header... " >&6; }
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722   $as_echo_n "(cached) " >&6
12723 fi
12724 ac_res=`eval 'as_val=${'$as_ac_Header'}
12725                  $as_echo "$as_val"'`
12726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12727 $as_echo "$ac_res" >&6; }
12728 else
12729   # Is the header compilable?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12731 $as_echo_n "checking $ac_header usability... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738 $ac_includes_default
12739 #include <$ac_header>
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (ac_try="$ac_compile"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12748 $as_echo "$ac_try_echo") >&5
12749   (eval "$ac_compile") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } && {
12756          test -z "$ac_c_werror_flag" ||
12757          test ! -s conftest.err
12758        } && test -s conftest.$ac_objext; then
12759   ac_header_compiler=yes
12760 else
12761   $as_echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764         ac_header_compiler=no
12765 fi
12766
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12769 $as_echo "$ac_header_compiler" >&6; }
12770
12771 # Is the header present?
12772 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12773 $as_echo_n "checking $ac_header presence... " >&6; }
12774 cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h.  */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h.  */
12780 #include <$ac_header>
12781 _ACEOF
12782 if { (ac_try="$ac_cpp conftest.$ac_ext"
12783 case "(($ac_try" in
12784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785   *) ac_try_echo=$ac_try;;
12786 esac
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12790   ac_status=$?
12791   grep -v '^ *+' conftest.er1 >conftest.err
12792   rm -f conftest.er1
12793   cat conftest.err >&5
12794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } >/dev/null && {
12796          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12797          test ! -s conftest.err
12798        }; then
12799   ac_header_preproc=yes
12800 else
12801   $as_echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804   ac_header_preproc=no
12805 fi
12806
12807 rm -f conftest.err conftest.$ac_ext
12808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12809 $as_echo "$ac_header_preproc" >&6; }
12810
12811 # So?  What about this header?
12812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12813   yes:no: )
12814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12815 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12818     ac_header_preproc=yes
12819     ;;
12820   no:yes:* )
12821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12822 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12824 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12826 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12828 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12832 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12833     ( cat <<\_ASBOX
12834 ## ---------------------------------------- ##
12835 ## Report this to pgsql-bugs@postgresql.org ##
12836 ## ---------------------------------------- ##
12837 _ASBOX
12838      ) | sed "s/^/$as_me: WARNING:     /" >&2
12839     ;;
12840 esac
12841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12842 $as_echo_n "checking for $ac_header... " >&6; }
12843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12844   $as_echo_n "(cached) " >&6
12845 else
12846   eval "$as_ac_Header=\$ac_header_preproc"
12847 fi
12848 ac_res=`eval 'as_val=${'$as_ac_Header'}
12849                  $as_echo "$as_val"'`
12850                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12851 $as_echo "$ac_res" >&6; }
12852
12853 fi
12854 as_val=`eval 'as_val=${'$as_ac_Header'}
12855                  $as_echo "$as_val"'`
12856    if test "x$as_val" = x""yes; then
12857   cat >>confdefs.h <<_ACEOF
12858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12859 _ACEOF
12860
12861 else
12862   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12863 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12864    { (exit 1); exit 1; }; }
12865 fi
12866
12867 done
12868
12869 fi
12870
12871 done
12872
12873 fi
12874
12875 if test "$with_libxml" = yes ; then
12876   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12877   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12878 $as_echo_n "checking for libxml/parser.h... " >&6; }
12879 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12880   $as_echo_n "(cached) " >&6
12881 fi
12882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12883 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12884 else
12885   # Is the header compilable?
12886 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12887 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894 $ac_includes_default
12895 #include <libxml/parser.h>
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (ac_try="$ac_compile"
12899 case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12904 $as_echo "$ac_try_echo") >&5
12905   (eval "$ac_compile") 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } && {
12912          test -z "$ac_c_werror_flag" ||
12913          test ! -s conftest.err
12914        } && test -s conftest.$ac_objext; then
12915   ac_header_compiler=yes
12916 else
12917   $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920         ac_header_compiler=no
12921 fi
12922
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 $as_echo "$ac_header_compiler" >&6; }
12926
12927 # Is the header present?
12928 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12929 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 #include <libxml/parser.h>
12937 _ACEOF
12938 if { (ac_try="$ac_cpp conftest.$ac_ext"
12939 case "(($ac_try" in
12940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941   *) ac_try_echo=$ac_try;;
12942 esac
12943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12944 $as_echo "$ac_try_echo") >&5
12945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12946   ac_status=$?
12947   grep -v '^ *+' conftest.er1 >conftest.err
12948   rm -f conftest.er1
12949   cat conftest.err >&5
12950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } >/dev/null && {
12952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12953          test ! -s conftest.err
12954        }; then
12955   ac_header_preproc=yes
12956 else
12957   $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960   ac_header_preproc=no
12961 fi
12962
12963 rm -f conftest.err conftest.$ac_ext
12964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 $as_echo "$ac_header_preproc" >&6; }
12966
12967 # So?  What about this header?
12968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12969   yes:no: )
12970     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12971 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12973 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12974     ac_header_preproc=yes
12975     ;;
12976   no:yes:* )
12977     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12978 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12979     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
12980 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
12981     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12982 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12983     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
12984 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12985     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12986 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12987     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12988 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12989     ( cat <<\_ASBOX
12990 ## ---------------------------------------- ##
12991 ## Report this to pgsql-bugs@postgresql.org ##
12992 ## ---------------------------------------- ##
12993 _ASBOX
12994      ) | sed "s/^/$as_me: WARNING:     /" >&2
12995     ;;
12996 esac
12997 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12998 $as_echo_n "checking for libxml/parser.h... " >&6; }
12999 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13000   $as_echo_n "(cached) " >&6
13001 else
13002   ac_cv_header_libxml_parser_h=$ac_header_preproc
13003 fi
13004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13005 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13006
13007 fi
13008 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13009   :
13010 else
13011   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13012 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13013    { (exit 1); exit 1; }; }
13014 fi
13015
13016
13017 fi
13018
13019 if test "$with_libxslt" = yes ; then
13020   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13021   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13022 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13023 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13024   $as_echo_n "(cached) " >&6
13025 fi
13026 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13027 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13028 else
13029   # Is the header compilable?
13030 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13031 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038 $ac_includes_default
13039 #include <libxslt/xslt.h>
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049   (eval "$ac_compile") 2>conftest.er1
13050   ac_status=$?
13051   grep -v '^ *+' conftest.er1 >conftest.err
13052   rm -f conftest.er1
13053   cat conftest.err >&5
13054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); } && {
13056          test -z "$ac_c_werror_flag" ||
13057          test ! -s conftest.err
13058        } && test -s conftest.$ac_objext; then
13059   ac_header_compiler=yes
13060 else
13061   $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064         ac_header_compiler=no
13065 fi
13066
13067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13069 $as_echo "$ac_header_compiler" >&6; }
13070
13071 # Is the header present?
13072 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13073 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h.  */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h.  */
13080 #include <libxslt/xslt.h>
13081 _ACEOF
13082 if { (ac_try="$ac_cpp conftest.$ac_ext"
13083 case "(($ac_try" in
13084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085   *) ac_try_echo=$ac_try;;
13086 esac
13087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13088 $as_echo "$ac_try_echo") >&5
13089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13090   ac_status=$?
13091   grep -v '^ *+' conftest.er1 >conftest.err
13092   rm -f conftest.er1
13093   cat conftest.err >&5
13094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); } >/dev/null && {
13096          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13097          test ! -s conftest.err
13098        }; then
13099   ac_header_preproc=yes
13100 else
13101   $as_echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13103
13104   ac_header_preproc=no
13105 fi
13106
13107 rm -f conftest.err conftest.$ac_ext
13108 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13109 $as_echo "$ac_header_preproc" >&6; }
13110
13111 # So?  What about this header?
13112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13113   yes:no: )
13114     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13115 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13116     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13117 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13118     ac_header_preproc=yes
13119     ;;
13120   no:yes:* )
13121     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13122 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13123     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13124 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13125     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13126 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13127     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13128 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13129     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13130 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13131     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13132 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13133     ( cat <<\_ASBOX
13134 ## ---------------------------------------- ##
13135 ## Report this to pgsql-bugs@postgresql.org ##
13136 ## ---------------------------------------- ##
13137 _ASBOX
13138      ) | sed "s/^/$as_me: WARNING:     /" >&2
13139     ;;
13140 esac
13141 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13142 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13143 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13144   $as_echo_n "(cached) " >&6
13145 else
13146   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13147 fi
13148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13149 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13150
13151 fi
13152 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13153   :
13154 else
13155   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13156 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13157    { (exit 1); exit 1; }; }
13158 fi
13159
13160
13161 fi
13162
13163 if test "$with_ldap" = yes ; then
13164   if test "$PORTNAME" != "win32"; then
13165
13166 for ac_header in ldap.h
13167 do
13168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13170   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13171 $as_echo_n "checking for $ac_header... " >&6; }
13172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13173   $as_echo_n "(cached) " >&6
13174 fi
13175 ac_res=`eval 'as_val=${'$as_ac_Header'}
13176                  $as_echo "$as_val"'`
13177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13178 $as_echo "$ac_res" >&6; }
13179 else
13180   # Is the header compilable?
13181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13182 $as_echo_n "checking $ac_header usability... " >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 $ac_includes_default
13190 #include <$ac_header>
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196   *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200   (eval "$ac_compile") 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } && {
13207          test -z "$ac_c_werror_flag" ||
13208          test ! -s conftest.err
13209        } && test -s conftest.$ac_objext; then
13210   ac_header_compiler=yes
13211 else
13212   $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215         ac_header_compiler=no
13216 fi
13217
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13220 $as_echo "$ac_header_compiler" >&6; }
13221
13222 # Is the header present?
13223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13224 $as_echo_n "checking $ac_header presence... " >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231 #include <$ac_header>
13232 _ACEOF
13233 if { (ac_try="$ac_cpp conftest.$ac_ext"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239 $as_echo "$ac_try_echo") >&5
13240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } >/dev/null && {
13247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248          test ! -s conftest.err
13249        }; then
13250   ac_header_preproc=yes
13251 else
13252   $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255   ac_header_preproc=no
13256 fi
13257
13258 rm -f conftest.err conftest.$ac_ext
13259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 $as_echo "$ac_header_preproc" >&6; }
13261
13262 # So?  What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13264   yes:no: )
13265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13269     ac_header_preproc=yes
13270     ;;
13271   no:yes:* )
13272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13275 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13279 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13284     ( cat <<\_ASBOX
13285 ## ---------------------------------------- ##
13286 ## Report this to pgsql-bugs@postgresql.org ##
13287 ## ---------------------------------------- ##
13288 _ASBOX
13289      ) | sed "s/^/$as_me: WARNING:     /" >&2
13290     ;;
13291 esac
13292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13293 $as_echo_n "checking for $ac_header... " >&6; }
13294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13295   $as_echo_n "(cached) " >&6
13296 else
13297   eval "$as_ac_Header=\$ac_header_preproc"
13298 fi
13299 ac_res=`eval 'as_val=${'$as_ac_Header'}
13300                  $as_echo "$as_val"'`
13301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13302 $as_echo "$ac_res" >&6; }
13303
13304 fi
13305 as_val=`eval 'as_val=${'$as_ac_Header'}
13306                  $as_echo "$as_val"'`
13307    if test "x$as_val" = x""yes; then
13308   cat >>confdefs.h <<_ACEOF
13309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13310 _ACEOF
13311
13312 else
13313   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13314 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13315    { (exit 1); exit 1; }; }
13316 fi
13317
13318 done
13319
13320   else
13321
13322 for ac_header in winldap.h
13323 do
13324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13326 $as_echo_n "checking for $ac_header... " >&6; }
13327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13328   $as_echo_n "(cached) " >&6
13329 else
13330   cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336 $ac_includes_default
13337 #include <windows.h>
13338
13339
13340 #include <$ac_header>
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13349 $as_echo "$ac_try_echo") >&5
13350   (eval "$ac_compile") 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } && {
13357          test -z "$ac_c_werror_flag" ||
13358          test ! -s conftest.err
13359        } && test -s conftest.$ac_objext; then
13360   eval "$as_ac_Header=yes"
13361 else
13362   $as_echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365         eval "$as_ac_Header=no"
13366 fi
13367
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 fi
13370 ac_res=`eval 'as_val=${'$as_ac_Header'}
13371                  $as_echo "$as_val"'`
13372                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13373 $as_echo "$ac_res" >&6; }
13374 as_val=`eval 'as_val=${'$as_ac_Header'}
13375                  $as_echo "$as_val"'`
13376    if test "x$as_val" = x""yes; then
13377   cat >>confdefs.h <<_ACEOF
13378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379 _ACEOF
13380
13381 else
13382   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13383 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13384    { (exit 1); exit 1; }; }
13385 fi
13386
13387 done
13388
13389   fi
13390 fi
13391
13392 if test "$with_bonjour" = yes ; then
13393   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13394   { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13395 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13396 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13397   $as_echo_n "(cached) " >&6
13398 fi
13399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13400 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13401 else
13402   # Is the header compilable?
13403 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13404 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... " >&6; }
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13413 _ACEOF
13414 rm -f conftest.$ac_objext
13415 if { (ac_try="$ac_compile"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421 $as_echo "$ac_try_echo") >&5
13422   (eval "$ac_compile") 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } && {
13429          test -z "$ac_c_werror_flag" ||
13430          test ! -s conftest.err
13431        } && test -s conftest.$ac_objext; then
13432   ac_header_compiler=yes
13433 else
13434   $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437         ac_header_compiler=no
13438 fi
13439
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13442 $as_echo "$ac_header_compiler" >&6; }
13443
13444 # Is the header present?
13445 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13446 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... " >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13454 _ACEOF
13455 if { (ac_try="$ac_cpp conftest.$ac_ext"
13456 case "(($ac_try" in
13457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458   *) ac_try_echo=$ac_try;;
13459 esac
13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13461 $as_echo "$ac_try_echo") >&5
13462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13463   ac_status=$?
13464   grep -v '^ *+' conftest.er1 >conftest.err
13465   rm -f conftest.er1
13466   cat conftest.err >&5
13467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); } >/dev/null && {
13469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13470          test ! -s conftest.err
13471        }; then
13472   ac_header_preproc=yes
13473 else
13474   $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477   ac_header_preproc=no
13478 fi
13479
13480 rm -f conftest.err conftest.$ac_ext
13481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13482 $as_echo "$ac_header_preproc" >&6; }
13483
13484 # So?  What about this header?
13485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13486   yes:no: )
13487     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13488 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13489     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13490 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13491     ac_header_preproc=yes
13492     ;;
13493   no:yes:* )
13494     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13495 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13496     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
13497 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
13498     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13499 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13500     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
13501 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13502     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13503 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13504     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13505 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13506     ( cat <<\_ASBOX
13507 ## ---------------------------------------- ##
13508 ## Report this to pgsql-bugs@postgresql.org ##
13509 ## ---------------------------------------- ##
13510 _ASBOX
13511      ) | sed "s/^/$as_me: WARNING:     /" >&2
13512     ;;
13513 esac
13514 { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13515 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13516 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13517   $as_echo_n "(cached) " >&6
13518 else
13519   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13520 fi
13521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13522 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13523
13524 fi
13525 if test "x$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" = x""yes; then
13526   :
13527 else
13528   { { $as_echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13529 $as_echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13530    { (exit 1); exit 1; }; }
13531 fi
13532
13533
13534 fi
13535
13536 # for contrib/uuid-ossp
13537 if test "$with_ossp_uuid" = yes ; then
13538
13539 for ac_header in ossp/uuid.h
13540 do
13541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13543   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13544 $as_echo_n "checking for $ac_header... " >&6; }
13545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13546   $as_echo_n "(cached) " >&6
13547 fi
13548 ac_res=`eval 'as_val=${'$as_ac_Header'}
13549                  $as_echo "$as_val"'`
13550                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13551 $as_echo "$ac_res" >&6; }
13552 else
13553   # Is the header compilable?
13554 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13555 $as_echo_n "checking $ac_header usability... " >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 $ac_includes_default
13563 #include <$ac_header>
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573   (eval "$ac_compile") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } && {
13580          test -z "$ac_c_werror_flag" ||
13581          test ! -s conftest.err
13582        } && test -s conftest.$ac_objext; then
13583   ac_header_compiler=yes
13584 else
13585   $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         ac_header_compiler=no
13589 fi
13590
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13593 $as_echo "$ac_header_compiler" >&6; }
13594
13595 # Is the header present?
13596 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13597 $as_echo_n "checking $ac_header presence... " >&6; }
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h.  */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h.  */
13604 #include <$ac_header>
13605 _ACEOF
13606 if { (ac_try="$ac_cpp conftest.$ac_ext"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13614   ac_status=$?
13615   grep -v '^ *+' conftest.er1 >conftest.err
13616   rm -f conftest.er1
13617   cat conftest.err >&5
13618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } >/dev/null && {
13620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621          test ! -s conftest.err
13622        }; then
13623   ac_header_preproc=yes
13624 else
13625   $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628   ac_header_preproc=no
13629 fi
13630
13631 rm -f conftest.err conftest.$ac_ext
13632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 $as_echo "$ac_header_preproc" >&6; }
13634
13635 # So?  What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637   yes:no: )
13638     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13639 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13642     ac_header_preproc=yes
13643     ;;
13644   no:yes:* )
13645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13646 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13647     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13648 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13649     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13650 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13651     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13652 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13656 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13657     ( cat <<\_ASBOX
13658 ## ---------------------------------------- ##
13659 ## Report this to pgsql-bugs@postgresql.org ##
13660 ## ---------------------------------------- ##
13661 _ASBOX
13662      ) | sed "s/^/$as_me: WARNING:     /" >&2
13663     ;;
13664 esac
13665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13666 $as_echo_n "checking for $ac_header... " >&6; }
13667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668   $as_echo_n "(cached) " >&6
13669 else
13670   eval "$as_ac_Header=\$ac_header_preproc"
13671 fi
13672 ac_res=`eval 'as_val=${'$as_ac_Header'}
13673                  $as_echo "$as_val"'`
13674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13675 $as_echo "$ac_res" >&6; }
13676
13677 fi
13678 as_val=`eval 'as_val=${'$as_ac_Header'}
13679                  $as_echo "$as_val"'`
13680    if test "x$as_val" = x""yes; then
13681   cat >>confdefs.h <<_ACEOF
13682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13683 _ACEOF
13684
13685 else
13686
13687
13688 for ac_header in uuid.h
13689 do
13690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13692   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13693 $as_echo_n "checking for $ac_header... " >&6; }
13694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13695   $as_echo_n "(cached) " >&6
13696 fi
13697 ac_res=`eval 'as_val=${'$as_ac_Header'}
13698                  $as_echo "$as_val"'`
13699                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13700 $as_echo "$ac_res" >&6; }
13701 else
13702   # Is the header compilable?
13703 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13704 $as_echo_n "checking $ac_header usability... " >&6; }
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711 $ac_includes_default
13712 #include <$ac_header>
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 if { (ac_try="$ac_compile"
13716 case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721 $as_echo "$ac_try_echo") >&5
13722   (eval "$ac_compile") 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } && {
13729          test -z "$ac_c_werror_flag" ||
13730          test ! -s conftest.err
13731        } && test -s conftest.$ac_objext; then
13732   ac_header_compiler=yes
13733 else
13734   $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737         ac_header_compiler=no
13738 fi
13739
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13742 $as_echo "$ac_header_compiler" >&6; }
13743
13744 # Is the header present?
13745 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13746 $as_echo_n "checking $ac_header presence... " >&6; }
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 #include <$ac_header>
13754 _ACEOF
13755 if { (ac_try="$ac_cpp conftest.$ac_ext"
13756 case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13761 $as_echo "$ac_try_echo") >&5
13762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13763   ac_status=$?
13764   grep -v '^ *+' conftest.er1 >conftest.err
13765   rm -f conftest.er1
13766   cat conftest.err >&5
13767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); } >/dev/null && {
13769          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13770          test ! -s conftest.err
13771        }; then
13772   ac_header_preproc=yes
13773 else
13774   $as_echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777   ac_header_preproc=no
13778 fi
13779
13780 rm -f conftest.err conftest.$ac_ext
13781 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 $as_echo "$ac_header_preproc" >&6; }
13783
13784 # So?  What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786   yes:no: )
13787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13788 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13791     ac_header_preproc=yes
13792     ;;
13793   no:yes:* )
13794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13795 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13797 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13799 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13801 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13806     ( cat <<\_ASBOX
13807 ## ---------------------------------------- ##
13808 ## Report this to pgsql-bugs@postgresql.org ##
13809 ## ---------------------------------------- ##
13810 _ASBOX
13811      ) | sed "s/^/$as_me: WARNING:     /" >&2
13812     ;;
13813 esac
13814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 $as_echo_n "checking for $ac_header... " >&6; }
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817   $as_echo_n "(cached) " >&6
13818 else
13819   eval "$as_ac_Header=\$ac_header_preproc"
13820 fi
13821 ac_res=`eval 'as_val=${'$as_ac_Header'}
13822                  $as_echo "$as_val"'`
13823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13824 $as_echo "$ac_res" >&6; }
13825
13826 fi
13827 as_val=`eval 'as_val=${'$as_ac_Header'}
13828                  $as_echo "$as_val"'`
13829    if test "x$as_val" = x""yes; then
13830   cat >>confdefs.h <<_ACEOF
13831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 _ACEOF
13833
13834 else
13835   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13836 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13837    { (exit 1); exit 1; }; }
13838 fi
13839
13840 done
13841
13842 fi
13843
13844 done
13845
13846 fi
13847
13848
13849 ##
13850 ## Types, structures, compiler characteristics
13851 ##
13852
13853
13854  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13855 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13856 if test "${ac_cv_c_bigendian+set}" = set; then
13857   $as_echo_n "(cached) " >&6
13858 else
13859   ac_cv_c_bigendian=unknown
13860     # See if we're dealing with a universal compiler.
13861     cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 #ifndef __APPLE_CC__
13868                not a universal capable compiler
13869              #endif
13870              typedef int dummy;
13871
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877   *) ac_try_echo=$ac_try;;
13878 esac
13879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13880 $as_echo "$ac_try_echo") >&5
13881   (eval "$ac_compile") 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } && {
13888          test -z "$ac_c_werror_flag" ||
13889          test ! -s conftest.err
13890        } && test -s conftest.$ac_objext; then
13891
13892         # Check for potential -arch flags.  It is not universal unless
13893         # there are some -arch flags.  Note that *ppc* also matches
13894         # ppc64.  This check is also rather less than ideal.
13895         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13896           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13897         esac
13898 else
13899   $as_echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902
13903 fi
13904
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906     if test $ac_cv_c_bigendian = unknown; then
13907       # See if sys/param.h defines the BYTE_ORDER macro.
13908       cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914 #include <sys/types.h>
13915              #include <sys/param.h>
13916
13917 int
13918 main ()
13919 {
13920 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13921                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13922                      && LITTLE_ENDIAN)
13923               bogus endian macros
13924              #endif
13925
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938   (eval "$ac_compile") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } && {
13945          test -z "$ac_c_werror_flag" ||
13946          test ! -s conftest.err
13947        } && test -s conftest.$ac_objext; then
13948   # It does; now see whether it defined to BIG_ENDIAN or not.
13949          cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 #include <sys/types.h>
13956                 #include <sys/param.h>
13957
13958 int
13959 main ()
13960 {
13961 #if BYTE_ORDER != BIG_ENDIAN
13962                  not big endian
13963                 #endif
13964
13965   ;
13966   return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (ac_try="$ac_compile"
13971 case "(($ac_try" in
13972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973   *) ac_try_echo=$ac_try;;
13974 esac
13975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976 $as_echo "$ac_try_echo") >&5
13977   (eval "$ac_compile") 2>conftest.er1
13978   ac_status=$?
13979   grep -v '^ *+' conftest.er1 >conftest.err
13980   rm -f conftest.er1
13981   cat conftest.err >&5
13982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); } && {
13984          test -z "$ac_c_werror_flag" ||
13985          test ! -s conftest.err
13986        } && test -s conftest.$ac_objext; then
13987   ac_cv_c_bigendian=yes
13988 else
13989   $as_echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992         ac_cv_c_bigendian=no
13993 fi
13994
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996 else
13997   $as_echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000
14001 fi
14002
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004     fi
14005     if test $ac_cv_c_bigendian = unknown; then
14006       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14007       cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h.  */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h.  */
14013 #include <limits.h>
14014
14015 int
14016 main ()
14017 {
14018 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14019               bogus endian macros
14020              #endif
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034   (eval "$ac_compile") 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } && {
14041          test -z "$ac_c_werror_flag" ||
14042          test ! -s conftest.err
14043        } && test -s conftest.$ac_objext; then
14044   # It does; now see whether it defined to _BIG_ENDIAN or not.
14045          cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051 #include <limits.h>
14052
14053 int
14054 main ()
14055 {
14056 #ifndef _BIG_ENDIAN
14057                  not big endian
14058                 #endif
14059
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 rm -f conftest.$ac_objext
14065 if { (ac_try="$ac_compile"
14066 case "(($ac_try" in
14067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068   *) ac_try_echo=$ac_try;;
14069 esac
14070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14071 $as_echo "$ac_try_echo") >&5
14072   (eval "$ac_compile") 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } && {
14079          test -z "$ac_c_werror_flag" ||
14080          test ! -s conftest.err
14081        } && test -s conftest.$ac_objext; then
14082   ac_cv_c_bigendian=yes
14083 else
14084   $as_echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14086
14087         ac_cv_c_bigendian=no
14088 fi
14089
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 else
14092   $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095
14096 fi
14097
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099     fi
14100     if test $ac_cv_c_bigendian = unknown; then
14101       # Compile a test program.
14102       if test "$cross_compiling" = yes; then
14103   # Try to guess by grepping values from an object file.
14104          cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110 short int ascii_mm[] =
14111                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14112                 short int ascii_ii[] =
14113                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14114                 int use_ascii (int i) {
14115                   return ascii_mm[i] + ascii_ii[i];
14116                 }
14117                 short int ebcdic_ii[] =
14118                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14119                 short int ebcdic_mm[] =
14120                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14121                 int use_ebcdic (int i) {
14122                   return ebcdic_mm[i] + ebcdic_ii[i];
14123                 }
14124                 extern int foo;
14125
14126 int
14127 main ()
14128 {
14129 return use_ascii (foo) == use_ebcdic (foo);
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext
14135 if { (ac_try="$ac_compile"
14136 case "(($ac_try" in
14137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138   *) ac_try_echo=$ac_try;;
14139 esac
14140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142   (eval "$ac_compile") 2>conftest.er1
14143   ac_status=$?
14144   grep -v '^ *+' conftest.er1 >conftest.err
14145   rm -f conftest.er1
14146   cat conftest.err >&5
14147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } && {
14149          test -z "$ac_c_werror_flag" ||
14150          test ! -s conftest.err
14151        } && test -s conftest.$ac_objext; then
14152   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14153               ac_cv_c_bigendian=yes
14154             fi
14155             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14156               if test "$ac_cv_c_bigendian" = unknown; then
14157                 ac_cv_c_bigendian=no
14158               else
14159                 # finding both strings is unlikely to happen, but who knows?
14160                 ac_cv_c_bigendian=unknown
14161               fi
14162             fi
14163 else
14164   $as_echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167
14168 fi
14169
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 else
14172   cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178 $ac_includes_default
14179 int
14180 main ()
14181 {
14182
14183              /* Are we little or big endian?  From Harbison&Steele.  */
14184              union
14185              {
14186                long int l;
14187                char c[sizeof (long int)];
14188              } u;
14189              u.l = 1;
14190              return u.c[sizeof (long int) - 1] == 1;
14191
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 rm -f conftest$ac_exeext
14197 if { (ac_try="$ac_link"
14198 case "(($ac_try" in
14199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200   *) ac_try_echo=$ac_try;;
14201 esac
14202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14203 $as_echo "$ac_try_echo") >&5
14204   (eval "$ac_link") 2>&5
14205   ac_status=$?
14206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14208   { (case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14213 $as_echo "$ac_try_echo") >&5
14214   (eval "$ac_try") 2>&5
14215   ac_status=$?
14216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }; then
14218   ac_cv_c_bigendian=no
14219 else
14220   $as_echo "$as_me: program exited with status $ac_status" >&5
14221 $as_echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 ( exit $ac_status )
14225 ac_cv_c_bigendian=yes
14226 fi
14227 rm -rf conftest.dSYM
14228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14229 fi
14230
14231
14232     fi
14233 fi
14234 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14235 $as_echo "$ac_cv_c_bigendian" >&6; }
14236  case $ac_cv_c_bigendian in #(
14237    yes)
14238      cat >>confdefs.h <<\_ACEOF
14239 #define WORDS_BIGENDIAN 1
14240 _ACEOF
14241 ;; #(
14242    no)
14243       ;; #(
14244    universal)
14245
14246 cat >>confdefs.h <<\_ACEOF
14247 #define AC_APPLE_UNIVERSAL_BUILD 1
14248 _ACEOF
14249
14250      ;; #(
14251    *)
14252      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14253  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14254 $as_echo "$as_me: error: unknown endianness
14255  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14256    { (exit 1); exit 1; }; } ;;
14257  esac
14258
14259 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14260 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14261 if test "${ac_cv_c_const+set}" = set; then
14262   $as_echo_n "(cached) " >&6
14263 else
14264   cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h.  */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h.  */
14270
14271 int
14272 main ()
14273 {
14274 /* FIXME: Include the comments suggested by Paul. */
14275 #ifndef __cplusplus
14276   /* Ultrix mips cc rejects this.  */
14277   typedef int charset[2];
14278   const charset cs;
14279   /* SunOS 4.1.1 cc rejects this.  */
14280   char const *const *pcpcc;
14281   char **ppc;
14282   /* NEC SVR4.0.2 mips cc rejects this.  */
14283   struct point {int x, y;};
14284   static struct point const zero = {0,0};
14285   /* AIX XL C 1.02.0.0 rejects this.
14286      It does not let you subtract one const X* pointer from another in
14287      an arm of an if-expression whose if-part is not a constant
14288      expression */
14289   const char *g = "string";
14290   pcpcc = &g + (g ? g-g : 0);
14291   /* HPUX 7.0 cc rejects these. */
14292   ++pcpcc;
14293   ppc = (char**) pcpcc;
14294   pcpcc = (char const *const *) ppc;
14295   { /* SCO 3.2v4 cc rejects this.  */
14296     char *t;
14297     char const *s = 0 ? (char *) 0 : (char const *) 0;
14298
14299     *t++ = 0;
14300     if (s) return 0;
14301   }
14302   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14303     int x[] = {25, 17};
14304     const int *foo = &x[0];
14305     ++foo;
14306   }
14307   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14308     typedef const int *iptr;
14309     iptr p = 0;
14310     ++p;
14311   }
14312   { /* AIX XL C 1.02.0.0 rejects this saying
14313        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14314     struct s { int j; const int *ap[3]; };
14315     struct s *b; b->j = 5;
14316   }
14317   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14318     const int foo = 10;
14319     if (!foo) return 0;
14320   }
14321   return !cs[0] && !zero.x;
14322 #endif
14323
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336   (eval "$ac_compile") 2>conftest.er1
14337   ac_status=$?
14338   grep -v '^ *+' conftest.er1 >conftest.err
14339   rm -f conftest.er1
14340   cat conftest.err >&5
14341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); } && {
14343          test -z "$ac_c_werror_flag" ||
14344          test ! -s conftest.err
14345        } && test -s conftest.$ac_objext; then
14346   ac_cv_c_const=yes
14347 else
14348   $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351         ac_cv_c_const=no
14352 fi
14353
14354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355 fi
14356 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14357 $as_echo "$ac_cv_c_const" >&6; }
14358 if test $ac_cv_c_const = no; then
14359
14360 cat >>confdefs.h <<\_ACEOF
14361 #define const /**/
14362 _ACEOF
14363
14364 fi
14365
14366 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14367 $as_echo_n "checking for inline... " >&6; }
14368 if test "${ac_cv_c_inline+set}" = set; then
14369   $as_echo_n "(cached) " >&6
14370 else
14371   ac_cv_c_inline=no
14372 for ac_kw in inline __inline__ __inline; do
14373   cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 #ifndef __cplusplus
14380 typedef int foo_t;
14381 static $ac_kw foo_t static_foo () {return 0; }
14382 $ac_kw foo_t foo () {return 0; }
14383 #endif
14384
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390   *) ac_try_echo=$ac_try;;
14391 esac
14392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14393 $as_echo "$ac_try_echo") >&5
14394   (eval "$ac_compile") 2>conftest.er1
14395   ac_status=$?
14396   grep -v '^ *+' conftest.er1 >conftest.err
14397   rm -f conftest.er1
14398   cat conftest.err >&5
14399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } && {
14401          test -z "$ac_c_werror_flag" ||
14402          test ! -s conftest.err
14403        } && test -s conftest.$ac_objext; then
14404   ac_cv_c_inline=$ac_kw
14405 else
14406   $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409
14410 fi
14411
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413   test "$ac_cv_c_inline" != no && break
14414 done
14415
14416 fi
14417 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14418 $as_echo "$ac_cv_c_inline" >&6; }
14419
14420
14421 case $ac_cv_c_inline in
14422   inline | yes) ;;
14423   *)
14424     case $ac_cv_c_inline in
14425       no) ac_val=;;
14426       *) ac_val=$ac_cv_c_inline;;
14427     esac
14428     cat >>confdefs.h <<_ACEOF
14429 #ifndef __cplusplus
14430 #define inline $ac_val
14431 #endif
14432 _ACEOF
14433     ;;
14434 esac
14435
14436 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14437 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14438 if test "${ac_cv_c_stringize+set}" = set; then
14439   $as_echo_n "(cached) " >&6
14440 else
14441   cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 #define x(y) #y
14448
14449 char *s = x(teststring);
14450 _ACEOF
14451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14452   $EGREP "#teststring" >/dev/null 2>&1; then
14453   ac_cv_c_stringize=no
14454 else
14455   ac_cv_c_stringize=yes
14456 fi
14457 rm -f conftest*
14458
14459 fi
14460 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14461 $as_echo "$ac_cv_c_stringize" >&6; }
14462 if test $ac_cv_c_stringize = yes; then
14463
14464 cat >>confdefs.h <<\_ACEOF
14465 #define HAVE_STRINGIZE 1
14466 _ACEOF
14467
14468 fi
14469
14470 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14471 $as_echo_n "checking for signed types... " >&6; }
14472 if test "${pgac_cv_c_signed+set}" = set; then
14473   $as_echo_n "(cached) " >&6
14474 else
14475   cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h.  */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h.  */
14481
14482 int
14483 main ()
14484 {
14485 signed char c; signed short s; signed int i;
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (ac_try="$ac_compile"
14492 case "(($ac_try" in
14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494   *) ac_try_echo=$ac_try;;
14495 esac
14496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14497 $as_echo "$ac_try_echo") >&5
14498   (eval "$ac_compile") 2>conftest.er1
14499   ac_status=$?
14500   grep -v '^ *+' conftest.er1 >conftest.err
14501   rm -f conftest.er1
14502   cat conftest.err >&5
14503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } && {
14505          test -z "$ac_c_werror_flag" ||
14506          test ! -s conftest.err
14507        } && test -s conftest.$ac_objext; then
14508   pgac_cv_c_signed=yes
14509 else
14510   $as_echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513         pgac_cv_c_signed=no
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14519 $as_echo "$pgac_cv_c_signed" >&6; }
14520 if test x"$pgac_cv_c_signed" = xno ; then
14521
14522 cat >>confdefs.h <<\_ACEOF
14523 #define signed /**/
14524 _ACEOF
14525
14526 fi
14527 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14528 $as_echo_n "checking for working volatile... " >&6; }
14529 if test "${ac_cv_c_volatile+set}" = set; then
14530   $as_echo_n "(cached) " >&6
14531 else
14532   cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538
14539 int
14540 main ()
14541 {
14542
14543 volatile int x;
14544 int * volatile y = (int *) 0;
14545 return !x && !y;
14546   ;
14547   return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext
14551 if { (ac_try="$ac_compile"
14552 case "(($ac_try" in
14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554   *) ac_try_echo=$ac_try;;
14555 esac
14556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14557 $as_echo "$ac_try_echo") >&5
14558   (eval "$ac_compile") 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } && {
14565          test -z "$ac_c_werror_flag" ||
14566          test ! -s conftest.err
14567        } && test -s conftest.$ac_objext; then
14568   ac_cv_c_volatile=yes
14569 else
14570   $as_echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573         ac_cv_c_volatile=no
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14579 $as_echo "$ac_cv_c_volatile" >&6; }
14580 if test $ac_cv_c_volatile = no; then
14581
14582 cat >>confdefs.h <<\_ACEOF
14583 #define volatile /**/
14584 _ACEOF
14585
14586 fi
14587
14588 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14589 $as_echo_n "checking for __func__... " >&6; }
14590 if test "${pgac_cv_funcname_func_support+set}" = set; then
14591   $as_echo_n "(cached) " >&6
14592 else
14593   cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 #include <stdio.h>
14600 int
14601 main ()
14602 {
14603 printf("%s\n", __func__);
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (ac_try="$ac_compile"
14610 case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14615 $as_echo "$ac_try_echo") >&5
14616   (eval "$ac_compile") 2>conftest.er1
14617   ac_status=$?
14618   grep -v '^ *+' conftest.er1 >conftest.err
14619   rm -f conftest.er1
14620   cat conftest.err >&5
14621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } && {
14623          test -z "$ac_c_werror_flag" ||
14624          test ! -s conftest.err
14625        } && test -s conftest.$ac_objext; then
14626   pgac_cv_funcname_func_support=yes
14627 else
14628   $as_echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631         pgac_cv_funcname_func_support=no
14632 fi
14633
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635 fi
14636 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14637 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14638 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14639
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_FUNCNAME__FUNC 1
14642 _ACEOF
14643
14644 else
14645 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14646 $as_echo_n "checking for __FUNCTION__... " >&6; }
14647 if test "${pgac_cv_funcname_function_support+set}" = set; then
14648   $as_echo_n "(cached) " >&6
14649 else
14650   cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656 #include <stdio.h>
14657 int
14658 main ()
14659 {
14660 printf("%s\n", __FUNCTION__);
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673   (eval "$ac_compile") 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } && {
14680          test -z "$ac_c_werror_flag" ||
14681          test ! -s conftest.err
14682        } && test -s conftest.$ac_objext; then
14683   pgac_cv_funcname_function_support=yes
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         pgac_cv_funcname_function_support=no
14689 fi
14690
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14694 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14695 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14696
14697 cat >>confdefs.h <<\_ACEOF
14698 #define HAVE_FUNCNAME__FUNCTION 1
14699 _ACEOF
14700
14701 fi
14702 fi
14703 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14704 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14705 if test "${ac_cv_struct_tm+set}" = set; then
14706   $as_echo_n "(cached) " >&6
14707 else
14708   cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 #include <sys/types.h>
14715 #include <time.h>
14716
14717 int
14718 main ()
14719 {
14720 struct tm tm;
14721                                      int *p = &tm.tm_sec;
14722                                      return !p;
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14734 $as_echo "$ac_try_echo") >&5
14735   (eval "$ac_compile") 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } && {
14742          test -z "$ac_c_werror_flag" ||
14743          test ! -s conftest.err
14744        } && test -s conftest.$ac_objext; then
14745   ac_cv_struct_tm=time.h
14746 else
14747   $as_echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14749
14750         ac_cv_struct_tm=sys/time.h
14751 fi
14752
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 fi
14755 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14756 $as_echo "$ac_cv_struct_tm" >&6; }
14757 if test $ac_cv_struct_tm = sys/time.h; then
14758
14759 cat >>confdefs.h <<\_ACEOF
14760 #define TM_IN_SYS_TIME 1
14761 _ACEOF
14762
14763 fi
14764
14765 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14766 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14767 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14768   $as_echo_n "(cached) " >&6
14769 else
14770   cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h.  */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h.  */
14776 #include <sys/types.h>
14777 #include <$ac_cv_struct_tm>
14778
14779
14780 int
14781 main ()
14782 {
14783 static struct tm ac_aggr;
14784 if (ac_aggr.tm_zone)
14785 return 0;
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798   (eval "$ac_compile") 2>conftest.er1
14799   ac_status=$?
14800   grep -v '^ *+' conftest.er1 >conftest.err
14801   rm -f conftest.er1
14802   cat conftest.err >&5
14803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } && {
14805          test -z "$ac_c_werror_flag" ||
14806          test ! -s conftest.err
14807        } && test -s conftest.$ac_objext; then
14808   ac_cv_member_struct_tm_tm_zone=yes
14809 else
14810   $as_echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813         cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <sys/types.h>
14820 #include <$ac_cv_struct_tm>
14821
14822
14823 int
14824 main ()
14825 {
14826 static struct tm ac_aggr;
14827 if (sizeof ac_aggr.tm_zone)
14828 return 0;
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext
14834 if { (ac_try="$ac_compile"
14835 case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841   (eval "$ac_compile") 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } && {
14848          test -z "$ac_c_werror_flag" ||
14849          test ! -s conftest.err
14850        } && test -s conftest.$ac_objext; then
14851   ac_cv_member_struct_tm_tm_zone=yes
14852 else
14853   $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856         ac_cv_member_struct_tm_tm_zone=no
14857 fi
14858
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 fi
14864 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14865 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14866 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14867
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_STRUCT_TM_TM_ZONE 1
14870 _ACEOF
14871
14872
14873 fi
14874
14875 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14876
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_TM_ZONE 1
14879 _ACEOF
14880
14881 fi
14882 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14883 $as_echo_n "checking for tzname... " >&6; }
14884 if test "${ac_cv_var_tzname+set}" = set; then
14885   $as_echo_n "(cached) " >&6
14886 else
14887   cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h.  */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h.  */
14893 #include <time.h>
14894 #ifndef tzname /* For SGI.  */
14895 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14896 #endif
14897
14898 int
14899 main ()
14900 {
14901 atoi(*tzname);
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (ac_try="$ac_link"
14908 case "(($ac_try" in
14909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910   *) ac_try_echo=$ac_try;;
14911 esac
14912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14913 $as_echo "$ac_try_echo") >&5
14914   (eval "$ac_link") 2>conftest.er1
14915   ac_status=$?
14916   grep -v '^ *+' conftest.er1 >conftest.err
14917   rm -f conftest.er1
14918   cat conftest.err >&5
14919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } && {
14921          test -z "$ac_c_werror_flag" ||
14922          test ! -s conftest.err
14923        } && test -s conftest$ac_exeext && {
14924          test "$cross_compiling" = yes ||
14925          $as_test_x conftest$ac_exeext
14926        }; then
14927   ac_cv_var_tzname=yes
14928 else
14929   $as_echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932         ac_cv_var_tzname=no
14933 fi
14934
14935 rm -rf conftest.dSYM
14936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14937       conftest$ac_exeext conftest.$ac_ext
14938 fi
14939 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14940 $as_echo "$ac_cv_var_tzname" >&6; }
14941 if test $ac_cv_var_tzname = yes; then
14942
14943 cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_TZNAME 1
14945 _ACEOF
14946
14947 fi
14948
14949 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
14950 $as_echo_n "checking for union semun... " >&6; }
14951 if test "${ac_cv_type_union_semun+set}" = set; then
14952   $as_echo_n "(cached) " >&6
14953 else
14954   ac_cv_type_union_semun=no
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961 #include <sys/types.h>
14962 #include <sys/ipc.h>
14963 #include <sys/sem.h>
14964
14965 int
14966 main ()
14967 {
14968 if (sizeof (union semun))
14969        return 0;
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14981 $as_echo "$ac_try_echo") >&5
14982   (eval "$ac_compile") 2>conftest.er1
14983   ac_status=$?
14984   grep -v '^ *+' conftest.er1 >conftest.err
14985   rm -f conftest.er1
14986   cat conftest.err >&5
14987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); } && {
14989          test -z "$ac_c_werror_flag" ||
14990          test ! -s conftest.err
14991        } && test -s conftest.$ac_objext; then
14992   cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h.  */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h.  */
14998 #include <sys/types.h>
14999 #include <sys/ipc.h>
15000 #include <sys/sem.h>
15001
15002 int
15003 main ()
15004 {
15005 if (sizeof ((union semun)))
15006           return 0;
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (ac_try="$ac_compile"
15013 case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15018 $as_echo "$ac_try_echo") >&5
15019   (eval "$ac_compile") 2>conftest.er1
15020   ac_status=$?
15021   grep -v '^ *+' conftest.er1 >conftest.err
15022   rm -f conftest.er1
15023   cat conftest.err >&5
15024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } && {
15026          test -z "$ac_c_werror_flag" ||
15027          test ! -s conftest.err
15028        } && test -s conftest.$ac_objext; then
15029   :
15030 else
15031   $as_echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15033
15034         ac_cv_type_union_semun=yes
15035 fi
15036
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 else
15039   $as_echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042
15043 fi
15044
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 fi
15047 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15048 $as_echo "$ac_cv_type_union_semun" >&6; }
15049 if test "x$ac_cv_type_union_semun" = x""yes; then
15050
15051 cat >>confdefs.h <<_ACEOF
15052 #define HAVE_UNION_SEMUN 1
15053 _ACEOF
15054
15055
15056 fi
15057
15058 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15059 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15060 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15061   $as_echo_n "(cached) " >&6
15062 else
15063   ac_cv_type_struct_sockaddr_un=no
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 #include <sys/types.h>
15071 #ifdef HAVE_SYS_UN_H
15072 #include <sys/un.h>
15073 #endif
15074
15075
15076 int
15077 main ()
15078 {
15079 if (sizeof (struct sockaddr_un))
15080        return 0;
15081   ;
15082   return 0;
15083 }
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
15087 case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15092 $as_echo "$ac_try_echo") >&5
15093   (eval "$ac_compile") 2>conftest.er1
15094   ac_status=$?
15095   grep -v '^ *+' conftest.er1 >conftest.err
15096   rm -f conftest.er1
15097   cat conftest.err >&5
15098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); } && {
15100          test -z "$ac_c_werror_flag" ||
15101          test ! -s conftest.err
15102        } && test -s conftest.$ac_objext; then
15103   cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109 #include <sys/types.h>
15110 #ifdef HAVE_SYS_UN_H
15111 #include <sys/un.h>
15112 #endif
15113
15114
15115 int
15116 main ()
15117 {
15118 if (sizeof ((struct sockaddr_un)))
15119           return 0;
15120   ;
15121   return 0;
15122 }
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15131 $as_echo "$ac_try_echo") >&5
15132   (eval "$ac_compile") 2>conftest.er1
15133   ac_status=$?
15134   grep -v '^ *+' conftest.er1 >conftest.err
15135   rm -f conftest.er1
15136   cat conftest.err >&5
15137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); } && {
15139          test -z "$ac_c_werror_flag" ||
15140          test ! -s conftest.err
15141        } && test -s conftest.$ac_objext; then
15142   :
15143 else
15144   $as_echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147         ac_cv_type_struct_sockaddr_un=yes
15148 fi
15149
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 else
15152   $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155
15156 fi
15157
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 fi
15160 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15161 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15162 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15163
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_STRUCT_SOCKADDR_UN 1
15166 _ACEOF
15167
15168
15169 cat >>confdefs.h <<\_ACEOF
15170 #define HAVE_UNIX_SOCKETS 1
15171 _ACEOF
15172
15173 fi
15174
15175 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15176 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15177 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15178   $as_echo_n "(cached) " >&6
15179 else
15180   ac_cv_type_struct_sockaddr_storage=no
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h.  */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h.  */
15187 #include <sys/types.h>
15188 #ifdef HAVE_SYS_SOCKET_H
15189 #include <sys/socket.h>
15190 #endif
15191
15192
15193 int
15194 main ()
15195 {
15196 if (sizeof (struct sockaddr_storage))
15197        return 0;
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (ac_try="$ac_compile"
15204 case "(($ac_try" in
15205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206   *) ac_try_echo=$ac_try;;
15207 esac
15208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15209 $as_echo "$ac_try_echo") >&5
15210   (eval "$ac_compile") 2>conftest.er1
15211   ac_status=$?
15212   grep -v '^ *+' conftest.er1 >conftest.err
15213   rm -f conftest.er1
15214   cat conftest.err >&5
15215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } && {
15217          test -z "$ac_c_werror_flag" ||
15218          test ! -s conftest.err
15219        } && test -s conftest.$ac_objext; then
15220   cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 #include <sys/types.h>
15227 #ifdef HAVE_SYS_SOCKET_H
15228 #include <sys/socket.h>
15229 #endif
15230
15231
15232 int
15233 main ()
15234 {
15235 if (sizeof ((struct sockaddr_storage)))
15236           return 0;
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext
15242 if { (ac_try="$ac_compile"
15243 case "(($ac_try" in
15244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245   *) ac_try_echo=$ac_try;;
15246 esac
15247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15248 $as_echo "$ac_try_echo") >&5
15249   (eval "$ac_compile") 2>conftest.er1
15250   ac_status=$?
15251   grep -v '^ *+' conftest.er1 >conftest.err
15252   rm -f conftest.er1
15253   cat conftest.err >&5
15254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } && {
15256          test -z "$ac_c_werror_flag" ||
15257          test ! -s conftest.err
15258        } && test -s conftest.$ac_objext; then
15259   :
15260 else
15261   $as_echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264         ac_cv_type_struct_sockaddr_storage=yes
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 else
15269   $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272
15273 fi
15274
15275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15276 fi
15277 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15278 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15279 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15280
15281 cat >>confdefs.h <<_ACEOF
15282 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15283 _ACEOF
15284
15285
15286 fi
15287
15288 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15289 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15290 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15291   $as_echo_n "(cached) " >&6
15292 else
15293   cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 #include <sys/types.h>
15300 #ifdef HAVE_SYS_SOCKET_H
15301 #include <sys/socket.h>
15302 #endif
15303
15304
15305 int
15306 main ()
15307 {
15308 static struct sockaddr_storage ac_aggr;
15309 if (ac_aggr.ss_family)
15310 return 0;
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (ac_try="$ac_compile"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323   (eval "$ac_compile") 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } && {
15330          test -z "$ac_c_werror_flag" ||
15331          test ! -s conftest.err
15332        } && test -s conftest.$ac_objext; then
15333   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15334 else
15335   $as_echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338         cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344 #include <sys/types.h>
15345 #ifdef HAVE_SYS_SOCKET_H
15346 #include <sys/socket.h>
15347 #endif
15348
15349
15350 int
15351 main ()
15352 {
15353 static struct sockaddr_storage ac_aggr;
15354 if (sizeof ac_aggr.ss_family)
15355 return 0;
15356   ;
15357   return 0;
15358 }
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (ac_try="$ac_compile"
15362 case "(($ac_try" in
15363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364   *) ac_try_echo=$ac_try;;
15365 esac
15366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15367 $as_echo "$ac_try_echo") >&5
15368   (eval "$ac_compile") 2>conftest.er1
15369   ac_status=$?
15370   grep -v '^ *+' conftest.er1 >conftest.err
15371   rm -f conftest.er1
15372   cat conftest.err >&5
15373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } && {
15375          test -z "$ac_c_werror_flag" ||
15376          test ! -s conftest.err
15377        } && test -s conftest.$ac_objext; then
15378   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15379 else
15380   $as_echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383         ac_cv_member_struct_sockaddr_storage_ss_family=no
15384 fi
15385
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 fi
15388
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 fi
15391 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15392 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15393 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15394
15395 cat >>confdefs.h <<_ACEOF
15396 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15397 _ACEOF
15398
15399
15400 fi
15401 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15402 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15403 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15404   $as_echo_n "(cached) " >&6
15405 else
15406   cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 #include <sys/types.h>
15413 #ifdef HAVE_SYS_SOCKET_H
15414 #include <sys/socket.h>
15415 #endif
15416
15417
15418 int
15419 main ()
15420 {
15421 static struct sockaddr_storage ac_aggr;
15422 if (ac_aggr.__ss_family)
15423 return 0;
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest.$ac_objext
15429 if { (ac_try="$ac_compile"
15430 case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15435 $as_echo "$ac_try_echo") >&5
15436   (eval "$ac_compile") 2>conftest.er1
15437   ac_status=$?
15438   grep -v '^ *+' conftest.er1 >conftest.err
15439   rm -f conftest.er1
15440   cat conftest.err >&5
15441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } && {
15443          test -z "$ac_c_werror_flag" ||
15444          test ! -s conftest.err
15445        } && test -s conftest.$ac_objext; then
15446   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15447 else
15448   $as_echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451         cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 #include <sys/types.h>
15458 #ifdef HAVE_SYS_SOCKET_H
15459 #include <sys/socket.h>
15460 #endif
15461
15462
15463 int
15464 main ()
15465 {
15466 static struct sockaddr_storage ac_aggr;
15467 if (sizeof ac_aggr.__ss_family)
15468 return 0;
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext
15474 if { (ac_try="$ac_compile"
15475 case "(($ac_try" in
15476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477   *) ac_try_echo=$ac_try;;
15478 esac
15479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15480 $as_echo "$ac_try_echo") >&5
15481   (eval "$ac_compile") 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } && {
15488          test -z "$ac_c_werror_flag" ||
15489          test ! -s conftest.err
15490        } && test -s conftest.$ac_objext; then
15491   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15492 else
15493   $as_echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496         ac_cv_member_struct_sockaddr_storage___ss_family=no
15497 fi
15498
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500 fi
15501
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 fi
15504 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15505 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15506 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15507
15508 cat >>confdefs.h <<_ACEOF
15509 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15510 _ACEOF
15511
15512
15513 fi
15514 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15515 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15516 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15517   $as_echo_n "(cached) " >&6
15518 else
15519   cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525 #include <sys/types.h>
15526 #ifdef HAVE_SYS_SOCKET_H
15527 #include <sys/socket.h>
15528 #endif
15529
15530
15531 int
15532 main ()
15533 {
15534 static struct sockaddr_storage ac_aggr;
15535 if (ac_aggr.ss_len)
15536 return 0;
15537   ;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest.$ac_objext
15542 if { (ac_try="$ac_compile"
15543 case "(($ac_try" in
15544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545   *) ac_try_echo=$ac_try;;
15546 esac
15547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15548 $as_echo "$ac_try_echo") >&5
15549   (eval "$ac_compile") 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } && {
15556          test -z "$ac_c_werror_flag" ||
15557          test ! -s conftest.err
15558        } && test -s conftest.$ac_objext; then
15559   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15560 else
15561   $as_echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564         cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570 #include <sys/types.h>
15571 #ifdef HAVE_SYS_SOCKET_H
15572 #include <sys/socket.h>
15573 #endif
15574
15575
15576 int
15577 main ()
15578 {
15579 static struct sockaddr_storage ac_aggr;
15580 if (sizeof ac_aggr.ss_len)
15581 return 0;
15582   ;
15583   return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15593 $as_echo "$ac_try_echo") >&5
15594   (eval "$ac_compile") 2>conftest.er1
15595   ac_status=$?
15596   grep -v '^ *+' conftest.er1 >conftest.err
15597   rm -f conftest.er1
15598   cat conftest.err >&5
15599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); } && {
15601          test -z "$ac_c_werror_flag" ||
15602          test ! -s conftest.err
15603        } && test -s conftest.$ac_objext; then
15604   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15605 else
15606   $as_echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609         ac_cv_member_struct_sockaddr_storage_ss_len=no
15610 fi
15611
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 fi
15614
15615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616 fi
15617 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15618 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15619 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15620
15621 cat >>confdefs.h <<_ACEOF
15622 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15623 _ACEOF
15624
15625
15626 fi
15627 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15628 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15629 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15630   $as_echo_n "(cached) " >&6
15631 else
15632   cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 #include <sys/types.h>
15639 #ifdef HAVE_SYS_SOCKET_H
15640 #include <sys/socket.h>
15641 #endif
15642
15643
15644 int
15645 main ()
15646 {
15647 static struct sockaddr_storage ac_aggr;
15648 if (ac_aggr.__ss_len)
15649 return 0;
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (ac_try="$ac_compile"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661 $as_echo "$ac_try_echo") >&5
15662   (eval "$ac_compile") 2>conftest.er1
15663   ac_status=$?
15664   grep -v '^ *+' conftest.er1 >conftest.err
15665   rm -f conftest.er1
15666   cat conftest.err >&5
15667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } && {
15669          test -z "$ac_c_werror_flag" ||
15670          test ! -s conftest.err
15671        } && test -s conftest.$ac_objext; then
15672   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15673 else
15674   $as_echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677         cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 #include <sys/types.h>
15684 #ifdef HAVE_SYS_SOCKET_H
15685 #include <sys/socket.h>
15686 #endif
15687
15688
15689 int
15690 main ()
15691 {
15692 static struct sockaddr_storage ac_aggr;
15693 if (sizeof ac_aggr.__ss_len)
15694 return 0;
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707   (eval "$ac_compile") 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } && {
15714          test -z "$ac_c_werror_flag" ||
15715          test ! -s conftest.err
15716        } && test -s conftest.$ac_objext; then
15717   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15718 else
15719   $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722         ac_cv_member_struct_sockaddr_storage___ss_len=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 fi
15730 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15731 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15732 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15733
15734 cat >>confdefs.h <<_ACEOF
15735 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15736 _ACEOF
15737
15738
15739 fi
15740 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15741 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15742 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15743   $as_echo_n "(cached) " >&6
15744 else
15745   cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 #include <sys/types.h>
15752 #ifdef HAVE_SYS_SOCKET_H
15753 #include <sys/socket.h>
15754 #endif
15755
15756
15757 int
15758 main ()
15759 {
15760 static struct sockaddr ac_aggr;
15761 if (ac_aggr.sa_len)
15762 return 0;
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (ac_try="$ac_compile"
15769 case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15774 $as_echo "$ac_try_echo") >&5
15775   (eval "$ac_compile") 2>conftest.er1
15776   ac_status=$?
15777   grep -v '^ *+' conftest.er1 >conftest.err
15778   rm -f conftest.er1
15779   cat conftest.err >&5
15780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); } && {
15782          test -z "$ac_c_werror_flag" ||
15783          test ! -s conftest.err
15784        } && test -s conftest.$ac_objext; then
15785   ac_cv_member_struct_sockaddr_sa_len=yes
15786 else
15787   $as_echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15789
15790         cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796 #include <sys/types.h>
15797 #ifdef HAVE_SYS_SOCKET_H
15798 #include <sys/socket.h>
15799 #endif
15800
15801
15802 int
15803 main ()
15804 {
15805 static struct sockaddr ac_aggr;
15806 if (sizeof ac_aggr.sa_len)
15807 return 0;
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (ac_try="$ac_compile"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15819 $as_echo "$ac_try_echo") >&5
15820   (eval "$ac_compile") 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } && {
15827          test -z "$ac_c_werror_flag" ||
15828          test ! -s conftest.err
15829        } && test -s conftest.$ac_objext; then
15830   ac_cv_member_struct_sockaddr_sa_len=yes
15831 else
15832   $as_echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835         ac_cv_member_struct_sockaddr_sa_len=no
15836 fi
15837
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 fi
15840
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 fi
15843 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15844 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15845 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15846
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15849 _ACEOF
15850
15851
15852 fi
15853
15854 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15855 $as_echo_n "checking for struct addrinfo... " >&6; }
15856 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15857   $as_echo_n "(cached) " >&6
15858 else
15859   ac_cv_type_struct_addrinfo=no
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866 #include <sys/types.h>
15867 #include <sys/socket.h>
15868 #include <netdb.h>
15869
15870
15871 int
15872 main ()
15873 {
15874 if (sizeof (struct addrinfo))
15875        return 0;
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884   *) ac_try_echo=$ac_try;;
15885 esac
15886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15887 $as_echo "$ac_try_echo") >&5
15888   (eval "$ac_compile") 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } && {
15895          test -z "$ac_c_werror_flag" ||
15896          test ! -s conftest.err
15897        } && test -s conftest.$ac_objext; then
15898   cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904 #include <sys/types.h>
15905 #include <sys/socket.h>
15906 #include <netdb.h>
15907
15908
15909 int
15910 main ()
15911 {
15912 if (sizeof ((struct addrinfo)))
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   :
15937 else
15938   $as_echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941         ac_cv_type_struct_addrinfo=yes
15942 fi
15943
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 else
15946   $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949
15950 fi
15951
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 fi
15954 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15955 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
15956 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
15957
15958 cat >>confdefs.h <<_ACEOF
15959 #define HAVE_STRUCT_ADDRINFO 1
15960 _ACEOF
15961
15962
15963 fi
15964
15965
15966 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15967 $as_echo_n "checking for struct cmsgcred... " >&6; }
15968 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15969   $as_echo_n "(cached) " >&6
15970 else
15971   ac_cv_type_struct_cmsgcred=no
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 #include <sys/param.h>
15979 #include <sys/types.h>
15980 #include <sys/socket.h>
15981 #include <sys/ucred.h>
15982
15983 int
15984 main ()
15985 {
15986 if (sizeof (struct cmsgcred))
15987        return 0;
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
15994 case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15999 $as_echo "$ac_try_echo") >&5
16000   (eval "$ac_compile") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && {
16007          test -z "$ac_c_werror_flag" ||
16008          test ! -s conftest.err
16009        } && test -s conftest.$ac_objext; then
16010   cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h.  */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h.  */
16016 #include <sys/param.h>
16017 #include <sys/types.h>
16018 #include <sys/socket.h>
16019 #include <sys/ucred.h>
16020
16021 int
16022 main ()
16023 {
16024 if (sizeof ((struct cmsgcred)))
16025           return 0;
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16037 $as_echo "$ac_try_echo") >&5
16038   (eval "$ac_compile") 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } && {
16045          test -z "$ac_c_werror_flag" ||
16046          test ! -s conftest.err
16047        } && test -s conftest.$ac_objext; then
16048   :
16049 else
16050   $as_echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053         ac_cv_type_struct_cmsgcred=yes
16054 fi
16055
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 else
16058   $as_echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16060
16061
16062 fi
16063
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 fi
16066 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16067 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16068 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16069
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_STRUCT_CMSGCRED 1
16072 _ACEOF
16073
16074
16075 fi
16076 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16077 $as_echo_n "checking for struct fcred... " >&6; }
16078 if test "${ac_cv_type_struct_fcred+set}" = set; then
16079   $as_echo_n "(cached) " >&6
16080 else
16081   ac_cv_type_struct_fcred=no
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088 #include <sys/param.h>
16089 #include <sys/types.h>
16090 #include <sys/socket.h>
16091 #include <sys/ucred.h>
16092
16093 int
16094 main ()
16095 {
16096 if (sizeof (struct fcred))
16097        return 0;
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext
16103 if { (ac_try="$ac_compile"
16104 case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16109 $as_echo "$ac_try_echo") >&5
16110   (eval "$ac_compile") 2>conftest.er1
16111   ac_status=$?
16112   grep -v '^ *+' conftest.er1 >conftest.err
16113   rm -f conftest.er1
16114   cat conftest.err >&5
16115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } && {
16117          test -z "$ac_c_werror_flag" ||
16118          test ! -s conftest.err
16119        } && test -s conftest.$ac_objext; then
16120   cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126 #include <sys/param.h>
16127 #include <sys/types.h>
16128 #include <sys/socket.h>
16129 #include <sys/ucred.h>
16130
16131 int
16132 main ()
16133 {
16134 if (sizeof ((struct fcred)))
16135           return 0;
16136   ;
16137   return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext
16141 if { (ac_try="$ac_compile"
16142 case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148   (eval "$ac_compile") 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } && {
16155          test -z "$ac_c_werror_flag" ||
16156          test ! -s conftest.err
16157        } && test -s conftest.$ac_objext; then
16158   :
16159 else
16160   $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163         ac_cv_type_struct_fcred=yes
16164 fi
16165
16166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 else
16168   $as_echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171
16172 fi
16173
16174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 fi
16176 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16177 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16178 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16179
16180 cat >>confdefs.h <<_ACEOF
16181 #define HAVE_STRUCT_FCRED 1
16182 _ACEOF
16183
16184
16185 fi
16186 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16187 $as_echo_n "checking for struct sockcred... " >&6; }
16188 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16189   $as_echo_n "(cached) " >&6
16190 else
16191   ac_cv_type_struct_sockcred=no
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 #include <sys/param.h>
16199 #include <sys/types.h>
16200 #include <sys/socket.h>
16201 #include <sys/ucred.h>
16202
16203 int
16204 main ()
16205 {
16206 if (sizeof (struct sockcred))
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   cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 #include <sys/param.h>
16237 #include <sys/types.h>
16238 #include <sys/socket.h>
16239 #include <sys/ucred.h>
16240
16241 int
16242 main ()
16243 {
16244 if (sizeof ((struct sockcred)))
16245           return 0;
16246   ;
16247   return 0;
16248 }
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (ac_try="$ac_compile"
16252 case "(($ac_try" in
16253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254   *) ac_try_echo=$ac_try;;
16255 esac
16256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16257 $as_echo "$ac_try_echo") >&5
16258   (eval "$ac_compile") 2>conftest.er1
16259   ac_status=$?
16260   grep -v '^ *+' conftest.er1 >conftest.err
16261   rm -f conftest.er1
16262   cat conftest.err >&5
16263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } && {
16265          test -z "$ac_c_werror_flag" ||
16266          test ! -s conftest.err
16267        } && test -s conftest.$ac_objext; then
16268   :
16269 else
16270   $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273         ac_cv_type_struct_sockcred=yes
16274 fi
16275
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 else
16278   $as_echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281
16282 fi
16283
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 fi
16286 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16287 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16288 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16289
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_STRUCT_SOCKCRED 1
16292 _ACEOF
16293
16294
16295 fi
16296
16297
16298 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16299 $as_echo_n "checking for struct option... " >&6; }
16300 if test "${ac_cv_type_struct_option+set}" = set; then
16301   $as_echo_n "(cached) " >&6
16302 else
16303   ac_cv_type_struct_option=no
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310 #ifdef HAVE_GETOPT_H
16311 #include <getopt.h>
16312 #endif
16313
16314 int
16315 main ()
16316 {
16317 if (sizeof (struct option))
16318        return 0;
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext
16324 if { (ac_try="$ac_compile"
16325 case "(($ac_try" in
16326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327   *) ac_try_echo=$ac_try;;
16328 esac
16329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16330 $as_echo "$ac_try_echo") >&5
16331   (eval "$ac_compile") 2>conftest.er1
16332   ac_status=$?
16333   grep -v '^ *+' conftest.er1 >conftest.err
16334   rm -f conftest.er1
16335   cat conftest.err >&5
16336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } && {
16338          test -z "$ac_c_werror_flag" ||
16339          test ! -s conftest.err
16340        } && test -s conftest.$ac_objext; then
16341   cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 #ifdef HAVE_GETOPT_H
16348 #include <getopt.h>
16349 #endif
16350
16351 int
16352 main ()
16353 {
16354 if (sizeof ((struct option)))
16355           return 0;
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (ac_try="$ac_compile"
16362 case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16367 $as_echo "$ac_try_echo") >&5
16368   (eval "$ac_compile") 2>conftest.er1
16369   ac_status=$?
16370   grep -v '^ *+' conftest.er1 >conftest.err
16371   rm -f conftest.er1
16372   cat conftest.err >&5
16373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } && {
16375          test -z "$ac_c_werror_flag" ||
16376          test ! -s conftest.err
16377        } && test -s conftest.$ac_objext; then
16378   :
16379 else
16380   $as_echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16382
16383         ac_cv_type_struct_option=yes
16384 fi
16385
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 else
16388   $as_echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391
16392 fi
16393
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 fi
16396 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16397 $as_echo "$ac_cv_type_struct_option" >&6; }
16398 if test "x$ac_cv_type_struct_option" = x""yes; then
16399
16400 cat >>confdefs.h <<_ACEOF
16401 #define HAVE_STRUCT_OPTION 1
16402 _ACEOF
16403
16404
16405 fi
16406
16407
16408 if test "$with_zlib" = yes; then
16409   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16410   # did not).  While we could work around the lack of z_streamp, it
16411   # seems unwise to encourage people to use such old zlib versions...
16412   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16413 $as_echo_n "checking for z_streamp... " >&6; }
16414 if test "${ac_cv_type_z_streamp+set}" = set; then
16415   $as_echo_n "(cached) " >&6
16416 else
16417   ac_cv_type_z_streamp=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 <zlib.h>
16425
16426 int
16427 main ()
16428 {
16429 if (sizeof (z_streamp))
16430        return 0;
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext
16436 if { (ac_try="$ac_compile"
16437 case "(($ac_try" in
16438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439   *) ac_try_echo=$ac_try;;
16440 esac
16441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16442 $as_echo "$ac_try_echo") >&5
16443   (eval "$ac_compile") 2>conftest.er1
16444   ac_status=$?
16445   grep -v '^ *+' conftest.er1 >conftest.err
16446   rm -f conftest.er1
16447   cat conftest.err >&5
16448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); } && {
16450          test -z "$ac_c_werror_flag" ||
16451          test ! -s conftest.err
16452        } && test -s conftest.$ac_objext; then
16453   cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 #include <zlib.h>
16460
16461 int
16462 main ()
16463 {
16464 if (sizeof ((z_streamp)))
16465           return 0;
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext
16471 if { (ac_try="$ac_compile"
16472 case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478   (eval "$ac_compile") 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } && {
16485          test -z "$ac_c_werror_flag" ||
16486          test ! -s conftest.err
16487        } && test -s conftest.$ac_objext; then
16488   :
16489 else
16490   $as_echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493         ac_cv_type_z_streamp=yes
16494 fi
16495
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 else
16498   $as_echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501
16502 fi
16503
16504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505 fi
16506 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16507 $as_echo "$ac_cv_type_z_streamp" >&6; }
16508 if test "x$ac_cv_type_z_streamp" = x""yes; then
16509   :
16510 else
16511   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16512 Use --without-zlib to disable zlib support." >&5
16513 $as_echo "$as_me: error: zlib version is too old
16514 Use --without-zlib to disable zlib support." >&2;}
16515    { (exit 1); exit 1; }; }
16516 fi
16517
16518 fi
16519
16520 if test "$with_krb5" = yes; then
16521 # Check for differences between MIT and Heimdal (KTH) releases
16522   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16523 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16524 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16525   $as_echo_n "(cached) " >&6
16526 else
16527   cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h.  */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h.  */
16533 #include <krb5.h>
16534
16535 int
16536 main ()
16537 {
16538 static krb5_ticket ac_aggr;
16539 if (ac_aggr.enc_part2)
16540 return 0;
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext
16546 if { (ac_try="$ac_compile"
16547 case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16552 $as_echo "$ac_try_echo") >&5
16553   (eval "$ac_compile") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } && {
16560          test -z "$ac_c_werror_flag" ||
16561          test ! -s conftest.err
16562        } && test -s conftest.$ac_objext; then
16563   ac_cv_member_krb5_ticket_enc_part2=yes
16564 else
16565   $as_echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568         cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 #include <krb5.h>
16575
16576 int
16577 main ()
16578 {
16579 static krb5_ticket ac_aggr;
16580 if (sizeof ac_aggr.enc_part2)
16581 return 0;
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 rm -f conftest.$ac_objext
16587 if { (ac_try="$ac_compile"
16588 case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16593 $as_echo "$ac_try_echo") >&5
16594   (eval "$ac_compile") 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } && {
16601          test -z "$ac_c_werror_flag" ||
16602          test ! -s conftest.err
16603        } && test -s conftest.$ac_objext; then
16604   ac_cv_member_krb5_ticket_enc_part2=yes
16605 else
16606   $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609         ac_cv_member_krb5_ticket_enc_part2=no
16610 fi
16611
16612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 fi
16614
16615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616 fi
16617 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16618 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16619 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16620
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_KRB5_TICKET_ENC_PART2 1
16623 _ACEOF
16624
16625
16626 else
16627   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16628 $as_echo_n "checking for krb5_ticket.client... " >&6; }
16629 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16630   $as_echo_n "(cached) " >&6
16631 else
16632   cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 #include <krb5.h>
16639
16640 int
16641 main ()
16642 {
16643 static krb5_ticket ac_aggr;
16644 if (ac_aggr.client)
16645 return 0;
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16657 $as_echo "$ac_try_echo") >&5
16658   (eval "$ac_compile") 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } && {
16665          test -z "$ac_c_werror_flag" ||
16666          test ! -s conftest.err
16667        } && test -s conftest.$ac_objext; then
16668   ac_cv_member_krb5_ticket_client=yes
16669 else
16670   $as_echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16672
16673         cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 #include <krb5.h>
16680
16681 int
16682 main ()
16683 {
16684 static krb5_ticket ac_aggr;
16685 if (sizeof ac_aggr.client)
16686 return 0;
16687   ;
16688   return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16698 $as_echo "$ac_try_echo") >&5
16699   (eval "$ac_compile") 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } && {
16706          test -z "$ac_c_werror_flag" ||
16707          test ! -s conftest.err
16708        } && test -s conftest.$ac_objext; then
16709   ac_cv_member_krb5_ticket_client=yes
16710 else
16711   $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714         ac_cv_member_krb5_ticket_client=no
16715 fi
16716
16717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 fi
16719
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 fi
16722 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16723 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
16724 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
16725
16726 cat >>confdefs.h <<_ACEOF
16727 #define HAVE_KRB5_TICKET_CLIENT 1
16728 _ACEOF
16729
16730
16731 else
16732   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16733 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16734    { (exit 1); exit 1; }; }
16735 fi
16736
16737 fi
16738
16739   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16740 $as_echo_n "checking for krb5_error.text.data... " >&6; }
16741 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16742   $as_echo_n "(cached) " >&6
16743 else
16744   cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <krb5.h>
16751
16752 int
16753 main ()
16754 {
16755 static krb5_error ac_aggr;
16756 if (ac_aggr.text.data)
16757 return 0;
16758   ;
16759   return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (ac_try="$ac_compile"
16764 case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769 $as_echo "$ac_try_echo") >&5
16770   (eval "$ac_compile") 2>conftest.er1
16771   ac_status=$?
16772   grep -v '^ *+' conftest.er1 >conftest.err
16773   rm -f conftest.er1
16774   cat conftest.err >&5
16775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } && {
16777          test -z "$ac_c_werror_flag" ||
16778          test ! -s conftest.err
16779        } && test -s conftest.$ac_objext; then
16780   ac_cv_member_krb5_error_text_data=yes
16781 else
16782   $as_echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785         cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h.  */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h.  */
16791 #include <krb5.h>
16792
16793 int
16794 main ()
16795 {
16796 static krb5_error ac_aggr;
16797 if (sizeof ac_aggr.text.data)
16798 return 0;
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (ac_try="$ac_compile"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811   (eval "$ac_compile") 2>conftest.er1
16812   ac_status=$?
16813   grep -v '^ *+' conftest.er1 >conftest.err
16814   rm -f conftest.er1
16815   cat conftest.err >&5
16816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); } && {
16818          test -z "$ac_c_werror_flag" ||
16819          test ! -s conftest.err
16820        } && test -s conftest.$ac_objext; then
16821   ac_cv_member_krb5_error_text_data=yes
16822 else
16823   $as_echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16825
16826         ac_cv_member_krb5_error_text_data=no
16827 fi
16828
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 fi
16831
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16835 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
16836 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
16837
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16840 _ACEOF
16841
16842
16843 else
16844   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16845 $as_echo_n "checking for krb5_error.e_data... " >&6; }
16846 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16847   $as_echo_n "(cached) " >&6
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855 #include <krb5.h>
16856
16857 int
16858 main ()
16859 {
16860 static krb5_error ac_aggr;
16861 if (ac_aggr.e_data)
16862 return 0;
16863   ;
16864   return 0;
16865 }
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (ac_try="$ac_compile"
16869 case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16874 $as_echo "$ac_try_echo") >&5
16875   (eval "$ac_compile") 2>conftest.er1
16876   ac_status=$?
16877   grep -v '^ *+' conftest.er1 >conftest.err
16878   rm -f conftest.er1
16879   cat conftest.err >&5
16880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } && {
16882          test -z "$ac_c_werror_flag" ||
16883          test ! -s conftest.err
16884        } && test -s conftest.$ac_objext; then
16885   ac_cv_member_krb5_error_e_data=yes
16886 else
16887   $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890         cat >conftest.$ac_ext <<_ACEOF
16891 /* confdefs.h.  */
16892 _ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h.  */
16896 #include <krb5.h>
16897
16898 int
16899 main ()
16900 {
16901 static krb5_error ac_aggr;
16902 if (sizeof ac_aggr.e_data)
16903 return 0;
16904   ;
16905   return 0;
16906 }
16907 _ACEOF
16908 rm -f conftest.$ac_objext
16909 if { (ac_try="$ac_compile"
16910 case "(($ac_try" in
16911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912   *) ac_try_echo=$ac_try;;
16913 esac
16914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16915 $as_echo "$ac_try_echo") >&5
16916   (eval "$ac_compile") 2>conftest.er1
16917   ac_status=$?
16918   grep -v '^ *+' conftest.er1 >conftest.err
16919   rm -f conftest.er1
16920   cat conftest.err >&5
16921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } && {
16923          test -z "$ac_c_werror_flag" ||
16924          test ! -s conftest.err
16925        } && test -s conftest.$ac_objext; then
16926   ac_cv_member_krb5_error_e_data=yes
16927 else
16928   $as_echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931         ac_cv_member_krb5_error_e_data=no
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 fi
16936
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 fi
16939 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
16940 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
16941 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
16942
16943 cat >>confdefs.h <<_ACEOF
16944 #define HAVE_KRB5_ERROR_E_DATA 1
16945 _ACEOF
16946
16947
16948 else
16949   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16950 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16951    { (exit 1); exit 1; }; }
16952 fi
16953
16954 fi
16955
16956
16957 # Win32 requires headers to be loaded for __stdcall, so can't use
16958 # AC_CHECK_FUNCS here.
16959   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16960 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967 #include <krb5.h>
16968 int
16969 main ()
16970 {
16971 krb5_free_unparsed_name(NULL,NULL);
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983 $as_echo "$ac_try_echo") >&5
16984   (eval "$ac_link") 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } && {
16991          test -z "$ac_c_werror_flag" ||
16992          test ! -s conftest.err
16993        } && test -s conftest$ac_exeext && {
16994          test "$cross_compiling" = yes ||
16995          $as_test_x conftest$ac_exeext
16996        }; then
16997
16998 cat >>confdefs.h <<\_ACEOF
16999 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17000 _ACEOF
17001
17002 { $as_echo "$as_me:$LINENO: result: yes" >&5
17003 $as_echo "yes" >&6; }
17004 else
17005   $as_echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008         { $as_echo "$as_me:$LINENO: result: no" >&5
17009 $as_echo "no" >&6; }
17010 fi
17011
17012 rm -rf conftest.dSYM
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014       conftest$ac_exeext conftest.$ac_ext
17015 fi
17016
17017
17018 ##
17019 ## Functions, global variables
17020 ##
17021
17022 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17023 $as_echo_n "checking for int timezone... " >&6; }
17024 if test "${pgac_cv_var_int_timezone+set}" = set; then
17025   $as_echo_n "(cached) " >&6
17026 else
17027   cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h.  */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h.  */
17033 #include <time.h>
17034 int res;
17035 int
17036 main ()
17037 {
17038 #ifndef __CYGWIN__
17039 res = timezone / 60;
17040 #else
17041 res = _timezone / 60;
17042 #endif
17043   ;
17044   return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17054 $as_echo "$ac_try_echo") >&5
17055   (eval "$ac_link") 2>conftest.er1
17056   ac_status=$?
17057   grep -v '^ *+' conftest.er1 >conftest.err
17058   rm -f conftest.er1
17059   cat conftest.err >&5
17060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); } && {
17062          test -z "$ac_c_werror_flag" ||
17063          test ! -s conftest.err
17064        } && test -s conftest$ac_exeext && {
17065          test "$cross_compiling" = yes ||
17066          $as_test_x conftest$ac_exeext
17067        }; then
17068   pgac_cv_var_int_timezone=yes
17069 else
17070   $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073         pgac_cv_var_int_timezone=no
17074 fi
17075
17076 rm -rf conftest.dSYM
17077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17078       conftest$ac_exeext conftest.$ac_ext
17079 fi
17080 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17081 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17082 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17083
17084 cat >>confdefs.h <<\_ACEOF
17085 #define HAVE_INT_TIMEZONE /**/
17086 _ACEOF
17087
17088 fi
17089 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17090 $as_echo_n "checking types of arguments for accept()... " >&6; }
17091  if test "${ac_cv_func_accept_return+set}" = set; then
17092   $as_echo_n "(cached) " >&6
17093 else
17094    if test "${ac_cv_func_accept_arg1+set}" = set; then
17095   $as_echo_n "(cached) " >&6
17096 else
17097     if test "${ac_cv_func_accept_arg2+set}" = set; then
17098   $as_echo_n "(cached) " >&6
17099 else
17100      if test "${ac_cv_func_accept_arg3+set}" = set; then
17101   $as_echo_n "(cached) " >&6
17102 else
17103       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17104       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17105        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17106         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17107          cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h.  */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h.  */
17113 #ifdef HAVE_SYS_TYPES_H
17114 #include <sys/types.h>
17115 #endif
17116 #ifdef HAVE_SYS_SOCKET_H
17117 #include <sys/socket.h>
17118 #endif
17119 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17120 int
17121 main ()
17122 {
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext
17129 if { (ac_try="$ac_compile"
17130 case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17135 $as_echo "$ac_try_echo") >&5
17136   (eval "$ac_compile") 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } && {
17143          test -z "$ac_c_werror_flag" ||
17144          test ! -s conftest.err
17145        } && test -s conftest.$ac_objext; then
17146   ac_not_found=no; break 4
17147 else
17148   $as_echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17150
17151         ac_not_found=yes
17152 fi
17153
17154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17155        done
17156       done
17157      done
17158     done
17159     if test "$ac_not_found" = yes; then
17160       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17161 $as_echo "$as_me: error: could not determine argument types" >&2;}
17162    { (exit 1); exit 1; }; }
17163     fi
17164     if test "$ac_cv_func_accept_arg3" = "void"; then
17165       ac_cv_func_accept_arg3=int
17166     fi
17167
17168 fi
17169
17170 fi
17171
17172 fi
17173
17174 fi
17175  { $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
17176 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17177
17178 cat >>confdefs.h <<_ACEOF
17179 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17180 _ACEOF
17181
17182
17183 cat >>confdefs.h <<_ACEOF
17184 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17185 _ACEOF
17186
17187
17188 cat >>confdefs.h <<_ACEOF
17189 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17190 _ACEOF
17191
17192
17193 cat >>confdefs.h <<_ACEOF
17194 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17195 _ACEOF
17196
17197
17198 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17199 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17200 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17201   $as_echo_n "(cached) " >&6
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 #include <sys/time.h>
17210 int
17211 main ()
17212 {
17213 struct timeval *tp;
17214 struct timezone *tzp;
17215 gettimeofday(tp,tzp);
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17227 $as_echo "$ac_try_echo") >&5
17228   (eval "$ac_compile") 2>conftest.er1
17229   ac_status=$?
17230   grep -v '^ *+' conftest.er1 >conftest.err
17231   rm -f conftest.er1
17232   cat conftest.err >&5
17233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } && {
17235          test -z "$ac_c_werror_flag" ||
17236          test ! -s conftest.err
17237        } && test -s conftest.$ac_objext; then
17238   pgac_cv_func_gettimeofday_1arg=no
17239 else
17240   $as_echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243         pgac_cv_func_gettimeofday_1arg=yes
17244 fi
17245
17246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 fi
17248 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17249 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17250 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17251
17252 cat >>confdefs.h <<\_ACEOF
17253 #define GETTIMEOFDAY_1ARG /**/
17254 _ACEOF
17255
17256 fi
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17282 do
17283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17285 $as_echo_n "checking for $ac_func... " >&6; }
17286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17287   $as_echo_n "(cached) " >&6
17288 else
17289   cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h.  */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h.  */
17295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17297 #define $ac_func innocuous_$ac_func
17298
17299 /* System header to define __stub macros and hopefully few prototypes,
17300     which can conflict with char $ac_func (); below.
17301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302     <limits.h> exists even on freestanding compilers.  */
17303
17304 #ifdef __STDC__
17305 # include <limits.h>
17306 #else
17307 # include <assert.h>
17308 #endif
17309
17310 #undef $ac_func
17311
17312 /* Override any GCC internal prototype to avoid an error.
17313    Use char because int might match the return type of a GCC
17314    builtin and then its argument prototype would still apply.  */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 char $ac_func ();
17319 /* The GNU C library defines this for functions which it implements
17320     to always fail with ENOSYS.  Some functions are actually named
17321     something starting with __ and the normal name is an alias.  */
17322 #if defined __stub_$ac_func || defined __stub___$ac_func
17323 choke me
17324 #endif
17325
17326 int
17327 main ()
17328 {
17329 return $ac_func ();
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17341 $as_echo "$ac_try_echo") >&5
17342   (eval "$ac_link") 2>conftest.er1
17343   ac_status=$?
17344   grep -v '^ *+' conftest.er1 >conftest.err
17345   rm -f conftest.er1
17346   cat conftest.err >&5
17347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } && {
17349          test -z "$ac_c_werror_flag" ||
17350          test ! -s conftest.err
17351        } && test -s conftest$ac_exeext && {
17352          test "$cross_compiling" = yes ||
17353          $as_test_x conftest$ac_exeext
17354        }; then
17355   eval "$as_ac_var=yes"
17356 else
17357   $as_echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360         eval "$as_ac_var=no"
17361 fi
17362
17363 rm -rf conftest.dSYM
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365       conftest$ac_exeext conftest.$ac_ext
17366 fi
17367 ac_res=`eval 'as_val=${'$as_ac_var'}
17368                  $as_echo "$as_val"'`
17369                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17370 $as_echo "$ac_res" >&6; }
17371 as_val=`eval 'as_val=${'$as_ac_var'}
17372                  $as_echo "$as_val"'`
17373    if test "x$as_val" = x""yes; then
17374   cat >>confdefs.h <<_ACEOF
17375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17376 _ACEOF
17377
17378 fi
17379 done
17380
17381
17382 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17383 # by calling it, 2009-04-02
17384 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17385 if test "$PORTNAME" != "solaris"; then
17386
17387 for ac_func in posix_fadvise
17388 do
17389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17391 $as_echo_n "checking for $ac_func... " >&6; }
17392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17393   $as_echo_n "(cached) " >&6
17394 else
17395   cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h.  */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h.  */
17401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17403 #define $ac_func innocuous_$ac_func
17404
17405 /* System header to define __stub macros and hopefully few prototypes,
17406     which can conflict with char $ac_func (); below.
17407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17408     <limits.h> exists even on freestanding compilers.  */
17409
17410 #ifdef __STDC__
17411 # include <limits.h>
17412 #else
17413 # include <assert.h>
17414 #endif
17415
17416 #undef $ac_func
17417
17418 /* Override any GCC internal prototype to avoid an error.
17419    Use char because int might match the return type of a GCC
17420    builtin and then its argument prototype would still apply.  */
17421 #ifdef __cplusplus
17422 extern "C"
17423 #endif
17424 char $ac_func ();
17425 /* The GNU C library defines this for functions which it implements
17426     to always fail with ENOSYS.  Some functions are actually named
17427     something starting with __ and the normal name is an alias.  */
17428 #if defined __stub_$ac_func || defined __stub___$ac_func
17429 choke me
17430 #endif
17431
17432 int
17433 main ()
17434 {
17435 return $ac_func ();
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444   *) ac_try_echo=$ac_try;;
17445 esac
17446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17447 $as_echo "$ac_try_echo") >&5
17448   (eval "$ac_link") 2>conftest.er1
17449   ac_status=$?
17450   grep -v '^ *+' conftest.er1 >conftest.err
17451   rm -f conftest.er1
17452   cat conftest.err >&5
17453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); } && {
17455          test -z "$ac_c_werror_flag" ||
17456          test ! -s conftest.err
17457        } && test -s conftest$ac_exeext && {
17458          test "$cross_compiling" = yes ||
17459          $as_test_x conftest$ac_exeext
17460        }; then
17461   eval "$as_ac_var=yes"
17462 else
17463   $as_echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466         eval "$as_ac_var=no"
17467 fi
17468
17469 rm -rf conftest.dSYM
17470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17471       conftest$ac_exeext conftest.$ac_ext
17472 fi
17473 ac_res=`eval 'as_val=${'$as_ac_var'}
17474                  $as_echo "$as_val"'`
17475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17476 $as_echo "$ac_res" >&6; }
17477 as_val=`eval 'as_val=${'$as_ac_var'}
17478                  $as_echo "$as_val"'`
17479    if test "x$as_val" = x""yes; then
17480   cat >>confdefs.h <<_ACEOF
17481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17482 _ACEOF
17483
17484 fi
17485 done
17486
17487 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17488 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17489 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17490   $as_echo_n "(cached) " >&6
17491 else
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 #include <fcntl.h>
17499
17500 int
17501 main ()
17502 {
17503 #ifndef posix_fadvise
17504   (void) posix_fadvise;
17505 #endif
17506
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (ac_try="$ac_compile"
17513 case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17518 $as_echo "$ac_try_echo") >&5
17519   (eval "$ac_compile") 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } && {
17526          test -z "$ac_c_werror_flag" ||
17527          test ! -s conftest.err
17528        } && test -s conftest.$ac_objext; then
17529   ac_cv_have_decl_posix_fadvise=yes
17530 else
17531   $as_echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534         ac_cv_have_decl_posix_fadvise=no
17535 fi
17536
17537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17538 fi
17539 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17540 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17541 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17542
17543 cat >>confdefs.h <<_ACEOF
17544 #define HAVE_DECL_POSIX_FADVISE 1
17545 _ACEOF
17546
17547
17548 else
17549   cat >>confdefs.h <<_ACEOF
17550 #define HAVE_DECL_POSIX_FADVISE 0
17551 _ACEOF
17552
17553
17554 fi
17555
17556
17557 fi
17558
17559 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17560 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17561 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17562   $as_echo_n "(cached) " >&6
17563 else
17564   cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570 #include <unistd.h>
17571
17572 int
17573 main ()
17574 {
17575 #ifndef fdatasync
17576   (void) fdatasync;
17577 #endif
17578
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext
17584 if { (ac_try="$ac_compile"
17585 case "(($ac_try" in
17586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587   *) ac_try_echo=$ac_try;;
17588 esac
17589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591   (eval "$ac_compile") 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } && {
17598          test -z "$ac_c_werror_flag" ||
17599          test ! -s conftest.err
17600        } && test -s conftest.$ac_objext; then
17601   ac_cv_have_decl_fdatasync=yes
17602 else
17603   $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606         ac_cv_have_decl_fdatasync=no
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 fi
17611 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17612 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17613 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17614
17615 cat >>confdefs.h <<_ACEOF
17616 #define HAVE_DECL_FDATASYNC 1
17617 _ACEOF
17618
17619
17620 else
17621   cat >>confdefs.h <<_ACEOF
17622 #define HAVE_DECL_FDATASYNC 0
17623 _ACEOF
17624
17625
17626 fi
17627
17628
17629 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
17630 $as_echo_n "checking whether strlcat is declared... " >&6; }
17631 if test "${ac_cv_have_decl_strlcat+set}" = set; then
17632   $as_echo_n "(cached) " >&6
17633 else
17634   cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 $ac_includes_default
17641 int
17642 main ()
17643 {
17644 #ifndef strlcat
17645   (void) strlcat;
17646 #endif
17647
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (ac_try="$ac_compile"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17659 $as_echo "$ac_try_echo") >&5
17660   (eval "$ac_compile") 2>conftest.er1
17661   ac_status=$?
17662   grep -v '^ *+' conftest.er1 >conftest.err
17663   rm -f conftest.er1
17664   cat conftest.err >&5
17665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); } && {
17667          test -z "$ac_c_werror_flag" ||
17668          test ! -s conftest.err
17669        } && test -s conftest.$ac_objext; then
17670   ac_cv_have_decl_strlcat=yes
17671 else
17672   $as_echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675         ac_cv_have_decl_strlcat=no
17676 fi
17677
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679 fi
17680 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
17681 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
17682 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
17683
17684 cat >>confdefs.h <<_ACEOF
17685 #define HAVE_DECL_STRLCAT 1
17686 _ACEOF
17687
17688
17689 else
17690   cat >>confdefs.h <<_ACEOF
17691 #define HAVE_DECL_STRLCAT 0
17692 _ACEOF
17693
17694
17695 fi
17696 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
17697 $as_echo_n "checking whether strlcpy is declared... " >&6; }
17698 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
17699   $as_echo_n "(cached) " >&6
17700 else
17701   cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707 $ac_includes_default
17708 int
17709 main ()
17710 {
17711 #ifndef strlcpy
17712   (void) strlcpy;
17713 #endif
17714
17715   ;
17716   return 0;
17717 }
17718 _ACEOF
17719 rm -f conftest.$ac_objext
17720 if { (ac_try="$ac_compile"
17721 case "(($ac_try" in
17722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723   *) ac_try_echo=$ac_try;;
17724 esac
17725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17726 $as_echo "$ac_try_echo") >&5
17727   (eval "$ac_compile") 2>conftest.er1
17728   ac_status=$?
17729   grep -v '^ *+' conftest.er1 >conftest.err
17730   rm -f conftest.er1
17731   cat conftest.err >&5
17732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); } && {
17734          test -z "$ac_c_werror_flag" ||
17735          test ! -s conftest.err
17736        } && test -s conftest.$ac_objext; then
17737   ac_cv_have_decl_strlcpy=yes
17738 else
17739   $as_echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742         ac_cv_have_decl_strlcpy=no
17743 fi
17744
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 fi
17747 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17748 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
17749 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
17750
17751 cat >>confdefs.h <<_ACEOF
17752 #define HAVE_DECL_STRLCPY 1
17753 _ACEOF
17754
17755
17756 else
17757   cat >>confdefs.h <<_ACEOF
17758 #define HAVE_DECL_STRLCPY 0
17759 _ACEOF
17760
17761
17762 fi
17763
17764
17765 # This is probably only present on Darwin, but may as well check always
17766 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17767 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
17768 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17769   $as_echo_n "(cached) " >&6
17770 else
17771   cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h.  */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h.  */
17777 #include <fcntl.h>
17778
17779 int
17780 main ()
17781 {
17782 #ifndef F_FULLFSYNC
17783   (void) F_FULLFSYNC;
17784 #endif
17785
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797 $as_echo "$ac_try_echo") >&5
17798   (eval "$ac_compile") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } && {
17805          test -z "$ac_c_werror_flag" ||
17806          test ! -s conftest.err
17807        } && test -s conftest.$ac_objext; then
17808   ac_cv_have_decl_F_FULLFSYNC=yes
17809 else
17810   $as_echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17812
17813         ac_cv_have_decl_F_FULLFSYNC=no
17814 fi
17815
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 fi
17818 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17819 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17820 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
17821
17822 cat >>confdefs.h <<_ACEOF
17823 #define HAVE_DECL_F_FULLFSYNC 1
17824 _ACEOF
17825
17826
17827 else
17828   cat >>confdefs.h <<_ACEOF
17829 #define HAVE_DECL_F_FULLFSYNC 0
17830 _ACEOF
17831
17832
17833 fi
17834
17835
17836
17837 HAVE_IPV6=no
17838 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17839 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
17840 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17841   $as_echo_n "(cached) " >&6
17842 else
17843   ac_cv_type_struct_sockaddr_in6=no
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h.  */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h.  */
17850 $ac_includes_default
17851 #include <netinet/in.h>
17852
17853 int
17854 main ()
17855 {
17856 if (sizeof (struct sockaddr_in6))
17857        return 0;
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext
17863 if { (ac_try="$ac_compile"
17864 case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17869 $as_echo "$ac_try_echo") >&5
17870   (eval "$ac_compile") 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } && {
17877          test -z "$ac_c_werror_flag" ||
17878          test ! -s conftest.err
17879        } && test -s conftest.$ac_objext; then
17880   cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886 $ac_includes_default
17887 #include <netinet/in.h>
17888
17889 int
17890 main ()
17891 {
17892 if (sizeof ((struct sockaddr_in6)))
17893           return 0;
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906   (eval "$ac_compile") 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } && {
17913          test -z "$ac_c_werror_flag" ||
17914          test ! -s conftest.err
17915        } && test -s conftest.$ac_objext; then
17916   :
17917 else
17918   $as_echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921         ac_cv_type_struct_sockaddr_in6=yes
17922 fi
17923
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925 else
17926   $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 fi
17934 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17935 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
17936 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
17937
17938 cat >>confdefs.h <<\_ACEOF
17939 #define HAVE_IPV6 1
17940 _ACEOF
17941
17942          HAVE_IPV6=yes
17943 fi
17944
17945
17946
17947 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
17948 $as_echo_n "checking for PS_STRINGS... " >&6; }
17949 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
17950   $as_echo_n "(cached) " >&6
17951 else
17952   cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h.  */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h.  */
17958 #include <machine/vmparam.h>
17959 #include <sys/exec.h>
17960
17961 int
17962 main ()
17963 {
17964 PS_STRINGS->ps_nargvstr = 1;
17965 PS_STRINGS->ps_argvstr = "foo";
17966   ;
17967   return 0;
17968 }
17969 _ACEOF
17970 rm -f conftest.$ac_objext conftest$ac_exeext
17971 if { (ac_try="$ac_link"
17972 case "(($ac_try" in
17973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974   *) ac_try_echo=$ac_try;;
17975 esac
17976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17977 $as_echo "$ac_try_echo") >&5
17978   (eval "$ac_link") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } && {
17985          test -z "$ac_c_werror_flag" ||
17986          test ! -s conftest.err
17987        } && test -s conftest$ac_exeext && {
17988          test "$cross_compiling" = yes ||
17989          $as_test_x conftest$ac_exeext
17990        }; then
17991   pgac_cv_var_PS_STRINGS=yes
17992 else
17993   $as_echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996         pgac_cv_var_PS_STRINGS=no
17997 fi
17998
17999 rm -rf conftest.dSYM
18000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18001       conftest$ac_exeext conftest.$ac_ext
18002 fi
18003 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18004 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18005 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18006
18007 cat >>confdefs.h <<\_ACEOF
18008 #define HAVE_PS_STRINGS /**/
18009 _ACEOF
18010
18011 fi
18012
18013
18014 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18015 # is missing.  Yes, there are machines that have only one.  We may
18016 # also decide to use snprintf.c if snprintf() is present but does not
18017 # have all the features we need --- see below.
18018
18019 if test "$PORTNAME" = "win32"; then
18020   # Win32 gets snprintf.c built unconditionally.
18021   #
18022   # To properly translate all NLS languages strings, we must support the
18023   # *printf() %$ format, which allows *printf() arguments to be selected
18024   # by position in the translated string.
18025   #
18026   # libintl versions < 0.13 use the native *printf() functions, and Win32
18027   # *printf() doesn't understand %$, so we must use our /port versions,
18028   # which do understand %$. libintl versions >= 0.13 include their own
18029   # *printf versions on Win32.  The libintl 0.13 release note text is:
18030   #
18031   #   C format strings with positions, as they arise when a translator
18032   #   needs to reorder a sentence, are now supported on all platforms.
18033   #   On those few platforms (NetBSD and Woe32) for which the native
18034   #   printf()/fprintf()/... functions don't support such format
18035   #   strings, replacements are provided through <libintl.h>.
18036   #
18037   # We could use libintl >= 0.13's *printf() if we were sure that we had
18038   # a litint >= 0.13 at runtime, but seeing that there is no clean way
18039   # to guarantee that, it is best to just use our own, so we are sure to
18040   # get %$ support. In include/port.h we disable the *printf() macros
18041   # that might have been defined by libintl.
18042   #
18043   # We do this unconditionally whether NLS is used or not so we are sure
18044   # that all Win32 libraries and binaries behave the same.
18045   pgac_need_repl_snprintf=yes
18046 else
18047   pgac_need_repl_snprintf=no
18048
18049 for ac_func in snprintf
18050 do
18051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18052 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18053 $as_echo_n "checking for $ac_func... " >&6; }
18054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18055   $as_echo_n "(cached) " >&6
18056 else
18057   cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18065 #define $ac_func innocuous_$ac_func
18066
18067 /* System header to define __stub macros and hopefully few prototypes,
18068     which can conflict with char $ac_func (); below.
18069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18070     <limits.h> exists even on freestanding compilers.  */
18071
18072 #ifdef __STDC__
18073 # include <limits.h>
18074 #else
18075 # include <assert.h>
18076 #endif
18077
18078 #undef $ac_func
18079
18080 /* Override any GCC internal prototype to avoid an error.
18081    Use char because int might match the return type of a GCC
18082    builtin and then its argument prototype would still apply.  */
18083 #ifdef __cplusplus
18084 extern "C"
18085 #endif
18086 char $ac_func ();
18087 /* The GNU C library defines this for functions which it implements
18088     to always fail with ENOSYS.  Some functions are actually named
18089     something starting with __ and the normal name is an alias.  */
18090 #if defined __stub_$ac_func || defined __stub___$ac_func
18091 choke me
18092 #endif
18093
18094 int
18095 main ()
18096 {
18097 return $ac_func ();
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18109 $as_echo "$ac_try_echo") >&5
18110   (eval "$ac_link") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } && {
18117          test -z "$ac_c_werror_flag" ||
18118          test ! -s conftest.err
18119        } && test -s conftest$ac_exeext && {
18120          test "$cross_compiling" = yes ||
18121          $as_test_x conftest$ac_exeext
18122        }; then
18123   eval "$as_ac_var=yes"
18124 else
18125   $as_echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18127
18128         eval "$as_ac_var=no"
18129 fi
18130
18131 rm -rf conftest.dSYM
18132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18133       conftest$ac_exeext conftest.$ac_ext
18134 fi
18135 ac_res=`eval 'as_val=${'$as_ac_var'}
18136                  $as_echo "$as_val"'`
18137                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18138 $as_echo "$ac_res" >&6; }
18139 as_val=`eval 'as_val=${'$as_ac_var'}
18140                  $as_echo "$as_val"'`
18141    if test "x$as_val" = x""yes; then
18142   cat >>confdefs.h <<_ACEOF
18143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18144 _ACEOF
18145
18146 else
18147   pgac_need_repl_snprintf=yes
18148 fi
18149 done
18150
18151
18152 for ac_func in vsnprintf
18153 do
18154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18156 $as_echo_n "checking for $ac_func... " >&6; }
18157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18158   $as_echo_n "(cached) " >&6
18159 else
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18168 #define $ac_func innocuous_$ac_func
18169
18170 /* System header to define __stub macros and hopefully few prototypes,
18171     which can conflict with char $ac_func (); below.
18172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18173     <limits.h> exists even on freestanding compilers.  */
18174
18175 #ifdef __STDC__
18176 # include <limits.h>
18177 #else
18178 # include <assert.h>
18179 #endif
18180
18181 #undef $ac_func
18182
18183 /* Override any GCC internal prototype to avoid an error.
18184    Use char because int might match the return type of a GCC
18185    builtin and then its argument prototype would still apply.  */
18186 #ifdef __cplusplus
18187 extern "C"
18188 #endif
18189 char $ac_func ();
18190 /* The GNU C library defines this for functions which it implements
18191     to always fail with ENOSYS.  Some functions are actually named
18192     something starting with __ and the normal name is an alias.  */
18193 #if defined __stub_$ac_func || defined __stub___$ac_func
18194 choke me
18195 #endif
18196
18197 int
18198 main ()
18199 {
18200 return $ac_func ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213   (eval "$ac_link") 2>conftest.er1
18214   ac_status=$?
18215   grep -v '^ *+' conftest.er1 >conftest.err
18216   rm -f conftest.er1
18217   cat conftest.err >&5
18218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } && {
18220          test -z "$ac_c_werror_flag" ||
18221          test ! -s conftest.err
18222        } && test -s conftest$ac_exeext && {
18223          test "$cross_compiling" = yes ||
18224          $as_test_x conftest$ac_exeext
18225        }; then
18226   eval "$as_ac_var=yes"
18227 else
18228   $as_echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18230
18231         eval "$as_ac_var=no"
18232 fi
18233
18234 rm -rf conftest.dSYM
18235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18236       conftest$ac_exeext conftest.$ac_ext
18237 fi
18238 ac_res=`eval 'as_val=${'$as_ac_var'}
18239                  $as_echo "$as_val"'`
18240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18241 $as_echo "$ac_res" >&6; }
18242 as_val=`eval 'as_val=${'$as_ac_var'}
18243                  $as_echo "$as_val"'`
18244    if test "x$as_val" = x""yes; then
18245   cat >>confdefs.h <<_ACEOF
18246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18247 _ACEOF
18248
18249 else
18250   pgac_need_repl_snprintf=yes
18251 fi
18252 done
18253
18254 fi
18255
18256
18257 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18258 # include/c.h will provide declarations.  Note this is a separate test
18259 # from whether the functions exist in the C library --- there are
18260 # systems that have the functions but don't bother to declare them :-(
18261
18262 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18263 $as_echo_n "checking whether snprintf is declared... " >&6; }
18264 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18265   $as_echo_n "(cached) " >&6
18266 else
18267   cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273 $ac_includes_default
18274 int
18275 main ()
18276 {
18277 #ifndef snprintf
18278   (void) snprintf;
18279 #endif
18280
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18292 $as_echo "$ac_try_echo") >&5
18293   (eval "$ac_compile") 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } && {
18300          test -z "$ac_c_werror_flag" ||
18301          test ! -s conftest.err
18302        } && test -s conftest.$ac_objext; then
18303   ac_cv_have_decl_snprintf=yes
18304 else
18305   $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308         ac_cv_have_decl_snprintf=no
18309 fi
18310
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 fi
18313 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18314 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18315 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18316
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_DECL_SNPRINTF 1
18319 _ACEOF
18320
18321
18322 else
18323   cat >>confdefs.h <<_ACEOF
18324 #define HAVE_DECL_SNPRINTF 0
18325 _ACEOF
18326
18327
18328 fi
18329 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18330 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18331 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18332   $as_echo_n "(cached) " >&6
18333 else
18334   cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340 $ac_includes_default
18341 int
18342 main ()
18343 {
18344 #ifndef vsnprintf
18345   (void) vsnprintf;
18346 #endif
18347
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18359 $as_echo "$ac_try_echo") >&5
18360   (eval "$ac_compile") 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } && {
18367          test -z "$ac_c_werror_flag" ||
18368          test ! -s conftest.err
18369        } && test -s conftest.$ac_objext; then
18370   ac_cv_have_decl_vsnprintf=yes
18371 else
18372   $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375         ac_cv_have_decl_vsnprintf=no
18376 fi
18377
18378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 fi
18380 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18381 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18382 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18383
18384 cat >>confdefs.h <<_ACEOF
18385 #define HAVE_DECL_VSNPRINTF 1
18386 _ACEOF
18387
18388
18389 else
18390   cat >>confdefs.h <<_ACEOF
18391 #define HAVE_DECL_VSNPRINTF 0
18392 _ACEOF
18393
18394
18395 fi
18396
18397
18398
18399
18400 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18401 $as_echo_n "checking for isinf... " >&6; }
18402 if test "${ac_cv_func_isinf+set}" = set; then
18403   $as_echo_n "(cached) " >&6
18404 else
18405   cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 #include <math.h>
18413 double glob_double;
18414
18415 int
18416 main ()
18417 {
18418 return isinf(glob_double) ? 0 : 1;
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427   *) ac_try_echo=$ac_try;;
18428 esac
18429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18430 $as_echo "$ac_try_echo") >&5
18431   (eval "$ac_link") 2>conftest.er1
18432   ac_status=$?
18433   grep -v '^ *+' conftest.er1 >conftest.err
18434   rm -f conftest.er1
18435   cat conftest.err >&5
18436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } && {
18438          test -z "$ac_c_werror_flag" ||
18439          test ! -s conftest.err
18440        } && test -s conftest$ac_exeext && {
18441          test "$cross_compiling" = yes ||
18442          $as_test_x conftest$ac_exeext
18443        }; then
18444   ac_cv_func_isinf=yes
18445 else
18446   $as_echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449         ac_cv_func_isinf=no
18450 fi
18451
18452 rm -rf conftest.dSYM
18453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18454       conftest$ac_exeext conftest.$ac_ext
18455 fi
18456 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18457 $as_echo "$ac_cv_func_isinf" >&6; }
18458
18459 if test $ac_cv_func_isinf = yes ; then
18460
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_ISINF 1
18463 _ACEOF
18464
18465 else
18466   case " $LIBOBJS " in
18467   *" isinf.$ac_objext "* ) ;;
18468   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18469  ;;
18470 esac
18471
18472   # Look for a way to implement a substitute for isinf()
18473
18474
18475
18476
18477 for ac_func in fpclass fp_class fp_class_d class
18478 do
18479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18481 $as_echo_n "checking for $ac_func... " >&6; }
18482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18483   $as_echo_n "(cached) " >&6
18484 else
18485   cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18493 #define $ac_func innocuous_$ac_func
18494
18495 /* System header to define __stub macros and hopefully few prototypes,
18496     which can conflict with char $ac_func (); below.
18497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18498     <limits.h> exists even on freestanding compilers.  */
18499
18500 #ifdef __STDC__
18501 # include <limits.h>
18502 #else
18503 # include <assert.h>
18504 #endif
18505
18506 #undef $ac_func
18507
18508 /* Override any GCC internal prototype to avoid an error.
18509    Use char because int might match the return type of a GCC
18510    builtin and then its argument prototype would still apply.  */
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 char $ac_func ();
18515 /* The GNU C library defines this for functions which it implements
18516     to always fail with ENOSYS.  Some functions are actually named
18517     something starting with __ and the normal name is an alias.  */
18518 #if defined __stub_$ac_func || defined __stub___$ac_func
18519 choke me
18520 #endif
18521
18522 int
18523 main ()
18524 {
18525 return $ac_func ();
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18537 $as_echo "$ac_try_echo") >&5
18538   (eval "$ac_link") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } && {
18545          test -z "$ac_c_werror_flag" ||
18546          test ! -s conftest.err
18547        } && test -s conftest$ac_exeext && {
18548          test "$cross_compiling" = yes ||
18549          $as_test_x conftest$ac_exeext
18550        }; then
18551   eval "$as_ac_var=yes"
18552 else
18553   $as_echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556         eval "$as_ac_var=no"
18557 fi
18558
18559 rm -rf conftest.dSYM
18560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18561       conftest$ac_exeext conftest.$ac_ext
18562 fi
18563 ac_res=`eval 'as_val=${'$as_ac_var'}
18564                  $as_echo "$as_val"'`
18565                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18566 $as_echo "$ac_res" >&6; }
18567 as_val=`eval 'as_val=${'$as_ac_var'}
18568                  $as_echo "$as_val"'`
18569    if test "x$as_val" = x""yes; then
18570   cat >>confdefs.h <<_ACEOF
18571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18572 _ACEOF
18573  break
18574 fi
18575 done
18576
18577 fi
18578
18579 # Some versions of libedit contain strlcpy(); so disregard that library while
18580 # checking for these standard libc functions.
18581 pgac_save_LIBS="$LIBS"
18582 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18599 do
18600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18602 $as_echo_n "checking for $ac_func... " >&6; }
18603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18604   $as_echo_n "(cached) " >&6
18605 else
18606   cat >conftest.$ac_ext <<_ACEOF
18607 /* confdefs.h.  */
18608 _ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h.  */
18612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18614 #define $ac_func innocuous_$ac_func
18615
18616 /* System header to define __stub macros and hopefully few prototypes,
18617     which can conflict with char $ac_func (); below.
18618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18619     <limits.h> exists even on freestanding compilers.  */
18620
18621 #ifdef __STDC__
18622 # include <limits.h>
18623 #else
18624 # include <assert.h>
18625 #endif
18626
18627 #undef $ac_func
18628
18629 /* Override any GCC internal prototype to avoid an error.
18630    Use char because int might match the return type of a GCC
18631    builtin and then its argument prototype would still apply.  */
18632 #ifdef __cplusplus
18633 extern "C"
18634 #endif
18635 char $ac_func ();
18636 /* The GNU C library defines this for functions which it implements
18637     to always fail with ENOSYS.  Some functions are actually named
18638     something starting with __ and the normal name is an alias.  */
18639 #if defined __stub_$ac_func || defined __stub___$ac_func
18640 choke me
18641 #endif
18642
18643 int
18644 main ()
18645 {
18646 return $ac_func ();
18647   ;
18648   return 0;
18649 }
18650 _ACEOF
18651 rm -f conftest.$ac_objext conftest$ac_exeext
18652 if { (ac_try="$ac_link"
18653 case "(($ac_try" in
18654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655   *) ac_try_echo=$ac_try;;
18656 esac
18657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18658 $as_echo "$ac_try_echo") >&5
18659   (eval "$ac_link") 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } && {
18666          test -z "$ac_c_werror_flag" ||
18667          test ! -s conftest.err
18668        } && test -s conftest$ac_exeext && {
18669          test "$cross_compiling" = yes ||
18670          $as_test_x conftest$ac_exeext
18671        }; then
18672   eval "$as_ac_var=yes"
18673 else
18674   $as_echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18676
18677         eval "$as_ac_var=no"
18678 fi
18679
18680 rm -rf conftest.dSYM
18681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18682       conftest$ac_exeext conftest.$ac_ext
18683 fi
18684 ac_res=`eval 'as_val=${'$as_ac_var'}
18685                  $as_echo "$as_val"'`
18686                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18687 $as_echo "$ac_res" >&6; }
18688 as_val=`eval 'as_val=${'$as_ac_var'}
18689                  $as_echo "$as_val"'`
18690    if test "x$as_val" = x""yes; then
18691   cat >>confdefs.h <<_ACEOF
18692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18693 _ACEOF
18694
18695 else
18696   case " $LIBOBJS " in
18697   *" $ac_func.$ac_objext "* ) ;;
18698   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18699  ;;
18700 esac
18701
18702 fi
18703 done
18704
18705
18706
18707 case $host_os in
18708
18709         # Windows uses a specialised env handler
18710         mingw*)
18711
18712 cat >>confdefs.h <<\_ACEOF
18713 #define HAVE_UNSETENV 1
18714 _ACEOF
18715
18716                 ac_cv_func_unsetenv=yes;;
18717         *)
18718
18719 for ac_func in unsetenv
18720 do
18721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18723 $as_echo_n "checking for $ac_func... " >&6; }
18724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18725   $as_echo_n "(cached) " >&6
18726 else
18727   cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h.  */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h.  */
18733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18735 #define $ac_func innocuous_$ac_func
18736
18737 /* System header to define __stub macros and hopefully few prototypes,
18738     which can conflict with char $ac_func (); below.
18739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18740     <limits.h> exists even on freestanding compilers.  */
18741
18742 #ifdef __STDC__
18743 # include <limits.h>
18744 #else
18745 # include <assert.h>
18746 #endif
18747
18748 #undef $ac_func
18749
18750 /* Override any GCC internal prototype to avoid an error.
18751    Use char because int might match the return type of a GCC
18752    builtin and then its argument prototype would still apply.  */
18753 #ifdef __cplusplus
18754 extern "C"
18755 #endif
18756 char $ac_func ();
18757 /* The GNU C library defines this for functions which it implements
18758     to always fail with ENOSYS.  Some functions are actually named
18759     something starting with __ and the normal name is an alias.  */
18760 #if defined __stub_$ac_func || defined __stub___$ac_func
18761 choke me
18762 #endif
18763
18764 int
18765 main ()
18766 {
18767 return $ac_func ();
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18779 $as_echo "$ac_try_echo") >&5
18780   (eval "$ac_link") 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } && {
18787          test -z "$ac_c_werror_flag" ||
18788          test ! -s conftest.err
18789        } && test -s conftest$ac_exeext && {
18790          test "$cross_compiling" = yes ||
18791          $as_test_x conftest$ac_exeext
18792        }; then
18793   eval "$as_ac_var=yes"
18794 else
18795   $as_echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798         eval "$as_ac_var=no"
18799 fi
18800
18801 rm -rf conftest.dSYM
18802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18803       conftest$ac_exeext conftest.$ac_ext
18804 fi
18805 ac_res=`eval 'as_val=${'$as_ac_var'}
18806                  $as_echo "$as_val"'`
18807                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18808 $as_echo "$ac_res" >&6; }
18809 as_val=`eval 'as_val=${'$as_ac_var'}
18810                  $as_echo "$as_val"'`
18811    if test "x$as_val" = x""yes; then
18812   cat >>confdefs.h <<_ACEOF
18813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18814 _ACEOF
18815
18816 else
18817   case " $LIBOBJS " in
18818   *" $ac_func.$ac_objext "* ) ;;
18819   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18820  ;;
18821 esac
18822
18823 fi
18824 done
18825
18826
18827                 ;;
18828 esac
18829
18830
18831 LIBS="$pgac_save_LIBS"
18832
18833 # System's version of getaddrinfo(), if any, may be used only if we found
18834 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
18835 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
18836 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
18837 # because we want to use our own getaddrinfo.c on Windows anyway.)
18838 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
18839
18840 for ac_func in getaddrinfo
18841 do
18842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18844 $as_echo_n "checking for $ac_func... " >&6; }
18845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18846   $as_echo_n "(cached) " >&6
18847 else
18848   cat >conftest.$ac_ext <<_ACEOF
18849 /* confdefs.h.  */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h.  */
18854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18856 #define $ac_func innocuous_$ac_func
18857
18858 /* System header to define __stub macros and hopefully few prototypes,
18859     which can conflict with char $ac_func (); below.
18860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18861     <limits.h> exists even on freestanding compilers.  */
18862
18863 #ifdef __STDC__
18864 # include <limits.h>
18865 #else
18866 # include <assert.h>
18867 #endif
18868
18869 #undef $ac_func
18870
18871 /* Override any GCC internal prototype to avoid an error.
18872    Use char because int might match the return type of a GCC
18873    builtin and then its argument prototype would still apply.  */
18874 #ifdef __cplusplus
18875 extern "C"
18876 #endif
18877 char $ac_func ();
18878 /* The GNU C library defines this for functions which it implements
18879     to always fail with ENOSYS.  Some functions are actually named
18880     something starting with __ and the normal name is an alias.  */
18881 #if defined __stub_$ac_func || defined __stub___$ac_func
18882 choke me
18883 #endif
18884
18885 int
18886 main ()
18887 {
18888 return $ac_func ();
18889   ;
18890   return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18900 $as_echo "$ac_try_echo") >&5
18901   (eval "$ac_link") 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } && {
18908          test -z "$ac_c_werror_flag" ||
18909          test ! -s conftest.err
18910        } && test -s conftest$ac_exeext && {
18911          test "$cross_compiling" = yes ||
18912          $as_test_x conftest$ac_exeext
18913        }; then
18914   eval "$as_ac_var=yes"
18915 else
18916   $as_echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         eval "$as_ac_var=no"
18920 fi
18921
18922 rm -rf conftest.dSYM
18923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18924       conftest$ac_exeext conftest.$ac_ext
18925 fi
18926 ac_res=`eval 'as_val=${'$as_ac_var'}
18927                  $as_echo "$as_val"'`
18928                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18929 $as_echo "$ac_res" >&6; }
18930 as_val=`eval 'as_val=${'$as_ac_var'}
18931                  $as_echo "$as_val"'`
18932    if test "x$as_val" = x""yes; then
18933   cat >>confdefs.h <<_ACEOF
18934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18935 _ACEOF
18936
18937 else
18938   case " $LIBOBJS " in
18939   *" $ac_func.$ac_objext "* ) ;;
18940   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18941  ;;
18942 esac
18943
18944 fi
18945 done
18946
18947
18948 else
18949   case " $LIBOBJS " in
18950   *" getaddrinfo.$ac_objext "* ) ;;
18951   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18952  ;;
18953 esac
18954
18955 fi
18956
18957 # Similarly, use system's getopt_long() only if system provides struct option.
18958 if test x"$ac_cv_type_struct_option" = xyes ; then
18959
18960 for ac_func in getopt_long
18961 do
18962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 $as_echo_n "checking for $ac_func... " >&6; }
18965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966   $as_echo_n "(cached) " >&6
18967 else
18968   cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18976 #define $ac_func innocuous_$ac_func
18977
18978 /* System header to define __stub macros and hopefully few prototypes,
18979     which can conflict with char $ac_func (); below.
18980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981     <limits.h> exists even on freestanding compilers.  */
18982
18983 #ifdef __STDC__
18984 # include <limits.h>
18985 #else
18986 # include <assert.h>
18987 #endif
18988
18989 #undef $ac_func
18990
18991 /* Override any GCC internal prototype to avoid an error.
18992    Use char because int might match the return type of a GCC
18993    builtin and then its argument prototype would still apply.  */
18994 #ifdef __cplusplus
18995 extern "C"
18996 #endif
18997 char $ac_func ();
18998 /* The GNU C library defines this for functions which it implements
18999     to always fail with ENOSYS.  Some functions are actually named
19000     something starting with __ and the normal name is an alias.  */
19001 #if defined __stub_$ac_func || defined __stub___$ac_func
19002 choke me
19003 #endif
19004
19005 int
19006 main ()
19007 {
19008 return $ac_func ();
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021   (eval "$ac_link") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } && {
19028          test -z "$ac_c_werror_flag" ||
19029          test ! -s conftest.err
19030        } && test -s conftest$ac_exeext && {
19031          test "$cross_compiling" = yes ||
19032          $as_test_x conftest$ac_exeext
19033        }; then
19034   eval "$as_ac_var=yes"
19035 else
19036   $as_echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         eval "$as_ac_var=no"
19040 fi
19041
19042 rm -rf conftest.dSYM
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 ac_res=`eval 'as_val=${'$as_ac_var'}
19047                  $as_echo "$as_val"'`
19048                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19049 $as_echo "$ac_res" >&6; }
19050 as_val=`eval 'as_val=${'$as_ac_var'}
19051                  $as_echo "$as_val"'`
19052    if test "x$as_val" = x""yes; then
19053   cat >>confdefs.h <<_ACEOF
19054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19055 _ACEOF
19056
19057 else
19058   case " $LIBOBJS " in
19059   *" $ac_func.$ac_objext "* ) ;;
19060   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19061  ;;
19062 esac
19063
19064 fi
19065 done
19066
19067
19068 else
19069   case " $LIBOBJS " in
19070   *" getopt_long.$ac_objext "* ) ;;
19071   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19072  ;;
19073 esac
19074
19075 fi
19076
19077 # Solaris' getopt() doesn't do what we want for long options, so always use
19078 # our version on that platform.
19079 if test "$PORTNAME" = "solaris"; then
19080   case " $LIBOBJS " in
19081   *" getopt.$ac_objext "* ) ;;
19082   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19083  ;;
19084 esac
19085
19086 fi
19087
19088 # Cygwin's erand48() is broken (always returns zero) in some releases,
19089 # so force use of ours.
19090 if test "$PORTNAME" = "cygwin"; then
19091   case " $LIBOBJS " in
19092   *" erand48.$ac_objext "* ) ;;
19093   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19094  ;;
19095 esac
19096
19097 fi
19098
19099 # Win32 support
19100 if test "$PORTNAME" = "win32"; then
19101
19102 for ac_func in gettimeofday
19103 do
19104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19105 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19106 $as_echo_n "checking for $ac_func... " >&6; }
19107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19108   $as_echo_n "(cached) " >&6
19109 else
19110   cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h.  */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h.  */
19116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19118 #define $ac_func innocuous_$ac_func
19119
19120 /* System header to define __stub macros and hopefully few prototypes,
19121     which can conflict with char $ac_func (); below.
19122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19123     <limits.h> exists even on freestanding compilers.  */
19124
19125 #ifdef __STDC__
19126 # include <limits.h>
19127 #else
19128 # include <assert.h>
19129 #endif
19130
19131 #undef $ac_func
19132
19133 /* Override any GCC internal prototype to avoid an error.
19134    Use char because int might match the return type of a GCC
19135    builtin and then its argument prototype would still apply.  */
19136 #ifdef __cplusplus
19137 extern "C"
19138 #endif
19139 char $ac_func ();
19140 /* The GNU C library defines this for functions which it implements
19141     to always fail with ENOSYS.  Some functions are actually named
19142     something starting with __ and the normal name is an alias.  */
19143 #if defined __stub_$ac_func || defined __stub___$ac_func
19144 choke me
19145 #endif
19146
19147 int
19148 main ()
19149 {
19150 return $ac_func ();
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159   *) ac_try_echo=$ac_try;;
19160 esac
19161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19162 $as_echo "$ac_try_echo") >&5
19163   (eval "$ac_link") 2>conftest.er1
19164   ac_status=$?
19165   grep -v '^ *+' conftest.er1 >conftest.err
19166   rm -f conftest.er1
19167   cat conftest.err >&5
19168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); } && {
19170          test -z "$ac_c_werror_flag" ||
19171          test ! -s conftest.err
19172        } && test -s conftest$ac_exeext && {
19173          test "$cross_compiling" = yes ||
19174          $as_test_x conftest$ac_exeext
19175        }; then
19176   eval "$as_ac_var=yes"
19177 else
19178   $as_echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181         eval "$as_ac_var=no"
19182 fi
19183
19184 rm -rf conftest.dSYM
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186       conftest$ac_exeext conftest.$ac_ext
19187 fi
19188 ac_res=`eval 'as_val=${'$as_ac_var'}
19189                  $as_echo "$as_val"'`
19190                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19191 $as_echo "$ac_res" >&6; }
19192 as_val=`eval 'as_val=${'$as_ac_var'}
19193                  $as_echo "$as_val"'`
19194    if test "x$as_val" = x""yes; then
19195   cat >>confdefs.h <<_ACEOF
19196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19197 _ACEOF
19198
19199 else
19200   case " $LIBOBJS " in
19201   *" $ac_func.$ac_objext "* ) ;;
19202   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19203  ;;
19204 esac
19205
19206 fi
19207 done
19208
19209
19210 case " $LIBOBJS " in
19211   *" kill.$ac_objext "* ) ;;
19212   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19213  ;;
19214 esac
19215
19216 case " $LIBOBJS " in
19217   *" open.$ac_objext "* ) ;;
19218   *) LIBOBJS="$LIBOBJS open.$ac_objext"
19219  ;;
19220 esac
19221
19222 case " $LIBOBJS " in
19223   *" win32env.$ac_objext "* ) ;;
19224   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19225  ;;
19226 esac
19227
19228 case " $LIBOBJS " in
19229   *" win32error.$ac_objext "* ) ;;
19230   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19231  ;;
19232 esac
19233
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_SYMLINK 1
19237 _ACEOF
19238
19239 fi
19240
19241 if test "$with_readline" = yes; then
19242   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19243 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h.  */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h.  */
19250 #include <stdio.h>
19251 #ifdef HAVE_READLINE_READLINE_H
19252 # include <readline/readline.h>
19253 #elif defined(HAVE_READLINE_H)
19254 # include <readline.h>
19255 #endif
19256
19257 int
19258 main ()
19259 {
19260 rl_completion_append_character = 'x';
19261   ;
19262   return 0;
19263 }
19264 _ACEOF
19265 rm -f conftest.$ac_objext conftest$ac_exeext
19266 if { (ac_try="$ac_link"
19267 case "(($ac_try" in
19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269   *) ac_try_echo=$ac_try;;
19270 esac
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273   (eval "$ac_link") 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } && {
19280          test -z "$ac_c_werror_flag" ||
19281          test ! -s conftest.err
19282        } && test -s conftest$ac_exeext && {
19283          test "$cross_compiling" = yes ||
19284          $as_test_x conftest$ac_exeext
19285        }; then
19286   { $as_echo "$as_me:$LINENO: result: yes" >&5
19287 $as_echo "yes" >&6; }
19288
19289 cat >>confdefs.h <<\_ACEOF
19290 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19291 _ACEOF
19292
19293 else
19294   $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297         { $as_echo "$as_me:$LINENO: result: no" >&5
19298 $as_echo "no" >&6; }
19299 fi
19300
19301 rm -rf conftest.dSYM
19302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19303       conftest$ac_exeext conftest.$ac_ext
19304
19305
19306 for ac_func in rl_completion_matches rl_filename_completion_function
19307 do
19308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19310 $as_echo_n "checking for $ac_func... " >&6; }
19311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19312   $as_echo_n "(cached) " >&6
19313 else
19314   cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19322 #define $ac_func innocuous_$ac_func
19323
19324 /* System header to define __stub macros and hopefully few prototypes,
19325     which can conflict with char $ac_func (); below.
19326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19327     <limits.h> exists even on freestanding compilers.  */
19328
19329 #ifdef __STDC__
19330 # include <limits.h>
19331 #else
19332 # include <assert.h>
19333 #endif
19334
19335 #undef $ac_func
19336
19337 /* Override any GCC internal prototype to avoid an error.
19338    Use char because int might match the return type of a GCC
19339    builtin and then its argument prototype would still apply.  */
19340 #ifdef __cplusplus
19341 extern "C"
19342 #endif
19343 char $ac_func ();
19344 /* The GNU C library defines this for functions which it implements
19345     to always fail with ENOSYS.  Some functions are actually named
19346     something starting with __ and the normal name is an alias.  */
19347 #if defined __stub_$ac_func || defined __stub___$ac_func
19348 choke me
19349 #endif
19350
19351 int
19352 main ()
19353 {
19354 return $ac_func ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19366 $as_echo "$ac_try_echo") >&5
19367   (eval "$ac_link") 2>conftest.er1
19368   ac_status=$?
19369   grep -v '^ *+' conftest.er1 >conftest.err
19370   rm -f conftest.er1
19371   cat conftest.err >&5
19372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); } && {
19374          test -z "$ac_c_werror_flag" ||
19375          test ! -s conftest.err
19376        } && test -s conftest$ac_exeext && {
19377          test "$cross_compiling" = yes ||
19378          $as_test_x conftest$ac_exeext
19379        }; then
19380   eval "$as_ac_var=yes"
19381 else
19382   $as_echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19384
19385         eval "$as_ac_var=no"
19386 fi
19387
19388 rm -rf conftest.dSYM
19389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19390       conftest$ac_exeext conftest.$ac_ext
19391 fi
19392 ac_res=`eval 'as_val=${'$as_ac_var'}
19393                  $as_echo "$as_val"'`
19394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19395 $as_echo "$ac_res" >&6; }
19396 as_val=`eval 'as_val=${'$as_ac_var'}
19397                  $as_echo "$as_val"'`
19398    if test "x$as_val" = x""yes; then
19399   cat >>confdefs.h <<_ACEOF
19400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19401 _ACEOF
19402
19403 fi
19404 done
19405
19406
19407 for ac_func in replace_history_entry
19408 do
19409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19411 $as_echo_n "checking for $ac_func... " >&6; }
19412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19413   $as_echo_n "(cached) " >&6
19414 else
19415   cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19423 #define $ac_func innocuous_$ac_func
19424
19425 /* System header to define __stub macros and hopefully few prototypes,
19426     which can conflict with char $ac_func (); below.
19427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19428     <limits.h> exists even on freestanding compilers.  */
19429
19430 #ifdef __STDC__
19431 # include <limits.h>
19432 #else
19433 # include <assert.h>
19434 #endif
19435
19436 #undef $ac_func
19437
19438 /* Override any GCC internal prototype to avoid an error.
19439    Use char because int might match the return type of a GCC
19440    builtin and then its argument prototype would still apply.  */
19441 #ifdef __cplusplus
19442 extern "C"
19443 #endif
19444 char $ac_func ();
19445 /* The GNU C library defines this for functions which it implements
19446     to always fail with ENOSYS.  Some functions are actually named
19447     something starting with __ and the normal name is an alias.  */
19448 #if defined __stub_$ac_func || defined __stub___$ac_func
19449 choke me
19450 #endif
19451
19452 int
19453 main ()
19454 {
19455 return $ac_func ();
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468   (eval "$ac_link") 2>conftest.er1
19469   ac_status=$?
19470   grep -v '^ *+' conftest.er1 >conftest.err
19471   rm -f conftest.er1
19472   cat conftest.err >&5
19473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } && {
19475          test -z "$ac_c_werror_flag" ||
19476          test ! -s conftest.err
19477        } && test -s conftest$ac_exeext && {
19478          test "$cross_compiling" = yes ||
19479          $as_test_x conftest$ac_exeext
19480        }; then
19481   eval "$as_ac_var=yes"
19482 else
19483   $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         eval "$as_ac_var=no"
19487 fi
19488
19489 rm -rf conftest.dSYM
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491       conftest$ac_exeext conftest.$ac_ext
19492 fi
19493 ac_res=`eval 'as_val=${'$as_ac_var'}
19494                  $as_echo "$as_val"'`
19495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19496 $as_echo "$ac_res" >&6; }
19497 as_val=`eval 'as_val=${'$as_ac_var'}
19498                  $as_echo "$as_val"'`
19499    if test "x$as_val" = x""yes; then
19500   cat >>confdefs.h <<_ACEOF
19501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19502 _ACEOF
19503
19504 fi
19505 done
19506
19507 fi
19508
19509
19510 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19511 $as_echo_n "checking for sigsetjmp... " >&6; }
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 #include <setjmp.h>
19519 int
19520 main ()
19521 {
19522 sigjmp_buf x; sigsetjmp(x, 1);
19523   ;
19524   return 0;
19525 }
19526 _ACEOF
19527 rm -f conftest.$ac_objext conftest$ac_exeext
19528 if { (ac_try="$ac_link"
19529 case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19534 $as_echo "$ac_try_echo") >&5
19535   (eval "$ac_link") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } && {
19542          test -z "$ac_c_werror_flag" ||
19543          test ! -s conftest.err
19544        } && test -s conftest$ac_exeext && {
19545          test "$cross_compiling" = yes ||
19546          $as_test_x conftest$ac_exeext
19547        }; then
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_SIGSETJMP 1
19551 _ACEOF
19552
19553 { $as_echo "$as_me:$LINENO: result: yes" >&5
19554 $as_echo "yes" >&6; }
19555 else
19556   $as_echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559         { $as_echo "$as_me:$LINENO: result: no" >&5
19560 $as_echo "no" >&6; }
19561 fi
19562
19563 rm -rf conftest.dSYM
19564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565       conftest$ac_exeext conftest.$ac_ext
19566
19567 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19568 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19569 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19570   $as_echo_n "(cached) " >&6
19571 else
19572   cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 #include <signal.h>
19579 /* NetBSD declares sys_siglist in unistd.h.  */
19580 #ifdef HAVE_UNISTD_H
19581 # include <unistd.h>
19582 #endif
19583
19584
19585 int
19586 main ()
19587 {
19588 #ifndef sys_siglist
19589   (void) sys_siglist;
19590 #endif
19591
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (ac_try="$ac_compile"
19598 case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19603 $as_echo "$ac_try_echo") >&5
19604   (eval "$ac_compile") 2>conftest.er1
19605   ac_status=$?
19606   grep -v '^ *+' conftest.er1 >conftest.err
19607   rm -f conftest.er1
19608   cat conftest.err >&5
19609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); } && {
19611          test -z "$ac_c_werror_flag" ||
19612          test ! -s conftest.err
19613        } && test -s conftest.$ac_objext; then
19614   ac_cv_have_decl_sys_siglist=yes
19615 else
19616   $as_echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619         ac_cv_have_decl_sys_siglist=no
19620 fi
19621
19622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623 fi
19624 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19625 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19626 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19627
19628 cat >>confdefs.h <<_ACEOF
19629 #define HAVE_DECL_SYS_SIGLIST 1
19630 _ACEOF
19631
19632
19633 else
19634   cat >>confdefs.h <<_ACEOF
19635 #define HAVE_DECL_SYS_SIGLIST 0
19636 _ACEOF
19637
19638
19639 fi
19640
19641
19642
19643
19644 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
19645 $as_echo_n "checking for syslog... " >&6; }
19646 if test "${ac_cv_func_syslog+set}" = set; then
19647   $as_echo_n "(cached) " >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19657 #define syslog innocuous_syslog
19658
19659 /* System header to define __stub macros and hopefully few prototypes,
19660     which can conflict with char syslog (); below.
19661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662     <limits.h> exists even on freestanding compilers.  */
19663
19664 #ifdef __STDC__
19665 # include <limits.h>
19666 #else
19667 # include <assert.h>
19668 #endif
19669
19670 #undef syslog
19671
19672 /* Override any GCC internal prototype to avoid an error.
19673    Use char because int might match the return type of a GCC
19674    builtin and then its argument prototype would still apply.  */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char syslog ();
19679 /* The GNU C library defines this for functions which it implements
19680     to always fail with ENOSYS.  Some functions are actually named
19681     something starting with __ and the normal name is an alias.  */
19682 #if defined __stub_syslog || defined __stub___syslog
19683 choke me
19684 #endif
19685
19686 int
19687 main ()
19688 {
19689 return syslog ();
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19701 $as_echo "$ac_try_echo") >&5
19702   (eval "$ac_link") 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } && {
19709          test -z "$ac_c_werror_flag" ||
19710          test ! -s conftest.err
19711        } && test -s conftest$ac_exeext && {
19712          test "$cross_compiling" = yes ||
19713          $as_test_x conftest$ac_exeext
19714        }; then
19715   ac_cv_func_syslog=yes
19716 else
19717   $as_echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720         ac_cv_func_syslog=no
19721 fi
19722
19723 rm -rf conftest.dSYM
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725       conftest$ac_exeext conftest.$ac_ext
19726 fi
19727 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19728 $as_echo "$ac_cv_func_syslog" >&6; }
19729 if test "x$ac_cv_func_syslog" = x""yes; then
19730   if test "${ac_cv_header_syslog_h+set}" = set; then
19731   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19732 $as_echo_n "checking for syslog.h... " >&6; }
19733 if test "${ac_cv_header_syslog_h+set}" = set; then
19734   $as_echo_n "(cached) " >&6
19735 fi
19736 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19737 $as_echo "$ac_cv_header_syslog_h" >&6; }
19738 else
19739   # Is the header compilable?
19740 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
19741 $as_echo_n "checking syslog.h usability... " >&6; }
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 $ac_includes_default
19749 #include <syslog.h>
19750 _ACEOF
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755   *) ac_try_echo=$ac_try;;
19756 esac
19757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19758 $as_echo "$ac_try_echo") >&5
19759   (eval "$ac_compile") 2>conftest.er1
19760   ac_status=$?
19761   grep -v '^ *+' conftest.er1 >conftest.err
19762   rm -f conftest.er1
19763   cat conftest.err >&5
19764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } && {
19766          test -z "$ac_c_werror_flag" ||
19767          test ! -s conftest.err
19768        } && test -s conftest.$ac_objext; then
19769   ac_header_compiler=yes
19770 else
19771   $as_echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19773
19774         ac_header_compiler=no
19775 fi
19776
19777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779 $as_echo "$ac_header_compiler" >&6; }
19780
19781 # Is the header present?
19782 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
19783 $as_echo_n "checking syslog.h presence... " >&6; }
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h.  */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h.  */
19790 #include <syslog.h>
19791 _ACEOF
19792 if { (ac_try="$ac_cpp conftest.$ac_ext"
19793 case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19798 $as_echo "$ac_try_echo") >&5
19799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
19803   cat conftest.err >&5
19804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } >/dev/null && {
19806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19807          test ! -s conftest.err
19808        }; then
19809   ac_header_preproc=yes
19810 else
19811   $as_echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814   ac_header_preproc=no
19815 fi
19816
19817 rm -f conftest.err conftest.$ac_ext
19818 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819 $as_echo "$ac_header_preproc" >&6; }
19820
19821 # So?  What about this header?
19822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19823   yes:no: )
19824     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
19825 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
19827 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
19828     ac_header_preproc=yes
19829     ;;
19830   no:yes:* )
19831     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
19832 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
19833     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
19834 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
19835     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
19836 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
19837     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
19838 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19839     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
19840 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
19841     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
19842 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
19843     ( cat <<\_ASBOX
19844 ## ---------------------------------------- ##
19845 ## Report this to pgsql-bugs@postgresql.org ##
19846 ## ---------------------------------------- ##
19847 _ASBOX
19848      ) | sed "s/^/$as_me: WARNING:     /" >&2
19849     ;;
19850 esac
19851 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19852 $as_echo_n "checking for syslog.h... " >&6; }
19853 if test "${ac_cv_header_syslog_h+set}" = set; then
19854   $as_echo_n "(cached) " >&6
19855 else
19856   ac_cv_header_syslog_h=$ac_header_preproc
19857 fi
19858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19859 $as_echo "$ac_cv_header_syslog_h" >&6; }
19860
19861 fi
19862 if test "x$ac_cv_header_syslog_h" = x""yes; then
19863
19864 cat >>confdefs.h <<\_ACEOF
19865 #define HAVE_SYSLOG 1
19866 _ACEOF
19867
19868 fi
19869
19870
19871 fi
19872
19873
19874 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
19875 $as_echo_n "checking for opterr... " >&6; }
19876 if test "${pgac_cv_var_int_opterr+set}" = set; then
19877   $as_echo_n "(cached) " >&6
19878 else
19879   cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885 #include <unistd.h>
19886 int
19887 main ()
19888 {
19889 extern int opterr; opterr = 1;
19890   ;
19891   return 0;
19892 }
19893 _ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19901 $as_echo "$ac_try_echo") >&5
19902   (eval "$ac_link") 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } && {
19909          test -z "$ac_c_werror_flag" ||
19910          test ! -s conftest.err
19911        } && test -s conftest$ac_exeext && {
19912          test "$cross_compiling" = yes ||
19913          $as_test_x conftest$ac_exeext
19914        }; then
19915   pgac_cv_var_int_opterr=yes
19916 else
19917   $as_echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920         pgac_cv_var_int_opterr=no
19921 fi
19922
19923 rm -rf conftest.dSYM
19924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925       conftest$ac_exeext conftest.$ac_ext
19926 fi
19927 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
19928 $as_echo "$pgac_cv_var_int_opterr" >&6; }
19929 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
19930
19931 cat >>confdefs.h <<\_ACEOF
19932 #define HAVE_INT_OPTERR 1
19933 _ACEOF
19934
19935 fi
19936
19937 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
19938 $as_echo_n "checking for optreset... " >&6; }
19939 if test "${pgac_cv_var_int_optreset+set}" = set; then
19940   $as_echo_n "(cached) " >&6
19941 else
19942   cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 #include <unistd.h>
19949 int
19950 main ()
19951 {
19952 extern int optreset; optreset = 1;
19953   ;
19954   return 0;
19955 }
19956 _ACEOF
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19964 $as_echo "$ac_try_echo") >&5
19965   (eval "$ac_link") 2>conftest.er1
19966   ac_status=$?
19967   grep -v '^ *+' conftest.er1 >conftest.err
19968   rm -f conftest.er1
19969   cat conftest.err >&5
19970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); } && {
19972          test -z "$ac_c_werror_flag" ||
19973          test ! -s conftest.err
19974        } && test -s conftest$ac_exeext && {
19975          test "$cross_compiling" = yes ||
19976          $as_test_x conftest$ac_exeext
19977        }; then
19978   pgac_cv_var_int_optreset=yes
19979 else
19980   $as_echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983         pgac_cv_var_int_optreset=no
19984 fi
19985
19986 rm -rf conftest.dSYM
19987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19988       conftest$ac_exeext conftest.$ac_ext
19989 fi
19990 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
19991 $as_echo "$pgac_cv_var_int_optreset" >&6; }
19992 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
19993
19994 cat >>confdefs.h <<\_ACEOF
19995 #define HAVE_INT_OPTRESET 1
19996 _ACEOF
19997
19998 fi
19999
20000
20001
20002 for ac_func in strtoll strtoq
20003 do
20004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20005 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20006 $as_echo_n "checking for $ac_func... " >&6; }
20007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20008   $as_echo_n "(cached) " >&6
20009 else
20010   cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20018 #define $ac_func innocuous_$ac_func
20019
20020 /* System header to define __stub macros and hopefully few prototypes,
20021     which can conflict with char $ac_func (); below.
20022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20023     <limits.h> exists even on freestanding compilers.  */
20024
20025 #ifdef __STDC__
20026 # include <limits.h>
20027 #else
20028 # include <assert.h>
20029 #endif
20030
20031 #undef $ac_func
20032
20033 /* Override any GCC internal prototype to avoid an error.
20034    Use char because int might match the return type of a GCC
20035    builtin and then its argument prototype would still apply.  */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char $ac_func ();
20040 /* The GNU C library defines this for functions which it implements
20041     to always fail with ENOSYS.  Some functions are actually named
20042     something starting with __ and the normal name is an alias.  */
20043 #if defined __stub_$ac_func || defined __stub___$ac_func
20044 choke me
20045 #endif
20046
20047 int
20048 main ()
20049 {
20050 return $ac_func ();
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext conftest$ac_exeext
20056 if { (ac_try="$ac_link"
20057 case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20062 $as_echo "$ac_try_echo") >&5
20063   (eval "$ac_link") 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } && {
20070          test -z "$ac_c_werror_flag" ||
20071          test ! -s conftest.err
20072        } && test -s conftest$ac_exeext && {
20073          test "$cross_compiling" = yes ||
20074          $as_test_x conftest$ac_exeext
20075        }; then
20076   eval "$as_ac_var=yes"
20077 else
20078   $as_echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081         eval "$as_ac_var=no"
20082 fi
20083
20084 rm -rf conftest.dSYM
20085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20086       conftest$ac_exeext conftest.$ac_ext
20087 fi
20088 ac_res=`eval 'as_val=${'$as_ac_var'}
20089                  $as_echo "$as_val"'`
20090                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20091 $as_echo "$ac_res" >&6; }
20092 as_val=`eval 'as_val=${'$as_ac_var'}
20093                  $as_echo "$as_val"'`
20094    if test "x$as_val" = x""yes; then
20095   cat >>confdefs.h <<_ACEOF
20096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20097 _ACEOF
20098  break
20099 fi
20100 done
20101
20102
20103
20104 for ac_func in strtoull strtouq
20105 do
20106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20108 $as_echo_n "checking for $ac_func... " >&6; }
20109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110   $as_echo_n "(cached) " >&6
20111 else
20112   cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20120 #define $ac_func innocuous_$ac_func
20121
20122 /* System header to define __stub macros and hopefully few prototypes,
20123     which can conflict with char $ac_func (); below.
20124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125     <limits.h> exists even on freestanding compilers.  */
20126
20127 #ifdef __STDC__
20128 # include <limits.h>
20129 #else
20130 # include <assert.h>
20131 #endif
20132
20133 #undef $ac_func
20134
20135 /* Override any GCC internal prototype to avoid an error.
20136    Use char because int might match the return type of a GCC
20137    builtin and then its argument prototype would still apply.  */
20138 #ifdef __cplusplus
20139 extern "C"
20140 #endif
20141 char $ac_func ();
20142 /* The GNU C library defines this for functions which it implements
20143     to always fail with ENOSYS.  Some functions are actually named
20144     something starting with __ and the normal name is an alias.  */
20145 #if defined __stub_$ac_func || defined __stub___$ac_func
20146 choke me
20147 #endif
20148
20149 int
20150 main ()
20151 {
20152 return $ac_func ();
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20164 $as_echo "$ac_try_echo") >&5
20165   (eval "$ac_link") 2>conftest.er1
20166   ac_status=$?
20167   grep -v '^ *+' conftest.er1 >conftest.err
20168   rm -f conftest.er1
20169   cat conftest.err >&5
20170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); } && {
20172          test -z "$ac_c_werror_flag" ||
20173          test ! -s conftest.err
20174        } && test -s conftest$ac_exeext && {
20175          test "$cross_compiling" = yes ||
20176          $as_test_x conftest$ac_exeext
20177        }; then
20178   eval "$as_ac_var=yes"
20179 else
20180   $as_echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183         eval "$as_ac_var=no"
20184 fi
20185
20186 rm -rf conftest.dSYM
20187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188       conftest$ac_exeext conftest.$ac_ext
20189 fi
20190 ac_res=`eval 'as_val=${'$as_ac_var'}
20191                  $as_echo "$as_val"'`
20192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20193 $as_echo "$ac_res" >&6; }
20194 as_val=`eval 'as_val=${'$as_ac_var'}
20195                  $as_echo "$as_val"'`
20196    if test "x$as_val" = x""yes; then
20197   cat >>confdefs.h <<_ACEOF
20198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20199 _ACEOF
20200  break
20201 fi
20202 done
20203
20204
20205 # Check for one of atexit() or on_exit()
20206
20207 for ac_func in atexit
20208 do
20209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20210 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20211 $as_echo_n "checking for $ac_func... " >&6; }
20212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20213   $as_echo_n "(cached) " >&6
20214 else
20215   cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20223 #define $ac_func innocuous_$ac_func
20224
20225 /* System header to define __stub macros and hopefully few prototypes,
20226     which can conflict with char $ac_func (); below.
20227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20228     <limits.h> exists even on freestanding compilers.  */
20229
20230 #ifdef __STDC__
20231 # include <limits.h>
20232 #else
20233 # include <assert.h>
20234 #endif
20235
20236 #undef $ac_func
20237
20238 /* Override any GCC internal prototype to avoid an error.
20239    Use char because int might match the return type of a GCC
20240    builtin and then its argument prototype would still apply.  */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char $ac_func ();
20245 /* The GNU C library defines this for functions which it implements
20246     to always fail with ENOSYS.  Some functions are actually named
20247     something starting with __ and the normal name is an alias.  */
20248 #if defined __stub_$ac_func || defined __stub___$ac_func
20249 choke me
20250 #endif
20251
20252 int
20253 main ()
20254 {
20255 return $ac_func ();
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20267 $as_echo "$ac_try_echo") >&5
20268   (eval "$ac_link") 2>conftest.er1
20269   ac_status=$?
20270   grep -v '^ *+' conftest.er1 >conftest.err
20271   rm -f conftest.er1
20272   cat conftest.err >&5
20273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); } && {
20275          test -z "$ac_c_werror_flag" ||
20276          test ! -s conftest.err
20277        } && test -s conftest$ac_exeext && {
20278          test "$cross_compiling" = yes ||
20279          $as_test_x conftest$ac_exeext
20280        }; then
20281   eval "$as_ac_var=yes"
20282 else
20283   $as_echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20285
20286         eval "$as_ac_var=no"
20287 fi
20288
20289 rm -rf conftest.dSYM
20290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20291       conftest$ac_exeext conftest.$ac_ext
20292 fi
20293 ac_res=`eval 'as_val=${'$as_ac_var'}
20294                  $as_echo "$as_val"'`
20295                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20296 $as_echo "$ac_res" >&6; }
20297 as_val=`eval 'as_val=${'$as_ac_var'}
20298                  $as_echo "$as_val"'`
20299    if test "x$as_val" = x""yes; then
20300   cat >>confdefs.h <<_ACEOF
20301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20302 _ACEOF
20303
20304 else
20305
20306 for ac_func in on_exit
20307 do
20308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20310 $as_echo_n "checking for $ac_func... " >&6; }
20311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20312   $as_echo_n "(cached) " >&6
20313 else
20314   cat >conftest.$ac_ext <<_ACEOF
20315 /* confdefs.h.  */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h.  */
20320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20322 #define $ac_func innocuous_$ac_func
20323
20324 /* System header to define __stub macros and hopefully few prototypes,
20325     which can conflict with char $ac_func (); below.
20326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20327     <limits.h> exists even on freestanding compilers.  */
20328
20329 #ifdef __STDC__
20330 # include <limits.h>
20331 #else
20332 # include <assert.h>
20333 #endif
20334
20335 #undef $ac_func
20336
20337 /* Override any GCC internal prototype to avoid an error.
20338    Use char because int might match the return type of a GCC
20339    builtin and then its argument prototype would still apply.  */
20340 #ifdef __cplusplus
20341 extern "C"
20342 #endif
20343 char $ac_func ();
20344 /* The GNU C library defines this for functions which it implements
20345     to always fail with ENOSYS.  Some functions are actually named
20346     something starting with __ and the normal name is an alias.  */
20347 #if defined __stub_$ac_func || defined __stub___$ac_func
20348 choke me
20349 #endif
20350
20351 int
20352 main ()
20353 {
20354 return $ac_func ();
20355   ;
20356   return 0;
20357 }
20358 _ACEOF
20359 rm -f conftest.$ac_objext conftest$ac_exeext
20360 if { (ac_try="$ac_link"
20361 case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20366 $as_echo "$ac_try_echo") >&5
20367   (eval "$ac_link") 2>conftest.er1
20368   ac_status=$?
20369   grep -v '^ *+' conftest.er1 >conftest.err
20370   rm -f conftest.er1
20371   cat conftest.err >&5
20372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); } && {
20374          test -z "$ac_c_werror_flag" ||
20375          test ! -s conftest.err
20376        } && test -s conftest$ac_exeext && {
20377          test "$cross_compiling" = yes ||
20378          $as_test_x conftest$ac_exeext
20379        }; then
20380   eval "$as_ac_var=yes"
20381 else
20382   $as_echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20384
20385         eval "$as_ac_var=no"
20386 fi
20387
20388 rm -rf conftest.dSYM
20389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20390       conftest$ac_exeext conftest.$ac_ext
20391 fi
20392 ac_res=`eval 'as_val=${'$as_ac_var'}
20393                  $as_echo "$as_val"'`
20394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20395 $as_echo "$ac_res" >&6; }
20396 as_val=`eval 'as_val=${'$as_ac_var'}
20397                  $as_echo "$as_val"'`
20398    if test "x$as_val" = x""yes; then
20399   cat >>confdefs.h <<_ACEOF
20400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20401 _ACEOF
20402
20403 else
20404   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20405 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20406    { (exit 1); exit 1; }; }
20407 fi
20408 done
20409
20410 fi
20411 done
20412
20413
20414
20415 for ac_func in fseeko
20416 do
20417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20419 $as_echo_n "checking for $ac_func... " >&6; }
20420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20421   $as_echo_n "(cached) " >&6
20422 else
20423   cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h.  */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h.  */
20429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20431 #define $ac_func innocuous_$ac_func
20432
20433 /* System header to define __stub macros and hopefully few prototypes,
20434     which can conflict with char $ac_func (); below.
20435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20436     <limits.h> exists even on freestanding compilers.  */
20437
20438 #ifdef __STDC__
20439 # include <limits.h>
20440 #else
20441 # include <assert.h>
20442 #endif
20443
20444 #undef $ac_func
20445
20446 /* Override any GCC internal prototype to avoid an error.
20447    Use char because int might match the return type of a GCC
20448    builtin and then its argument prototype would still apply.  */
20449 #ifdef __cplusplus
20450 extern "C"
20451 #endif
20452 char $ac_func ();
20453 /* The GNU C library defines this for functions which it implements
20454     to always fail with ENOSYS.  Some functions are actually named
20455     something starting with __ and the normal name is an alias.  */
20456 #if defined __stub_$ac_func || defined __stub___$ac_func
20457 choke me
20458 #endif
20459
20460 int
20461 main ()
20462 {
20463 return $ac_func ();
20464   ;
20465   return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20475 $as_echo "$ac_try_echo") >&5
20476   (eval "$ac_link") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } && {
20483          test -z "$ac_c_werror_flag" ||
20484          test ! -s conftest.err
20485        } && test -s conftest$ac_exeext && {
20486          test "$cross_compiling" = yes ||
20487          $as_test_x conftest$ac_exeext
20488        }; then
20489   eval "$as_ac_var=yes"
20490 else
20491   $as_echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494         eval "$as_ac_var=no"
20495 fi
20496
20497 rm -rf conftest.dSYM
20498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20499       conftest$ac_exeext conftest.$ac_ext
20500 fi
20501 ac_res=`eval 'as_val=${'$as_ac_var'}
20502                  $as_echo "$as_val"'`
20503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20504 $as_echo "$ac_res" >&6; }
20505 as_val=`eval 'as_val=${'$as_ac_var'}
20506                  $as_echo "$as_val"'`
20507    if test "x$as_val" = x""yes; then
20508   cat >>confdefs.h <<_ACEOF
20509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20510 _ACEOF
20511
20512 else
20513   case " $LIBOBJS " in
20514   *" $ac_func.$ac_objext "* ) ;;
20515   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20516  ;;
20517 esac
20518
20519 fi
20520 done
20521
20522
20523 case $host_os in
20524         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20525         # Mingw uses macros to access Win32 API calls
20526         bsdi*|netbsd*|mingw*)
20527
20528 cat >>confdefs.h <<\_ACEOF
20529 #define HAVE_FSEEKO 1
20530 _ACEOF
20531
20532                 ac_cv_func_fseeko=yes;;
20533         *)
20534                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20535 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20536 if test "${ac_cv_sys_largefile_source+set}" = set; then
20537   $as_echo_n "(cached) " >&6
20538 else
20539   while :; do
20540   cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546 #include <sys/types.h> /* for off_t */
20547      #include <stdio.h>
20548 int
20549 main ()
20550 {
20551 int (*fp) (FILE *, off_t, int) = fseeko;
20552      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20564 $as_echo "$ac_try_echo") >&5
20565   (eval "$ac_link") 2>conftest.er1
20566   ac_status=$?
20567   grep -v '^ *+' conftest.er1 >conftest.err
20568   rm -f conftest.er1
20569   cat conftest.err >&5
20570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } && {
20572          test -z "$ac_c_werror_flag" ||
20573          test ! -s conftest.err
20574        } && test -s conftest$ac_exeext && {
20575          test "$cross_compiling" = yes ||
20576          $as_test_x conftest$ac_exeext
20577        }; then
20578   ac_cv_sys_largefile_source=no; break
20579 else
20580   $as_echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583
20584 fi
20585
20586 rm -rf conftest.dSYM
20587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20588       conftest$ac_exeext conftest.$ac_ext
20589   cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 #define _LARGEFILE_SOURCE 1
20596 #include <sys/types.h> /* for off_t */
20597      #include <stdio.h>
20598 int
20599 main ()
20600 {
20601 int (*fp) (FILE *, off_t, int) = fseeko;
20602      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611   *) ac_try_echo=$ac_try;;
20612 esac
20613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20614 $as_echo "$ac_try_echo") >&5
20615   (eval "$ac_link") 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } && {
20622          test -z "$ac_c_werror_flag" ||
20623          test ! -s conftest.err
20624        } && test -s conftest$ac_exeext && {
20625          test "$cross_compiling" = yes ||
20626          $as_test_x conftest$ac_exeext
20627        }; then
20628   ac_cv_sys_largefile_source=1; break
20629 else
20630   $as_echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633
20634 fi
20635
20636 rm -rf conftest.dSYM
20637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20638       conftest$ac_exeext conftest.$ac_ext
20639   ac_cv_sys_largefile_source=unknown
20640   break
20641 done
20642 fi
20643 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20644 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20645 case $ac_cv_sys_largefile_source in #(
20646   no | unknown) ;;
20647   *)
20648 cat >>confdefs.h <<_ACEOF
20649 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20650 _ACEOF
20651 ;;
20652 esac
20653 rm -rf conftest*
20654
20655 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20656 # in glibc 2.1.3, but that breaks too many other things.
20657 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20658 if test $ac_cv_sys_largefile_source != unknown; then
20659
20660 cat >>confdefs.h <<\_ACEOF
20661 #define HAVE_FSEEKO 1
20662 _ACEOF
20663
20664 fi
20665 ;;
20666 esac
20667
20668
20669 #
20670 # Pthreads
20671 #
20672 # For each platform, we need to know about any special compile and link
20673 # libraries, and whether the normal C function names are thread-safe.
20674 # See the comment at the top of src/port/thread.c for more information.
20675 # WIN32 doesn't need the pthread tests;  it always uses threads
20676 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
20677
20678
20679
20680 ac_ext=c
20681 ac_cpp='$CPP $CPPFLAGS'
20682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20685
20686 acx_pthread_ok=no
20687
20688 # We used to check for pthread.h first, but this fails if pthread.h
20689 # requires special compiler flags (e.g. on True64 or Sequent).
20690 # It gets checked for in the link test anyway.
20691
20692 # First of all, check if the user has set any of the PTHREAD_LIBS,
20693 # etcetera environment variables, and if threads linking works using
20694 # them:
20695 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20696         save_CFLAGS="$CFLAGS"
20697         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20698         save_LIBS="$LIBS"
20699         LIBS="$PTHREAD_LIBS $LIBS"
20700         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20701 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20702         cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708
20709 /* Override any GCC internal prototype to avoid an error.
20710    Use char because int might match the return type of a GCC
20711    builtin and then its argument prototype would still apply.  */
20712 #ifdef __cplusplus
20713 extern "C"
20714 #endif
20715 char pthread_join ();
20716 int
20717 main ()
20718 {
20719 return pthread_join ();
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (ac_try="$ac_link"
20726 case "(($ac_try" in
20727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728   *) ac_try_echo=$ac_try;;
20729 esac
20730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20731 $as_echo "$ac_try_echo") >&5
20732   (eval "$ac_link") 2>conftest.er1
20733   ac_status=$?
20734   grep -v '^ *+' conftest.er1 >conftest.err
20735   rm -f conftest.er1
20736   cat conftest.err >&5
20737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } && {
20739          test -z "$ac_c_werror_flag" ||
20740          test ! -s conftest.err
20741        } && test -s conftest$ac_exeext && {
20742          test "$cross_compiling" = yes ||
20743          $as_test_x conftest$ac_exeext
20744        }; then
20745   acx_pthread_ok=yes
20746 else
20747   $as_echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750
20751 fi
20752
20753 rm -rf conftest.dSYM
20754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20755       conftest$ac_exeext conftest.$ac_ext
20756         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20757 $as_echo "$acx_pthread_ok" >&6; }
20758         if test x"$acx_pthread_ok" = xno; then
20759                 PTHREAD_LIBS=""
20760                 PTHREAD_CFLAGS=""
20761         fi
20762         LIBS="$save_LIBS"
20763         CFLAGS="$save_CFLAGS"
20764 fi
20765
20766 # We must check for the threads library under a number of different
20767 # names; the ordering is very important because some systems
20768 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20769 # libraries is broken (non-POSIX).
20770
20771 # Create a list of thread flags to try.  Items starting with a "-" are
20772 # C compiler flags, and other items are library names, except for "none"
20773 # which indicates that we try without any flags at all, and "pthread-config"
20774 # which is a program returning the flags for the Pth emulation library.
20775
20776 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
20777
20778 # The ordering *is* (sometimes) important.  Some notes on the
20779 # individual items follow:
20780
20781 # pthreads: AIX (must check this before -lpthread)
20782 # none: in case threads are in libc; should be tried before -Kthread and
20783 #       other compiler flags to prevent continual compiler warnings
20784 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20785 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20786 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20787 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20788 # -pthreads: Solaris/gcc
20789 # -mthreads: Mingw32/gcc, Lynx/gcc
20790 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20791 #      doesn't hurt to check since this sometimes defines pthreads too;
20792 #      also defines -D_REENTRANT)
20793 # pthread: Linux, etcetera
20794 # --thread-safe: KAI C++
20795 # pthread-config: use pthread-config program (for GNU Pth library)
20796
20797 case "${host_cpu}-${host_os}" in
20798         *solaris*)
20799
20800         # On Solaris (at least, for some versions), libc contains stubbed
20801         # (non-functional) versions of the pthreads routines, so link-based
20802         # tests will erroneously succeed.  (We need to link with -pthread or
20803         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20804         # a function called by this macro, so we could check for that, but
20805         # who knows whether they'll stub that too in a future libc.)  So,
20806         # we'll just look for -pthreads and -lpthread first:
20807
20808         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20809         ;;
20810 esac
20811
20812 if test x"$acx_pthread_ok" = xno; then
20813 for flag in $acx_pthread_flags; do
20814
20815         tryPTHREAD_CFLAGS=""
20816         tryPTHREAD_LIBS=""
20817         case $flag in
20818                 none)
20819                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20820 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20821                 ;;
20822
20823                 -*)
20824                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20825 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20826                 tryPTHREAD_CFLAGS="$flag"
20827                 ;;
20828
20829                 pthread-config)
20830                 # skip this if we already have flags defined, for PostgreSQL
20831                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
20832                 # Extract the first word of "pthread-config", so it can be a program name with args.
20833 set dummy pthread-config; ac_word=$2
20834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20835 $as_echo_n "checking for $ac_word... " >&6; }
20836 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20837   $as_echo_n "(cached) " >&6
20838 else
20839   if test -n "$acx_pthread_config"; then
20840   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20841 else
20842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20843 for as_dir in $PATH
20844 do
20845   IFS=$as_save_IFS
20846   test -z "$as_dir" && as_dir=.
20847   for ac_exec_ext in '' $ac_executable_extensions; do
20848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20849     ac_cv_prog_acx_pthread_config="yes"
20850     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20851     break 2
20852   fi
20853 done
20854 done
20855 IFS=$as_save_IFS
20856
20857   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20858 fi
20859 fi
20860 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20861 if test -n "$acx_pthread_config"; then
20862   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20863 $as_echo "$acx_pthread_config" >&6; }
20864 else
20865   { $as_echo "$as_me:$LINENO: result: no" >&5
20866 $as_echo "no" >&6; }
20867 fi
20868
20869
20870                 if test x"$acx_pthread_config" = xno; then continue; fi
20871                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
20872                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20873                 ;;
20874
20875                 *)
20876                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20877 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20878                 tryPTHREAD_LIBS="-l$flag"
20879                 ;;
20880         esac
20881
20882         save_LIBS="$LIBS"
20883         save_CFLAGS="$CFLAGS"
20884         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
20885         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20886
20887         # Check for various functions.  We must include pthread.h,
20888         # since some functions may be macros.  (On the Sequent, we
20889         # need a special flag -Kthread to make this header compile.)
20890         # We check for pthread_join because it is in -lpthread on IRIX
20891         # while pthread_create is in libc.  We check for pthread_attr_init
20892         # due to DEC craziness with -lpthreads.  We check for
20893         # pthread_cleanup_push because it is one of the few pthread
20894         # functions on Solaris that doesn't have a non-functional libc stub.
20895         # We try pthread_create on general principles.
20896         cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 #include <pthread.h>
20903 int
20904 main ()
20905 {
20906 pthread_t th; pthread_join(th, 0);
20907                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20908                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (ac_try="$ac_link"
20915 case "(($ac_try" in
20916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917   *) ac_try_echo=$ac_try;;
20918 esac
20919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920 $as_echo "$ac_try_echo") >&5
20921   (eval "$ac_link") 2>conftest.er1
20922   ac_status=$?
20923   grep -v '^ *+' conftest.er1 >conftest.err
20924   rm -f conftest.er1
20925   cat conftest.err >&5
20926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } && {
20928          test -z "$ac_c_werror_flag" ||
20929          test ! -s conftest.err
20930        } && test -s conftest$ac_exeext && {
20931          test "$cross_compiling" = yes ||
20932          $as_test_x conftest$ac_exeext
20933        }; then
20934   acx_pthread_ok=yes
20935 else
20936   $as_echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939         acx_pthread_ok=no
20940 fi
20941
20942 rm -rf conftest.dSYM
20943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20944       conftest$ac_exeext conftest.$ac_ext
20945
20946         if test "x$acx_pthread_ok" = xyes; then
20947             # Don't use options that are ignored by the compiler.
20948             # We find them by checking stderror.
20949             cat >conftest.$ac_ext <<_ACEOF
20950 int
20951 main (int argc, char **argv)
20952 {
20953   (void) argc;
20954   (void) argv;
20955   return 0;
20956 }
20957 _ACEOF
20958             rm -f conftest.$ac_objext conftest$ac_exeext
20959             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
20960                 # we continue with more flags because Linux needs -lpthread
20961                 # for libpq builds on PostgreSQL.  The test above only
20962                 # tests for building binaries, not shared libraries.
20963                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
20964                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20965             else   acx_pthread_ok=no
20966             fi
20967         fi
20968
20969         LIBS="$save_LIBS"
20970         CFLAGS="$save_CFLAGS"
20971
20972         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20973 $as_echo "$acx_pthread_ok" >&6; }
20974 done
20975 fi
20976
20977 # Various other checks:
20978 if test "x$acx_pthread_ok" = xyes; then
20979         save_LIBS="$LIBS"
20980         LIBS="$PTHREAD_LIBS $LIBS"
20981         save_CFLAGS="$CFLAGS"
20982         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20983
20984         # Detect AIX lossage: threads are created detached by default
20985         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
20986         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20987 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20988         cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 #include <pthread.h>
20995 int
20996 main ()
20997 {
20998 int attr=PTHREAD_CREATE_JOINABLE;
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21010 $as_echo "$ac_try_echo") >&5
21011   (eval "$ac_link") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_c_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest$ac_exeext && {
21021          test "$cross_compiling" = yes ||
21022          $as_test_x conftest$ac_exeext
21023        }; then
21024   ok=PTHREAD_CREATE_JOINABLE
21025 else
21026   $as_echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         ok=unknown
21030 fi
21031
21032 rm -rf conftest.dSYM
21033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21034       conftest$ac_exeext conftest.$ac_ext
21035         if test x"$ok" = xunknown; then
21036                 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #include <pthread.h>
21043 int
21044 main ()
21045 {
21046 int attr=PTHREAD_CREATE_UNDETACHED;
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext conftest$ac_exeext
21052 if { (ac_try="$ac_link"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21058 $as_echo "$ac_try_echo") >&5
21059   (eval "$ac_link") 2>conftest.er1
21060   ac_status=$?
21061   grep -v '^ *+' conftest.er1 >conftest.err
21062   rm -f conftest.er1
21063   cat conftest.err >&5
21064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); } && {
21066          test -z "$ac_c_werror_flag" ||
21067          test ! -s conftest.err
21068        } && test -s conftest$ac_exeext && {
21069          test "$cross_compiling" = yes ||
21070          $as_test_x conftest$ac_exeext
21071        }; then
21072   ok=PTHREAD_CREATE_UNDETACHED
21073 else
21074   $as_echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077         ok=unknown
21078 fi
21079
21080 rm -rf conftest.dSYM
21081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21082       conftest$ac_exeext conftest.$ac_ext
21083         fi
21084         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21085
21086 cat >>confdefs.h <<\_ACEOF
21087 #define PTHREAD_CREATE_JOINABLE $ok
21088 _ACEOF
21089
21090         fi
21091         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21092 $as_echo "${ok}" >&6; }
21093         if test x"$ok" = xunknown; then
21094                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21095 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21096         fi
21097
21098         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21099 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21100         flag=no
21101 # We always add these in PostgreSQL
21102 #       case "${host_cpu}-${host_os}" in
21103 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21104 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21105 #       esac
21106         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21107 $as_echo "${flag}" >&6; }
21108         if test "x$flag" != xno; then
21109                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21110         fi
21111
21112         LIBS="$save_LIBS"
21113         CFLAGS="$save_CFLAGS"
21114
21115 # Supporting cc_r would require a special CC in all places that
21116 # use libpq, and that is ugly, so we don't do it.  Users can still
21117 # define their compiler as cc_r to do thread builds of everything.
21118         # More AIX lossage: must compile with cc_r
21119         # Extract the first word of "cc_r", so it can be a program name with args.
21120 set dummy cc_r; ac_word=$2
21121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21122 $as_echo_n "checking for $ac_word... " >&6; }
21123 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21124   $as_echo_n "(cached) " >&6
21125 else
21126   if test -n "$PTHREAD_CC"; then
21127   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21128 else
21129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130 for as_dir in $PATH
21131 do
21132   IFS=$as_save_IFS
21133   test -z "$as_dir" && as_dir=.
21134   for ac_exec_ext in '' $ac_executable_extensions; do
21135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21136     ac_cv_prog_PTHREAD_CC="cc_r"
21137     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21138     break 2
21139   fi
21140 done
21141 done
21142 IFS=$as_save_IFS
21143
21144   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21145 fi
21146 fi
21147 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21148 if test -n "$PTHREAD_CC"; then
21149   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21150 $as_echo "$PTHREAD_CC" >&6; }
21151 else
21152   { $as_echo "$as_me:$LINENO: result: no" >&5
21153 $as_echo "no" >&6; }
21154 fi
21155
21156
21157 else
21158         PTHREAD_CC="$CC"
21159 fi
21160
21161
21162
21163
21164
21165 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21166 if test x"$acx_pthread_ok" = xyes; then
21167
21168 cat >>confdefs.h <<\_ACEOF
21169 #define HAVE_PTHREAD 1
21170 _ACEOF
21171
21172         :
21173 else
21174         acx_pthread_ok=no
21175
21176 fi
21177 ac_ext=c
21178 ac_cpp='$CPP $CPPFLAGS'
21179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21182
21183         # set thread flags
21184
21185 # Some platforms use these, so just define them.  They can't hurt if they
21186 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21187 # enables 5-arg getpwuid_r, among other things.
21188 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21189
21190
21191 # At this point, we don't want to muck with the compiler name for threading.
21192 # Let's see who fails, perhaps AIX.  2004-04-23
21193 if test "$PTHREAD_CC" != "$CC"; then
21194 { { $as_echo "$as_me:$LINENO: error:
21195 PostgreSQL does not support platforms that require a special compiler
21196 for thread safety." >&5
21197 $as_echo "$as_me: error:
21198 PostgreSQL does not support platforms that require a special compiler
21199 for thread safety." >&2;}
21200    { (exit 1); exit 1; }; }
21201 fi
21202
21203 if test "$THREAD_SUPPORT" = no; then
21204 { { $as_echo "$as_me:$LINENO: error: cannot enable threads on this platform
21205 This platform is known to not support thread-safe programs.  For details,
21206 compile and run src/bin/pg_thread_test." >&5
21207 $as_echo "$as_me: error: cannot enable threads on this platform
21208 This platform is known to not support thread-safe programs.  For details,
21209 compile and run src/bin/pg_thread_test." >&2;}
21210    { (exit 1); exit 1; }; }
21211 fi
21212
21213 # Check for *_r functions
21214 _CFLAGS="$CFLAGS"
21215 _LIBS="$LIBS"
21216 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21217 LIBS="$LIBS $PTHREAD_LIBS"
21218
21219 if test "$PORTNAME" != "win32"; then
21220 if test "${ac_cv_header_pthread_h+set}" = set; then
21221   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21222 $as_echo_n "checking for pthread.h... " >&6; }
21223 if test "${ac_cv_header_pthread_h+set}" = set; then
21224   $as_echo_n "(cached) " >&6
21225 fi
21226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21227 $as_echo "$ac_cv_header_pthread_h" >&6; }
21228 else
21229   # Is the header compilable?
21230 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21231 $as_echo_n "checking pthread.h usability... " >&6; }
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 $ac_includes_default
21239 #include <pthread.h>
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249   (eval "$ac_compile") 2>conftest.er1
21250   ac_status=$?
21251   grep -v '^ *+' conftest.er1 >conftest.err
21252   rm -f conftest.er1
21253   cat conftest.err >&5
21254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); } && {
21256          test -z "$ac_c_werror_flag" ||
21257          test ! -s conftest.err
21258        } && test -s conftest.$ac_objext; then
21259   ac_header_compiler=yes
21260 else
21261   $as_echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ac_header_compiler=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21269 $as_echo "$ac_header_compiler" >&6; }
21270
21271 # Is the header present?
21272 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21273 $as_echo_n "checking pthread.h presence... " >&6; }
21274 cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 #include <pthread.h>
21281 _ACEOF
21282 if { (ac_try="$ac_cpp conftest.$ac_ext"
21283 case "(($ac_try" in
21284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285   *) ac_try_echo=$ac_try;;
21286 esac
21287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21288 $as_echo "$ac_try_echo") >&5
21289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21290   ac_status=$?
21291   grep -v '^ *+' conftest.er1 >conftest.err
21292   rm -f conftest.er1
21293   cat conftest.err >&5
21294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } >/dev/null && {
21296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21297          test ! -s conftest.err
21298        }; then
21299   ac_header_preproc=yes
21300 else
21301   $as_echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21303
21304   ac_header_preproc=no
21305 fi
21306
21307 rm -f conftest.err conftest.$ac_ext
21308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21309 $as_echo "$ac_header_preproc" >&6; }
21310
21311 # So?  What about this header?
21312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21313   yes:no: )
21314     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21315 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21316     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21317 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21318     ac_header_preproc=yes
21319     ;;
21320   no:yes:* )
21321     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21322 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21323     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21324 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21325     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21326 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21327     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21328 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21329     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21330 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21331     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21332 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21333     ( cat <<\_ASBOX
21334 ## ---------------------------------------- ##
21335 ## Report this to pgsql-bugs@postgresql.org ##
21336 ## ---------------------------------------- ##
21337 _ASBOX
21338      ) | sed "s/^/$as_me: WARNING:     /" >&2
21339     ;;
21340 esac
21341 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21342 $as_echo_n "checking for pthread.h... " >&6; }
21343 if test "${ac_cv_header_pthread_h+set}" = set; then
21344   $as_echo_n "(cached) " >&6
21345 else
21346   ac_cv_header_pthread_h=$ac_header_preproc
21347 fi
21348 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21349 $as_echo "$ac_cv_header_pthread_h" >&6; }
21350
21351 fi
21352 if test "x$ac_cv_header_pthread_h" = x""yes; then
21353   :
21354 else
21355   { { $as_echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
21356 $as_echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
21357    { (exit 1); exit 1; }; }
21358 fi
21359
21360
21361 fi
21362
21363
21364
21365
21366 for ac_func in strerror_r getpwuid_r gethostbyname_r
21367 do
21368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21370 $as_echo_n "checking for $ac_func... " >&6; }
21371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21372   $as_echo_n "(cached) " >&6
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21382 #define $ac_func innocuous_$ac_func
21383
21384 /* System header to define __stub macros and hopefully few prototypes,
21385     which can conflict with char $ac_func (); below.
21386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21387     <limits.h> exists even on freestanding compilers.  */
21388
21389 #ifdef __STDC__
21390 # include <limits.h>
21391 #else
21392 # include <assert.h>
21393 #endif
21394
21395 #undef $ac_func
21396
21397 /* Override any GCC internal prototype to avoid an error.
21398    Use char because int might match the return type of a GCC
21399    builtin and then its argument prototype would still apply.  */
21400 #ifdef __cplusplus
21401 extern "C"
21402 #endif
21403 char $ac_func ();
21404 /* The GNU C library defines this for functions which it implements
21405     to always fail with ENOSYS.  Some functions are actually named
21406     something starting with __ and the normal name is an alias.  */
21407 #if defined __stub_$ac_func || defined __stub___$ac_func
21408 choke me
21409 #endif
21410
21411 int
21412 main ()
21413 {
21414 return $ac_func ();
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21426 $as_echo "$ac_try_echo") >&5
21427   (eval "$ac_link") 2>conftest.er1
21428   ac_status=$?
21429   grep -v '^ *+' conftest.er1 >conftest.err
21430   rm -f conftest.er1
21431   cat conftest.err >&5
21432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } && {
21434          test -z "$ac_c_werror_flag" ||
21435          test ! -s conftest.err
21436        } && test -s conftest$ac_exeext && {
21437          test "$cross_compiling" = yes ||
21438          $as_test_x conftest$ac_exeext
21439        }; then
21440   eval "$as_ac_var=yes"
21441 else
21442   $as_echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         eval "$as_ac_var=no"
21446 fi
21447
21448 rm -rf conftest.dSYM
21449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21450       conftest$ac_exeext conftest.$ac_ext
21451 fi
21452 ac_res=`eval 'as_val=${'$as_ac_var'}
21453                  $as_echo "$as_val"'`
21454                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21455 $as_echo "$ac_res" >&6; }
21456 as_val=`eval 'as_val=${'$as_ac_var'}
21457                  $as_echo "$as_val"'`
21458    if test "x$as_val" = x""yes; then
21459   cat >>confdefs.h <<_ACEOF
21460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21461 _ACEOF
21462
21463 fi
21464 done
21465
21466
21467 # Do test here with the proper thread flags
21468 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21469 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21470 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21471   $as_echo_n "(cached) " >&6
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 #include <sys/types.h>
21480 #include <pwd.h>
21481 int
21482 main ()
21483 {
21484 uid_t uid;
21485 struct passwd *space;
21486 char *buf;
21487 size_t bufsize;
21488 struct passwd **result;
21489 getpwuid_r(uid, space, buf, bufsize, result);
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (ac_try="$ac_compile"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21501 $as_echo "$ac_try_echo") >&5
21502   (eval "$ac_compile") 2>conftest.er1
21503   ac_status=$?
21504   grep -v '^ *+' conftest.er1 >conftest.err
21505   rm -f conftest.er1
21506   cat conftest.err >&5
21507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } && {
21509          test -z "$ac_c_werror_flag" ||
21510          test ! -s conftest.err
21511        } && test -s conftest.$ac_objext; then
21512   pgac_cv_func_getpwuid_r_5arg=yes
21513 else
21514   $as_echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517         pgac_cv_func_getpwuid_r_5arg=no
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 fi
21522 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21523 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21524 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21525
21526 cat >>confdefs.h <<\_ACEOF
21527 #define GETPWUID_R_5ARG /**/
21528 _ACEOF
21529
21530 fi
21531
21532 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21533 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21534 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21535   $as_echo_n "(cached) " >&6
21536 else
21537   cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h.  */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h.  */
21543 #include <string.h>
21544 int
21545 main ()
21546 {
21547 #ifndef _AIX
21548 int strerror_r(int, char *, size_t);
21549 #else
21550 /* Older AIX has 'int' for the third argument so we don't test the args. */
21551 int strerror_r();
21552 #endif
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21564 $as_echo "$ac_try_echo") >&5
21565   (eval "$ac_compile") 2>conftest.er1
21566   ac_status=$?
21567   grep -v '^ *+' conftest.er1 >conftest.err
21568   rm -f conftest.er1
21569   cat conftest.err >&5
21570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); } && {
21572          test -z "$ac_c_werror_flag" ||
21573          test ! -s conftest.err
21574        } && test -s conftest.$ac_objext; then
21575   pgac_cv_func_strerror_r_int=yes
21576 else
21577   $as_echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580         pgac_cv_func_strerror_r_int=no
21581 fi
21582
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21584 fi
21585 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21586 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21587 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21588
21589 cat >>confdefs.h <<\_ACEOF
21590 #define STRERROR_R_INT /**/
21591 _ACEOF
21592
21593 fi
21594
21595
21596 CFLAGS="$_CFLAGS"
21597 LIBS="$_LIBS"
21598
21599 else
21600 # do not use values from template file
21601 PTHREAD_CFLAGS=
21602 PTHREAD_LIBS=
21603 fi
21604
21605
21606
21607
21608
21609 # We can test for libldap_r only after we know PTHREAD_LIBS
21610 if test "$with_ldap" = yes ; then
21611   _LIBS="$LIBS"
21612   if test "$PORTNAME" != "win32"; then
21613
21614 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21615 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21616 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21617   $as_echo_n "(cached) " >&6
21618 else
21619   ac_check_lib_save_LIBS=$LIBS
21620 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627
21628 /* Override any GCC internal prototype to avoid an error.
21629    Use char because int might match the return type of a GCC
21630    builtin and then its argument prototype would still apply.  */
21631 #ifdef __cplusplus
21632 extern "C"
21633 #endif
21634 char ldap_bind ();
21635 int
21636 main ()
21637 {
21638 return ldap_bind ();
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21650 $as_echo "$ac_try_echo") >&5
21651   (eval "$ac_link") 2>conftest.er1
21652   ac_status=$?
21653   grep -v '^ *+' conftest.er1 >conftest.err
21654   rm -f conftest.er1
21655   cat conftest.err >&5
21656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); } && {
21658          test -z "$ac_c_werror_flag" ||
21659          test ! -s conftest.err
21660        } && test -s conftest$ac_exeext && {
21661          test "$cross_compiling" = yes ||
21662          $as_test_x conftest$ac_exeext
21663        }; then
21664   ac_cv_lib_ldap_ldap_bind=yes
21665 else
21666   $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669         ac_cv_lib_ldap_ldap_bind=no
21670 fi
21671
21672 rm -rf conftest.dSYM
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674       conftest$ac_exeext conftest.$ac_ext
21675 LIBS=$ac_check_lib_save_LIBS
21676 fi
21677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
21678 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
21679 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
21680   cat >>confdefs.h <<_ACEOF
21681 #define HAVE_LIBLDAP 1
21682 _ACEOF
21683
21684   LIBS="-lldap $LIBS"
21685
21686 else
21687   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
21688 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
21689    { (exit 1); exit 1; }; }
21690 fi
21691
21692     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
21693     if test "$enable_thread_safety" = yes; then
21694       # on some platforms ldap_r fails to link without PTHREAD_LIBS
21695
21696 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
21697 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
21698 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
21699   $as_echo_n "(cached) " >&6
21700 else
21701   ac_check_lib_save_LIBS=$LIBS
21702 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
21703 cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709
21710 /* Override any GCC internal prototype to avoid an error.
21711    Use char because int might match the return type of a GCC
21712    builtin and then its argument prototype would still apply.  */
21713 #ifdef __cplusplus
21714 extern "C"
21715 #endif
21716 char ldap_simple_bind ();
21717 int
21718 main ()
21719 {
21720 return ldap_simple_bind ();
21721   ;
21722   return 0;
21723 }
21724 _ACEOF
21725 rm -f conftest.$ac_objext conftest$ac_exeext
21726 if { (ac_try="$ac_link"
21727 case "(($ac_try" in
21728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729   *) ac_try_echo=$ac_try;;
21730 esac
21731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21732 $as_echo "$ac_try_echo") >&5
21733   (eval "$ac_link") 2>conftest.er1
21734   ac_status=$?
21735   grep -v '^ *+' conftest.er1 >conftest.err
21736   rm -f conftest.er1
21737   cat conftest.err >&5
21738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } && {
21740          test -z "$ac_c_werror_flag" ||
21741          test ! -s conftest.err
21742        } && test -s conftest$ac_exeext && {
21743          test "$cross_compiling" = yes ||
21744          $as_test_x conftest$ac_exeext
21745        }; then
21746   ac_cv_lib_ldap_r_ldap_simple_bind=yes
21747 else
21748   $as_echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751         ac_cv_lib_ldap_r_ldap_simple_bind=no
21752 fi
21753
21754 rm -rf conftest.dSYM
21755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21756       conftest$ac_exeext conftest.$ac_ext
21757 LIBS=$ac_check_lib_save_LIBS
21758 fi
21759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
21760 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
21761 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
21762   cat >>confdefs.h <<_ACEOF
21763 #define HAVE_LIBLDAP_R 1
21764 _ACEOF
21765
21766   LIBS="-lldap_r $LIBS"
21767
21768 else
21769   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
21770 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
21771    { (exit 1); exit 1; }; }
21772 fi
21773
21774       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
21775     else
21776       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
21777     fi
21778   else
21779
21780 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
21781 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
21782 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
21783   $as_echo_n "(cached) " >&6
21784 else
21785   ac_check_lib_save_LIBS=$LIBS
21786 LIBS="-lwldap32  $LIBS"
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793
21794 /* Override any GCC internal prototype to avoid an error.
21795    Use char because int might match the return type of a GCC
21796    builtin and then its argument prototype would still apply.  */
21797 #ifdef __cplusplus
21798 extern "C"
21799 #endif
21800 char ldap_bind ();
21801 int
21802 main ()
21803 {
21804 return ldap_bind ();
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21816 $as_echo "$ac_try_echo") >&5
21817   (eval "$ac_link") 2>conftest.er1
21818   ac_status=$?
21819   grep -v '^ *+' conftest.er1 >conftest.err
21820   rm -f conftest.er1
21821   cat conftest.err >&5
21822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); } && {
21824          test -z "$ac_c_werror_flag" ||
21825          test ! -s conftest.err
21826        } && test -s conftest$ac_exeext && {
21827          test "$cross_compiling" = yes ||
21828          $as_test_x conftest$ac_exeext
21829        }; then
21830   ac_cv_lib_wldap32_ldap_bind=yes
21831 else
21832   $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835         ac_cv_lib_wldap32_ldap_bind=no
21836 fi
21837
21838 rm -rf conftest.dSYM
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840       conftest$ac_exeext conftest.$ac_ext
21841 LIBS=$ac_check_lib_save_LIBS
21842 fi
21843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
21844 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
21845 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
21846   cat >>confdefs.h <<_ACEOF
21847 #define HAVE_LIBWLDAP32 1
21848 _ACEOF
21849
21850   LIBS="-lwldap32 $LIBS"
21851
21852 else
21853   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
21854 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
21855    { (exit 1); exit 1; }; }
21856 fi
21857
21858     LDAP_LIBS_FE="-lwldap32"
21859     LDAP_LIBS_BE="-lwldap32"
21860   fi
21861   LIBS="$_LIBS"
21862 fi
21863
21864
21865
21866
21867 # This test makes sure that run tests work at all.  Sometimes a shared
21868 # library is found by the linker, but the runtime linker can't find it.
21869 # This check should come after all modifications of compiler or linker
21870 # variables, and before any other run tests.
21871 { $as_echo "$as_me:$LINENO: checking test program" >&5
21872 $as_echo_n "checking test program... " >&6; }
21873 if test "$cross_compiling" = yes; then
21874   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
21875 $as_echo "cross-compiling" >&6; }
21876 else
21877   cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h.  */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h.  */
21883 int main() { return 0; }
21884 _ACEOF
21885 rm -f conftest$ac_exeext
21886 if { (ac_try="$ac_link"
21887 case "(($ac_try" in
21888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889   *) ac_try_echo=$ac_try;;
21890 esac
21891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21892 $as_echo "$ac_try_echo") >&5
21893   (eval "$ac_link") 2>&5
21894   ac_status=$?
21895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21897   { (case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21902 $as_echo "$ac_try_echo") >&5
21903   (eval "$ac_try") 2>&5
21904   ac_status=$?
21905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; }; then
21907   { $as_echo "$as_me:$LINENO: result: ok" >&5
21908 $as_echo "ok" >&6; }
21909 else
21910   $as_echo "$as_me: program exited with status $ac_status" >&5
21911 $as_echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914 ( exit $ac_status )
21915 { $as_echo "$as_me:$LINENO: result: failed" >&5
21916 $as_echo "failed" >&6; }
21917 { { $as_echo "$as_me:$LINENO: error:
21918 Could not execute a simple test program.  This may be a problem
21919 related to locating shared libraries.  Check the file 'config.log'
21920 for the exact reason." >&5
21921 $as_echo "$as_me: error:
21922 Could not execute a simple test program.  This may be a problem
21923 related to locating shared libraries.  Check the file 'config.log'
21924 for the exact reason." >&2;}
21925    { (exit 1); exit 1; }; }
21926 fi
21927 rm -rf conftest.dSYM
21928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21929 fi
21930
21931
21932
21933 # --------------------
21934 # Run tests below here
21935 # --------------------
21936
21937 # Force use of our snprintf if system's doesn't do arg control
21938 # See comment above at snprintf test for details.
21939 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
21940   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
21941 $as_echo_n "checking whether printf supports argument control... " >&6; }
21942 if test "${pgac_cv_printf_arg_control+set}" = set; then
21943   $as_echo_n "(cached) " >&6
21944 else
21945   if test "$cross_compiling" = yes; then
21946   pgac_cv_printf_arg_control=cross
21947 else
21948   cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 #include <stdio.h>
21955 #include <string.h>
21956
21957 int main()
21958 {
21959   char buf[100];
21960
21961   /* can it swap arguments? */
21962   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
21963   if (strcmp(buf, "4 3") != 0)
21964     return 1;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21975 $as_echo "$ac_try_echo") >&5
21976   (eval "$ac_link") 2>&5
21977   ac_status=$?
21978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21980   { (case "(($ac_try" in
21981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982   *) ac_try_echo=$ac_try;;
21983 esac
21984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21985 $as_echo "$ac_try_echo") >&5
21986   (eval "$ac_try") 2>&5
21987   ac_status=$?
21988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; }; then
21990   pgac_cv_printf_arg_control=yes
21991 else
21992   $as_echo "$as_me: program exited with status $ac_status" >&5
21993 $as_echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ( exit $ac_status )
21997 pgac_cv_printf_arg_control=no
21998 fi
21999 rm -rf conftest.dSYM
22000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22001 fi
22002
22003
22004
22005 fi
22006 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22007 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22008
22009   if test $pgac_cv_printf_arg_control != yes ; then
22010     pgac_need_repl_snprintf=yes
22011   fi
22012 fi
22013
22014
22015
22016 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22017 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22018 if test "${pgac_cv_type_long_int_64+set}" = set; then
22019   $as_echo_n "(cached) " >&6
22020 else
22021   if test "$cross_compiling" = yes; then
22022   # If cross-compiling, check the size reported by the compiler and
22023 # trust that the arithmetic works.
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030
22031 int
22032 main ()
22033 {
22034 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22035 test_array [0] = 0
22036
22037   ;
22038   return 0;
22039 }
22040 _ACEOF
22041 rm -f conftest.$ac_objext
22042 if { (ac_try="$ac_compile"
22043 case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22048 $as_echo "$ac_try_echo") >&5
22049   (eval "$ac_compile") 2>conftest.er1
22050   ac_status=$?
22051   grep -v '^ *+' conftest.er1 >conftest.err
22052   rm -f conftest.er1
22053   cat conftest.err >&5
22054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); } && {
22056          test -z "$ac_c_werror_flag" ||
22057          test ! -s conftest.err
22058        } && test -s conftest.$ac_objext; then
22059   pgac_cv_type_long_int_64=yes
22060 else
22061   $as_echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22063
22064         pgac_cv_type_long_int_64=no
22065 fi
22066
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 else
22069   cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h.  */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h.  */
22075 typedef long int ac_int64;
22076
22077 /*
22078  * These are globals to discourage the compiler from folding all the
22079  * arithmetic tests down to compile-time constants.
22080  */
22081 ac_int64 a = 20000001;
22082 ac_int64 b = 40000005;
22083
22084 int does_int64_work()
22085 {
22086   ac_int64 c,d;
22087
22088   if (sizeof(ac_int64) != 8)
22089     return 0;                   /* definitely not the right size */
22090
22091   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22092   c = a * b;
22093   d = (c + b) / b;
22094   if (d != a+1)
22095     return 0;
22096   return 1;
22097 }
22098 main() {
22099   exit(! does_int64_work());
22100 }
22101 _ACEOF
22102 rm -f conftest$ac_exeext
22103 if { (ac_try="$ac_link"
22104 case "(($ac_try" in
22105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106   *) ac_try_echo=$ac_try;;
22107 esac
22108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22109 $as_echo "$ac_try_echo") >&5
22110   (eval "$ac_link") 2>&5
22111   ac_status=$?
22112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22114   { (case "(($ac_try" in
22115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116   *) ac_try_echo=$ac_try;;
22117 esac
22118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22119 $as_echo "$ac_try_echo") >&5
22120   (eval "$ac_try") 2>&5
22121   ac_status=$?
22122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); }; }; then
22124   pgac_cv_type_long_int_64=yes
22125 else
22126   $as_echo "$as_me: program exited with status $ac_status" >&5
22127 $as_echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130 ( exit $ac_status )
22131 pgac_cv_type_long_int_64=no
22132 fi
22133 rm -rf conftest.dSYM
22134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22135 fi
22136
22137
22138 fi
22139 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22140 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22141
22142 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22143 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22144
22145 cat >>confdefs.h <<\_ACEOF
22146 #define HAVE_LONG_INT_64 1
22147 _ACEOF
22148
22149 fi
22150
22151
22152 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22153   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22154 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22155 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22156   $as_echo_n "(cached) " >&6
22157 else
22158   if test "$cross_compiling" = yes; then
22159   # If cross-compiling, check the size reported by the compiler and
22160 # trust that the arithmetic works.
22161 cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167
22168 int
22169 main ()
22170 {
22171 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22172 test_array [0] = 0
22173
22174   ;
22175   return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182   *) ac_try_echo=$ac_try;;
22183 esac
22184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22185 $as_echo "$ac_try_echo") >&5
22186   (eval "$ac_compile") 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } && {
22193          test -z "$ac_c_werror_flag" ||
22194          test ! -s conftest.err
22195        } && test -s conftest.$ac_objext; then
22196   pgac_cv_type_long_long_int_64=yes
22197 else
22198   $as_echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201         pgac_cv_type_long_long_int_64=no
22202 fi
22203
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 else
22206   cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212 typedef long long int ac_int64;
22213
22214 /*
22215  * These are globals to discourage the compiler from folding all the
22216  * arithmetic tests down to compile-time constants.
22217  */
22218 ac_int64 a = 20000001;
22219 ac_int64 b = 40000005;
22220
22221 int does_int64_work()
22222 {
22223   ac_int64 c,d;
22224
22225   if (sizeof(ac_int64) != 8)
22226     return 0;                   /* definitely not the right size */
22227
22228   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22229   c = a * b;
22230   d = (c + b) / b;
22231   if (d != a+1)
22232     return 0;
22233   return 1;
22234 }
22235 main() {
22236   exit(! does_int64_work());
22237 }
22238 _ACEOF
22239 rm -f conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243   *) ac_try_echo=$ac_try;;
22244 esac
22245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22246 $as_echo "$ac_try_echo") >&5
22247   (eval "$ac_link") 2>&5
22248   ac_status=$?
22249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22251   { (case "(($ac_try" in
22252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253   *) ac_try_echo=$ac_try;;
22254 esac
22255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22256 $as_echo "$ac_try_echo") >&5
22257   (eval "$ac_try") 2>&5
22258   ac_status=$?
22259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); }; }; then
22261   pgac_cv_type_long_long_int_64=yes
22262 else
22263   $as_echo "$as_me: program exited with status $ac_status" >&5
22264 $as_echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267 ( exit $ac_status )
22268 pgac_cv_type_long_long_int_64=no
22269 fi
22270 rm -rf conftest.dSYM
22271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22272 fi
22273
22274
22275 fi
22276 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22277 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22278
22279 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22280 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22281
22282 cat >>confdefs.h <<\_ACEOF
22283 #define HAVE_LONG_LONG_INT_64 1
22284 _ACEOF
22285
22286 fi
22287
22288 fi
22289
22290
22291
22292 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22293   cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299
22300 #define INT64CONST(x)  x##LL
22301 long long int foo = INT64CONST(0x1234567890123456);
22302
22303 int
22304 main ()
22305 {
22306
22307   ;
22308   return 0;
22309 }
22310 _ACEOF
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315   *) ac_try_echo=$ac_try;;
22316 esac
22317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22318 $as_echo "$ac_try_echo") >&5
22319   (eval "$ac_compile") 2>conftest.er1
22320   ac_status=$?
22321   grep -v '^ *+' conftest.er1 >conftest.err
22322   rm -f conftest.er1
22323   cat conftest.err >&5
22324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); } && {
22326          test -z "$ac_c_werror_flag" ||
22327          test ! -s conftest.err
22328        } && test -s conftest.$ac_objext; then
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_LL_CONSTANTS 1
22332 _ACEOF
22333
22334 else
22335   $as_echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338
22339 fi
22340
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 fi
22343
22344
22345 # If we found "long int" is 64 bits, assume snprintf handles it.  If
22346 # we found we need to use "long long int", better check.  We cope with
22347 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
22348 # work, fall back to our own snprintf emulation (which we know uses %lld).
22349
22350 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22351   if test $pgac_need_repl_snprintf = no; then
22352     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22353 $as_echo_n "checking snprintf format for long long int... " >&6; }
22354 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22355   $as_echo_n "(cached) " >&6
22356 else
22357   for pgac_format in '%lld' '%qd' '%I64d'; do
22358 if test "$cross_compiling" = yes; then
22359   pgac_cv_snprintf_long_long_int_format=cross; break
22360 else
22361   cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367 #include <stdio.h>
22368 typedef long long int ac_int64;
22369 #define INT64_FORMAT "$pgac_format"
22370
22371 ac_int64 a = 20000001;
22372 ac_int64 b = 40000005;
22373
22374 int does_int64_snprintf_work()
22375 {
22376   ac_int64 c;
22377   char buf[100];
22378
22379   if (sizeof(ac_int64) != 8)
22380     return 0;                   /* doesn't look like the right size */
22381
22382   c = a * b;
22383   snprintf(buf, 100, INT64_FORMAT, c);
22384   if (strcmp(buf, "800000140000005") != 0)
22385     return 0;                   /* either multiply or snprintf is busted */
22386   return 1;
22387 }
22388 main() {
22389   exit(! does_int64_snprintf_work());
22390 }
22391 _ACEOF
22392 rm -f conftest$ac_exeext
22393 if { (ac_try="$ac_link"
22394 case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22399 $as_echo "$ac_try_echo") >&5
22400   (eval "$ac_link") 2>&5
22401   ac_status=$?
22402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22404   { (case "(($ac_try" in
22405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406   *) ac_try_echo=$ac_try;;
22407 esac
22408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22409 $as_echo "$ac_try_echo") >&5
22410   (eval "$ac_try") 2>&5
22411   ac_status=$?
22412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; }; then
22414   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22415 else
22416   $as_echo "$as_me: program exited with status $ac_status" >&5
22417 $as_echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420 fi
22421 rm -rf conftest.dSYM
22422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22423 fi
22424
22425
22426 done
22427 fi
22428
22429 LONG_LONG_INT_FORMAT=''
22430
22431 case $pgac_cv_snprintf_long_long_int_format in
22432   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22433 $as_echo "cannot test (not on host machine)" >&6; };;
22434   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22435 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22436          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22437   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
22438 $as_echo "none" >&6; };;
22439 esac
22440     if test "$LONG_LONG_INT_FORMAT" = ""; then
22441       # Force usage of our own snprintf, since system snprintf is broken
22442       pgac_need_repl_snprintf=yes
22443       LONG_LONG_INT_FORMAT='%lld'
22444     fi
22445   else
22446     # Here if we previously decided we needed to use our own snprintf
22447     LONG_LONG_INT_FORMAT='%lld'
22448   fi
22449   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22450   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22451   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22452 else
22453   # Here if we are not using 'long long int' at all
22454   INT64_FORMAT='"%ld"'
22455   UINT64_FORMAT='"%lu"'
22456 fi
22457
22458
22459 cat >>confdefs.h <<_ACEOF
22460 #define INT64_FORMAT $INT64_FORMAT
22461 _ACEOF
22462
22463
22464
22465 cat >>confdefs.h <<_ACEOF
22466 #define UINT64_FORMAT $UINT64_FORMAT
22467 _ACEOF
22468
22469
22470 # Now we have checked all the reasons to replace snprintf
22471 if test $pgac_need_repl_snprintf = yes; then
22472
22473 cat >>confdefs.h <<\_ACEOF
22474 #define USE_REPL_SNPRINTF 1
22475 _ACEOF
22476
22477   case " $LIBOBJS " in
22478   *" snprintf.$ac_objext "* ) ;;
22479   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22480  ;;
22481 esac
22482
22483 fi
22484
22485 # Need a #define for the size of Datum (unsigned long)
22486 # The cast to long int works around a bug in the HP C Compiler
22487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22489 # This bug is HP SR number 8606223364.
22490 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
22491 $as_echo_n "checking size of unsigned long... " >&6; }
22492 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22493   $as_echo_n "(cached) " >&6
22494 else
22495   if test "$cross_compiling" = yes; then
22496   # Depending upon the size, compute the lo and hi bounds.
22497 cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503 $ac_includes_default
22504 int
22505 main ()
22506 {
22507 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
22508 test_array [0] = 0
22509
22510   ;
22511   return 0;
22512 }
22513 _ACEOF
22514 rm -f conftest.$ac_objext
22515 if { (ac_try="$ac_compile"
22516 case "(($ac_try" in
22517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518   *) ac_try_echo=$ac_try;;
22519 esac
22520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22521 $as_echo "$ac_try_echo") >&5
22522   (eval "$ac_compile") 2>conftest.er1
22523   ac_status=$?
22524   grep -v '^ *+' conftest.er1 >conftest.err
22525   rm -f conftest.er1
22526   cat conftest.err >&5
22527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); } && {
22529          test -z "$ac_c_werror_flag" ||
22530          test ! -s conftest.err
22531        } && test -s conftest.$ac_objext; then
22532   ac_lo=0 ac_mid=0
22533   while :; do
22534     cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h.  */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h.  */
22540 $ac_includes_default
22541 int
22542 main ()
22543 {
22544 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22545 test_array [0] = 0
22546
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555   *) ac_try_echo=$ac_try;;
22556 esac
22557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559   (eval "$ac_compile") 2>conftest.er1
22560   ac_status=$?
22561   grep -v '^ *+' conftest.er1 >conftest.err
22562   rm -f conftest.er1
22563   cat conftest.err >&5
22564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); } && {
22566          test -z "$ac_c_werror_flag" ||
22567          test ! -s conftest.err
22568        } && test -s conftest.$ac_objext; then
22569   ac_hi=$ac_mid; break
22570 else
22571   $as_echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574         ac_lo=`expr $ac_mid + 1`
22575                         if test $ac_lo -le $ac_mid; then
22576                           ac_lo= ac_hi=
22577                           break
22578                         fi
22579                         ac_mid=`expr 2 '*' $ac_mid + 1`
22580 fi
22581
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583   done
22584 else
22585   $as_echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588         cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h.  */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h.  */
22594 $ac_includes_default
22595 int
22596 main ()
22597 {
22598 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
22599 test_array [0] = 0
22600
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 rm -f conftest.$ac_objext
22606 if { (ac_try="$ac_compile"
22607 case "(($ac_try" in
22608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609   *) ac_try_echo=$ac_try;;
22610 esac
22611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22612 $as_echo "$ac_try_echo") >&5
22613   (eval "$ac_compile") 2>conftest.er1
22614   ac_status=$?
22615   grep -v '^ *+' conftest.er1 >conftest.err
22616   rm -f conftest.er1
22617   cat conftest.err >&5
22618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); } && {
22620          test -z "$ac_c_werror_flag" ||
22621          test ! -s conftest.err
22622        } && test -s conftest.$ac_objext; then
22623   ac_hi=-1 ac_mid=-1
22624   while :; do
22625     cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h.  */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h.  */
22631 $ac_includes_default
22632 int
22633 main ()
22634 {
22635 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
22636 test_array [0] = 0
22637
22638   ;
22639   return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646   *) ac_try_echo=$ac_try;;
22647 esac
22648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22649 $as_echo "$ac_try_echo") >&5
22650   (eval "$ac_compile") 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } && {
22657          test -z "$ac_c_werror_flag" ||
22658          test ! -s conftest.err
22659        } && test -s conftest.$ac_objext; then
22660   ac_lo=$ac_mid; break
22661 else
22662   $as_echo "$as_me: failed program was:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22664
22665         ac_hi=`expr '(' $ac_mid ')' - 1`
22666                         if test $ac_mid -le $ac_hi; then
22667                           ac_lo= ac_hi=
22668                           break
22669                         fi
22670                         ac_mid=`expr 2 '*' $ac_mid`
22671 fi
22672
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674   done
22675 else
22676   $as_echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679         ac_lo= ac_hi=
22680 fi
22681
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 fi
22684
22685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 # Binary search between lo and hi bounds.
22687 while test "x$ac_lo" != "x$ac_hi"; do
22688   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22689   cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695 $ac_includes_default
22696 int
22697 main ()
22698 {
22699 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22700 test_array [0] = 0
22701
22702   ;
22703   return 0;
22704 }
22705 _ACEOF
22706 rm -f conftest.$ac_objext
22707 if { (ac_try="$ac_compile"
22708 case "(($ac_try" in
22709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710   *) ac_try_echo=$ac_try;;
22711 esac
22712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22713 $as_echo "$ac_try_echo") >&5
22714   (eval "$ac_compile") 2>conftest.er1
22715   ac_status=$?
22716   grep -v '^ *+' conftest.er1 >conftest.err
22717   rm -f conftest.er1
22718   cat conftest.err >&5
22719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); } && {
22721          test -z "$ac_c_werror_flag" ||
22722          test ! -s conftest.err
22723        } && test -s conftest.$ac_objext; then
22724   ac_hi=$ac_mid
22725 else
22726   $as_echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729         ac_lo=`expr '(' $ac_mid ')' + 1`
22730 fi
22731
22732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 done
22734 case $ac_lo in
22735 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22736 '') if test "$ac_cv_type_unsigned_long" = yes; then
22737      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22739 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22740 See \`config.log' for more details." >&5
22741 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22742 See \`config.log' for more details." >&2;}
22743    { (exit 77); exit 77; }; }; }
22744    else
22745      ac_cv_sizeof_unsigned_long=0
22746    fi ;;
22747 esac
22748 else
22749   cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 $ac_includes_default
22756 static long int longval () { return (long int) (sizeof (unsigned long)); }
22757 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
22758 #include <stdio.h>
22759 #include <stdlib.h>
22760 int
22761 main ()
22762 {
22763
22764   FILE *f = fopen ("conftest.val", "w");
22765   if (! f)
22766     return 1;
22767   if (((long int) (sizeof (unsigned long))) < 0)
22768     {
22769       long int i = longval ();
22770       if (i != ((long int) (sizeof (unsigned long))))
22771         return 1;
22772       fprintf (f, "%ld", i);
22773     }
22774   else
22775     {
22776       unsigned long int i = ulongval ();
22777       if (i != ((long int) (sizeof (unsigned long))))
22778         return 1;
22779       fprintf (f, "%lu", i);
22780     }
22781   /* Do not output a trailing newline, as this causes \r\n confusion
22782      on some platforms.  */
22783   return ferror (f) || fclose (f) != 0;
22784
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22796 $as_echo "$ac_try_echo") >&5
22797   (eval "$ac_link") 2>&5
22798   ac_status=$?
22799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22801   { (case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22806 $as_echo "$ac_try_echo") >&5
22807   (eval "$ac_try") 2>&5
22808   ac_status=$?
22809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); }; }; then
22811   ac_cv_sizeof_unsigned_long=`cat conftest.val`
22812 else
22813   $as_echo "$as_me: program exited with status $ac_status" >&5
22814 $as_echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22816
22817 ( exit $ac_status )
22818 if test "$ac_cv_type_unsigned_long" = yes; then
22819      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22821 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22822 See \`config.log' for more details." >&5
22823 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22824 See \`config.log' for more details." >&2;}
22825    { (exit 77); exit 77; }; }; }
22826    else
22827      ac_cv_sizeof_unsigned_long=0
22828    fi
22829 fi
22830 rm -rf conftest.dSYM
22831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22832 fi
22833 rm -f conftest.val
22834 fi
22835 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22836 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22837
22838
22839
22840 cat >>confdefs.h <<_ACEOF
22841 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22842 _ACEOF
22843
22844
22845
22846 # And check size of void *, size_t (enables tweaks for > 32bit address space)
22847 # The cast to long int works around a bug in the HP C Compiler
22848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22850 # This bug is HP SR number 8606223364.
22851 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22852 $as_echo_n "checking size of void *... " >&6; }
22853 if test "${ac_cv_sizeof_void_p+set}" = set; then
22854   $as_echo_n "(cached) " >&6
22855 else
22856   if test "$cross_compiling" = yes; then
22857   # Depending upon the size, compute the lo and hi bounds.
22858 cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864 $ac_includes_default
22865 int
22866 main ()
22867 {
22868 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22869 test_array [0] = 0
22870
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879   *) ac_try_echo=$ac_try;;
22880 esac
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883   (eval "$ac_compile") 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && {
22890          test -z "$ac_c_werror_flag" ||
22891          test ! -s conftest.err
22892        } && test -s conftest.$ac_objext; then
22893   ac_lo=0 ac_mid=0
22894   while :; do
22895     cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 $ac_includes_default
22902 int
22903 main ()
22904 {
22905 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22906 test_array [0] = 0
22907
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22919 $as_echo "$ac_try_echo") >&5
22920   (eval "$ac_compile") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_c_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest.$ac_objext; then
22930   ac_hi=$ac_mid; break
22931 else
22932   $as_echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         ac_lo=`expr $ac_mid + 1`
22936                         if test $ac_lo -le $ac_mid; then
22937                           ac_lo= ac_hi=
22938                           break
22939                         fi
22940                         ac_mid=`expr 2 '*' $ac_mid + 1`
22941 fi
22942
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944   done
22945 else
22946   $as_echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949         cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h.  */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h.  */
22955 $ac_includes_default
22956 int
22957 main ()
22958 {
22959 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
22960 test_array [0] = 0
22961
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22973 $as_echo "$ac_try_echo") >&5
22974   (eval "$ac_compile") 2>conftest.er1
22975   ac_status=$?
22976   grep -v '^ *+' conftest.er1 >conftest.err
22977   rm -f conftest.er1
22978   cat conftest.err >&5
22979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } && {
22981          test -z "$ac_c_werror_flag" ||
22982          test ! -s conftest.err
22983        } && test -s conftest.$ac_objext; then
22984   ac_hi=-1 ac_mid=-1
22985   while :; do
22986     cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 $ac_includes_default
22993 int
22994 main ()
22995 {
22996 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
22997 test_array [0] = 0
22998
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (ac_try="$ac_compile"
23005 case "(($ac_try" in
23006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007   *) ac_try_echo=$ac_try;;
23008 esac
23009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010 $as_echo "$ac_try_echo") >&5
23011   (eval "$ac_compile") 2>conftest.er1
23012   ac_status=$?
23013   grep -v '^ *+' conftest.er1 >conftest.err
23014   rm -f conftest.er1
23015   cat conftest.err >&5
23016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); } && {
23018          test -z "$ac_c_werror_flag" ||
23019          test ! -s conftest.err
23020        } && test -s conftest.$ac_objext; then
23021   ac_lo=$ac_mid; break
23022 else
23023   $as_echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026         ac_hi=`expr '(' $ac_mid ')' - 1`
23027                         if test $ac_mid -le $ac_hi; then
23028                           ac_lo= ac_hi=
23029                           break
23030                         fi
23031                         ac_mid=`expr 2 '*' $ac_mid`
23032 fi
23033
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035   done
23036 else
23037   $as_echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040         ac_lo= ac_hi=
23041 fi
23042
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044 fi
23045
23046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23047 # Binary search between lo and hi bounds.
23048 while test "x$ac_lo" != "x$ac_hi"; do
23049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23050   cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h.  */
23052 _ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h.  */
23056 $ac_includes_default
23057 int
23058 main ()
23059 {
23060 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23061 test_array [0] = 0
23062
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071   *) ac_try_echo=$ac_try;;
23072 esac
23073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23074 $as_echo "$ac_try_echo") >&5
23075   (eval "$ac_compile") 2>conftest.er1
23076   ac_status=$?
23077   grep -v '^ *+' conftest.er1 >conftest.err
23078   rm -f conftest.er1
23079   cat conftest.err >&5
23080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } && {
23082          test -z "$ac_c_werror_flag" ||
23083          test ! -s conftest.err
23084        } && test -s conftest.$ac_objext; then
23085   ac_hi=$ac_mid
23086 else
23087   $as_echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090         ac_lo=`expr '(' $ac_mid ')' + 1`
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094 done
23095 case $ac_lo in
23096 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23097 '') if test "$ac_cv_type_void_p" = yes; then
23098      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23101 See \`config.log' for more details." >&5
23102 $as_echo "$as_me: error: cannot compute sizeof (void *)
23103 See \`config.log' for more details." >&2;}
23104    { (exit 77); exit 77; }; }; }
23105    else
23106      ac_cv_sizeof_void_p=0
23107    fi ;;
23108 esac
23109 else
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 $ac_includes_default
23117 static long int longval () { return (long int) (sizeof (void *)); }
23118 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23119 #include <stdio.h>
23120 #include <stdlib.h>
23121 int
23122 main ()
23123 {
23124
23125   FILE *f = fopen ("conftest.val", "w");
23126   if (! f)
23127     return 1;
23128   if (((long int) (sizeof (void *))) < 0)
23129     {
23130       long int i = longval ();
23131       if (i != ((long int) (sizeof (void *))))
23132         return 1;
23133       fprintf (f, "%ld", i);
23134     }
23135   else
23136     {
23137       unsigned long int i = ulongval ();
23138       if (i != ((long int) (sizeof (void *))))
23139         return 1;
23140       fprintf (f, "%lu", i);
23141     }
23142   /* Do not output a trailing newline, as this causes \r\n confusion
23143      on some platforms.  */
23144   return ferror (f) || fclose (f) != 0;
23145
23146   ;
23147   return 0;
23148 }
23149 _ACEOF
23150 rm -f conftest$ac_exeext
23151 if { (ac_try="$ac_link"
23152 case "(($ac_try" in
23153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154   *) ac_try_echo=$ac_try;;
23155 esac
23156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23157 $as_echo "$ac_try_echo") >&5
23158   (eval "$ac_link") 2>&5
23159   ac_status=$?
23160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23162   { (case "(($ac_try" in
23163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164   *) ac_try_echo=$ac_try;;
23165 esac
23166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23167 $as_echo "$ac_try_echo") >&5
23168   (eval "$ac_try") 2>&5
23169   ac_status=$?
23170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); }; }; then
23172   ac_cv_sizeof_void_p=`cat conftest.val`
23173 else
23174   $as_echo "$as_me: program exited with status $ac_status" >&5
23175 $as_echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 ( exit $ac_status )
23179 if test "$ac_cv_type_void_p" = yes; then
23180      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23182 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23183 See \`config.log' for more details." >&5
23184 $as_echo "$as_me: error: cannot compute sizeof (void *)
23185 See \`config.log' for more details." >&2;}
23186    { (exit 77); exit 77; }; }; }
23187    else
23188      ac_cv_sizeof_void_p=0
23189    fi
23190 fi
23191 rm -rf conftest.dSYM
23192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23193 fi
23194 rm -f conftest.val
23195 fi
23196 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23197 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23198
23199
23200
23201 cat >>confdefs.h <<_ACEOF
23202 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23203 _ACEOF
23204
23205
23206 # The cast to long int works around a bug in the HP C Compiler
23207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23209 # This bug is HP SR number 8606223364.
23210 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23211 $as_echo_n "checking size of size_t... " >&6; }
23212 if test "${ac_cv_sizeof_size_t+set}" = set; then
23213   $as_echo_n "(cached) " >&6
23214 else
23215   if test "$cross_compiling" = yes; then
23216   # Depending upon the size, compute the lo and hi bounds.
23217 cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223 $ac_includes_default
23224 int
23225 main ()
23226 {
23227 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23228 test_array [0] = 0
23229
23230   ;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242   (eval "$ac_compile") 2>conftest.er1
23243   ac_status=$?
23244   grep -v '^ *+' conftest.er1 >conftest.err
23245   rm -f conftest.er1
23246   cat conftest.err >&5
23247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); } && {
23249          test -z "$ac_c_werror_flag" ||
23250          test ! -s conftest.err
23251        } && test -s conftest.$ac_objext; then
23252   ac_lo=0 ac_mid=0
23253   while :; do
23254     cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260 $ac_includes_default
23261 int
23262 main ()
23263 {
23264 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23265 test_array [0] = 0
23266
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23278 $as_echo "$ac_try_echo") >&5
23279   (eval "$ac_compile") 2>conftest.er1
23280   ac_status=$?
23281   grep -v '^ *+' conftest.er1 >conftest.err
23282   rm -f conftest.er1
23283   cat conftest.err >&5
23284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); } && {
23286          test -z "$ac_c_werror_flag" ||
23287          test ! -s conftest.err
23288        } && test -s conftest.$ac_objext; then
23289   ac_hi=$ac_mid; break
23290 else
23291   $as_echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23293
23294         ac_lo=`expr $ac_mid + 1`
23295                         if test $ac_lo -le $ac_mid; then
23296                           ac_lo= ac_hi=
23297                           break
23298                         fi
23299                         ac_mid=`expr 2 '*' $ac_mid + 1`
23300 fi
23301
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303   done
23304 else
23305   $as_echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308         cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 $ac_includes_default
23315 int
23316 main ()
23317 {
23318 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23319 test_array [0] = 0
23320
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (ac_try="$ac_compile"
23327 case "(($ac_try" in
23328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329   *) ac_try_echo=$ac_try;;
23330 esac
23331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23332 $as_echo "$ac_try_echo") >&5
23333   (eval "$ac_compile") 2>conftest.er1
23334   ac_status=$?
23335   grep -v '^ *+' conftest.er1 >conftest.err
23336   rm -f conftest.er1
23337   cat conftest.err >&5
23338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); } && {
23340          test -z "$ac_c_werror_flag" ||
23341          test ! -s conftest.err
23342        } && test -s conftest.$ac_objext; then
23343   ac_hi=-1 ac_mid=-1
23344   while :; do
23345     cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351 $ac_includes_default
23352 int
23353 main ()
23354 {
23355 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23356 test_array [0] = 0
23357
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23369 $as_echo "$ac_try_echo") >&5
23370   (eval "$ac_compile") 2>conftest.er1
23371   ac_status=$?
23372   grep -v '^ *+' conftest.er1 >conftest.err
23373   rm -f conftest.er1
23374   cat conftest.err >&5
23375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); } && {
23377          test -z "$ac_c_werror_flag" ||
23378          test ! -s conftest.err
23379        } && test -s conftest.$ac_objext; then
23380   ac_lo=$ac_mid; break
23381 else
23382   $as_echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385         ac_hi=`expr '(' $ac_mid ')' - 1`
23386                         if test $ac_mid -le $ac_hi; then
23387                           ac_lo= ac_hi=
23388                           break
23389                         fi
23390                         ac_mid=`expr 2 '*' $ac_mid`
23391 fi
23392
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394   done
23395 else
23396   $as_echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399         ac_lo= ac_hi=
23400 fi
23401
23402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23403 fi
23404
23405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23406 # Binary search between lo and hi bounds.
23407 while test "x$ac_lo" != "x$ac_hi"; do
23408   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23409   cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415 $ac_includes_default
23416 int
23417 main ()
23418 {
23419 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23420 test_array [0] = 0
23421
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext
23427 if { (ac_try="$ac_compile"
23428 case "(($ac_try" in
23429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430   *) ac_try_echo=$ac_try;;
23431 esac
23432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23433 $as_echo "$ac_try_echo") >&5
23434   (eval "$ac_compile") 2>conftest.er1
23435   ac_status=$?
23436   grep -v '^ *+' conftest.er1 >conftest.err
23437   rm -f conftest.er1
23438   cat conftest.err >&5
23439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); } && {
23441          test -z "$ac_c_werror_flag" ||
23442          test ! -s conftest.err
23443        } && test -s conftest.$ac_objext; then
23444   ac_hi=$ac_mid
23445 else
23446   $as_echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449         ac_lo=`expr '(' $ac_mid ')' + 1`
23450 fi
23451
23452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453 done
23454 case $ac_lo in
23455 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23456 '') if test "$ac_cv_type_size_t" = yes; then
23457      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23459 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23460 See \`config.log' for more details." >&5
23461 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23462 See \`config.log' for more details." >&2;}
23463    { (exit 77); exit 77; }; }; }
23464    else
23465      ac_cv_sizeof_size_t=0
23466    fi ;;
23467 esac
23468 else
23469   cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h.  */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h.  */
23475 $ac_includes_default
23476 static long int longval () { return (long int) (sizeof (size_t)); }
23477 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23478 #include <stdio.h>
23479 #include <stdlib.h>
23480 int
23481 main ()
23482 {
23483
23484   FILE *f = fopen ("conftest.val", "w");
23485   if (! f)
23486     return 1;
23487   if (((long int) (sizeof (size_t))) < 0)
23488     {
23489       long int i = longval ();
23490       if (i != ((long int) (sizeof (size_t))))
23491         return 1;
23492       fprintf (f, "%ld", i);
23493     }
23494   else
23495     {
23496       unsigned long int i = ulongval ();
23497       if (i != ((long int) (sizeof (size_t))))
23498         return 1;
23499       fprintf (f, "%lu", i);
23500     }
23501   /* Do not output a trailing newline, as this causes \r\n confusion
23502      on some platforms.  */
23503   return ferror (f) || fclose (f) != 0;
23504
23505   ;
23506   return 0;
23507 }
23508 _ACEOF
23509 rm -f conftest$ac_exeext
23510 if { (ac_try="$ac_link"
23511 case "(($ac_try" in
23512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513   *) ac_try_echo=$ac_try;;
23514 esac
23515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517   (eval "$ac_link") 2>&5
23518   ac_status=$?
23519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23521   { (case "(($ac_try" in
23522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523   *) ac_try_echo=$ac_try;;
23524 esac
23525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23526 $as_echo "$ac_try_echo") >&5
23527   (eval "$ac_try") 2>&5
23528   ac_status=$?
23529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); }; }; then
23531   ac_cv_sizeof_size_t=`cat conftest.val`
23532 else
23533   $as_echo "$as_me: program exited with status $ac_status" >&5
23534 $as_echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537 ( exit $ac_status )
23538 if test "$ac_cv_type_size_t" = yes; then
23539      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23541 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23542 See \`config.log' for more details." >&5
23543 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23544 See \`config.log' for more details." >&2;}
23545    { (exit 77); exit 77; }; }; }
23546    else
23547      ac_cv_sizeof_size_t=0
23548    fi
23549 fi
23550 rm -rf conftest.dSYM
23551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23552 fi
23553 rm -f conftest.val
23554 fi
23555 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23556 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23557
23558
23559
23560 cat >>confdefs.h <<_ACEOF
23561 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23562 _ACEOF
23563
23564
23565
23566 # Decide whether float4 is passed by value: user-selectable, enabled by default
23567 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23568 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23569
23570
23571 # Check whether --enable-float4-byval was given.
23572 if test "${enable_float4_byval+set}" = set; then
23573   enableval=$enable_float4_byval;
23574   case $enableval in
23575     yes)
23576
23577 cat >>confdefs.h <<\_ACEOF
23578 #define USE_FLOAT4_BYVAL 1
23579 _ACEOF
23580
23581                float4passbyval=true
23582       ;;
23583     no)
23584       float4passbyval=false
23585       ;;
23586     *)
23587       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23588 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23589    { (exit 1); exit 1; }; }
23590       ;;
23591   esac
23592
23593 else
23594   enable_float4_byval=yes
23595
23596 cat >>confdefs.h <<\_ACEOF
23597 #define USE_FLOAT4_BYVAL 1
23598 _ACEOF
23599
23600                float4passbyval=true
23601 fi
23602
23603
23604 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23605 $as_echo "$enable_float4_byval" >&6; }
23606
23607 cat >>confdefs.h <<_ACEOF
23608 #define FLOAT4PASSBYVAL $float4passbyval
23609 _ACEOF
23610
23611
23612 # Decide whether float8 is passed by value.
23613 # Note: this setting also controls int8 and related types such as timestamp.
23614 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23615 # If not, trying to select it is an error.
23616 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23617 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23618 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
23619
23620
23621 # Check whether --enable-float8-byval was given.
23622 if test "${enable_float8_byval+set}" = set; then
23623   enableval=$enable_float8_byval;
23624   case $enableval in
23625     yes)
23626       :
23627       ;;
23628     no)
23629       :
23630       ;;
23631     *)
23632       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23633 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23634    { (exit 1); exit 1; }; }
23635       ;;
23636   esac
23637
23638 else
23639   enable_float8_byval=yes
23640
23641 fi
23642
23643
23644 else
23645
23646
23647 # Check whether --enable-float8-byval was given.
23648 if test "${enable_float8_byval+set}" = set; then
23649   enableval=$enable_float8_byval;
23650   case $enableval in
23651     yes)
23652       :
23653       ;;
23654     no)
23655       :
23656       ;;
23657     *)
23658       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23659 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23660    { (exit 1); exit 1; }; }
23661       ;;
23662   esac
23663
23664 else
23665   enable_float8_byval=no
23666
23667 fi
23668
23669
23670   if test "$enable_float8_byval" = yes ; then
23671     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
23672 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
23673    { (exit 1); exit 1; }; }
23674   fi
23675 fi
23676 if test "$enable_float8_byval" = yes ; then
23677
23678 cat >>confdefs.h <<\_ACEOF
23679 #define USE_FLOAT8_BYVAL 1
23680 _ACEOF
23681
23682   float8passbyval=true
23683 else
23684   float8passbyval=false
23685 fi
23686 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
23687 $as_echo "$enable_float8_byval" >&6; }
23688
23689 cat >>confdefs.h <<_ACEOF
23690 #define FLOAT8PASSBYVAL $float8passbyval
23691 _ACEOF
23692
23693
23694 # Determine memory alignment requirements for the basic C data types.
23695
23696 # The cast to long int works around a bug in the HP C Compiler,
23697 # see AC_CHECK_SIZEOF for more information.
23698 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
23699 $as_echo_n "checking alignment of short... " >&6; }
23700 if test "${ac_cv_alignof_short+set}" = set; then
23701   $as_echo_n "(cached) " >&6
23702 else
23703   if test "$cross_compiling" = yes; then
23704   # Depending upon the size, compute the lo and hi bounds.
23705 cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711 $ac_includes_default
23712 #ifndef offsetof
23713 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23714 #endif
23715 typedef struct { char x; short y; } ac__type_alignof_;
23716 int
23717 main ()
23718 {
23719 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23720 test_array [0] = 0
23721
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23733 $as_echo "$ac_try_echo") >&5
23734   (eval "$ac_compile") 2>conftest.er1
23735   ac_status=$?
23736   grep -v '^ *+' conftest.er1 >conftest.err
23737   rm -f conftest.er1
23738   cat conftest.err >&5
23739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); } && {
23741          test -z "$ac_c_werror_flag" ||
23742          test ! -s conftest.err
23743        } && test -s conftest.$ac_objext; then
23744   ac_lo=0 ac_mid=0
23745   while :; do
23746     cat >conftest.$ac_ext <<_ACEOF
23747 /* confdefs.h.  */
23748 _ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h.  */
23752 $ac_includes_default
23753 #ifndef offsetof
23754 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23755 #endif
23756 typedef struct { char x; short y; } ac__type_alignof_;
23757 int
23758 main ()
23759 {
23760 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23761 test_array [0] = 0
23762
23763   ;
23764   return 0;
23765 }
23766 _ACEOF
23767 rm -f conftest.$ac_objext
23768 if { (ac_try="$ac_compile"
23769 case "(($ac_try" in
23770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771   *) ac_try_echo=$ac_try;;
23772 esac
23773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23774 $as_echo "$ac_try_echo") >&5
23775   (eval "$ac_compile") 2>conftest.er1
23776   ac_status=$?
23777   grep -v '^ *+' conftest.er1 >conftest.err
23778   rm -f conftest.er1
23779   cat conftest.err >&5
23780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); } && {
23782          test -z "$ac_c_werror_flag" ||
23783          test ! -s conftest.err
23784        } && test -s conftest.$ac_objext; then
23785   ac_hi=$ac_mid; break
23786 else
23787   $as_echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23789
23790         ac_lo=`expr $ac_mid + 1`
23791                         if test $ac_lo -le $ac_mid; then
23792                           ac_lo= ac_hi=
23793                           break
23794                         fi
23795                         ac_mid=`expr 2 '*' $ac_mid + 1`
23796 fi
23797
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799   done
23800 else
23801   $as_echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
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 $ac_includes_default
23811 #ifndef offsetof
23812 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23813 #endif
23814 typedef struct { char x; short y; } ac__type_alignof_;
23815 int
23816 main ()
23817 {
23818 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23819 test_array [0] = 0
23820
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (ac_try="$ac_compile"
23827 case "(($ac_try" in
23828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829   *) ac_try_echo=$ac_try;;
23830 esac
23831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23832 $as_echo "$ac_try_echo") >&5
23833   (eval "$ac_compile") 2>conftest.er1
23834   ac_status=$?
23835   grep -v '^ *+' conftest.er1 >conftest.err
23836   rm -f conftest.er1
23837   cat conftest.err >&5
23838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); } && {
23840          test -z "$ac_c_werror_flag" ||
23841          test ! -s conftest.err
23842        } && test -s conftest.$ac_objext; then
23843   ac_hi=-1 ac_mid=-1
23844   while :; do
23845     cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h.  */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h.  */
23851 $ac_includes_default
23852 #ifndef offsetof
23853 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23854 #endif
23855 typedef struct { char x; short y; } ac__type_alignof_;
23856 int
23857 main ()
23858 {
23859 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23860 test_array [0] = 0
23861
23862   ;
23863   return 0;
23864 }
23865 _ACEOF
23866 rm -f conftest.$ac_objext
23867 if { (ac_try="$ac_compile"
23868 case "(($ac_try" in
23869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870   *) ac_try_echo=$ac_try;;
23871 esac
23872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23873 $as_echo "$ac_try_echo") >&5
23874   (eval "$ac_compile") 2>conftest.er1
23875   ac_status=$?
23876   grep -v '^ *+' conftest.er1 >conftest.err
23877   rm -f conftest.er1
23878   cat conftest.err >&5
23879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); } && {
23881          test -z "$ac_c_werror_flag" ||
23882          test ! -s conftest.err
23883        } && test -s conftest.$ac_objext; then
23884   ac_lo=$ac_mid; break
23885 else
23886   $as_echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23888
23889         ac_hi=`expr '(' $ac_mid ')' - 1`
23890                         if test $ac_mid -le $ac_hi; then
23891                           ac_lo= ac_hi=
23892                           break
23893                         fi
23894                         ac_mid=`expr 2 '*' $ac_mid`
23895 fi
23896
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898   done
23899 else
23900   $as_echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23902
23903         ac_lo= ac_hi=
23904 fi
23905
23906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23907 fi
23908
23909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 # Binary search between lo and hi bounds.
23911 while test "x$ac_lo" != "x$ac_hi"; do
23912   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23913   cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919 $ac_includes_default
23920 #ifndef offsetof
23921 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23922 #endif
23923 typedef struct { char x; short y; } ac__type_alignof_;
23924 int
23925 main ()
23926 {
23927 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23928 test_array [0] = 0
23929
23930   ;
23931   return 0;
23932 }
23933 _ACEOF
23934 rm -f conftest.$ac_objext
23935 if { (ac_try="$ac_compile"
23936 case "(($ac_try" in
23937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938   *) ac_try_echo=$ac_try;;
23939 esac
23940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23941 $as_echo "$ac_try_echo") >&5
23942   (eval "$ac_compile") 2>conftest.er1
23943   ac_status=$?
23944   grep -v '^ *+' conftest.er1 >conftest.err
23945   rm -f conftest.er1
23946   cat conftest.err >&5
23947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); } && {
23949          test -z "$ac_c_werror_flag" ||
23950          test ! -s conftest.err
23951        } && test -s conftest.$ac_objext; then
23952   ac_hi=$ac_mid
23953 else
23954   $as_echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957         ac_lo=`expr '(' $ac_mid ')' + 1`
23958 fi
23959
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23961 done
23962 case $ac_lo in
23963 ?*) ac_cv_alignof_short=$ac_lo;;
23964 '') if test "$ac_cv_type_short" = yes; then
23965      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23967 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
23968 See \`config.log' for more details." >&5
23969 $as_echo "$as_me: error: cannot compute alignment of short
23970 See \`config.log' for more details." >&2;}
23971    { (exit 77); exit 77; }; }; }
23972    else
23973      ac_cv_alignof_short=0
23974    fi ;;
23975 esac
23976 else
23977   cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h.  */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h.  */
23983 $ac_includes_default
23984 #ifndef offsetof
23985 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23986 #endif
23987 typedef struct { char x; short y; } ac__type_alignof_;
23988 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23989 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23990 #include <stdio.h>
23991 #include <stdlib.h>
23992 int
23993 main ()
23994 {
23995
23996   FILE *f = fopen ("conftest.val", "w");
23997   if (! f)
23998     return 1;
23999   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24000     {
24001       long int i = longval ();
24002       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24003         return 1;
24004       fprintf (f, "%ld", i);
24005     }
24006   else
24007     {
24008       unsigned long int i = ulongval ();
24009       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24010         return 1;
24011       fprintf (f, "%lu", i);
24012     }
24013   /* Do not output a trailing newline, as this causes \r\n confusion
24014      on some platforms.  */
24015   return ferror (f) || fclose (f) != 0;
24016
24017   ;
24018   return 0;
24019 }
24020 _ACEOF
24021 rm -f conftest$ac_exeext
24022 if { (ac_try="$ac_link"
24023 case "(($ac_try" in
24024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24025   *) ac_try_echo=$ac_try;;
24026 esac
24027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24028 $as_echo "$ac_try_echo") >&5
24029   (eval "$ac_link") 2>&5
24030   ac_status=$?
24031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24033   { (case "(($ac_try" in
24034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035   *) ac_try_echo=$ac_try;;
24036 esac
24037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24038 $as_echo "$ac_try_echo") >&5
24039   (eval "$ac_try") 2>&5
24040   ac_status=$?
24041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042   (exit $ac_status); }; }; then
24043   ac_cv_alignof_short=`cat conftest.val`
24044 else
24045   $as_echo "$as_me: program exited with status $ac_status" >&5
24046 $as_echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24048
24049 ( exit $ac_status )
24050 if test "$ac_cv_type_short" = yes; then
24051      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24053 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24054 See \`config.log' for more details." >&5
24055 $as_echo "$as_me: error: cannot compute alignment of short
24056 See \`config.log' for more details." >&2;}
24057    { (exit 77); exit 77; }; }; }
24058    else
24059      ac_cv_alignof_short=0
24060    fi
24061 fi
24062 rm -rf conftest.dSYM
24063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24064 fi
24065 rm -f conftest.val
24066 fi
24067 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24068 $as_echo "$ac_cv_alignof_short" >&6; }
24069
24070
24071
24072 cat >>confdefs.h <<_ACEOF
24073 #define ALIGNOF_SHORT $ac_cv_alignof_short
24074 _ACEOF
24075
24076
24077 # The cast to long int works around a bug in the HP C Compiler,
24078 # see AC_CHECK_SIZEOF for more information.
24079 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24080 $as_echo_n "checking alignment of int... " >&6; }
24081 if test "${ac_cv_alignof_int+set}" = set; then
24082   $as_echo_n "(cached) " >&6
24083 else
24084   if test "$cross_compiling" = yes; then
24085   # Depending upon the size, compute the lo and hi bounds.
24086 cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092 $ac_includes_default
24093 #ifndef offsetof
24094 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24095 #endif
24096 typedef struct { char x; int y; } ac__type_alignof_;
24097 int
24098 main ()
24099 {
24100 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24101 test_array [0] = 0
24102
24103   ;
24104   return 0;
24105 }
24106 _ACEOF
24107 rm -f conftest.$ac_objext
24108 if { (ac_try="$ac_compile"
24109 case "(($ac_try" in
24110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111   *) ac_try_echo=$ac_try;;
24112 esac
24113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24114 $as_echo "$ac_try_echo") >&5
24115   (eval "$ac_compile") 2>conftest.er1
24116   ac_status=$?
24117   grep -v '^ *+' conftest.er1 >conftest.err
24118   rm -f conftest.er1
24119   cat conftest.err >&5
24120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); } && {
24122          test -z "$ac_c_werror_flag" ||
24123          test ! -s conftest.err
24124        } && test -s conftest.$ac_objext; then
24125   ac_lo=0 ac_mid=0
24126   while :; do
24127     cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 $ac_includes_default
24134 #ifndef offsetof
24135 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24136 #endif
24137 typedef struct { char x; int y; } ac__type_alignof_;
24138 int
24139 main ()
24140 {
24141 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24142 test_array [0] = 0
24143
24144   ;
24145   return 0;
24146 }
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24155 $as_echo "$ac_try_echo") >&5
24156   (eval "$ac_compile") 2>conftest.er1
24157   ac_status=$?
24158   grep -v '^ *+' conftest.er1 >conftest.err
24159   rm -f conftest.er1
24160   cat conftest.err >&5
24161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } && {
24163          test -z "$ac_c_werror_flag" ||
24164          test ! -s conftest.err
24165        } && test -s conftest.$ac_objext; then
24166   ac_hi=$ac_mid; break
24167 else
24168   $as_echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171         ac_lo=`expr $ac_mid + 1`
24172                         if test $ac_lo -le $ac_mid; then
24173                           ac_lo= ac_hi=
24174                           break
24175                         fi
24176                         ac_mid=`expr 2 '*' $ac_mid + 1`
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180   done
24181 else
24182   $as_echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185         cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191 $ac_includes_default
24192 #ifndef offsetof
24193 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24194 #endif
24195 typedef struct { char x; int y; } ac__type_alignof_;
24196 int
24197 main ()
24198 {
24199 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24200 test_array [0] = 0
24201
24202   ;
24203   return 0;
24204 }
24205 _ACEOF
24206 rm -f conftest.$ac_objext
24207 if { (ac_try="$ac_compile"
24208 case "(($ac_try" in
24209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210   *) ac_try_echo=$ac_try;;
24211 esac
24212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24213 $as_echo "$ac_try_echo") >&5
24214   (eval "$ac_compile") 2>conftest.er1
24215   ac_status=$?
24216   grep -v '^ *+' conftest.er1 >conftest.err
24217   rm -f conftest.er1
24218   cat conftest.err >&5
24219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); } && {
24221          test -z "$ac_c_werror_flag" ||
24222          test ! -s conftest.err
24223        } && test -s conftest.$ac_objext; then
24224   ac_hi=-1 ac_mid=-1
24225   while :; do
24226     cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232 $ac_includes_default
24233 #ifndef offsetof
24234 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24235 #endif
24236 typedef struct { char x; int y; } ac__type_alignof_;
24237 int
24238 main ()
24239 {
24240 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24241 test_array [0] = 0
24242
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest.$ac_objext
24248 if { (ac_try="$ac_compile"
24249 case "(($ac_try" in
24250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251   *) ac_try_echo=$ac_try;;
24252 esac
24253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24254 $as_echo "$ac_try_echo") >&5
24255   (eval "$ac_compile") 2>conftest.er1
24256   ac_status=$?
24257   grep -v '^ *+' conftest.er1 >conftest.err
24258   rm -f conftest.er1
24259   cat conftest.err >&5
24260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); } && {
24262          test -z "$ac_c_werror_flag" ||
24263          test ! -s conftest.err
24264        } && test -s conftest.$ac_objext; then
24265   ac_lo=$ac_mid; break
24266 else
24267   $as_echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24269
24270         ac_hi=`expr '(' $ac_mid ')' - 1`
24271                         if test $ac_mid -le $ac_hi; then
24272                           ac_lo= ac_hi=
24273                           break
24274                         fi
24275                         ac_mid=`expr 2 '*' $ac_mid`
24276 fi
24277
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24279   done
24280 else
24281   $as_echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284         ac_lo= ac_hi=
24285 fi
24286
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 # Binary search between lo and hi bounds.
24292 while test "x$ac_lo" != "x$ac_hi"; do
24293   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24294   cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h.  */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h.  */
24300 $ac_includes_default
24301 #ifndef offsetof
24302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24303 #endif
24304 typedef struct { char x; int y; } ac__type_alignof_;
24305 int
24306 main ()
24307 {
24308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24309 test_array [0] = 0
24310
24311   ;
24312   return 0;
24313 }
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (ac_try="$ac_compile"
24317 case "(($ac_try" in
24318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319   *) ac_try_echo=$ac_try;;
24320 esac
24321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24322 $as_echo "$ac_try_echo") >&5
24323   (eval "$ac_compile") 2>conftest.er1
24324   ac_status=$?
24325   grep -v '^ *+' conftest.er1 >conftest.err
24326   rm -f conftest.er1
24327   cat conftest.err >&5
24328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329   (exit $ac_status); } && {
24330          test -z "$ac_c_werror_flag" ||
24331          test ! -s conftest.err
24332        } && test -s conftest.$ac_objext; then
24333   ac_hi=$ac_mid
24334 else
24335   $as_echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24337
24338         ac_lo=`expr '(' $ac_mid ')' + 1`
24339 fi
24340
24341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24342 done
24343 case $ac_lo in
24344 ?*) ac_cv_alignof_int=$ac_lo;;
24345 '') if test "$ac_cv_type_int" = yes; then
24346      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24348 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24349 See \`config.log' for more details." >&5
24350 $as_echo "$as_me: error: cannot compute alignment of int
24351 See \`config.log' for more details." >&2;}
24352    { (exit 77); exit 77; }; }; }
24353    else
24354      ac_cv_alignof_int=0
24355    fi ;;
24356 esac
24357 else
24358   cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364 $ac_includes_default
24365 #ifndef offsetof
24366 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24367 #endif
24368 typedef struct { char x; int y; } ac__type_alignof_;
24369 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24370 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24371 #include <stdio.h>
24372 #include <stdlib.h>
24373 int
24374 main ()
24375 {
24376
24377   FILE *f = fopen ("conftest.val", "w");
24378   if (! f)
24379     return 1;
24380   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24381     {
24382       long int i = longval ();
24383       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24384         return 1;
24385       fprintf (f, "%ld", i);
24386     }
24387   else
24388     {
24389       unsigned long int i = ulongval ();
24390       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24391         return 1;
24392       fprintf (f, "%lu", i);
24393     }
24394   /* Do not output a trailing newline, as this causes \r\n confusion
24395      on some platforms.  */
24396   return ferror (f) || fclose (f) != 0;
24397
24398   ;
24399   return 0;
24400 }
24401 _ACEOF
24402 rm -f conftest$ac_exeext
24403 if { (ac_try="$ac_link"
24404 case "(($ac_try" in
24405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406   *) ac_try_echo=$ac_try;;
24407 esac
24408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24409 $as_echo "$ac_try_echo") >&5
24410   (eval "$ac_link") 2>&5
24411   ac_status=$?
24412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24414   { (case "(($ac_try" in
24415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416   *) ac_try_echo=$ac_try;;
24417 esac
24418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24419 $as_echo "$ac_try_echo") >&5
24420   (eval "$ac_try") 2>&5
24421   ac_status=$?
24422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; }; then
24424   ac_cv_alignof_int=`cat conftest.val`
24425 else
24426   $as_echo "$as_me: program exited with status $ac_status" >&5
24427 $as_echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ( exit $ac_status )
24431 if test "$ac_cv_type_int" = yes; then
24432      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24434 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24435 See \`config.log' for more details." >&5
24436 $as_echo "$as_me: error: cannot compute alignment of int
24437 See \`config.log' for more details." >&2;}
24438    { (exit 77); exit 77; }; }; }
24439    else
24440      ac_cv_alignof_int=0
24441    fi
24442 fi
24443 rm -rf conftest.dSYM
24444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24445 fi
24446 rm -f conftest.val
24447 fi
24448 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24449 $as_echo "$ac_cv_alignof_int" >&6; }
24450
24451
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define ALIGNOF_INT $ac_cv_alignof_int
24455 _ACEOF
24456
24457
24458 # The cast to long int works around a bug in the HP C Compiler,
24459 # see AC_CHECK_SIZEOF for more information.
24460 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24461 $as_echo_n "checking alignment of long... " >&6; }
24462 if test "${ac_cv_alignof_long+set}" = set; then
24463   $as_echo_n "(cached) " >&6
24464 else
24465   if test "$cross_compiling" = yes; then
24466   # Depending upon the size, compute the lo and hi bounds.
24467 cat >conftest.$ac_ext <<_ACEOF
24468 /* confdefs.h.  */
24469 _ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h.  */
24473 $ac_includes_default
24474 #ifndef offsetof
24475 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24476 #endif
24477 typedef struct { char x; long y; } ac__type_alignof_;
24478 int
24479 main ()
24480 {
24481 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24482 test_array [0] = 0
24483
24484   ;
24485   return 0;
24486 }
24487 _ACEOF
24488 rm -f conftest.$ac_objext
24489 if { (ac_try="$ac_compile"
24490 case "(($ac_try" in
24491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492   *) ac_try_echo=$ac_try;;
24493 esac
24494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24495 $as_echo "$ac_try_echo") >&5
24496   (eval "$ac_compile") 2>conftest.er1
24497   ac_status=$?
24498   grep -v '^ *+' conftest.er1 >conftest.err
24499   rm -f conftest.er1
24500   cat conftest.err >&5
24501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502   (exit $ac_status); } && {
24503          test -z "$ac_c_werror_flag" ||
24504          test ! -s conftest.err
24505        } && test -s conftest.$ac_objext; then
24506   ac_lo=0 ac_mid=0
24507   while :; do
24508     cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 $ac_includes_default
24515 #ifndef offsetof
24516 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24517 #endif
24518 typedef struct { char x; long y; } ac__type_alignof_;
24519 int
24520 main ()
24521 {
24522 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24523 test_array [0] = 0
24524
24525   ;
24526   return 0;
24527 }
24528 _ACEOF
24529 rm -f conftest.$ac_objext
24530 if { (ac_try="$ac_compile"
24531 case "(($ac_try" in
24532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533   *) ac_try_echo=$ac_try;;
24534 esac
24535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24536 $as_echo "$ac_try_echo") >&5
24537   (eval "$ac_compile") 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && {
24544          test -z "$ac_c_werror_flag" ||
24545          test ! -s conftest.err
24546        } && test -s conftest.$ac_objext; then
24547   ac_hi=$ac_mid; break
24548 else
24549   $as_echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552         ac_lo=`expr $ac_mid + 1`
24553                         if test $ac_lo -le $ac_mid; then
24554                           ac_lo= ac_hi=
24555                           break
24556                         fi
24557                         ac_mid=`expr 2 '*' $ac_mid + 1`
24558 fi
24559
24560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561   done
24562 else
24563   $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566         cat >conftest.$ac_ext <<_ACEOF
24567 /* confdefs.h.  */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h.  */
24572 $ac_includes_default
24573 #ifndef offsetof
24574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24575 #endif
24576 typedef struct { char x; long y; } ac__type_alignof_;
24577 int
24578 main ()
24579 {
24580 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24581 test_array [0] = 0
24582
24583   ;
24584   return 0;
24585 }
24586 _ACEOF
24587 rm -f conftest.$ac_objext
24588 if { (ac_try="$ac_compile"
24589 case "(($ac_try" in
24590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591   *) ac_try_echo=$ac_try;;
24592 esac
24593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24594 $as_echo "$ac_try_echo") >&5
24595   (eval "$ac_compile") 2>conftest.er1
24596   ac_status=$?
24597   grep -v '^ *+' conftest.er1 >conftest.err
24598   rm -f conftest.er1
24599   cat conftest.err >&5
24600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); } && {
24602          test -z "$ac_c_werror_flag" ||
24603          test ! -s conftest.err
24604        } && test -s conftest.$ac_objext; then
24605   ac_hi=-1 ac_mid=-1
24606   while :; do
24607     cat >conftest.$ac_ext <<_ACEOF
24608 /* confdefs.h.  */
24609 _ACEOF
24610 cat confdefs.h >>conftest.$ac_ext
24611 cat >>conftest.$ac_ext <<_ACEOF
24612 /* end confdefs.h.  */
24613 $ac_includes_default
24614 #ifndef offsetof
24615 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24616 #endif
24617 typedef struct { char x; long y; } ac__type_alignof_;
24618 int
24619 main ()
24620 {
24621 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24622 test_array [0] = 0
24623
24624   ;
24625   return 0;
24626 }
24627 _ACEOF
24628 rm -f conftest.$ac_objext
24629 if { (ac_try="$ac_compile"
24630 case "(($ac_try" in
24631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632   *) ac_try_echo=$ac_try;;
24633 esac
24634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24635 $as_echo "$ac_try_echo") >&5
24636   (eval "$ac_compile") 2>conftest.er1
24637   ac_status=$?
24638   grep -v '^ *+' conftest.er1 >conftest.err
24639   rm -f conftest.er1
24640   cat conftest.err >&5
24641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); } && {
24643          test -z "$ac_c_werror_flag" ||
24644          test ! -s conftest.err
24645        } && test -s conftest.$ac_objext; then
24646   ac_lo=$ac_mid; break
24647 else
24648   $as_echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24650
24651         ac_hi=`expr '(' $ac_mid ')' - 1`
24652                         if test $ac_mid -le $ac_hi; then
24653                           ac_lo= ac_hi=
24654                           break
24655                         fi
24656                         ac_mid=`expr 2 '*' $ac_mid`
24657 fi
24658
24659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24660   done
24661 else
24662   $as_echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665         ac_lo= ac_hi=
24666 fi
24667
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 # Binary search between lo and hi bounds.
24673 while test "x$ac_lo" != "x$ac_hi"; do
24674   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24675   cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 $ac_includes_default
24682 #ifndef offsetof
24683 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24684 #endif
24685 typedef struct { char x; long y; } ac__type_alignof_;
24686 int
24687 main ()
24688 {
24689 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24690 test_array [0] = 0
24691
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704   (eval "$ac_compile") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest.$ac_objext; then
24714   ac_hi=$ac_mid
24715 else
24716   $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_lo=`expr '(' $ac_mid ')' + 1`
24720 fi
24721
24722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24723 done
24724 case $ac_lo in
24725 ?*) ac_cv_alignof_long=$ac_lo;;
24726 '') if test "$ac_cv_type_long" = yes; then
24727      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24729 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24730 See \`config.log' for more details." >&5
24731 $as_echo "$as_me: error: cannot compute alignment of long
24732 See \`config.log' for more details." >&2;}
24733    { (exit 77); exit 77; }; }; }
24734    else
24735      ac_cv_alignof_long=0
24736    fi ;;
24737 esac
24738 else
24739   cat >conftest.$ac_ext <<_ACEOF
24740 /* confdefs.h.  */
24741 _ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h.  */
24745 $ac_includes_default
24746 #ifndef offsetof
24747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24748 #endif
24749 typedef struct { char x; long y; } ac__type_alignof_;
24750 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24751 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24752 #include <stdio.h>
24753 #include <stdlib.h>
24754 int
24755 main ()
24756 {
24757
24758   FILE *f = fopen ("conftest.val", "w");
24759   if (! f)
24760     return 1;
24761   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24762     {
24763       long int i = longval ();
24764       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24765         return 1;
24766       fprintf (f, "%ld", i);
24767     }
24768   else
24769     {
24770       unsigned long int i = ulongval ();
24771       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24772         return 1;
24773       fprintf (f, "%lu", i);
24774     }
24775   /* Do not output a trailing newline, as this causes \r\n confusion
24776      on some platforms.  */
24777   return ferror (f) || fclose (f) != 0;
24778
24779   ;
24780   return 0;
24781 }
24782 _ACEOF
24783 rm -f conftest$ac_exeext
24784 if { (ac_try="$ac_link"
24785 case "(($ac_try" in
24786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787   *) ac_try_echo=$ac_try;;
24788 esac
24789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24790 $as_echo "$ac_try_echo") >&5
24791   (eval "$ac_link") 2>&5
24792   ac_status=$?
24793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24795   { (case "(($ac_try" in
24796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797   *) ac_try_echo=$ac_try;;
24798 esac
24799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24800 $as_echo "$ac_try_echo") >&5
24801   (eval "$ac_try") 2>&5
24802   ac_status=$?
24803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); }; }; then
24805   ac_cv_alignof_long=`cat conftest.val`
24806 else
24807   $as_echo "$as_me: program exited with status $ac_status" >&5
24808 $as_echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24810
24811 ( exit $ac_status )
24812 if test "$ac_cv_type_long" = yes; then
24813      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24815 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24816 See \`config.log' for more details." >&5
24817 $as_echo "$as_me: error: cannot compute alignment of long
24818 See \`config.log' for more details." >&2;}
24819    { (exit 77); exit 77; }; }; }
24820    else
24821      ac_cv_alignof_long=0
24822    fi
24823 fi
24824 rm -rf conftest.dSYM
24825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24826 fi
24827 rm -f conftest.val
24828 fi
24829 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
24830 $as_echo "$ac_cv_alignof_long" >&6; }
24831
24832
24833
24834 cat >>confdefs.h <<_ACEOF
24835 #define ALIGNOF_LONG $ac_cv_alignof_long
24836 _ACEOF
24837
24838
24839 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24840   # The cast to long int works around a bug in the HP C Compiler,
24841 # see AC_CHECK_SIZEOF for more information.
24842 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
24843 $as_echo_n "checking alignment of long long int... " >&6; }
24844 if test "${ac_cv_alignof_long_long_int+set}" = set; then
24845   $as_echo_n "(cached) " >&6
24846 else
24847   if test "$cross_compiling" = yes; then
24848   # Depending upon the size, compute the lo and hi bounds.
24849 cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h.  */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h.  */
24855 $ac_includes_default
24856 #ifndef offsetof
24857 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24858 #endif
24859 typedef struct { char x; long long int y; } ac__type_alignof_;
24860 int
24861 main ()
24862 {
24863 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24864 test_array [0] = 0
24865
24866   ;
24867   return 0;
24868 }
24869 _ACEOF
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874   *) ac_try_echo=$ac_try;;
24875 esac
24876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24877 $as_echo "$ac_try_echo") >&5
24878   (eval "$ac_compile") 2>conftest.er1
24879   ac_status=$?
24880   grep -v '^ *+' conftest.er1 >conftest.err
24881   rm -f conftest.er1
24882   cat conftest.err >&5
24883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); } && {
24885          test -z "$ac_c_werror_flag" ||
24886          test ! -s conftest.err
24887        } && test -s conftest.$ac_objext; then
24888   ac_lo=0 ac_mid=0
24889   while :; do
24890     cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897 #ifndef offsetof
24898 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24899 #endif
24900 typedef struct { char x; long long int y; } ac__type_alignof_;
24901 int
24902 main ()
24903 {
24904 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24905 test_array [0] = 0
24906
24907   ;
24908   return 0;
24909 }
24910 _ACEOF
24911 rm -f conftest.$ac_objext
24912 if { (ac_try="$ac_compile"
24913 case "(($ac_try" in
24914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915   *) ac_try_echo=$ac_try;;
24916 esac
24917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24918 $as_echo "$ac_try_echo") >&5
24919   (eval "$ac_compile") 2>conftest.er1
24920   ac_status=$?
24921   grep -v '^ *+' conftest.er1 >conftest.err
24922   rm -f conftest.er1
24923   cat conftest.err >&5
24924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); } && {
24926          test -z "$ac_c_werror_flag" ||
24927          test ! -s conftest.err
24928        } && test -s conftest.$ac_objext; then
24929   ac_hi=$ac_mid; break
24930 else
24931   $as_echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24933
24934         ac_lo=`expr $ac_mid + 1`
24935                         if test $ac_lo -le $ac_mid; then
24936                           ac_lo= ac_hi=
24937                           break
24938                         fi
24939                         ac_mid=`expr 2 '*' $ac_mid + 1`
24940 fi
24941
24942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943   done
24944 else
24945   $as_echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948         cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954 $ac_includes_default
24955 #ifndef offsetof
24956 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24957 #endif
24958 typedef struct { char x; long long int y; } ac__type_alignof_;
24959 int
24960 main ()
24961 {
24962 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24963 test_array [0] = 0
24964
24965   ;
24966   return 0;
24967 }
24968 _ACEOF
24969 rm -f conftest.$ac_objext
24970 if { (ac_try="$ac_compile"
24971 case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24976 $as_echo "$ac_try_echo") >&5
24977   (eval "$ac_compile") 2>conftest.er1
24978   ac_status=$?
24979   grep -v '^ *+' conftest.er1 >conftest.err
24980   rm -f conftest.er1
24981   cat conftest.err >&5
24982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); } && {
24984          test -z "$ac_c_werror_flag" ||
24985          test ! -s conftest.err
24986        } && test -s conftest.$ac_objext; then
24987   ac_hi=-1 ac_mid=-1
24988   while :; do
24989     cat >conftest.$ac_ext <<_ACEOF
24990 /* confdefs.h.  */
24991 _ACEOF
24992 cat confdefs.h >>conftest.$ac_ext
24993 cat >>conftest.$ac_ext <<_ACEOF
24994 /* end confdefs.h.  */
24995 $ac_includes_default
24996 #ifndef offsetof
24997 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24998 #endif
24999 typedef struct { char x; long long int y; } ac__type_alignof_;
25000 int
25001 main ()
25002 {
25003 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25004 test_array [0] = 0
25005
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext
25011 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25019   ac_status=$?
25020   grep -v '^ *+' conftest.er1 >conftest.err
25021   rm -f conftest.er1
25022   cat conftest.err >&5
25023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } && {
25025          test -z "$ac_c_werror_flag" ||
25026          test ! -s conftest.err
25027        } && test -s conftest.$ac_objext; then
25028   ac_lo=$ac_mid; break
25029 else
25030   $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033         ac_hi=`expr '(' $ac_mid ')' - 1`
25034                         if test $ac_mid -le $ac_hi; then
25035                           ac_lo= ac_hi=
25036                           break
25037                         fi
25038                         ac_mid=`expr 2 '*' $ac_mid`
25039 fi
25040
25041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042   done
25043 else
25044   $as_echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25046
25047         ac_lo= ac_hi=
25048 fi
25049
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 fi
25052
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 # Binary search between lo and hi bounds.
25055 while test "x$ac_lo" != "x$ac_hi"; do
25056   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25057   cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h.  */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h.  */
25063 $ac_includes_default
25064 #ifndef offsetof
25065 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25066 #endif
25067 typedef struct { char x; long long int y; } ac__type_alignof_;
25068 int
25069 main ()
25070 {
25071 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25072 test_array [0] = 0
25073
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext
25079 if { (ac_try="$ac_compile"
25080 case "(($ac_try" in
25081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082   *) ac_try_echo=$ac_try;;
25083 esac
25084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25085 $as_echo "$ac_try_echo") >&5
25086   (eval "$ac_compile") 2>conftest.er1
25087   ac_status=$?
25088   grep -v '^ *+' conftest.er1 >conftest.err
25089   rm -f conftest.er1
25090   cat conftest.err >&5
25091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092   (exit $ac_status); } && {
25093          test -z "$ac_c_werror_flag" ||
25094          test ! -s conftest.err
25095        } && test -s conftest.$ac_objext; then
25096   ac_hi=$ac_mid
25097 else
25098   $as_echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101         ac_lo=`expr '(' $ac_mid ')' + 1`
25102 fi
25103
25104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105 done
25106 case $ac_lo in
25107 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25108 '') if test "$ac_cv_type_long_long_int" = yes; then
25109      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25111 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25112 See \`config.log' for more details." >&5
25113 $as_echo "$as_me: error: cannot compute alignment of long long int
25114 See \`config.log' for more details." >&2;}
25115    { (exit 77); exit 77; }; }; }
25116    else
25117      ac_cv_alignof_long_long_int=0
25118    fi ;;
25119 esac
25120 else
25121   cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h.  */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h.  */
25127 $ac_includes_default
25128 #ifndef offsetof
25129 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25130 #endif
25131 typedef struct { char x; long long int y; } ac__type_alignof_;
25132 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25133 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25134 #include <stdio.h>
25135 #include <stdlib.h>
25136 int
25137 main ()
25138 {
25139
25140   FILE *f = fopen ("conftest.val", "w");
25141   if (! f)
25142     return 1;
25143   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25144     {
25145       long int i = longval ();
25146       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25147         return 1;
25148       fprintf (f, "%ld", i);
25149     }
25150   else
25151     {
25152       unsigned long int i = ulongval ();
25153       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25154         return 1;
25155       fprintf (f, "%lu", i);
25156     }
25157   /* Do not output a trailing newline, as this causes \r\n confusion
25158      on some platforms.  */
25159   return ferror (f) || fclose (f) != 0;
25160
25161   ;
25162   return 0;
25163 }
25164 _ACEOF
25165 rm -f conftest$ac_exeext
25166 if { (ac_try="$ac_link"
25167 case "(($ac_try" in
25168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25169   *) ac_try_echo=$ac_try;;
25170 esac
25171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25172 $as_echo "$ac_try_echo") >&5
25173   (eval "$ac_link") 2>&5
25174   ac_status=$?
25175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25177   { (case "(($ac_try" in
25178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179   *) ac_try_echo=$ac_try;;
25180 esac
25181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25182 $as_echo "$ac_try_echo") >&5
25183   (eval "$ac_try") 2>&5
25184   ac_status=$?
25185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186   (exit $ac_status); }; }; then
25187   ac_cv_alignof_long_long_int=`cat conftest.val`
25188 else
25189   $as_echo "$as_me: program exited with status $ac_status" >&5
25190 $as_echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25192
25193 ( exit $ac_status )
25194 if test "$ac_cv_type_long_long_int" = yes; then
25195      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25197 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25198 See \`config.log' for more details." >&5
25199 $as_echo "$as_me: error: cannot compute alignment of long long int
25200 See \`config.log' for more details." >&2;}
25201    { (exit 77); exit 77; }; }; }
25202    else
25203      ac_cv_alignof_long_long_int=0
25204    fi
25205 fi
25206 rm -rf conftest.dSYM
25207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25208 fi
25209 rm -f conftest.val
25210 fi
25211 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25212 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25213
25214
25215
25216 cat >>confdefs.h <<_ACEOF
25217 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25218 _ACEOF
25219
25220
25221 fi
25222 # The cast to long int works around a bug in the HP C Compiler,
25223 # see AC_CHECK_SIZEOF for more information.
25224 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25225 $as_echo_n "checking alignment of double... " >&6; }
25226 if test "${ac_cv_alignof_double+set}" = set; then
25227   $as_echo_n "(cached) " >&6
25228 else
25229   if test "$cross_compiling" = yes; then
25230   # Depending upon the size, compute the lo and hi bounds.
25231 cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 $ac_includes_default
25238 #ifndef offsetof
25239 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25240 #endif
25241 typedef struct { char x; double y; } ac__type_alignof_;
25242 int
25243 main ()
25244 {
25245 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25246 test_array [0] = 0
25247
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 rm -f conftest.$ac_objext
25253 if { (ac_try="$ac_compile"
25254 case "(($ac_try" in
25255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256   *) ac_try_echo=$ac_try;;
25257 esac
25258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25259 $as_echo "$ac_try_echo") >&5
25260   (eval "$ac_compile") 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } && {
25267          test -z "$ac_c_werror_flag" ||
25268          test ! -s conftest.err
25269        } && test -s conftest.$ac_objext; then
25270   ac_lo=0 ac_mid=0
25271   while :; do
25272     cat >conftest.$ac_ext <<_ACEOF
25273 /* confdefs.h.  */
25274 _ACEOF
25275 cat confdefs.h >>conftest.$ac_ext
25276 cat >>conftest.$ac_ext <<_ACEOF
25277 /* end confdefs.h.  */
25278 $ac_includes_default
25279 #ifndef offsetof
25280 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25281 #endif
25282 typedef struct { char x; double y; } ac__type_alignof_;
25283 int
25284 main ()
25285 {
25286 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25287 test_array [0] = 0
25288
25289   ;
25290   return 0;
25291 }
25292 _ACEOF
25293 rm -f conftest.$ac_objext
25294 if { (ac_try="$ac_compile"
25295 case "(($ac_try" in
25296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297   *) ac_try_echo=$ac_try;;
25298 esac
25299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25300 $as_echo "$ac_try_echo") >&5
25301   (eval "$ac_compile") 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } && {
25308          test -z "$ac_c_werror_flag" ||
25309          test ! -s conftest.err
25310        } && test -s conftest.$ac_objext; then
25311   ac_hi=$ac_mid; break
25312 else
25313   $as_echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316         ac_lo=`expr $ac_mid + 1`
25317                         if test $ac_lo -le $ac_mid; then
25318                           ac_lo= ac_hi=
25319                           break
25320                         fi
25321                         ac_mid=`expr 2 '*' $ac_mid + 1`
25322 fi
25323
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325   done
25326 else
25327   $as_echo "$as_me: failed program was:" >&5
25328 sed 's/^/| /' conftest.$ac_ext >&5
25329
25330         cat >conftest.$ac_ext <<_ACEOF
25331 /* confdefs.h.  */
25332 _ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h.  */
25336 $ac_includes_default
25337 #ifndef offsetof
25338 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25339 #endif
25340 typedef struct { char x; double y; } ac__type_alignof_;
25341 int
25342 main ()
25343 {
25344 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25345 test_array [0] = 0
25346
25347   ;
25348   return 0;
25349 }
25350 _ACEOF
25351 rm -f conftest.$ac_objext
25352 if { (ac_try="$ac_compile"
25353 case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25358 $as_echo "$ac_try_echo") >&5
25359   (eval "$ac_compile") 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } && {
25366          test -z "$ac_c_werror_flag" ||
25367          test ! -s conftest.err
25368        } && test -s conftest.$ac_objext; then
25369   ac_hi=-1 ac_mid=-1
25370   while :; do
25371     cat >conftest.$ac_ext <<_ACEOF
25372 /* confdefs.h.  */
25373 _ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h.  */
25377 $ac_includes_default
25378 #ifndef offsetof
25379 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25380 #endif
25381 typedef struct { char x; double y; } ac__type_alignof_;
25382 int
25383 main ()
25384 {
25385 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25386 test_array [0] = 0
25387
25388   ;
25389   return 0;
25390 }
25391 _ACEOF
25392 rm -f conftest.$ac_objext
25393 if { (ac_try="$ac_compile"
25394 case "(($ac_try" in
25395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396   *) ac_try_echo=$ac_try;;
25397 esac
25398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400   (eval "$ac_compile") 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } && {
25407          test -z "$ac_c_werror_flag" ||
25408          test ! -s conftest.err
25409        } && test -s conftest.$ac_objext; then
25410   ac_lo=$ac_mid; break
25411 else
25412   $as_echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25414
25415         ac_hi=`expr '(' $ac_mid ')' - 1`
25416                         if test $ac_mid -le $ac_hi; then
25417                           ac_lo= ac_hi=
25418                           break
25419                         fi
25420                         ac_mid=`expr 2 '*' $ac_mid`
25421 fi
25422
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424   done
25425 else
25426   $as_echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25428
25429         ac_lo= ac_hi=
25430 fi
25431
25432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25433 fi
25434
25435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436 # Binary search between lo and hi bounds.
25437 while test "x$ac_lo" != "x$ac_hi"; do
25438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25439   cat >conftest.$ac_ext <<_ACEOF
25440 /* confdefs.h.  */
25441 _ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h.  */
25445 $ac_includes_default
25446 #ifndef offsetof
25447 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25448 #endif
25449 typedef struct { char x; double y; } ac__type_alignof_;
25450 int
25451 main ()
25452 {
25453 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25454 test_array [0] = 0
25455
25456   ;
25457   return 0;
25458 }
25459 _ACEOF
25460 rm -f conftest.$ac_objext
25461 if { (ac_try="$ac_compile"
25462 case "(($ac_try" in
25463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464   *) ac_try_echo=$ac_try;;
25465 esac
25466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25467 $as_echo "$ac_try_echo") >&5
25468   (eval "$ac_compile") 2>conftest.er1
25469   ac_status=$?
25470   grep -v '^ *+' conftest.er1 >conftest.err
25471   rm -f conftest.er1
25472   cat conftest.err >&5
25473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474   (exit $ac_status); } && {
25475          test -z "$ac_c_werror_flag" ||
25476          test ! -s conftest.err
25477        } && test -s conftest.$ac_objext; then
25478   ac_hi=$ac_mid
25479 else
25480   $as_echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483         ac_lo=`expr '(' $ac_mid ')' + 1`
25484 fi
25485
25486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 done
25488 case $ac_lo in
25489 ?*) ac_cv_alignof_double=$ac_lo;;
25490 '') if test "$ac_cv_type_double" = yes; then
25491      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25493 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25494 See \`config.log' for more details." >&5
25495 $as_echo "$as_me: error: cannot compute alignment of double
25496 See \`config.log' for more details." >&2;}
25497    { (exit 77); exit 77; }; }; }
25498    else
25499      ac_cv_alignof_double=0
25500    fi ;;
25501 esac
25502 else
25503   cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509 $ac_includes_default
25510 #ifndef offsetof
25511 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25512 #endif
25513 typedef struct { char x; double y; } ac__type_alignof_;
25514 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25515 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25516 #include <stdio.h>
25517 #include <stdlib.h>
25518 int
25519 main ()
25520 {
25521
25522   FILE *f = fopen ("conftest.val", "w");
25523   if (! f)
25524     return 1;
25525   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25526     {
25527       long int i = longval ();
25528       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25529         return 1;
25530       fprintf (f, "%ld", i);
25531     }
25532   else
25533     {
25534       unsigned long int i = ulongval ();
25535       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25536         return 1;
25537       fprintf (f, "%lu", i);
25538     }
25539   /* Do not output a trailing newline, as this causes \r\n confusion
25540      on some platforms.  */
25541   return ferror (f) || fclose (f) != 0;
25542
25543   ;
25544   return 0;
25545 }
25546 _ACEOF
25547 rm -f conftest$ac_exeext
25548 if { (ac_try="$ac_link"
25549 case "(($ac_try" in
25550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551   *) ac_try_echo=$ac_try;;
25552 esac
25553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25554 $as_echo "$ac_try_echo") >&5
25555   (eval "$ac_link") 2>&5
25556   ac_status=$?
25557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25559   { (case "(($ac_try" in
25560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561   *) ac_try_echo=$ac_try;;
25562 esac
25563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25564 $as_echo "$ac_try_echo") >&5
25565   (eval "$ac_try") 2>&5
25566   ac_status=$?
25567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); }; }; then
25569   ac_cv_alignof_double=`cat conftest.val`
25570 else
25571   $as_echo "$as_me: program exited with status $ac_status" >&5
25572 $as_echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25574
25575 ( exit $ac_status )
25576 if test "$ac_cv_type_double" = yes; then
25577      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25579 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25580 See \`config.log' for more details." >&5
25581 $as_echo "$as_me: error: cannot compute alignment of double
25582 See \`config.log' for more details." >&2;}
25583    { (exit 77); exit 77; }; }; }
25584    else
25585      ac_cv_alignof_double=0
25586    fi
25587 fi
25588 rm -rf conftest.dSYM
25589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25590 fi
25591 rm -f conftest.val
25592 fi
25593 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25594 $as_echo "$ac_cv_alignof_double" >&6; }
25595
25596
25597
25598 cat >>confdefs.h <<_ACEOF
25599 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25600 _ACEOF
25601
25602
25603
25604 # Compute maximum alignment of any basic type.
25605 # We assume long's alignment is at least as strong as char, short, or int;
25606 # but we must check long long (if it exists) and double.
25607
25608 MAX_ALIGNOF=$ac_cv_alignof_long
25609 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25610   MAX_ALIGNOF=$ac_cv_alignof_double
25611 fi
25612 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25613   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25614 fi
25615
25616 cat >>confdefs.h <<_ACEOF
25617 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25618 _ACEOF
25619
25620
25621
25622 # Some platforms predefine the types int8, int16, etc.  Only check
25623 # a (hopefully) representative subset.
25624 { $as_echo "$as_me:$LINENO: checking for int8" >&5
25625 $as_echo_n "checking for int8... " >&6; }
25626 if test "${ac_cv_type_int8+set}" = set; then
25627   $as_echo_n "(cached) " >&6
25628 else
25629   ac_cv_type_int8=no
25630 cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636 #include <stdio.h>
25637 #ifdef HAVE_SUPPORTDEFS_H
25638 #include <SupportDefs.h>
25639 #endif
25640
25641 int
25642 main ()
25643 {
25644 if (sizeof (int8))
25645        return 0;
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest.$ac_objext
25651 if { (ac_try="$ac_compile"
25652 case "(($ac_try" in
25653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25654   *) ac_try_echo=$ac_try;;
25655 esac
25656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25657 $as_echo "$ac_try_echo") >&5
25658   (eval "$ac_compile") 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } && {
25665          test -z "$ac_c_werror_flag" ||
25666          test ! -s conftest.err
25667        } && test -s conftest.$ac_objext; then
25668   cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 #include <stdio.h>
25675 #ifdef HAVE_SUPPORTDEFS_H
25676 #include <SupportDefs.h>
25677 #endif
25678
25679 int
25680 main ()
25681 {
25682 if (sizeof ((int8)))
25683           return 0;
25684   ;
25685   return 0;
25686 }
25687 _ACEOF
25688 rm -f conftest.$ac_objext
25689 if { (ac_try="$ac_compile"
25690 case "(($ac_try" in
25691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692   *) ac_try_echo=$ac_try;;
25693 esac
25694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25695 $as_echo "$ac_try_echo") >&5
25696   (eval "$ac_compile") 2>conftest.er1
25697   ac_status=$?
25698   grep -v '^ *+' conftest.er1 >conftest.err
25699   rm -f conftest.er1
25700   cat conftest.err >&5
25701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); } && {
25703          test -z "$ac_c_werror_flag" ||
25704          test ! -s conftest.err
25705        } && test -s conftest.$ac_objext; then
25706   :
25707 else
25708   $as_echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25710
25711         ac_cv_type_int8=yes
25712 fi
25713
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 else
25716   $as_echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719
25720 fi
25721
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 fi
25724 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
25725 $as_echo "$ac_cv_type_int8" >&6; }
25726 if test "x$ac_cv_type_int8" = x""yes; then
25727
25728 cat >>confdefs.h <<_ACEOF
25729 #define HAVE_INT8 1
25730 _ACEOF
25731
25732
25733 fi
25734 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
25735 $as_echo_n "checking for uint8... " >&6; }
25736 if test "${ac_cv_type_uint8+set}" = set; then
25737   $as_echo_n "(cached) " >&6
25738 else
25739   ac_cv_type_uint8=no
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746 #include <stdio.h>
25747 #ifdef HAVE_SUPPORTDEFS_H
25748 #include <SupportDefs.h>
25749 #endif
25750
25751 int
25752 main ()
25753 {
25754 if (sizeof (uint8))
25755        return 0;
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (ac_try="$ac_compile"
25762 case "(($ac_try" in
25763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764   *) ac_try_echo=$ac_try;;
25765 esac
25766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25767 $as_echo "$ac_try_echo") >&5
25768   (eval "$ac_compile") 2>conftest.er1
25769   ac_status=$?
25770   grep -v '^ *+' conftest.er1 >conftest.err
25771   rm -f conftest.er1
25772   cat conftest.err >&5
25773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); } && {
25775          test -z "$ac_c_werror_flag" ||
25776          test ! -s conftest.err
25777        } && test -s conftest.$ac_objext; then
25778   cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h.  */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h.  */
25784 #include <stdio.h>
25785 #ifdef HAVE_SUPPORTDEFS_H
25786 #include <SupportDefs.h>
25787 #endif
25788
25789 int
25790 main ()
25791 {
25792 if (sizeof ((uint8)))
25793           return 0;
25794   ;
25795   return 0;
25796 }
25797 _ACEOF
25798 rm -f conftest.$ac_objext
25799 if { (ac_try="$ac_compile"
25800 case "(($ac_try" in
25801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802   *) ac_try_echo=$ac_try;;
25803 esac
25804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25805 $as_echo "$ac_try_echo") >&5
25806   (eval "$ac_compile") 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } && {
25813          test -z "$ac_c_werror_flag" ||
25814          test ! -s conftest.err
25815        } && test -s conftest.$ac_objext; then
25816   :
25817 else
25818   $as_echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821         ac_cv_type_uint8=yes
25822 fi
25823
25824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25825 else
25826   $as_echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25828
25829
25830 fi
25831
25832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25833 fi
25834 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
25835 $as_echo "$ac_cv_type_uint8" >&6; }
25836 if test "x$ac_cv_type_uint8" = x""yes; then
25837
25838 cat >>confdefs.h <<_ACEOF
25839 #define HAVE_UINT8 1
25840 _ACEOF
25841
25842
25843 fi
25844 { $as_echo "$as_me:$LINENO: checking for int64" >&5
25845 $as_echo_n "checking for int64... " >&6; }
25846 if test "${ac_cv_type_int64+set}" = set; then
25847   $as_echo_n "(cached) " >&6
25848 else
25849   ac_cv_type_int64=no
25850 cat >conftest.$ac_ext <<_ACEOF
25851 /* confdefs.h.  */
25852 _ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h.  */
25856 #include <stdio.h>
25857 #ifdef HAVE_SUPPORTDEFS_H
25858 #include <SupportDefs.h>
25859 #endif
25860
25861 int
25862 main ()
25863 {
25864 if (sizeof (int64))
25865        return 0;
25866   ;
25867   return 0;
25868 }
25869 _ACEOF
25870 rm -f conftest.$ac_objext
25871 if { (ac_try="$ac_compile"
25872 case "(($ac_try" in
25873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874   *) ac_try_echo=$ac_try;;
25875 esac
25876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25877 $as_echo "$ac_try_echo") >&5
25878   (eval "$ac_compile") 2>conftest.er1
25879   ac_status=$?
25880   grep -v '^ *+' conftest.er1 >conftest.err
25881   rm -f conftest.er1
25882   cat conftest.err >&5
25883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); } && {
25885          test -z "$ac_c_werror_flag" ||
25886          test ! -s conftest.err
25887        } && test -s conftest.$ac_objext; then
25888   cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h.  */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h.  */
25894 #include <stdio.h>
25895 #ifdef HAVE_SUPPORTDEFS_H
25896 #include <SupportDefs.h>
25897 #endif
25898
25899 int
25900 main ()
25901 {
25902 if (sizeof ((int64)))
25903           return 0;
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext
25909 if { (ac_try="$ac_compile"
25910 case "(($ac_try" in
25911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912   *) ac_try_echo=$ac_try;;
25913 esac
25914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25915 $as_echo "$ac_try_echo") >&5
25916   (eval "$ac_compile") 2>conftest.er1
25917   ac_status=$?
25918   grep -v '^ *+' conftest.er1 >conftest.err
25919   rm -f conftest.er1
25920   cat conftest.err >&5
25921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); } && {
25923          test -z "$ac_c_werror_flag" ||
25924          test ! -s conftest.err
25925        } && test -s conftest.$ac_objext; then
25926   :
25927 else
25928   $as_echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931         ac_cv_type_int64=yes
25932 fi
25933
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25935 else
25936   $as_echo "$as_me: failed program was:" >&5
25937 sed 's/^/| /' conftest.$ac_ext >&5
25938
25939
25940 fi
25941
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 fi
25944 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
25945 $as_echo "$ac_cv_type_int64" >&6; }
25946 if test "x$ac_cv_type_int64" = x""yes; then
25947
25948 cat >>confdefs.h <<_ACEOF
25949 #define HAVE_INT64 1
25950 _ACEOF
25951
25952
25953 fi
25954 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
25955 $as_echo_n "checking for uint64... " >&6; }
25956 if test "${ac_cv_type_uint64+set}" = set; then
25957   $as_echo_n "(cached) " >&6
25958 else
25959   ac_cv_type_uint64=no
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 #include <stdio.h>
25967 #ifdef HAVE_SUPPORTDEFS_H
25968 #include <SupportDefs.h>
25969 #endif
25970
25971 int
25972 main ()
25973 {
25974 if (sizeof (uint64))
25975        return 0;
25976   ;
25977   return 0;
25978 }
25979 _ACEOF
25980 rm -f conftest.$ac_objext
25981 if { (ac_try="$ac_compile"
25982 case "(($ac_try" in
25983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25984   *) ac_try_echo=$ac_try;;
25985 esac
25986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25987 $as_echo "$ac_try_echo") >&5
25988   (eval "$ac_compile") 2>conftest.er1
25989   ac_status=$?
25990   grep -v '^ *+' conftest.er1 >conftest.err
25991   rm -f conftest.er1
25992   cat conftest.err >&5
25993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); } && {
25995          test -z "$ac_c_werror_flag" ||
25996          test ! -s conftest.err
25997        } && test -s conftest.$ac_objext; then
25998   cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 #include <stdio.h>
26005 #ifdef HAVE_SUPPORTDEFS_H
26006 #include <SupportDefs.h>
26007 #endif
26008
26009 int
26010 main ()
26011 {
26012 if (sizeof ((uint64)))
26013           return 0;
26014   ;
26015   return 0;
26016 }
26017 _ACEOF
26018 rm -f conftest.$ac_objext
26019 if { (ac_try="$ac_compile"
26020 case "(($ac_try" in
26021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022   *) ac_try_echo=$ac_try;;
26023 esac
26024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26025 $as_echo "$ac_try_echo") >&5
26026   (eval "$ac_compile") 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } && {
26033          test -z "$ac_c_werror_flag" ||
26034          test ! -s conftest.err
26035        } && test -s conftest.$ac_objext; then
26036   :
26037 else
26038   $as_echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26040
26041         ac_cv_type_uint64=yes
26042 fi
26043
26044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045 else
26046   $as_echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049
26050 fi
26051
26052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053 fi
26054 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26055 $as_echo "$ac_cv_type_uint64" >&6; }
26056 if test "x$ac_cv_type_uint64" = x""yes; then
26057
26058 cat >>confdefs.h <<_ACEOF
26059 #define HAVE_UINT64 1
26060 _ACEOF
26061
26062
26063 fi
26064
26065
26066 # We also check for sig_atomic_t, which *should* be defined per ANSI
26067 # C, but is missing on some old platforms.
26068 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26069 $as_echo_n "checking for sig_atomic_t... " >&6; }
26070 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26071   $as_echo_n "(cached) " >&6
26072 else
26073   ac_cv_type_sig_atomic_t=no
26074 cat >conftest.$ac_ext <<_ACEOF
26075 /* confdefs.h.  */
26076 _ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h.  */
26080 #include <signal.h>
26081
26082 int
26083 main ()
26084 {
26085 if (sizeof (sig_atomic_t))
26086        return 0;
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (ac_try="$ac_compile"
26093 case "(($ac_try" in
26094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095   *) ac_try_echo=$ac_try;;
26096 esac
26097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26098 $as_echo "$ac_try_echo") >&5
26099   (eval "$ac_compile") 2>conftest.er1
26100   ac_status=$?
26101   grep -v '^ *+' conftest.er1 >conftest.err
26102   rm -f conftest.er1
26103   cat conftest.err >&5
26104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); } && {
26106          test -z "$ac_c_werror_flag" ||
26107          test ! -s conftest.err
26108        } && test -s conftest.$ac_objext; then
26109   cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115 #include <signal.h>
26116
26117 int
26118 main ()
26119 {
26120 if (sizeof ((sig_atomic_t)))
26121           return 0;
26122   ;
26123   return 0;
26124 }
26125 _ACEOF
26126 rm -f conftest.$ac_objext
26127 if { (ac_try="$ac_compile"
26128 case "(($ac_try" in
26129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26130   *) ac_try_echo=$ac_try;;
26131 esac
26132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26133 $as_echo "$ac_try_echo") >&5
26134   (eval "$ac_compile") 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } && {
26141          test -z "$ac_c_werror_flag" ||
26142          test ! -s conftest.err
26143        } && test -s conftest.$ac_objext; then
26144   :
26145 else
26146   $as_echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26148
26149         ac_cv_type_sig_atomic_t=yes
26150 fi
26151
26152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26153 else
26154   $as_echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157
26158 fi
26159
26160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26161 fi
26162 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26163 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26164 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26165
26166 cat >>confdefs.h <<_ACEOF
26167 #define HAVE_SIG_ATOMIC_T 1
26168 _ACEOF
26169
26170
26171 fi
26172
26173
26174
26175 # If the user did not disable integer datetimes, check that
26176 # there is a working 64-bit integral type to use.
26177 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
26178    test x"$HAVE_LONG_INT_64" = x"no" &&
26179    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
26180    test x"$HAVE_INT64" = x"no" ; then
26181   { { $as_echo "$as_me:$LINENO: error:
26182 Integer-based datetime support requires a 64-bit integer type,
26183 but no such type could be found. The --disable-integer-datetimes
26184 configure option can be used to disable integer-based storage
26185 of datetime values." >&5
26186 $as_echo "$as_me: error:
26187 Integer-based datetime support requires a 64-bit integer type,
26188 but no such type could be found. The --disable-integer-datetimes
26189 configure option can be used to disable integer-based storage
26190 of datetime values." >&2;}
26191    { (exit 1); exit 1; }; }
26192 fi
26193
26194
26195 if test "$PORTNAME" != "win32"
26196 then
26197 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26198 $as_echo_n "checking for POSIX signal interface... " >&6; }
26199 if test "${pgac_cv_func_posix_signals+set}" = set; then
26200   $as_echo_n "(cached) " >&6
26201 else
26202   cat >conftest.$ac_ext <<_ACEOF
26203 /* confdefs.h.  */
26204 _ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h.  */
26208 #include <signal.h>
26209
26210 int
26211 main ()
26212 {
26213 struct sigaction act, oact;
26214 sigemptyset(&act.sa_mask);
26215 act.sa_flags = SA_RESTART;
26216 sigaction(0, &act, &oact);
26217   ;
26218   return 0;
26219 }
26220 _ACEOF
26221 rm -f conftest.$ac_objext conftest$ac_exeext
26222 if { (ac_try="$ac_link"
26223 case "(($ac_try" in
26224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225   *) ac_try_echo=$ac_try;;
26226 esac
26227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26228 $as_echo "$ac_try_echo") >&5
26229   (eval "$ac_link") 2>conftest.er1
26230   ac_status=$?
26231   grep -v '^ *+' conftest.er1 >conftest.err
26232   rm -f conftest.er1
26233   cat conftest.err >&5
26234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); } && {
26236          test -z "$ac_c_werror_flag" ||
26237          test ! -s conftest.err
26238        } && test -s conftest$ac_exeext && {
26239          test "$cross_compiling" = yes ||
26240          $as_test_x conftest$ac_exeext
26241        }; then
26242   pgac_cv_func_posix_signals=yes
26243 else
26244   $as_echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26246
26247         pgac_cv_func_posix_signals=no
26248 fi
26249
26250 rm -rf conftest.dSYM
26251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26252       conftest$ac_exeext conftest.$ac_ext
26253 fi
26254 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26255 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26256 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26257
26258 cat >>confdefs.h <<\_ACEOF
26259 #define HAVE_POSIX_SIGNALS /**/
26260 _ACEOF
26261
26262 fi
26263 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26264
26265 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26266   { { $as_echo "$as_me:$LINENO: error:
26267 Thread-safety requires POSIX signals, which are not supported by this
26268 operating system." >&5
26269 $as_echo "$as_me: error:
26270 Thread-safety requires POSIX signals, which are not supported by this
26271 operating system." >&2;}
26272    { (exit 1); exit 1; }; }
26273 fi
26274 fi
26275
26276 if test $ac_cv_func_fseeko = yes; then
26277 # Check whether --enable-largefile was given.
26278 if test "${enable_largefile+set}" = set; then
26279   enableval=$enable_largefile;
26280 fi
26281
26282 if test "$enable_largefile" != no; then
26283
26284   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26285 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26286 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26287   $as_echo_n "(cached) " >&6
26288 else
26289   ac_cv_sys_largefile_CC=no
26290      if test "$GCC" != yes; then
26291        ac_save_CC=$CC
26292        while :; do
26293          # IRIX 6.2 and later do not support large files by default,
26294          # so use the C compiler's -n32 option if that helps.
26295          cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 #include <sys/types.h>
26302  /* Check that off_t can represent 2**63 - 1 correctly.
26303     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26304     since some C++ compilers masquerading as C compilers
26305     incorrectly reject 9223372036854775807.  */
26306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26307   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26308                        && LARGE_OFF_T % 2147483647 == 1)
26309                       ? 1 : -1];
26310 int
26311 main ()
26312 {
26313
26314   ;
26315   return 0;
26316 }
26317 _ACEOF
26318          rm -f conftest.$ac_objext
26319 if { (ac_try="$ac_compile"
26320 case "(($ac_try" in
26321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322   *) ac_try_echo=$ac_try;;
26323 esac
26324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26325 $as_echo "$ac_try_echo") >&5
26326   (eval "$ac_compile") 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } && {
26333          test -z "$ac_c_werror_flag" ||
26334          test ! -s conftest.err
26335        } && test -s conftest.$ac_objext; then
26336   break
26337 else
26338   $as_echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341
26342 fi
26343
26344 rm -f core conftest.err conftest.$ac_objext
26345          CC="$CC -n32"
26346          rm -f conftest.$ac_objext
26347 if { (ac_try="$ac_compile"
26348 case "(($ac_try" in
26349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350   *) ac_try_echo=$ac_try;;
26351 esac
26352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26353 $as_echo "$ac_try_echo") >&5
26354   (eval "$ac_compile") 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } && {
26361          test -z "$ac_c_werror_flag" ||
26362          test ! -s conftest.err
26363        } && test -s conftest.$ac_objext; then
26364   ac_cv_sys_largefile_CC=' -n32'; break
26365 else
26366   $as_echo "$as_me: failed program was:" >&5
26367 sed 's/^/| /' conftest.$ac_ext >&5
26368
26369
26370 fi
26371
26372 rm -f core conftest.err conftest.$ac_objext
26373          break
26374        done
26375        CC=$ac_save_CC
26376        rm -f conftest.$ac_ext
26377     fi
26378 fi
26379 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26380 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26381   if test "$ac_cv_sys_largefile_CC" != no; then
26382     CC=$CC$ac_cv_sys_largefile_CC
26383   fi
26384
26385   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26386 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26387 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26388   $as_echo_n "(cached) " >&6
26389 else
26390   while :; do
26391   cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h.  */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h.  */
26397 #include <sys/types.h>
26398  /* Check that off_t can represent 2**63 - 1 correctly.
26399     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26400     since some C++ compilers masquerading as C compilers
26401     incorrectly reject 9223372036854775807.  */
26402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26403   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26404                        && LARGE_OFF_T % 2147483647 == 1)
26405                       ? 1 : -1];
26406 int
26407 main ()
26408 {
26409
26410   ;
26411   return 0;
26412 }
26413 _ACEOF
26414 rm -f conftest.$ac_objext
26415 if { (ac_try="$ac_compile"
26416 case "(($ac_try" in
26417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26418   *) ac_try_echo=$ac_try;;
26419 esac
26420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26421 $as_echo "$ac_try_echo") >&5
26422   (eval "$ac_compile") 2>conftest.er1
26423   ac_status=$?
26424   grep -v '^ *+' conftest.er1 >conftest.err
26425   rm -f conftest.er1
26426   cat conftest.err >&5
26427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); } && {
26429          test -z "$ac_c_werror_flag" ||
26430          test ! -s conftest.err
26431        } && test -s conftest.$ac_objext; then
26432   ac_cv_sys_file_offset_bits=no; break
26433 else
26434   $as_echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437
26438 fi
26439
26440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26441   cat >conftest.$ac_ext <<_ACEOF
26442 /* confdefs.h.  */
26443 _ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h.  */
26447 #define _FILE_OFFSET_BITS 64
26448 #include <sys/types.h>
26449  /* Check that off_t can represent 2**63 - 1 correctly.
26450     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26451     since some C++ compilers masquerading as C compilers
26452     incorrectly reject 9223372036854775807.  */
26453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26454   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26455                        && LARGE_OFF_T % 2147483647 == 1)
26456                       ? 1 : -1];
26457 int
26458 main ()
26459 {
26460
26461   ;
26462   return 0;
26463 }
26464 _ACEOF
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469   *) ac_try_echo=$ac_try;;
26470 esac
26471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26472 $as_echo "$ac_try_echo") >&5
26473   (eval "$ac_compile") 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } && {
26480          test -z "$ac_c_werror_flag" ||
26481          test ! -s conftest.err
26482        } && test -s conftest.$ac_objext; then
26483   ac_cv_sys_file_offset_bits=64; break
26484 else
26485   $as_echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26487
26488
26489 fi
26490
26491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492   ac_cv_sys_file_offset_bits=unknown
26493   break
26494 done
26495 fi
26496 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26497 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26498 case $ac_cv_sys_file_offset_bits in #(
26499   no | unknown) ;;
26500   *)
26501 cat >>confdefs.h <<_ACEOF
26502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26503 _ACEOF
26504 ;;
26505 esac
26506 rm -rf conftest*
26507   if test $ac_cv_sys_file_offset_bits = unknown; then
26508     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26509 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26510 if test "${ac_cv_sys_large_files+set}" = set; then
26511   $as_echo_n "(cached) " >&6
26512 else
26513   while :; do
26514   cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h.  */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h.  */
26520 #include <sys/types.h>
26521  /* Check that off_t can represent 2**63 - 1 correctly.
26522     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26523     since some C++ compilers masquerading as C compilers
26524     incorrectly reject 9223372036854775807.  */
26525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26526   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26527                        && LARGE_OFF_T % 2147483647 == 1)
26528                       ? 1 : -1];
26529 int
26530 main ()
26531 {
26532
26533   ;
26534   return 0;
26535 }
26536 _ACEOF
26537 rm -f conftest.$ac_objext
26538 if { (ac_try="$ac_compile"
26539 case "(($ac_try" in
26540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26541   *) ac_try_echo=$ac_try;;
26542 esac
26543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26544 $as_echo "$ac_try_echo") >&5
26545   (eval "$ac_compile") 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && {
26552          test -z "$ac_c_werror_flag" ||
26553          test ! -s conftest.err
26554        } && test -s conftest.$ac_objext; then
26555   ac_cv_sys_large_files=no; break
26556 else
26557   $as_echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560
26561 fi
26562
26563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26564   cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570 #define _LARGE_FILES 1
26571 #include <sys/types.h>
26572  /* Check that off_t can represent 2**63 - 1 correctly.
26573     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26574     since some C++ compilers masquerading as C compilers
26575     incorrectly reject 9223372036854775807.  */
26576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26577   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26578                        && LARGE_OFF_T % 2147483647 == 1)
26579                       ? 1 : -1];
26580 int
26581 main ()
26582 {
26583
26584   ;
26585   return 0;
26586 }
26587 _ACEOF
26588 rm -f conftest.$ac_objext
26589 if { (ac_try="$ac_compile"
26590 case "(($ac_try" in
26591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592   *) ac_try_echo=$ac_try;;
26593 esac
26594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26595 $as_echo "$ac_try_echo") >&5
26596   (eval "$ac_compile") 2>conftest.er1
26597   ac_status=$?
26598   grep -v '^ *+' conftest.er1 >conftest.err
26599   rm -f conftest.er1
26600   cat conftest.err >&5
26601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } && {
26603          test -z "$ac_c_werror_flag" ||
26604          test ! -s conftest.err
26605        } && test -s conftest.$ac_objext; then
26606   ac_cv_sys_large_files=1; break
26607 else
26608   $as_echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611
26612 fi
26613
26614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615   ac_cv_sys_large_files=unknown
26616   break
26617 done
26618 fi
26619 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26620 $as_echo "$ac_cv_sys_large_files" >&6; }
26621 case $ac_cv_sys_large_files in #(
26622   no | unknown) ;;
26623   *)
26624 cat >>confdefs.h <<_ACEOF
26625 #define _LARGE_FILES $ac_cv_sys_large_files
26626 _ACEOF
26627 ;;
26628 esac
26629 rm -rf conftest*
26630   fi
26631 fi
26632
26633 fi
26634
26635 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26636 # The cast to long int works around a bug in the HP C Compiler
26637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26639 # This bug is HP SR number 8606223364.
26640 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26641 $as_echo_n "checking size of off_t... " >&6; }
26642 if test "${ac_cv_sizeof_off_t+set}" = set; then
26643   $as_echo_n "(cached) " >&6
26644 else
26645   if test "$cross_compiling" = yes; then
26646   # Depending upon the size, compute the lo and hi bounds.
26647 cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h.  */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h.  */
26653 $ac_includes_default
26654 int
26655 main ()
26656 {
26657 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26658 test_array [0] = 0
26659
26660   ;
26661   return 0;
26662 }
26663 _ACEOF
26664 rm -f conftest.$ac_objext
26665 if { (ac_try="$ac_compile"
26666 case "(($ac_try" in
26667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668   *) ac_try_echo=$ac_try;;
26669 esac
26670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26671 $as_echo "$ac_try_echo") >&5
26672   (eval "$ac_compile") 2>conftest.er1
26673   ac_status=$?
26674   grep -v '^ *+' conftest.er1 >conftest.err
26675   rm -f conftest.er1
26676   cat conftest.err >&5
26677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); } && {
26679          test -z "$ac_c_werror_flag" ||
26680          test ! -s conftest.err
26681        } && test -s conftest.$ac_objext; then
26682   ac_lo=0 ac_mid=0
26683   while :; do
26684     cat >conftest.$ac_ext <<_ACEOF
26685 /* confdefs.h.  */
26686 _ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h.  */
26690 $ac_includes_default
26691 int
26692 main ()
26693 {
26694 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26695 test_array [0] = 0
26696
26697   ;
26698   return 0;
26699 }
26700 _ACEOF
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26708 $as_echo "$ac_try_echo") >&5
26709   (eval "$ac_compile") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest.$ac_objext; then
26719   ac_hi=$ac_mid; break
26720 else
26721   $as_echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724         ac_lo=`expr $ac_mid + 1`
26725                         if test $ac_lo -le $ac_mid; then
26726                           ac_lo= ac_hi=
26727                           break
26728                         fi
26729                         ac_mid=`expr 2 '*' $ac_mid + 1`
26730 fi
26731
26732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26733   done
26734 else
26735   $as_echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.$ac_ext >&5
26737
26738         cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h.  */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h.  */
26744 $ac_includes_default
26745 int
26746 main ()
26747 {
26748 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26749 test_array [0] = 0
26750
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 rm -f conftest.$ac_objext
26756 if { (ac_try="$ac_compile"
26757 case "(($ac_try" in
26758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759   *) ac_try_echo=$ac_try;;
26760 esac
26761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26762 $as_echo "$ac_try_echo") >&5
26763   (eval "$ac_compile") 2>conftest.er1
26764   ac_status=$?
26765   grep -v '^ *+' conftest.er1 >conftest.err
26766   rm -f conftest.er1
26767   cat conftest.err >&5
26768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769   (exit $ac_status); } && {
26770          test -z "$ac_c_werror_flag" ||
26771          test ! -s conftest.err
26772        } && test -s conftest.$ac_objext; then
26773   ac_hi=-1 ac_mid=-1
26774   while :; do
26775     cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781 $ac_includes_default
26782 int
26783 main ()
26784 {
26785 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
26786 test_array [0] = 0
26787
26788   ;
26789   return 0;
26790 }
26791 _ACEOF
26792 rm -f conftest.$ac_objext
26793 if { (ac_try="$ac_compile"
26794 case "(($ac_try" in
26795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796   *) ac_try_echo=$ac_try;;
26797 esac
26798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26799 $as_echo "$ac_try_echo") >&5
26800   (eval "$ac_compile") 2>conftest.er1
26801   ac_status=$?
26802   grep -v '^ *+' conftest.er1 >conftest.err
26803   rm -f conftest.er1
26804   cat conftest.err >&5
26805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); } && {
26807          test -z "$ac_c_werror_flag" ||
26808          test ! -s conftest.err
26809        } && test -s conftest.$ac_objext; then
26810   ac_lo=$ac_mid; break
26811 else
26812   $as_echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26814
26815         ac_hi=`expr '(' $ac_mid ')' - 1`
26816                         if test $ac_mid -le $ac_hi; then
26817                           ac_lo= ac_hi=
26818                           break
26819                         fi
26820                         ac_mid=`expr 2 '*' $ac_mid`
26821 fi
26822
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824   done
26825 else
26826   $as_echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829         ac_lo= ac_hi=
26830 fi
26831
26832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26833 fi
26834
26835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26836 # Binary search between lo and hi bounds.
26837 while test "x$ac_lo" != "x$ac_hi"; do
26838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26839   cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h.  */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h.  */
26845 $ac_includes_default
26846 int
26847 main ()
26848 {
26849 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26850 test_array [0] = 0
26851
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26863 $as_echo "$ac_try_echo") >&5
26864   (eval "$ac_compile") 2>conftest.er1
26865   ac_status=$?
26866   grep -v '^ *+' conftest.er1 >conftest.err
26867   rm -f conftest.er1
26868   cat conftest.err >&5
26869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870   (exit $ac_status); } && {
26871          test -z "$ac_c_werror_flag" ||
26872          test ! -s conftest.err
26873        } && test -s conftest.$ac_objext; then
26874   ac_hi=$ac_mid
26875 else
26876   $as_echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26878
26879         ac_lo=`expr '(' $ac_mid ')' + 1`
26880 fi
26881
26882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883 done
26884 case $ac_lo in
26885 ?*) ac_cv_sizeof_off_t=$ac_lo;;
26886 '') if test "$ac_cv_type_off_t" = yes; then
26887      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26889 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26890 See \`config.log' for more details." >&5
26891 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26892 See \`config.log' for more details." >&2;}
26893    { (exit 77); exit 77; }; }; }
26894    else
26895      ac_cv_sizeof_off_t=0
26896    fi ;;
26897 esac
26898 else
26899   cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905 $ac_includes_default
26906 static long int longval () { return (long int) (sizeof (off_t)); }
26907 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
26908 #include <stdio.h>
26909 #include <stdlib.h>
26910 int
26911 main ()
26912 {
26913
26914   FILE *f = fopen ("conftest.val", "w");
26915   if (! f)
26916     return 1;
26917   if (((long int) (sizeof (off_t))) < 0)
26918     {
26919       long int i = longval ();
26920       if (i != ((long int) (sizeof (off_t))))
26921         return 1;
26922       fprintf (f, "%ld", i);
26923     }
26924   else
26925     {
26926       unsigned long int i = ulongval ();
26927       if (i != ((long int) (sizeof (off_t))))
26928         return 1;
26929       fprintf (f, "%lu", i);
26930     }
26931   /* Do not output a trailing newline, as this causes \r\n confusion
26932      on some platforms.  */
26933   return ferror (f) || fclose (f) != 0;
26934
26935   ;
26936   return 0;
26937 }
26938 _ACEOF
26939 rm -f conftest$ac_exeext
26940 if { (ac_try="$ac_link"
26941 case "(($ac_try" in
26942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943   *) ac_try_echo=$ac_try;;
26944 esac
26945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26946 $as_echo "$ac_try_echo") >&5
26947   (eval "$ac_link") 2>&5
26948   ac_status=$?
26949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26951   { (case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26956 $as_echo "$ac_try_echo") >&5
26957   (eval "$ac_try") 2>&5
26958   ac_status=$?
26959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); }; }; then
26961   ac_cv_sizeof_off_t=`cat conftest.val`
26962 else
26963   $as_echo "$as_me: program exited with status $ac_status" >&5
26964 $as_echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967 ( exit $ac_status )
26968 if test "$ac_cv_type_off_t" = 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 sizeof (off_t)
26972 See \`config.log' for more details." >&5
26973 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26974 See \`config.log' for more details." >&2;}
26975    { (exit 77); exit 77; }; }; }
26976    else
26977      ac_cv_sizeof_off_t=0
26978    fi
26979 fi
26980 rm -rf conftest.dSYM
26981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26982 fi
26983 rm -f conftest.val
26984 fi
26985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
26986 $as_echo "$ac_cv_sizeof_off_t" >&6; }
26987
26988
26989
26990 cat >>confdefs.h <<_ACEOF
26991 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26992 _ACEOF
26993
26994
26995
26996 # If we don't have largefile support, can't handle segsize >= 2GB.
26997 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
26998    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
26999 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27000    { (exit 1); exit 1; }; }
27001 fi
27002
27003 # SunOS doesn't handle negative byte comparisons properly with +/- return
27004 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27005 $as_echo_n "checking for working memcmp... " >&6; }
27006 if test "${ac_cv_func_memcmp_working+set}" = set; then
27007   $as_echo_n "(cached) " >&6
27008 else
27009   if test "$cross_compiling" = yes; then
27010   ac_cv_func_memcmp_working=no
27011 else
27012   cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018 $ac_includes_default
27019 int
27020 main ()
27021 {
27022
27023   /* Some versions of memcmp are not 8-bit clean.  */
27024   char c0 = '\100', c1 = '\200', c2 = '\201';
27025   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27026     return 1;
27027
27028   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27029      or more and with at least one buffer not starting on a 4-byte boundary.
27030      William Lewis provided this test program.   */
27031   {
27032     char foo[21];
27033     char bar[21];
27034     int i;
27035     for (i = 0; i < 4; i++)
27036       {
27037         char *a = foo + i;
27038         char *b = bar + i;
27039         strcpy (a, "--------01111111");
27040         strcpy (b, "--------10000000");
27041         if (memcmp (a, b, 16) >= 0)
27042           return 1;
27043       }
27044     return 0;
27045   }
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 rm -f conftest$ac_exeext
27052 if { (ac_try="$ac_link"
27053 case "(($ac_try" in
27054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055   *) ac_try_echo=$ac_try;;
27056 esac
27057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27058 $as_echo "$ac_try_echo") >&5
27059   (eval "$ac_link") 2>&5
27060   ac_status=$?
27061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27063   { (case "(($ac_try" in
27064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065   *) ac_try_echo=$ac_try;;
27066 esac
27067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27068 $as_echo "$ac_try_echo") >&5
27069   (eval "$ac_try") 2>&5
27070   ac_status=$?
27071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072   (exit $ac_status); }; }; then
27073   ac_cv_func_memcmp_working=yes
27074 else
27075   $as_echo "$as_me: program exited with status $ac_status" >&5
27076 $as_echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079 ( exit $ac_status )
27080 ac_cv_func_memcmp_working=no
27081 fi
27082 rm -rf conftest.dSYM
27083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27084 fi
27085
27086
27087 fi
27088 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27089 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27090 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27091   *" memcmp.$ac_objext "* ) ;;
27092   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27093  ;;
27094 esac
27095
27096
27097
27098
27099 # Select semaphore implementation type.
27100 if test "$PORTNAME" != "win32"; then
27101   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27102
27103 cat >>confdefs.h <<\_ACEOF
27104 #define USE_NAMED_POSIX_SEMAPHORES 1
27105 _ACEOF
27106
27107     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27108   else
27109     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27110
27111 cat >>confdefs.h <<\_ACEOF
27112 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27113 _ACEOF
27114
27115       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27116     else
27117
27118 cat >>confdefs.h <<\_ACEOF
27119 #define USE_SYSV_SEMAPHORES 1
27120 _ACEOF
27121
27122       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27123     fi
27124   fi
27125 else
27126
27127 cat >>confdefs.h <<\_ACEOF
27128 #define USE_WIN32_SEMAPHORES 1
27129 _ACEOF
27130
27131   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27132 fi
27133
27134
27135 # Select shared-memory implementation type.
27136 if test "$PORTNAME" != "win32"; then
27137
27138 cat >>confdefs.h <<\_ACEOF
27139 #define USE_SYSV_SHARED_MEMORY 1
27140 _ACEOF
27141
27142   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27143 else
27144
27145 cat >>confdefs.h <<\_ACEOF
27146 #define USE_WIN32_SHARED_MEMORY 1
27147 _ACEOF
27148
27149   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27150 fi
27151
27152 # If not set in template file, set bytes to use libc memset()
27153 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27154   MEMSET_LOOP_LIMIT=1024
27155 fi
27156
27157 cat >>confdefs.h <<_ACEOF
27158 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27159 _ACEOF
27160
27161
27162
27163 if test "$enable_nls" = yes ; then
27164
27165   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27166 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27167 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27168   $as_echo_n "(cached) " >&6
27169 else
27170   ac_func_search_save_LIBS=$LIBS
27171 cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177
27178 /* Override any GCC internal prototype to avoid an error.
27179    Use char because int might match the return type of a GCC
27180    builtin and then its argument prototype would still apply.  */
27181 #ifdef __cplusplus
27182 extern "C"
27183 #endif
27184 char bind_textdomain_codeset ();
27185 int
27186 main ()
27187 {
27188 return bind_textdomain_codeset ();
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 for ac_lib in '' intl; do
27194   if test -z "$ac_lib"; then
27195     ac_res="none required"
27196   else
27197     ac_res=-l$ac_lib
27198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27199   fi
27200   rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27207 $as_echo "$ac_try_echo") >&5
27208   (eval "$ac_link") 2>conftest.er1
27209   ac_status=$?
27210   grep -v '^ *+' conftest.er1 >conftest.err
27211   rm -f conftest.er1
27212   cat conftest.err >&5
27213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); } && {
27215          test -z "$ac_c_werror_flag" ||
27216          test ! -s conftest.err
27217        } && test -s conftest$ac_exeext && {
27218          test "$cross_compiling" = yes ||
27219          $as_test_x conftest$ac_exeext
27220        }; then
27221   ac_cv_search_bind_textdomain_codeset=$ac_res
27222 else
27223   $as_echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27225
27226
27227 fi
27228
27229 rm -rf conftest.dSYM
27230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27231       conftest$ac_exeext
27232   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27233   break
27234 fi
27235 done
27236 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27237   :
27238 else
27239   ac_cv_search_bind_textdomain_codeset=no
27240 fi
27241 rm conftest.$ac_ext
27242 LIBS=$ac_func_search_save_LIBS
27243 fi
27244 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27245 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27246 ac_res=$ac_cv_search_bind_textdomain_codeset
27247 if test "$ac_res" != no; then
27248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27249
27250 else
27251   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27252 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27253    { (exit 1); exit 1; }; }
27254 fi
27255
27256   if test "${ac_cv_header_libintl_h+set}" = set; then
27257   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27258 $as_echo_n "checking for libintl.h... " >&6; }
27259 if test "${ac_cv_header_libintl_h+set}" = set; then
27260   $as_echo_n "(cached) " >&6
27261 fi
27262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27263 $as_echo "$ac_cv_header_libintl_h" >&6; }
27264 else
27265   # Is the header compilable?
27266 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27267 $as_echo_n "checking libintl.h usability... " >&6; }
27268 cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 $ac_includes_default
27275 #include <libintl.h>
27276 _ACEOF
27277 rm -f conftest.$ac_objext
27278 if { (ac_try="$ac_compile"
27279 case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27284 $as_echo "$ac_try_echo") >&5
27285   (eval "$ac_compile") 2>conftest.er1
27286   ac_status=$?
27287   grep -v '^ *+' conftest.er1 >conftest.err
27288   rm -f conftest.er1
27289   cat conftest.err >&5
27290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); } && {
27292          test -z "$ac_c_werror_flag" ||
27293          test ! -s conftest.err
27294        } && test -s conftest.$ac_objext; then
27295   ac_header_compiler=yes
27296 else
27297   $as_echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27299
27300         ac_header_compiler=no
27301 fi
27302
27303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27305 $as_echo "$ac_header_compiler" >&6; }
27306
27307 # Is the header present?
27308 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27309 $as_echo_n "checking libintl.h presence... " >&6; }
27310 cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316 #include <libintl.h>
27317 _ACEOF
27318 if { (ac_try="$ac_cpp conftest.$ac_ext"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27324 $as_echo "$ac_try_echo") >&5
27325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27326   ac_status=$?
27327   grep -v '^ *+' conftest.er1 >conftest.err
27328   rm -f conftest.er1
27329   cat conftest.err >&5
27330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); } >/dev/null && {
27332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27333          test ! -s conftest.err
27334        }; then
27335   ac_header_preproc=yes
27336 else
27337   $as_echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340   ac_header_preproc=no
27341 fi
27342
27343 rm -f conftest.err conftest.$ac_ext
27344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27345 $as_echo "$ac_header_preproc" >&6; }
27346
27347 # So?  What about this header?
27348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27349   yes:no: )
27350     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27351 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27352     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27353 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27354     ac_header_preproc=yes
27355     ;;
27356   no:yes:* )
27357     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27358 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27359     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
27360 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
27361     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27362 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27363     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
27364 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27365     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27366 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27367     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27368 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27369     ( cat <<\_ASBOX
27370 ## ---------------------------------------- ##
27371 ## Report this to pgsql-bugs@postgresql.org ##
27372 ## ---------------------------------------- ##
27373 _ASBOX
27374      ) | sed "s/^/$as_me: WARNING:     /" >&2
27375     ;;
27376 esac
27377 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27378 $as_echo_n "checking for libintl.h... " >&6; }
27379 if test "${ac_cv_header_libintl_h+set}" = set; then
27380   $as_echo_n "(cached) " >&6
27381 else
27382   ac_cv_header_libintl_h=$ac_header_preproc
27383 fi
27384 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27385 $as_echo "$ac_cv_header_libintl_h" >&6; }
27386
27387 fi
27388 if test "x$ac_cv_header_libintl_h" = x""yes; then
27389   :
27390 else
27391   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27392 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27393    { (exit 1); exit 1; }; }
27394 fi
27395
27396
27397   for ac_prog in msgfmt
27398 do
27399   # Extract the first word of "$ac_prog", so it can be a program name with args.
27400 set dummy $ac_prog; ac_word=$2
27401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27402 $as_echo_n "checking for $ac_word... " >&6; }
27403 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27404   $as_echo_n "(cached) " >&6
27405 else
27406   if test -n "$MSGFMT"; then
27407   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27408 else
27409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27410 for as_dir in $PATH
27411 do
27412   IFS=$as_save_IFS
27413   test -z "$as_dir" && as_dir=.
27414   for ac_exec_ext in '' $ac_executable_extensions; do
27415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27416     ac_cv_prog_MSGFMT="$ac_prog"
27417     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27418     break 2
27419   fi
27420 done
27421 done
27422 IFS=$as_save_IFS
27423
27424 fi
27425 fi
27426 MSGFMT=$ac_cv_prog_MSGFMT
27427 if test -n "$MSGFMT"; then
27428   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27429 $as_echo "$MSGFMT" >&6; }
27430 else
27431   { $as_echo "$as_me:$LINENO: result: no" >&5
27432 $as_echo "no" >&6; }
27433 fi
27434
27435
27436   test -n "$MSGFMT" && break
27437 done
27438
27439   if test -z "$MSGFMT"; then
27440     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27441 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27442    { (exit 1); exit 1; }; }
27443   fi
27444   for ac_prog in msgmerge
27445 do
27446   # Extract the first word of "$ac_prog", so it can be a program name with args.
27447 set dummy $ac_prog; ac_word=$2
27448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27449 $as_echo_n "checking for $ac_word... " >&6; }
27450 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27451   $as_echo_n "(cached) " >&6
27452 else
27453   if test -n "$MSGMERGE"; then
27454   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27455 else
27456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27457 for as_dir in $PATH
27458 do
27459   IFS=$as_save_IFS
27460   test -z "$as_dir" && as_dir=.
27461   for ac_exec_ext in '' $ac_executable_extensions; do
27462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27463     ac_cv_prog_MSGMERGE="$ac_prog"
27464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27465     break 2
27466   fi
27467 done
27468 done
27469 IFS=$as_save_IFS
27470
27471 fi
27472 fi
27473 MSGMERGE=$ac_cv_prog_MSGMERGE
27474 if test -n "$MSGMERGE"; then
27475   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27476 $as_echo "$MSGMERGE" >&6; }
27477 else
27478   { $as_echo "$as_me:$LINENO: result: no" >&5
27479 $as_echo "no" >&6; }
27480 fi
27481
27482
27483   test -n "$MSGMERGE" && break
27484 done
27485
27486   for ac_prog in xgettext
27487 do
27488   # Extract the first word of "$ac_prog", so it can be a program name with args.
27489 set dummy $ac_prog; ac_word=$2
27490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27491 $as_echo_n "checking for $ac_word... " >&6; }
27492 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27493   $as_echo_n "(cached) " >&6
27494 else
27495   if test -n "$XGETTEXT"; then
27496   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27497 else
27498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27499 for as_dir in $PATH
27500 do
27501   IFS=$as_save_IFS
27502   test -z "$as_dir" && as_dir=.
27503   for ac_exec_ext in '' $ac_executable_extensions; do
27504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27505     ac_cv_prog_XGETTEXT="$ac_prog"
27506     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27507     break 2
27508   fi
27509 done
27510 done
27511 IFS=$as_save_IFS
27512
27513 fi
27514 fi
27515 XGETTEXT=$ac_cv_prog_XGETTEXT
27516 if test -n "$XGETTEXT"; then
27517   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27518 $as_echo "$XGETTEXT" >&6; }
27519 else
27520   { $as_echo "$as_me:$LINENO: result: no" >&5
27521 $as_echo "no" >&6; }
27522 fi
27523
27524
27525   test -n "$XGETTEXT" && break
27526 done
27527
27528
27529 fi
27530
27531 # Check for Tcl configuration script tclConfig.sh
27532 if test "$with_tcl" = yes; then
27533     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27534 do
27535   # Extract the first word of "$ac_prog", so it can be a program name with args.
27536 set dummy $ac_prog; ac_word=$2
27537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27538 $as_echo_n "checking for $ac_word... " >&6; }
27539 if test "${ac_cv_path_TCLSH+set}" = set; then
27540   $as_echo_n "(cached) " >&6
27541 else
27542   case $TCLSH in
27543   [\\/]* | ?:[\\/]*)
27544   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27545   ;;
27546   *)
27547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27548 for as_dir in $PATH
27549 do
27550   IFS=$as_save_IFS
27551   test -z "$as_dir" && as_dir=.
27552   for ac_exec_ext in '' $ac_executable_extensions; do
27553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27554     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27556     break 2
27557   fi
27558 done
27559 done
27560 IFS=$as_save_IFS
27561
27562   ;;
27563 esac
27564 fi
27565 TCLSH=$ac_cv_path_TCLSH
27566 if test -n "$TCLSH"; then
27567   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27568 $as_echo "$TCLSH" >&6; }
27569 else
27570   { $as_echo "$as_me:$LINENO: result: no" >&5
27571 $as_echo "no" >&6; }
27572 fi
27573
27574
27575   test -n "$TCLSH" && break
27576 done
27577
27578 if test x"$TCLSH" = x""; then
27579   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27580 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27581    { (exit 1); exit 1; }; }
27582 fi
27583
27584 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27585 $as_echo_n "checking for tclConfig.sh... " >&6; }
27586 # Let user override test
27587 if test -z "$TCL_CONFIG_SH"; then
27588     pgac_test_dirs="$with_tclconfig"
27589
27590     set X $pgac_test_dirs; shift
27591     if test $# -eq 0; then
27592         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27593 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27594    { (exit 1); exit 1; }; }
27595         set X `echo 'puts $auto_path' | $TCLSH`; shift
27596     fi
27597
27598     for pgac_dir do
27599         if test -r "$pgac_dir/tclConfig.sh"; then
27600             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27601             break
27602         fi
27603     done
27604 fi
27605
27606 if test -z "$TCL_CONFIG_SH"; then
27607     { $as_echo "$as_me:$LINENO: result: no" >&5
27608 $as_echo "no" >&6; }
27609     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27610 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27611    { (exit 1); exit 1; }; }
27612 else
27613     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27614 $as_echo "$TCL_CONFIG_SH" >&6; }
27615 fi
27616
27617
27618
27619     . "$TCL_CONFIG_SH"
27620 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27621 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27622 eval TCL_LIBS=\"$TCL_LIBS\"
27623 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27624 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27625
27626         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27627     ac_save_CPPFLAGS=$CPPFLAGS
27628     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27629     if test "${ac_cv_header_tcl_h+set}" = set; then
27630   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27631 $as_echo_n "checking for tcl.h... " >&6; }
27632 if test "${ac_cv_header_tcl_h+set}" = set; then
27633   $as_echo_n "(cached) " >&6
27634 fi
27635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27636 $as_echo "$ac_cv_header_tcl_h" >&6; }
27637 else
27638   # Is the header compilable?
27639 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27640 $as_echo_n "checking tcl.h usability... " >&6; }
27641 cat >conftest.$ac_ext <<_ACEOF
27642 /* confdefs.h.  */
27643 _ACEOF
27644 cat confdefs.h >>conftest.$ac_ext
27645 cat >>conftest.$ac_ext <<_ACEOF
27646 /* end confdefs.h.  */
27647 $ac_includes_default
27648 #include <tcl.h>
27649 _ACEOF
27650 rm -f conftest.$ac_objext
27651 if { (ac_try="$ac_compile"
27652 case "(($ac_try" in
27653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654   *) ac_try_echo=$ac_try;;
27655 esac
27656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27657 $as_echo "$ac_try_echo") >&5
27658   (eval "$ac_compile") 2>conftest.er1
27659   ac_status=$?
27660   grep -v '^ *+' conftest.er1 >conftest.err
27661   rm -f conftest.er1
27662   cat conftest.err >&5
27663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } && {
27665          test -z "$ac_c_werror_flag" ||
27666          test ! -s conftest.err
27667        } && test -s conftest.$ac_objext; then
27668   ac_header_compiler=yes
27669 else
27670   $as_echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27672
27673         ac_header_compiler=no
27674 fi
27675
27676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27677 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27678 $as_echo "$ac_header_compiler" >&6; }
27679
27680 # Is the header present?
27681 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
27682 $as_echo_n "checking tcl.h presence... " >&6; }
27683 cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h.  */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h.  */
27689 #include <tcl.h>
27690 _ACEOF
27691 if { (ac_try="$ac_cpp conftest.$ac_ext"
27692 case "(($ac_try" in
27693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694   *) ac_try_echo=$ac_try;;
27695 esac
27696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27697 $as_echo "$ac_try_echo") >&5
27698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27699   ac_status=$?
27700   grep -v '^ *+' conftest.er1 >conftest.err
27701   rm -f conftest.er1
27702   cat conftest.err >&5
27703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); } >/dev/null && {
27705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27706          test ! -s conftest.err
27707        }; then
27708   ac_header_preproc=yes
27709 else
27710   $as_echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.$ac_ext >&5
27712
27713   ac_header_preproc=no
27714 fi
27715
27716 rm -f conftest.err conftest.$ac_ext
27717 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27718 $as_echo "$ac_header_preproc" >&6; }
27719
27720 # So?  What about this header?
27721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27722   yes:no: )
27723     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27724 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27725     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
27726 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
27727     ac_header_preproc=yes
27728     ;;
27729   no:yes:* )
27730     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
27731 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
27732     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
27733 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
27734     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
27735 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
27736     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
27737 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27738     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
27739 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
27740     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
27741 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
27742     ( cat <<\_ASBOX
27743 ## ---------------------------------------- ##
27744 ## Report this to pgsql-bugs@postgresql.org ##
27745 ## ---------------------------------------- ##
27746 _ASBOX
27747      ) | sed "s/^/$as_me: WARNING:     /" >&2
27748     ;;
27749 esac
27750 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27751 $as_echo_n "checking for tcl.h... " >&6; }
27752 if test "${ac_cv_header_tcl_h+set}" = set; then
27753   $as_echo_n "(cached) " >&6
27754 else
27755   ac_cv_header_tcl_h=$ac_header_preproc
27756 fi
27757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27758 $as_echo "$ac_cv_header_tcl_h" >&6; }
27759
27760 fi
27761 if test "x$ac_cv_header_tcl_h" = x""yes; then
27762   :
27763 else
27764   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
27765 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
27766    { (exit 1); exit 1; }; }
27767 fi
27768
27769
27770     CPPFLAGS=$ac_save_CPPFLAGS
27771 fi
27772
27773 #
27774 # Check for DocBook and tools
27775 #
27776 for ac_prog in onsgmls nsgmls
27777 do
27778   # Extract the first word of "$ac_prog", so it can be a program name with args.
27779 set dummy $ac_prog; ac_word=$2
27780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27781 $as_echo_n "checking for $ac_word... " >&6; }
27782 if test "${ac_cv_prog_NSGMLS+set}" = set; then
27783   $as_echo_n "(cached) " >&6
27784 else
27785   if test -n "$NSGMLS"; then
27786   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
27787 else
27788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27789 for as_dir in $PATH
27790 do
27791   IFS=$as_save_IFS
27792   test -z "$as_dir" && as_dir=.
27793   for ac_exec_ext in '' $ac_executable_extensions; do
27794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27795     ac_cv_prog_NSGMLS="$ac_prog"
27796     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27797     break 2
27798   fi
27799 done
27800 done
27801 IFS=$as_save_IFS
27802
27803 fi
27804 fi
27805 NSGMLS=$ac_cv_prog_NSGMLS
27806 if test -n "$NSGMLS"; then
27807   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
27808 $as_echo "$NSGMLS" >&6; }
27809 else
27810   { $as_echo "$as_me:$LINENO: result: no" >&5
27811 $as_echo "no" >&6; }
27812 fi
27813
27814
27815   test -n "$NSGMLS" && break
27816 done
27817
27818 for ac_prog in openjade jade
27819 do
27820   # Extract the first word of "$ac_prog", so it can be a program name with args.
27821 set dummy $ac_prog; ac_word=$2
27822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27823 $as_echo_n "checking for $ac_word... " >&6; }
27824 if test "${ac_cv_prog_JADE+set}" = set; then
27825   $as_echo_n "(cached) " >&6
27826 else
27827   if test -n "$JADE"; then
27828   ac_cv_prog_JADE="$JADE" # Let the user override the test.
27829 else
27830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27831 for as_dir in $PATH
27832 do
27833   IFS=$as_save_IFS
27834   test -z "$as_dir" && as_dir=.
27835   for ac_exec_ext in '' $ac_executable_extensions; do
27836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27837     ac_cv_prog_JADE="$ac_prog"
27838     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27839     break 2
27840   fi
27841 done
27842 done
27843 IFS=$as_save_IFS
27844
27845 fi
27846 fi
27847 JADE=$ac_cv_prog_JADE
27848 if test -n "$JADE"; then
27849   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
27850 $as_echo "$JADE" >&6; }
27851 else
27852   { $as_echo "$as_me:$LINENO: result: no" >&5
27853 $as_echo "no" >&6; }
27854 fi
27855
27856
27857   test -n "$JADE" && break
27858 done
27859
27860
27861 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
27862 $as_echo_n "checking for DocBook V4.2... " >&6; }
27863 if test "${pgac_cv_check_docbook+set}" = set; then
27864   $as_echo_n "(cached) " >&6
27865 else
27866   cat >conftest.sgml <<EOF
27867 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
27868 <book>
27869  <title>test</title>
27870  <chapter>
27871   <title>random</title>
27872    <sect1>
27873     <title>testsect</title>
27874     <para>text</para>
27875   </sect1>
27876  </chapter>
27877 </book>
27878 EOF
27879
27880 pgac_cv_check_docbook=no
27881
27882 if test -n "$NSGMLS"; then
27883   $NSGMLS -s conftest.sgml 1>&5 2>&1
27884   if test $? -eq 0; then
27885     pgac_cv_check_docbook=yes
27886   fi
27887 fi
27888 rm -f conftest.sgml
27889 fi
27890 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
27891 $as_echo "$pgac_cv_check_docbook" >&6; }
27892
27893 have_docbook=$pgac_cv_check_docbook
27894
27895
27896 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
27897 $as_echo_n "checking for DocBook stylesheets... " >&6; }
27898 if test "${pgac_cv_path_stylesheets+set}" = set; then
27899   $as_echo_n "(cached) " >&6
27900 else
27901   if test -n "$DOCBOOKSTYLE"; then
27902   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
27903 else
27904   for pgac_prefix in /usr /usr/local /opt /sw; do
27905     for pgac_infix in share lib; do
27906       for pgac_postfix in \
27907         sgml/stylesheets/nwalsh-modular \
27908         sgml/stylesheets/docbook \
27909         sgml/stylesheets/dsssl/docbook \
27910         sgml/docbook-dsssl \
27911         sgml/docbook/dsssl/modular \
27912         sgml/docbook/stylesheet/dsssl/modular \
27913         sgml/docbook/dsssl-stylesheets \
27914         sgml/dsssl/docbook-dsssl-nwalsh
27915       do
27916         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
27917         if test -r "$pgac_candidate/html/docbook.dsl" \
27918            && test -r "$pgac_candidate/print/docbook.dsl"
27919         then
27920           pgac_cv_path_stylesheets=$pgac_candidate
27921           break 3
27922         fi
27923       done
27924     done
27925   done
27926 fi
27927 fi
27928
27929 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
27930
27931 if test -n "$DOCBOOKSTYLE"; then
27932   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
27933 $as_echo "$DOCBOOKSTYLE" >&6; }
27934 else
27935   { $as_echo "$as_me:$LINENO: result: no" >&5
27936 $as_echo "no" >&6; }
27937 fi
27938 if test -n "$DOCBOOKSTYLE"; then
27939   for ac_prog in collateindex.pl
27940 do
27941   # Extract the first word of "$ac_prog", so it can be a program name with args.
27942 set dummy $ac_prog; ac_word=$2
27943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27944 $as_echo_n "checking for $ac_word... " >&6; }
27945 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
27946   $as_echo_n "(cached) " >&6
27947 else
27948   case $COLLATEINDEX in
27949   [\\/]* | ?:[\\/]*)
27950   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
27951   ;;
27952   *)
27953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27954 for as_dir in $DOCBOOKSTYLE/bin $PATH
27955 do
27956   IFS=$as_save_IFS
27957   test -z "$as_dir" && as_dir=.
27958   for ac_exec_ext in '' $ac_executable_extensions; do
27959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27960     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
27961     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27962     break 2
27963   fi
27964 done
27965 done
27966 IFS=$as_save_IFS
27967
27968   ;;
27969 esac
27970 fi
27971 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
27972 if test -n "$COLLATEINDEX"; then
27973   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
27974 $as_echo "$COLLATEINDEX" >&6; }
27975 else
27976   { $as_echo "$as_me:$LINENO: result: no" >&5
27977 $as_echo "no" >&6; }
27978 fi
27979
27980
27981   test -n "$COLLATEINDEX" && break
27982 done
27983
27984 else
27985   for ac_prog in collateindex.pl
27986 do
27987   # Extract the first word of "$ac_prog", so it can be a program name with args.
27988 set dummy $ac_prog; ac_word=$2
27989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27990 $as_echo_n "checking for $ac_word... " >&6; }
27991 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
27992   $as_echo_n "(cached) " >&6
27993 else
27994   case $COLLATEINDEX in
27995   [\\/]* | ?:[\\/]*)
27996   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
27997   ;;
27998   *)
27999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28000 for as_dir in $PATH
28001 do
28002   IFS=$as_save_IFS
28003   test -z "$as_dir" && as_dir=.
28004   for ac_exec_ext in '' $ac_executable_extensions; do
28005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28006     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28008     break 2
28009   fi
28010 done
28011 done
28012 IFS=$as_save_IFS
28013
28014   ;;
28015 esac
28016 fi
28017 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28018 if test -n "$COLLATEINDEX"; then
28019   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28020 $as_echo "$COLLATEINDEX" >&6; }
28021 else
28022   { $as_echo "$as_me:$LINENO: result: no" >&5
28023 $as_echo "no" >&6; }
28024 fi
28025
28026
28027   test -n "$COLLATEINDEX" && break
28028 done
28029
28030 fi
28031 for ac_prog in xsltproc
28032 do
28033   # Extract the first word of "$ac_prog", so it can be a program name with args.
28034 set dummy $ac_prog; ac_word=$2
28035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28036 $as_echo_n "checking for $ac_word... " >&6; }
28037 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28038   $as_echo_n "(cached) " >&6
28039 else
28040   if test -n "$XSLTPROC"; then
28041   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28042 else
28043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28044 for as_dir in $PATH
28045 do
28046   IFS=$as_save_IFS
28047   test -z "$as_dir" && as_dir=.
28048   for ac_exec_ext in '' $ac_executable_extensions; do
28049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28050     ac_cv_prog_XSLTPROC="$ac_prog"
28051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28052     break 2
28053   fi
28054 done
28055 done
28056 IFS=$as_save_IFS
28057
28058 fi
28059 fi
28060 XSLTPROC=$ac_cv_prog_XSLTPROC
28061 if test -n "$XSLTPROC"; then
28062   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28063 $as_echo "$XSLTPROC" >&6; }
28064 else
28065   { $as_echo "$as_me:$LINENO: result: no" >&5
28066 $as_echo "no" >&6; }
28067 fi
28068
28069
28070   test -n "$XSLTPROC" && break
28071 done
28072
28073 for ac_prog in osx sgml2xml sx
28074 do
28075   # Extract the first word of "$ac_prog", so it can be a program name with args.
28076 set dummy $ac_prog; ac_word=$2
28077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28078 $as_echo_n "checking for $ac_word... " >&6; }
28079 if test "${ac_cv_prog_OSX+set}" = set; then
28080   $as_echo_n "(cached) " >&6
28081 else
28082   if test -n "$OSX"; then
28083   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28084 else
28085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28086 for as_dir in $PATH
28087 do
28088   IFS=$as_save_IFS
28089   test -z "$as_dir" && as_dir=.
28090   for ac_exec_ext in '' $ac_executable_extensions; do
28091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28092     ac_cv_prog_OSX="$ac_prog"
28093     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28094     break 2
28095   fi
28096 done
28097 done
28098 IFS=$as_save_IFS
28099
28100 fi
28101 fi
28102 OSX=$ac_cv_prog_OSX
28103 if test -n "$OSX"; then
28104   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28105 $as_echo "$OSX" >&6; }
28106 else
28107   { $as_echo "$as_me:$LINENO: result: no" >&5
28108 $as_echo "no" >&6; }
28109 fi
28110
28111
28112   test -n "$OSX" && break
28113 done
28114
28115
28116 # Thread testing
28117
28118 # We have to run the thread test near the end so we have all our symbols
28119 # defined.  Cross compiling throws a warning.
28120 #
28121 if test "$enable_thread_safety_force" = yes; then
28122 if test "$PORTNAME" != "win32"
28123 then
28124   { $as_echo "$as_me:$LINENO: WARNING:
28125 *** Skipping thread test program.  --enable-thread-safety-force was used.
28126 *** Run the program in src/test/thread on the your machine and add proper
28127 *** locking function calls to your applications to guarantee thread safety.
28128 " >&5
28129 $as_echo "$as_me: WARNING:
28130 *** Skipping thread test program.  --enable-thread-safety-force was used.
28131 *** Run the program in src/test/thread on the your machine and add proper
28132 *** locking function calls to your applications to guarantee thread safety.
28133 " >&2;}
28134 else
28135 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28136 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28137 fi
28138 elif test "$enable_thread_safety" = yes; then
28139 if test "$PORTNAME" != "win32"
28140 then
28141 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28142 $as_echo_n "checking thread safety of required library functions... " >&6; }
28143
28144 _CFLAGS="$CFLAGS"
28145 _LIBS="$LIBS"
28146 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28147 LIBS="$LIBS $PTHREAD_LIBS"
28148 if test "$cross_compiling" = yes; then
28149   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28150 $as_echo "maybe" >&6; }
28151   { $as_echo "$as_me:$LINENO: WARNING:
28152 *** Skipping thread test program because of cross-compile build.
28153 *** Run the program in src/test/thread on the target machine.
28154 " >&5
28155 $as_echo "$as_me: WARNING:
28156 *** Skipping thread test program because of cross-compile build.
28157 *** Run the program in src/test/thread on the target machine.
28158 " >&2;}
28159 else
28160   cat >conftest.$ac_ext <<_ACEOF
28161 /* confdefs.h.  */
28162 _ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h.  */
28166 #include "$srcdir/src/test/thread/thread_test.c"
28167 _ACEOF
28168 rm -f conftest$ac_exeext
28169 if { (ac_try="$ac_link"
28170 case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28175 $as_echo "$ac_try_echo") >&5
28176   (eval "$ac_link") 2>&5
28177   ac_status=$?
28178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180   { (case "(($ac_try" in
28181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182   *) ac_try_echo=$ac_try;;
28183 esac
28184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185 $as_echo "$ac_try_echo") >&5
28186   (eval "$ac_try") 2>&5
28187   ac_status=$?
28188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); }; }; then
28190   { $as_echo "$as_me:$LINENO: result: yes" >&5
28191 $as_echo "yes" >&6; }
28192 else
28193   $as_echo "$as_me: program exited with status $ac_status" >&5
28194 $as_echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28196
28197 ( exit $ac_status )
28198 { $as_echo "$as_me:$LINENO: result: no" >&5
28199 $as_echo "no" >&6; }
28200   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28201 This platform is not thread-safe.  Check the file 'config.log' for the
28202 exact reason.
28203
28204 You can use the configure option --enable-thread-safety-force to force
28205 threads to be enabled.  But you must then run the program in
28206 src/test/thread and add locking function calls to your applications to
28207 guarantee thread safety." >&5
28208 $as_echo "$as_me: error: thread test program failed
28209 This platform is not thread-safe.  Check the file 'config.log' for the
28210 exact reason.
28211
28212 You can use the configure option --enable-thread-safety-force to force
28213 threads to be enabled.  But you must then run the program in
28214 src/test/thread and add locking function calls to your applications to
28215 guarantee thread safety." >&2;}
28216    { (exit 1); exit 1; }; }
28217 fi
28218 rm -rf conftest.dSYM
28219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28220 fi
28221
28222
28223 CFLAGS="$_CFLAGS"
28224 LIBS="$_LIBS"
28225 else
28226 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28227 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28228 fi
28229 fi
28230
28231 # If compiler will take -Wl,--as-needed (or various platform-specific
28232 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28233 # trying to filter LIBS to the minimum for each executable.
28234 # (Note that shared library links won't use this switch, though.)
28235 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28236 # libreadline; therefore we postpone testing it until we know what library
28237 # dependencies readline has.  The test code will try to link with $LIBS.
28238 if test "$with_readline" = yes; then
28239   link_test_func=readline
28240 else
28241   link_test_func=exit
28242 fi
28243
28244 if test "$PORTNAME" = "darwin"; then
28245   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28246 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28247 pgac_save_LDFLAGS=$LDFLAGS
28248 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28249 if test "$cross_compiling" = yes; then
28250   LDFLAGS="$pgac_save_LDFLAGS"
28251                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28252 $as_echo "assuming no" >&6; }
28253 else
28254   cat >conftest.$ac_ext <<_ACEOF
28255 /* confdefs.h.  */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h.  */
28260 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28261 int
28262 main ()
28263 {
28264
28265   ;
28266   return 0;
28267 }
28268 _ACEOF
28269 rm -f conftest$ac_exeext
28270 if { (ac_try="$ac_link"
28271 case "(($ac_try" in
28272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273   *) ac_try_echo=$ac_try;;
28274 esac
28275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28276 $as_echo "$ac_try_echo") >&5
28277   (eval "$ac_link") 2>&5
28278   ac_status=$?
28279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28281   { (case "(($ac_try" in
28282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283   *) ac_try_echo=$ac_try;;
28284 esac
28285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28286 $as_echo "$ac_try_echo") >&5
28287   (eval "$ac_try") 2>&5
28288   ac_status=$?
28289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; }; then
28291   { $as_echo "$as_me:$LINENO: result: yes" >&5
28292 $as_echo "yes" >&6; }
28293 else
28294   $as_echo "$as_me: program exited with status $ac_status" >&5
28295 $as_echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28297
28298 ( exit $ac_status )
28299 LDFLAGS="$pgac_save_LDFLAGS"
28300                { $as_echo "$as_me:$LINENO: result: no" >&5
28301 $as_echo "no" >&6; }
28302 fi
28303 rm -rf conftest.dSYM
28304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28305 fi
28306
28307
28308
28309 elif test "$PORTNAME" = "openbsd"; then
28310   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28311 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28312 pgac_save_LDFLAGS=$LDFLAGS
28313 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28314 if test "$cross_compiling" = yes; then
28315   LDFLAGS="$pgac_save_LDFLAGS"
28316                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28317 $as_echo "assuming no" >&6; }
28318 else
28319   cat >conftest.$ac_ext <<_ACEOF
28320 /* confdefs.h.  */
28321 _ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h.  */
28325 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28326 int
28327 main ()
28328 {
28329
28330   ;
28331   return 0;
28332 }
28333 _ACEOF
28334 rm -f conftest$ac_exeext
28335 if { (ac_try="$ac_link"
28336 case "(($ac_try" in
28337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338   *) ac_try_echo=$ac_try;;
28339 esac
28340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28341 $as_echo "$ac_try_echo") >&5
28342   (eval "$ac_link") 2>&5
28343   ac_status=$?
28344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28346   { (case "(($ac_try" in
28347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348   *) ac_try_echo=$ac_try;;
28349 esac
28350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28351 $as_echo "$ac_try_echo") >&5
28352   (eval "$ac_try") 2>&5
28353   ac_status=$?
28354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); }; }; then
28356   { $as_echo "$as_me:$LINENO: result: yes" >&5
28357 $as_echo "yes" >&6; }
28358 else
28359   $as_echo "$as_me: program exited with status $ac_status" >&5
28360 $as_echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28362
28363 ( exit $ac_status )
28364 LDFLAGS="$pgac_save_LDFLAGS"
28365                { $as_echo "$as_me:$LINENO: result: no" >&5
28366 $as_echo "no" >&6; }
28367 fi
28368 rm -rf conftest.dSYM
28369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28370 fi
28371
28372
28373
28374 else
28375   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28376 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28377 pgac_save_LDFLAGS=$LDFLAGS
28378 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28379 if test "$cross_compiling" = yes; then
28380   LDFLAGS="$pgac_save_LDFLAGS"
28381                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28382 $as_echo "assuming no" >&6; }
28383 else
28384   cat >conftest.$ac_ext <<_ACEOF
28385 /* confdefs.h.  */
28386 _ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h.  */
28390 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28391 int
28392 main ()
28393 {
28394
28395   ;
28396   return 0;
28397 }
28398 _ACEOF
28399 rm -f conftest$ac_exeext
28400 if { (ac_try="$ac_link"
28401 case "(($ac_try" in
28402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403   *) ac_try_echo=$ac_try;;
28404 esac
28405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28406 $as_echo "$ac_try_echo") >&5
28407   (eval "$ac_link") 2>&5
28408   ac_status=$?
28409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28411   { (case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28416 $as_echo "$ac_try_echo") >&5
28417   (eval "$ac_try") 2>&5
28418   ac_status=$?
28419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; }; then
28421   { $as_echo "$as_me:$LINENO: result: yes" >&5
28422 $as_echo "yes" >&6; }
28423 else
28424   $as_echo "$as_me: program exited with status $ac_status" >&5
28425 $as_echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428 ( exit $ac_status )
28429 LDFLAGS="$pgac_save_LDFLAGS"
28430                { $as_echo "$as_me:$LINENO: result: no" >&5
28431 $as_echo "no" >&6; }
28432 fi
28433 rm -rf conftest.dSYM
28434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28435 fi
28436
28437
28438
28439 fi
28440
28441
28442 # Begin output steps
28443
28444 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28445 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28446 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28447 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28448 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28449 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28450
28451 # Create compiler version string
28452 if test x"$GCC" = x"yes" ; then
28453   cc_string="GCC `${CC} --version | sed q`"
28454 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28455   cc_string=`${CC} -V 2>&1 | sed q`
28456 else
28457   cc_string=$CC
28458 fi
28459
28460
28461 cat >>confdefs.h <<_ACEOF
28462 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28463 _ACEOF
28464
28465
28466 # Supply a numeric version string for use by 3rd party add-ons
28467 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28468 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28469 tr '.' '        ' |
28470 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28471
28472 cat >>confdefs.h <<_ACEOF
28473 #define PG_VERSION_NUM $PG_VERSION_NUM
28474 _ACEOF
28475
28476
28477
28478 # prepare build tree if outside source tree
28479 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28480 # Note 2: /bin/pwd might be better than shell's built-in at getting
28481 #         a symlink-free name.
28482 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28483   vpath_build=no
28484 else
28485   vpath_build=yes
28486   if test "$no_create" != yes; then
28487     $as_echo_n "preparing build tree... " >&6
28488     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28489     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28490       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28491 $as_echo "$as_me: error: failed" >&2;}
28492    { (exit 1); exit 1; }; }
28493     { $as_echo "$as_me:$LINENO: result: done" >&5
28494 $as_echo "done" >&6; }
28495   fi
28496 fi
28497
28498
28499
28500 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28501
28502
28503 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
28504
28505
28506 if test "$PORTNAME" = "win32"; then
28507 ac_config_commands="$ac_config_commands check_win32_symlinks"
28508
28509 fi
28510
28511 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28512
28513
28514 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28515
28516
28517 cat >confcache <<\_ACEOF
28518 # This file is a shell script that caches the results of configure
28519 # tests run on this system so they can be shared between configure
28520 # scripts and configure runs, see configure's option --config-cache.
28521 # It is not useful on other systems.  If it contains results you don't
28522 # want to keep, you may remove or edit it.
28523 #
28524 # config.status only pays attention to the cache file if you give it
28525 # the --recheck option to rerun configure.
28526 #
28527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28529 # following values.
28530
28531 _ACEOF
28532
28533 # The following way of writing the cache mishandles newlines in values,
28534 # but we know of no workaround that is simple, portable, and efficient.
28535 # So, we kill variables containing newlines.
28536 # Ultrix sh set writes to stderr and can't be redirected directly,
28537 # and sets the high bit in the cache file unless we assign to the vars.
28538 (
28539   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28540     eval ac_val=\$$ac_var
28541     case $ac_val in #(
28542     *${as_nl}*)
28543       case $ac_var in #(
28544       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28546       esac
28547       case $ac_var in #(
28548       _ | IFS | as_nl) ;; #(
28549       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28550       *) $as_unset $ac_var ;;
28551       esac ;;
28552     esac
28553   done
28554
28555   (set) 2>&1 |
28556     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28557     *${as_nl}ac_space=\ *)
28558       # `set' does not quote correctly, so add quotes (double-quote
28559       # substitution turns \\\\ into \\, and sed turns \\ into \).
28560       sed -n \
28561         "s/'/'\\\\''/g;
28562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28563       ;; #(
28564     *)
28565       # `set' quotes correctly as required by POSIX, so do not add quotes.
28566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28567       ;;
28568     esac |
28569     sort
28570 ) |
28571   sed '
28572      /^ac_cv_env_/b end
28573      t clear
28574      :clear
28575      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28576      t end
28577      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28578      :end' >>confcache
28579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28580   if test -w "$cache_file"; then
28581     test "x$cache_file" != "x/dev/null" &&
28582       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28583 $as_echo "$as_me: updating cache $cache_file" >&6;}
28584     cat confcache >$cache_file
28585   else
28586     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28588   fi
28589 fi
28590 rm -f confcache
28591
28592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28593 # Let make expand exec_prefix.
28594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28595
28596 DEFS=-DHAVE_CONFIG_H
28597
28598 ac_libobjs=
28599 ac_ltlibobjs=
28600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28601   # 1. Remove the extension, and $U if already installed.
28602   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28603   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28604   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28605   #    will be set to the directory where LIBOBJS objects are built.
28606   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28607   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28608 done
28609 LIBOBJS=$ac_libobjs
28610
28611 LTLIBOBJS=$ac_ltlibobjs
28612
28613
28614
28615
28616 : ${CONFIG_STATUS=./config.status}
28617 ac_write_fail=0
28618 ac_clean_files_save=$ac_clean_files
28619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28620 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28622 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28623 #! $SHELL
28624 # Generated by $as_me.
28625 # Run this file to recreate the current configuration.
28626 # Compiler output produced by configure, useful for debugging
28627 # configure, is in config.log if it exists.
28628
28629 debug=false
28630 ac_cs_recheck=false
28631 ac_cs_silent=false
28632 SHELL=\${CONFIG_SHELL-$SHELL}
28633 _ACEOF
28634
28635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28636 ## --------------------- ##
28637 ## M4sh Initialization.  ##
28638 ## --------------------- ##
28639
28640 # Be more Bourne compatible
28641 DUALCASE=1; export DUALCASE # for MKS sh
28642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28643   emulate sh
28644   NULLCMD=:
28645   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28646   # is contrary to our usage.  Disable this feature.
28647   alias -g '${1+"$@"}'='"$@"'
28648   setopt NO_GLOB_SUBST
28649 else
28650   case `(set -o) 2>/dev/null` in
28651   *posix*) set -o posix ;;
28652 esac
28653
28654 fi
28655
28656
28657
28658
28659 # PATH needs CR
28660 # Avoid depending upon Character Ranges.
28661 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28662 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28663 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28664 as_cr_digits='0123456789'
28665 as_cr_alnum=$as_cr_Letters$as_cr_digits
28666
28667 as_nl='
28668 '
28669 export as_nl
28670 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28671 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28674 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28675   as_echo='printf %s\n'
28676   as_echo_n='printf %s'
28677 else
28678   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28679     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28680     as_echo_n='/usr/ucb/echo -n'
28681   else
28682     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28683     as_echo_n_body='eval
28684       arg=$1;
28685       case $arg in
28686       *"$as_nl"*)
28687         expr "X$arg" : "X\\(.*\\)$as_nl";
28688         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28689       esac;
28690       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28691     '
28692     export as_echo_n_body
28693     as_echo_n='sh -c $as_echo_n_body as_echo'
28694   fi
28695   export as_echo_body
28696   as_echo='sh -c $as_echo_body as_echo'
28697 fi
28698
28699 # The user is always right.
28700 if test "${PATH_SEPARATOR+set}" != set; then
28701   PATH_SEPARATOR=:
28702   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28703     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28704       PATH_SEPARATOR=';'
28705   }
28706 fi
28707
28708 # Support unset when possible.
28709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28710   as_unset=unset
28711 else
28712   as_unset=false
28713 fi
28714
28715
28716 # IFS
28717 # We need space, tab and new line, in precisely that order.  Quoting is
28718 # there to prevent editors from complaining about space-tab.
28719 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28720 # splitting by setting IFS to empty value.)
28721 IFS=" ""        $as_nl"
28722
28723 # Find who we are.  Look in the path if we contain no directory separator.
28724 case $0 in
28725   *[\\/]* ) as_myself=$0 ;;
28726   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28727 for as_dir in $PATH
28728 do
28729   IFS=$as_save_IFS
28730   test -z "$as_dir" && as_dir=.
28731   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28732 done
28733 IFS=$as_save_IFS
28734
28735      ;;
28736 esac
28737 # We did not find ourselves, most probably we were run as `sh COMMAND'
28738 # in which case we are not to be found in the path.
28739 if test "x$as_myself" = x; then
28740   as_myself=$0
28741 fi
28742 if test ! -f "$as_myself"; then
28743   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28744   { (exit 1); exit 1; }
28745 fi
28746
28747 # Work around bugs in pre-3.0 UWIN ksh.
28748 for as_var in ENV MAIL MAILPATH
28749 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28750 done
28751 PS1='$ '
28752 PS2='> '
28753 PS4='+ '
28754
28755 # NLS nuisances.
28756 LC_ALL=C
28757 export LC_ALL
28758 LANGUAGE=C
28759 export LANGUAGE
28760
28761 # Required to use basename.
28762 if expr a : '\(a\)' >/dev/null 2>&1 &&
28763    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28764   as_expr=expr
28765 else
28766   as_expr=false
28767 fi
28768
28769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28770   as_basename=basename
28771 else
28772   as_basename=false
28773 fi
28774
28775
28776 # Name of the executable.
28777 as_me=`$as_basename -- "$0" ||
28778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28779          X"$0" : 'X\(//\)$' \| \
28780          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28781 $as_echo X/"$0" |
28782     sed '/^.*\/\([^/][^/]*\)\/*$/{
28783             s//\1/
28784             q
28785           }
28786           /^X\/\(\/\/\)$/{
28787             s//\1/
28788             q
28789           }
28790           /^X\/\(\/\).*/{
28791             s//\1/
28792             q
28793           }
28794           s/.*/./; q'`
28795
28796 # CDPATH.
28797 $as_unset CDPATH
28798
28799
28800
28801   as_lineno_1=$LINENO
28802   as_lineno_2=$LINENO
28803   test "x$as_lineno_1" != "x$as_lineno_2" &&
28804   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28805
28806   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28807   # uniformly replaced by the line number.  The first 'sed' inserts a
28808   # line-number line after each line using $LINENO; the second 'sed'
28809   # does the real work.  The second script uses 'N' to pair each
28810   # line-number line with the line containing $LINENO, and appends
28811   # trailing '-' during substitution so that $LINENO is not a special
28812   # case at line end.
28813   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28814   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28815   # E. McMahon (1931-1989) for sed's syntax.  :-)
28816   sed -n '
28817     p
28818     /[$]LINENO/=
28819   ' <$as_myself |
28820     sed '
28821       s/[$]LINENO.*/&-/
28822       t lineno
28823       b
28824       :lineno
28825       N
28826       :loop
28827       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28828       t loop
28829       s/-\n.*//
28830     ' >$as_me.lineno &&
28831   chmod +x "$as_me.lineno" ||
28832     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28833    { (exit 1); exit 1; }; }
28834
28835   # Don't try to exec as it changes $[0], causing all sort of problems
28836   # (the dirname of $[0] is not the place where we might find the
28837   # original and so on.  Autoconf is especially sensitive to this).
28838   . "./$as_me.lineno"
28839   # Exit status is that of the last command.
28840   exit
28841 }
28842
28843
28844 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28845   as_dirname=dirname
28846 else
28847   as_dirname=false
28848 fi
28849
28850 ECHO_C= ECHO_N= ECHO_T=
28851 case `echo -n x` in
28852 -n*)
28853   case `echo 'x\c'` in
28854   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28855   *)   ECHO_C='\c';;
28856   esac;;
28857 *)
28858   ECHO_N='-n';;
28859 esac
28860 if expr a : '\(a\)' >/dev/null 2>&1 &&
28861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28862   as_expr=expr
28863 else
28864   as_expr=false
28865 fi
28866
28867 rm -f conf$$ conf$$.exe conf$$.file
28868 if test -d conf$$.dir; then
28869   rm -f conf$$.dir/conf$$.file
28870 else
28871   rm -f conf$$.dir
28872   mkdir conf$$.dir 2>/dev/null
28873 fi
28874 if (echo >conf$$.file) 2>/dev/null; then
28875   if ln -s conf$$.file conf$$ 2>/dev/null; then
28876     as_ln_s='ln -s'
28877     # ... but there are two gotchas:
28878     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28879     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28880     # In both cases, we have to default to `cp -p'.
28881     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28882       as_ln_s='cp -p'
28883   elif ln conf$$.file conf$$ 2>/dev/null; then
28884     as_ln_s=ln
28885   else
28886     as_ln_s='cp -p'
28887   fi
28888 else
28889   as_ln_s='cp -p'
28890 fi
28891 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28892 rmdir conf$$.dir 2>/dev/null
28893
28894 if mkdir -p . 2>/dev/null; then
28895   as_mkdir_p=:
28896 else
28897   test -d ./-p && rmdir ./-p
28898   as_mkdir_p=false
28899 fi
28900
28901 if test -x / >/dev/null 2>&1; then
28902   as_test_x='test -x'
28903 else
28904   if ls -dL / >/dev/null 2>&1; then
28905     as_ls_L_option=L
28906   else
28907     as_ls_L_option=
28908   fi
28909   as_test_x='
28910     eval sh -c '\''
28911       if test -d "$1"; then
28912         test -d "$1/.";
28913       else
28914         case $1 in
28915         -*)set "./$1";;
28916         esac;
28917         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28918         ???[sx]*):;;*)false;;esac;fi
28919     '\'' sh
28920   '
28921 fi
28922 as_executable_p=$as_test_x
28923
28924 # Sed expression to map a string onto a valid CPP name.
28925 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28926
28927 # Sed expression to map a string onto a valid variable name.
28928 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28929
28930
28931 exec 6>&1
28932
28933 # Save the log message, to keep $[0] and so on meaningful, and to
28934 # report actual input values of CONFIG_FILES etc. instead of their
28935 # values after options handling.
28936 ac_log="
28937 This file was extended by PostgreSQL $as_me 8.5devel, which was
28938 generated by GNU Autoconf 2.63.  Invocation command line was
28939
28940   CONFIG_FILES    = $CONFIG_FILES
28941   CONFIG_HEADERS  = $CONFIG_HEADERS
28942   CONFIG_LINKS    = $CONFIG_LINKS
28943   CONFIG_COMMANDS = $CONFIG_COMMANDS
28944   $ $0 $@
28945
28946 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28947 "
28948
28949 _ACEOF
28950
28951 case $ac_config_files in *"
28952 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28953 esac
28954
28955 case $ac_config_headers in *"
28956 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28957 esac
28958
28959
28960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28961 # Files that config.status was made for.
28962 config_files="$ac_config_files"
28963 config_headers="$ac_config_headers"
28964 config_links="$ac_config_links"
28965 config_commands="$ac_config_commands"
28966
28967 _ACEOF
28968
28969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28970 ac_cs_usage="\
28971 \`$as_me' instantiates files from templates according to the
28972 current configuration.
28973
28974 Usage: $0 [OPTION]... [FILE]...
28975
28976   -h, --help       print this help, then exit
28977   -V, --version    print version number and configuration settings, then exit
28978   -q, --quiet, --silent
28979                    do not print progress messages
28980   -d, --debug      don't remove temporary files
28981       --recheck    update $as_me by reconfiguring in the same conditions
28982       --file=FILE[:TEMPLATE]
28983                    instantiate the configuration file FILE
28984       --header=FILE[:TEMPLATE]
28985                    instantiate the configuration header FILE
28986
28987 Configuration files:
28988 $config_files
28989
28990 Configuration headers:
28991 $config_headers
28992
28993 Configuration links:
28994 $config_links
28995
28996 Configuration commands:
28997 $config_commands
28998
28999 Report bugs to <bug-autoconf@gnu.org>."
29000
29001 _ACEOF
29002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29003 ac_cs_version="\\
29004 PostgreSQL config.status 8.5devel
29005 configured by $0, generated by GNU Autoconf 2.63,
29006   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29007
29008 Copyright (C) 2008 Free Software Foundation, Inc.
29009 This config.status script is free software; the Free Software Foundation
29010 gives unlimited permission to copy, distribute and modify it."
29011
29012 ac_pwd='$ac_pwd'
29013 srcdir='$srcdir'
29014 AWK='$AWK'
29015 test -n "\$AWK" || AWK=awk
29016 _ACEOF
29017
29018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29019 # The default lists apply if the user does not specify any file.
29020 ac_need_defaults=:
29021 while test $# != 0
29022 do
29023   case $1 in
29024   --*=*)
29025     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29026     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29027     ac_shift=:
29028     ;;
29029   *)
29030     ac_option=$1
29031     ac_optarg=$2
29032     ac_shift=shift
29033     ;;
29034   esac
29035
29036   case $ac_option in
29037   # Handling of the options.
29038   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29039     ac_cs_recheck=: ;;
29040   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29041     $as_echo "$ac_cs_version"; exit ;;
29042   --debug | --debu | --deb | --de | --d | -d )
29043     debug=: ;;
29044   --file | --fil | --fi | --f )
29045     $ac_shift
29046     case $ac_optarg in
29047     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29048     esac
29049     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29050     ac_need_defaults=false;;
29051   --header | --heade | --head | --hea )
29052     $ac_shift
29053     case $ac_optarg in
29054     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29055     esac
29056     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29057     ac_need_defaults=false;;
29058   --he | --h)
29059     # Conflict between --help and --header
29060     { $as_echo "$as_me: error: ambiguous option: $1
29061 Try \`$0 --help' for more information." >&2
29062    { (exit 1); exit 1; }; };;
29063   --help | --hel | -h )
29064     $as_echo "$ac_cs_usage"; exit ;;
29065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29066   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29067     ac_cs_silent=: ;;
29068
29069   # This is an error.
29070   -*) { $as_echo "$as_me: error: unrecognized option: $1
29071 Try \`$0 --help' for more information." >&2
29072    { (exit 1); exit 1; }; } ;;
29073
29074   *) ac_config_targets="$ac_config_targets $1"
29075      ac_need_defaults=false ;;
29076
29077   esac
29078   shift
29079 done
29080
29081 ac_configure_extra_args=
29082
29083 if $ac_cs_silent; then
29084   exec 6>/dev/null
29085   ac_configure_extra_args="$ac_configure_extra_args --silent"
29086 fi
29087
29088 _ACEOF
29089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29090 if \$ac_cs_recheck; then
29091   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29092   shift
29093   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29094   CONFIG_SHELL='$SHELL'
29095   export CONFIG_SHELL
29096   exec "\$@"
29097 fi
29098
29099 _ACEOF
29100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29101 exec 5>>config.log
29102 {
29103   echo
29104   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29105 ## Running $as_me. ##
29106 _ASBOX
29107   $as_echo "$ac_log"
29108 } >&5
29109
29110 _ACEOF
29111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29112 _ACEOF
29113
29114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29115
29116 # Handling of arguments.
29117 for ac_config_target in $ac_config_targets
29118 do
29119   case $ac_config_target in
29120     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29121     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29122     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29123     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29124     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29125     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29126     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29127     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29128     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29129     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29130     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29131     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29132
29133   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29134 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29135    { (exit 1); exit 1; }; };;
29136   esac
29137 done
29138
29139
29140 # If the user did not use the arguments to specify the items to instantiate,
29141 # then the envvar interface is used.  Set only those that are not.
29142 # We use the long form for the default assignment because of an extremely
29143 # bizarre bug on SunOS 4.1.3.
29144 if $ac_need_defaults; then
29145   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29146   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29147   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29148   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29149 fi
29150
29151 # Have a temporary directory for convenience.  Make it in the build tree
29152 # simply because there is no reason against having it here, and in addition,
29153 # creating and moving files from /tmp can sometimes cause problems.
29154 # Hook for its removal unless debugging.
29155 # Note that there is a small window in which the directory will not be cleaned:
29156 # after its creation but before its name has been assigned to `$tmp'.
29157 $debug ||
29158 {
29159   tmp=
29160   trap 'exit_status=$?
29161   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29162 ' 0
29163   trap '{ (exit 1); exit 1; }' 1 2 13 15
29164 }
29165 # Create a (secure) tmp directory for tmp files.
29166
29167 {
29168   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29169   test -n "$tmp" && test -d "$tmp"
29170 }  ||
29171 {
29172   tmp=./conf$$-$RANDOM
29173   (umask 077 && mkdir "$tmp")
29174 } ||
29175 {
29176    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29177    { (exit 1); exit 1; }
29178 }
29179
29180 # Set up the scripts for CONFIG_FILES section.
29181 # No need to generate them if there are no CONFIG_FILES.
29182 # This happens for instance with `./config.status config.h'.
29183 if test -n "$CONFIG_FILES"; then
29184
29185
29186 ac_cr='\r'
29187 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29188 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29189   ac_cs_awk_cr='\\r'
29190 else
29191   ac_cs_awk_cr=$ac_cr
29192 fi
29193
29194 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29195 _ACEOF
29196
29197
29198 {
29199   echo "cat >conf$$subs.awk <<_ACEOF" &&
29200   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29201   echo "_ACEOF"
29202 } >conf$$subs.sh ||
29203   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29204 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29205    { (exit 1); exit 1; }; }
29206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29207 ac_delim='%!_!# '
29208 for ac_last_try in false false false false false :; do
29209   . ./conf$$subs.sh ||
29210     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29211 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29212    { (exit 1); exit 1; }; }
29213
29214   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29215   if test $ac_delim_n = $ac_delim_num; then
29216     break
29217   elif $ac_last_try; then
29218     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29219 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29220    { (exit 1); exit 1; }; }
29221   else
29222     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29223   fi
29224 done
29225 rm -f conf$$subs.sh
29226
29227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29228 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29229 _ACEOF
29230 sed -n '
29231 h
29232 s/^/S["/; s/!.*/"]=/
29233 p
29234 g
29235 s/^[^!]*!//
29236 :repl
29237 t repl
29238 s/'"$ac_delim"'$//
29239 t delim
29240 :nl
29241 h
29242 s/\(.\{148\}\).*/\1/
29243 t more1
29244 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29245 p
29246 n
29247 b repl
29248 :more1
29249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29250 p
29251 g
29252 s/.\{148\}//
29253 t nl
29254 :delim
29255 h
29256 s/\(.\{148\}\).*/\1/
29257 t more2
29258 s/["\\]/\\&/g; s/^/"/; s/$/"/
29259 p
29260 b
29261 :more2
29262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29263 p
29264 g
29265 s/.\{148\}//
29266 t delim
29267 ' <conf$$subs.awk | sed '
29268 /^[^""]/{
29269   N
29270   s/\n//
29271 }
29272 ' >>$CONFIG_STATUS || ac_write_fail=1
29273 rm -f conf$$subs.awk
29274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29275 _ACAWK
29276 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29277   for (key in S) S_is_set[key] = 1
29278   FS = "\a"
29279
29280 }
29281 {
29282   line = $ 0
29283   nfields = split(line, field, "@")
29284   substed = 0
29285   len = length(field[1])
29286   for (i = 2; i < nfields; i++) {
29287     key = field[i]
29288     keylen = length(key)
29289     if (S_is_set[key]) {
29290       value = S[key]
29291       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29292       len += length(value) + length(field[++i])
29293       substed = 1
29294     } else
29295       len += 1 + keylen
29296   }
29297
29298   print line
29299 }
29300
29301 _ACAWK
29302 _ACEOF
29303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29304 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29305   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29306 else
29307   cat
29308 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29309   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29310 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29311    { (exit 1); exit 1; }; }
29312 _ACEOF
29313
29314 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29315 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29316 # trailing colons and then remove the whole line if VPATH becomes empty
29317 # (actually we leave an empty line to preserve line numbers).
29318 if test "x$srcdir" = x.; then
29319   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29320 s/:*\$(srcdir):*/:/
29321 s/:*\${srcdir}:*/:/
29322 s/:*@srcdir@:*/:/
29323 s/^\([^=]*=[     ]*\):*/\1/
29324 s/:*$//
29325 s/^[^=]*=[       ]*$//
29326 }'
29327 fi
29328
29329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29330 fi # test -n "$CONFIG_FILES"
29331
29332 # Set up the scripts for CONFIG_HEADERS section.
29333 # No need to generate them if there are no CONFIG_HEADERS.
29334 # This happens for instance with `./config.status Makefile'.
29335 if test -n "$CONFIG_HEADERS"; then
29336 cat >"$tmp/defines.awk" <<\_ACAWK ||
29337 BEGIN {
29338 _ACEOF
29339
29340 # Transform confdefs.h into an awk script `defines.awk', embedded as
29341 # here-document in config.status, that substitutes the proper values into
29342 # config.h.in to produce config.h.
29343
29344 # Create a delimiter string that does not exist in confdefs.h, to ease
29345 # handling of long lines.
29346 ac_delim='%!_!# '
29347 for ac_last_try in false false :; do
29348   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29349   if test -z "$ac_t"; then
29350     break
29351   elif $ac_last_try; then
29352     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29353 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29354    { (exit 1); exit 1; }; }
29355   else
29356     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29357   fi
29358 done
29359
29360 # For the awk script, D is an array of macro values keyed by name,
29361 # likewise P contains macro parameters if any.  Preserve backslash
29362 # newline sequences.
29363
29364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29365 sed -n '
29366 s/.\{148\}/&'"$ac_delim"'/g
29367 t rset
29368 :rset
29369 s/^[     ]*#[    ]*define[       ][      ]*/ /
29370 t def
29371 d
29372 :def
29373 s/\\$//
29374 t bsnl
29375 s/["\\]/\\&/g
29376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29377 D["\1"]=" \3"/p
29378 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29379 d
29380 :bsnl
29381 s/["\\]/\\&/g
29382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29383 D["\1"]=" \3\\\\\\n"\\/p
29384 t cont
29385 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29386 t cont
29387 d
29388 :cont
29389 n
29390 s/.\{148\}/&'"$ac_delim"'/g
29391 t clear
29392 :clear
29393 s/\\$//
29394 t bsnlc
29395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29396 d
29397 :bsnlc
29398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29399 b cont
29400 ' <confdefs.h | sed '
29401 s/'"$ac_delim"'/"\\\
29402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29403
29404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29405   for (key in D) D_is_set[key] = 1
29406   FS = "\a"
29407 }
29408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29409   line = \$ 0
29410   split(line, arg, " ")
29411   if (arg[1] == "#") {
29412     defundef = arg[2]
29413     mac1 = arg[3]
29414   } else {
29415     defundef = substr(arg[1], 2)
29416     mac1 = arg[2]
29417   }
29418   split(mac1, mac2, "(") #)
29419   macro = mac2[1]
29420   prefix = substr(line, 1, index(line, defundef) - 1)
29421   if (D_is_set[macro]) {
29422     # Preserve the white space surrounding the "#".
29423     print prefix "define", macro P[macro] D[macro]
29424     next
29425   } else {
29426     # Replace #undef with comments.  This is necessary, for example,
29427     # in the case of _POSIX_SOURCE, which is predefined and required
29428     # on some systems where configure will not decide to define it.
29429     if (defundef == "undef") {
29430       print "/*", prefix defundef, macro, "*/"
29431       next
29432     }
29433   }
29434 }
29435 { print }
29436 _ACAWK
29437 _ACEOF
29438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29439   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29440 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29441    { (exit 1); exit 1; }; }
29442 fi # test -n "$CONFIG_HEADERS"
29443
29444
29445 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29446 shift
29447 for ac_tag
29448 do
29449   case $ac_tag in
29450   :[FHLC]) ac_mode=$ac_tag; continue;;
29451   esac
29452   case $ac_mode$ac_tag in
29453   :[FHL]*:*);;
29454   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29455 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29456    { (exit 1); exit 1; }; };;
29457   :[FH]-) ac_tag=-:-;;
29458   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29459   esac
29460   ac_save_IFS=$IFS
29461   IFS=:
29462   set x $ac_tag
29463   IFS=$ac_save_IFS
29464   shift
29465   ac_file=$1
29466   shift
29467
29468   case $ac_mode in
29469   :L) ac_source=$1;;
29470   :[FH])
29471     ac_file_inputs=
29472     for ac_f
29473     do
29474       case $ac_f in
29475       -) ac_f="$tmp/stdin";;
29476       *) # Look for the file first in the build tree, then in the source tree
29477          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29478          # because $ac_f cannot contain `:'.
29479          test -f "$ac_f" ||
29480            case $ac_f in
29481            [\\/$]*) false;;
29482            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29483            esac ||
29484            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29485 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29486    { (exit 1); exit 1; }; };;
29487       esac
29488       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29489       ac_file_inputs="$ac_file_inputs '$ac_f'"
29490     done
29491
29492     # Let's still pretend it is `configure' which instantiates (i.e., don't
29493     # use $as_me), people would be surprised to read:
29494     #    /* config.h.  Generated by config.status.  */
29495     configure_input='Generated from '`
29496           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29497         `' by configure.'
29498     if test x"$ac_file" != x-; then
29499       configure_input="$ac_file.  $configure_input"
29500       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29501 $as_echo "$as_me: creating $ac_file" >&6;}
29502     fi
29503     # Neutralize special characters interpreted by sed in replacement strings.
29504     case $configure_input in #(
29505     *\&* | *\|* | *\\* )
29506        ac_sed_conf_input=`$as_echo "$configure_input" |
29507        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29508     *) ac_sed_conf_input=$configure_input;;
29509     esac
29510
29511     case $ac_tag in
29512     *:-:* | *:-) cat >"$tmp/stdin" \
29513       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29514 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29515    { (exit 1); exit 1; }; } ;;
29516     esac
29517     ;;
29518   esac
29519
29520   ac_dir=`$as_dirname -- "$ac_file" ||
29521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29522          X"$ac_file" : 'X\(//\)[^/]' \| \
29523          X"$ac_file" : 'X\(//\)$' \| \
29524          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29525 $as_echo X"$ac_file" |
29526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29527             s//\1/
29528             q
29529           }
29530           /^X\(\/\/\)[^/].*/{
29531             s//\1/
29532             q
29533           }
29534           /^X\(\/\/\)$/{
29535             s//\1/
29536             q
29537           }
29538           /^X\(\/\).*/{
29539             s//\1/
29540             q
29541           }
29542           s/.*/./; q'`
29543   { as_dir="$ac_dir"
29544   case $as_dir in #(
29545   -*) as_dir=./$as_dir;;
29546   esac
29547   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29548     as_dirs=
29549     while :; do
29550       case $as_dir in #(
29551       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29552       *) as_qdir=$as_dir;;
29553       esac
29554       as_dirs="'$as_qdir' $as_dirs"
29555       as_dir=`$as_dirname -- "$as_dir" ||
29556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29557          X"$as_dir" : 'X\(//\)[^/]' \| \
29558          X"$as_dir" : 'X\(//\)$' \| \
29559          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29560 $as_echo X"$as_dir" |
29561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29562             s//\1/
29563             q
29564           }
29565           /^X\(\/\/\)[^/].*/{
29566             s//\1/
29567             q
29568           }
29569           /^X\(\/\/\)$/{
29570             s//\1/
29571             q
29572           }
29573           /^X\(\/\).*/{
29574             s//\1/
29575             q
29576           }
29577           s/.*/./; q'`
29578       test -d "$as_dir" && break
29579     done
29580     test -z "$as_dirs" || eval "mkdir $as_dirs"
29581   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29582 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29583    { (exit 1); exit 1; }; }; }
29584   ac_builddir=.
29585
29586 case "$ac_dir" in
29587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29588 *)
29589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29590   # A ".." for each directory in $ac_dir_suffix.
29591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29592   case $ac_top_builddir_sub in
29593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29595   esac ;;
29596 esac
29597 ac_abs_top_builddir=$ac_pwd
29598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29599 # for backward compatibility:
29600 ac_top_builddir=$ac_top_build_prefix
29601
29602 case $srcdir in
29603   .)  # We are building in place.
29604     ac_srcdir=.
29605     ac_top_srcdir=$ac_top_builddir_sub
29606     ac_abs_top_srcdir=$ac_pwd ;;
29607   [\\/]* | ?:[\\/]* )  # Absolute name.
29608     ac_srcdir=$srcdir$ac_dir_suffix;
29609     ac_top_srcdir=$srcdir
29610     ac_abs_top_srcdir=$srcdir ;;
29611   *) # Relative name.
29612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29613     ac_top_srcdir=$ac_top_build_prefix$srcdir
29614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29615 esac
29616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29617
29618
29619   case $ac_mode in
29620   :F)
29621   #
29622   # CONFIG_FILE
29623   #
29624
29625 _ACEOF
29626
29627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29628 # If the template does not know about datarootdir, expand it.
29629 # FIXME: This hack should be removed a few years after 2.60.
29630 ac_datarootdir_hack=; ac_datarootdir_seen=
29631
29632 ac_sed_dataroot='
29633 /datarootdir/ {
29634   p
29635   q
29636 }
29637 /@datadir@/p
29638 /@docdir@/p
29639 /@infodir@/p
29640 /@localedir@/p
29641 /@mandir@/p
29642 '
29643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29644 *datarootdir*) ac_datarootdir_seen=yes;;
29645 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29646   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29648 _ACEOF
29649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29650   ac_datarootdir_hack='
29651   s&@datadir@&$datadir&g
29652   s&@docdir@&$docdir&g
29653   s&@infodir@&$infodir&g
29654   s&@localedir@&$localedir&g
29655   s&@mandir@&$mandir&g
29656     s&\\\${datarootdir}&$datarootdir&g' ;;
29657 esac
29658 _ACEOF
29659
29660 # Neutralize VPATH when `$srcdir' = `.'.
29661 # Shell code in configure.ac might set extrasub.
29662 # FIXME: do we really want to maintain this feature?
29663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29664 ac_sed_extra="$ac_vpsub
29665 $extrasub
29666 _ACEOF
29667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29668 :t
29669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29670 s|@configure_input@|$ac_sed_conf_input|;t t
29671 s&@top_builddir@&$ac_top_builddir_sub&;t t
29672 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29673 s&@srcdir@&$ac_srcdir&;t t
29674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29675 s&@top_srcdir@&$ac_top_srcdir&;t t
29676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29677 s&@builddir@&$ac_builddir&;t t
29678 s&@abs_builddir@&$ac_abs_builddir&;t t
29679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29680 $ac_datarootdir_hack
29681 "
29682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29683   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29684 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29685    { (exit 1); exit 1; }; }
29686
29687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29688   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29689   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29690   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29691 which seems to be undefined.  Please make sure it is defined." >&5
29692 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29693 which seems to be undefined.  Please make sure it is defined." >&2;}
29694
29695   rm -f "$tmp/stdin"
29696   case $ac_file in
29697   -) cat "$tmp/out" && rm -f "$tmp/out";;
29698   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29699   esac \
29700   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29701 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29702    { (exit 1); exit 1; }; }
29703  ;;
29704   :H)
29705   #
29706   # CONFIG_HEADER
29707   #
29708   if test x"$ac_file" != x-; then
29709     {
29710       $as_echo "/* $configure_input  */" \
29711       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29712     } >"$tmp/config.h" \
29713       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29714 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29715    { (exit 1); exit 1; }; }
29716     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29717       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29719     else
29720       rm -f "$ac_file"
29721       mv "$tmp/config.h" "$ac_file" \
29722         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29723 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29724    { (exit 1); exit 1; }; }
29725     fi
29726   else
29727     $as_echo "/* $configure_input  */" \
29728       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29729       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29730 $as_echo "$as_me: error: could not create -" >&2;}
29731    { (exit 1); exit 1; }; }
29732   fi
29733  ;;
29734   :L)
29735   #
29736   # CONFIG_LINK
29737   #
29738
29739   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29740     :
29741   else
29742     # Prefer the file from the source tree if names are identical.
29743     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29744       ac_source=$srcdir/$ac_source
29745     fi
29746
29747     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
29748 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29749
29750     if test ! -r "$ac_source"; then
29751       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
29752 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
29753    { (exit 1); exit 1; }; }
29754     fi
29755     rm -f "$ac_file"
29756
29757     # Try a relative symlink, then a hard link, then a copy.
29758     case $srcdir in
29759     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29760         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29761     esac
29762     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29763       ln "$ac_source" "$ac_file" 2>/dev/null ||
29764       cp -p "$ac_source" "$ac_file" ||
29765       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
29766 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
29767    { (exit 1); exit 1; }; }
29768   fi
29769  ;;
29770   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29771 $as_echo "$as_me: executing $ac_file commands" >&6;}
29772  ;;
29773   esac
29774
29775
29776   case $ac_file$ac_mode in
29777     "check_win32_symlinks":C)
29778 # Links sometimes fail undetected on Mingw -
29779 # so here we detect it and warn the user
29780 for FILE in $CONFIG_LINKS
29781  do
29782         # test -e works for symlinks in the MinGW console
29783         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
29784 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
29785  done
29786  ;;
29787     "src/include/pg_config.h":H)
29788 # Update timestamp for pg_config.h (see Makefile.global)
29789 echo >src/include/stamp-h
29790  ;;
29791     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
29792
29793   esac
29794 done # for ac_tag
29795
29796
29797 { (exit 0); exit 0; }
29798 _ACEOF
29799 chmod +x $CONFIG_STATUS
29800 ac_clean_files=$ac_clean_files_save
29801
29802 test $ac_write_fail = 0 ||
29803   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29804 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29805    { (exit 1); exit 1; }; }
29806
29807
29808 # configure is writing to config.log, and then calls config.status.
29809 # config.status does its own redirection, appending to config.log.
29810 # Unfortunately, on DOS this fails, as config.log is still kept open
29811 # by configure, so config.status won't be able to write to it; its
29812 # output is simply discarded.  So we exec the FD to /dev/null,
29813 # effectively closing config.log, so it can be properly (re)opened and
29814 # appended to by config.status.  When coming back to configure, we
29815 # need to make the FD available again.
29816 if test "$no_create" != yes; then
29817   ac_cs_success=:
29818   ac_config_status_args=
29819   test "$silent" = yes &&
29820     ac_config_status_args="$ac_config_status_args --quiet"
29821   exec 5>/dev/null
29822   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29823   exec 5>>config.log
29824   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29825   # would make configure fail if this is the last instruction.
29826   $ac_cs_success || { (exit 1); exit 1; }
29827 fi
29828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29829   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29831 fi
29832