OSDN Git Service

Alter the configure script to fail immediately if the C compiler does not
[pg-rex/syncrep.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 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-2010, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='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_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
692 AWK
693 LN_S
694 TAR
695 WINDRES
696 DLLWRAP
697 DLLTOOL
698 AR
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
705 LD
706 LDFLAGS_SL
707 ELF_SYS
708 EGREP
709 GREP
710 with_zlib
711 with_system_tzdata
712 with_libxslt
713 with_libxml
714 XML2_CONFIG
715 with_ossp_uuid
716 with_openssl
717 with_bonjour
718 with_ldap
719 with_pam
720 krb_srvtab
721 with_krb5
722 with_gssapi
723 with_python
724 with_perl
725 with_tcl
726 enable_thread_safety
727 INCLUDES
728 autodepend
729 TAS
730 GCC
731 CPP
732 SUN_STUDIO_CC
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 enable_dtrace
741 DTRACEFLAGS
742 DTRACE
743 enable_coverage
744 GENHTML
745 LCOV
746 GCOV
747 enable_profiling
748 enable_debug
749 enable_rpath
750 enable_shared
751 default_port
752 WANTED_LANGUAGES
753 enable_nls
754 PORTNAME
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 PG_MAJORVERSION
764 configure_args
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_template
806 with_includes
807 with_libraries
808 with_libs
809 enable_integer_datetimes
810 enable_nls
811 with_pgport
812 enable_shared
813 enable_rpath
814 enable_spinlocks
815 enable_debug
816 enable_profiling
817 enable_coverage
818 enable_dtrace
819 with_blocksize
820 with_segsize
821 with_wal_blocksize
822 with_wal_segsize
823 with_CC
824 enable_depend
825 enable_cassert
826 enable_thread_safety
827 with_tcl
828 with_tclconfig
829 with_perl
830 with_python
831 with_gssapi
832 with_krb5
833 with_krb_srvnam
834 with_pam
835 with_ldap
836 with_bonjour
837 with_openssl
838 with_readline
839 with_libedit_preferred
840 with_ossp_uuid
841 with_libxml
842 with_libxslt
843 with_system_tzdata
844 with_zlib
845 with_gnu_ld
846 enable_float4_byval
847 enable_float8_byval
848 enable_largefile
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 LDFLAGS_SL
860 DOCBOOKSTYLE'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *)    ac_optarg=yes ;;
925   esac
926
927   # Accept the important Cygnus configure options, so we can diagnose typos.
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970    { (exit 1); exit 1; }; }
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997    { (exit 1); exit 1; }; }
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011   | --exec | --exe | --ex)
1012     ac_prev=exec_prefix ;;
1013   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015   | --exec=* | --exe=* | --ex=*)
1016     exec_prefix=$ac_optarg ;;
1017
1018   -gas | --gas | --ga | --g)
1019     # Obsolete; use --with-gas.
1020     with_gas=yes ;;
1021
1022   -help | --help | --hel | --he | -h)
1023     ac_init_help=long ;;
1024   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025     ac_init_help=recursive ;;
1026   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027     ac_init_help=short ;;
1028
1029   -host | --host | --hos | --ho)
1030     ac_prev=host_alias ;;
1031   -host=* | --host=* | --hos=* | --ho=*)
1032     host_alias=$ac_optarg ;;
1033
1034   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035     ac_prev=htmldir ;;
1036   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037   | --ht=*)
1038     htmldir=$ac_optarg ;;
1039
1040   -includedir | --includedir | --includedi | --included | --include \
1041   | --includ | --inclu | --incl | --inc)
1042     ac_prev=includedir ;;
1043   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044   | --includ=* | --inclu=* | --incl=* | --inc=*)
1045     includedir=$ac_optarg ;;
1046
1047   -infodir | --infodir | --infodi | --infod | --info | --inf)
1048     ac_prev=infodir ;;
1049   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050     infodir=$ac_optarg ;;
1051
1052   -libdir | --libdir | --libdi | --libd)
1053     ac_prev=libdir ;;
1054   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055     libdir=$ac_optarg ;;
1056
1057   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058   | --libexe | --libex | --libe)
1059     ac_prev=libexecdir ;;
1060   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061   | --libexe=* | --libex=* | --libe=*)
1062     libexecdir=$ac_optarg ;;
1063
1064   -localedir | --localedir | --localedi | --localed | --locale)
1065     ac_prev=localedir ;;
1066   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067     localedir=$ac_optarg ;;
1068
1069   -localstatedir | --localstatedir | --localstatedi | --localstated \
1070   | --localstate | --localstat | --localsta | --localst | --locals)
1071     ac_prev=localstatedir ;;
1072   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074     localstatedir=$ac_optarg ;;
1075
1076   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077     ac_prev=mandir ;;
1078   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079     mandir=$ac_optarg ;;
1080
1081   -nfp | --nfp | --nf)
1082     # Obsolete; use --without-fp.
1083     with_fp=no ;;
1084
1085   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086   | --no-cr | --no-c | -n)
1087     no_create=yes ;;
1088
1089   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091     no_recursion=yes ;;
1092
1093   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095   | --oldin | --oldi | --old | --ol | --o)
1096     ac_prev=oldincludedir ;;
1097   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100     oldincludedir=$ac_optarg ;;
1101
1102   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103     ac_prev=prefix ;;
1104   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105     prefix=$ac_optarg ;;
1106
1107   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108   | --program-pre | --program-pr | --program-p)
1109     ac_prev=program_prefix ;;
1110   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112     program_prefix=$ac_optarg ;;
1113
1114   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115   | --program-suf | --program-su | --program-s)
1116     ac_prev=program_suffix ;;
1117   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119     program_suffix=$ac_optarg ;;
1120
1121   -program-transform-name | --program-transform-name \
1122   | --program-transform-nam | --program-transform-na \
1123   | --program-transform-n | --program-transform- \
1124   | --program-transform | --program-transfor \
1125   | --program-transfo | --program-transf \
1126   | --program-trans | --program-tran \
1127   | --progr-tra | --program-tr | --program-t)
1128     ac_prev=program_transform_name ;;
1129   -program-transform-name=* | --program-transform-name=* \
1130   | --program-transform-nam=* | --program-transform-na=* \
1131   | --program-transform-n=* | --program-transform-=* \
1132   | --program-transform=* | --program-transfor=* \
1133   | --program-transfo=* | --program-transf=* \
1134   | --program-trans=* | --program-tran=* \
1135   | --progr-tra=* | --program-tr=* | --program-t=*)
1136     program_transform_name=$ac_optarg ;;
1137
1138   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139     ac_prev=pdfdir ;;
1140   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141     pdfdir=$ac_optarg ;;
1142
1143   -psdir | --psdir | --psdi | --psd | --ps)
1144     ac_prev=psdir ;;
1145   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146     psdir=$ac_optarg ;;
1147
1148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149   | -silent | --silent | --silen | --sile | --sil)
1150     silent=yes ;;
1151
1152   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153     ac_prev=sbindir ;;
1154   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155   | --sbi=* | --sb=*)
1156     sbindir=$ac_optarg ;;
1157
1158   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160   | --sharedst | --shareds | --shared | --share | --shar \
1161   | --sha | --sh)
1162     ac_prev=sharedstatedir ;;
1163   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166   | --sha=* | --sh=*)
1167     sharedstatedir=$ac_optarg ;;
1168
1169   -site | --site | --sit)
1170     ac_prev=site ;;
1171   -site=* | --site=* | --sit=*)
1172     site=$ac_optarg ;;
1173
1174   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175     ac_prev=srcdir ;;
1176   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177     srcdir=$ac_optarg ;;
1178
1179   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180   | --syscon | --sysco | --sysc | --sys | --sy)
1181     ac_prev=sysconfdir ;;
1182   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184     sysconfdir=$ac_optarg ;;
1185
1186   -target | --target | --targe | --targ | --tar | --ta | --t)
1187     ac_prev=target_alias ;;
1188   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189     target_alias=$ac_optarg ;;
1190
1191   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192     verbose=yes ;;
1193
1194   -version | --version | --versio | --versi | --vers | -V)
1195     ac_init_version=: ;;
1196
1197   -with-* | --with-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219    { (exit 1); exit 1; }; }
1220     ac_useropt_orig=$ac_useropt
1221     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222     case $ac_user_opts in
1223       *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227          ac_unrecognized_sep=', ';;
1228     esac
1229     eval with_$ac_useropt=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281   case $enable_option_checking in
1282     no) ;;
1283     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284    { (exit 1); exit 1; }; } ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308    { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323     If a cross compiler is detected then cross compile mode will be used." >&2
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339    { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342    { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$as_myself" : 'X\(//\)[^/]' \| \
1352          X"$as_myself" : 'X\(//\)$' \| \
1353          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387    { (exit 1); exit 1; }; }
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of PostgreSQL 8.5devel:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --disable-integer-datetimes
1487                           disable 64-bit integer date/time support
1488   --enable-nls[=LANGUAGES]
1489                           enable Native Language Support
1490   --disable-shared        do not build shared libraries
1491   --disable-rpath         do not embed shared library search path in
1492                           executables
1493   --disable-spinlocks     do not use spinlocks
1494   --enable-debug          build with debugging symbols (-g)
1495   --enable-profiling      build with profiling enabled
1496   --enable-coverage       build with coverage testing instrumentation
1497   --enable-dtrace         build with DTrace support
1498   --enable-depend         turn on automatic dependency tracking
1499   --enable-cassert        enable assertion checks (for debugging)
1500   --disable-thread-safety disable thread-safety in client libraries
1501   --disable-float4-byval  disable float4 passed by value
1502   --disable-float8-byval  disable float8 passed by value
1503   --disable-largefile     omit support for large files
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-template=NAME    override operating system template
1509   --with-includes=DIRS    look for additional header files in DIRS
1510   --with-libraries=DIRS   look for additional libraries in DIRS
1511   --with-libs=DIRS        alternative spelling of --with-libraries
1512   --with-pgport=PORTNUM   set default port number [5432]
1513   --with-blocksize=BLOCKSIZE
1514                           set table block size in kB [8]
1515   --with-segsize=SEGSIZE  set table segment size in GB [1]
1516   --with-wal-blocksize=BLOCKSIZE
1517                           set WAL block size in kB [8]
1518   --with-wal-segsize=SEGSIZE
1519                           set WAL segment size in MB [16]
1520   --with-CC=CMD           set compiler (deprecated)
1521   --with-tcl              build Tcl modules (PL/Tcl)
1522   --with-tclconfig=DIR    tclConfig.sh is in DIR
1523   --with-perl             build Perl modules (PL/Perl)
1524   --with-python           build Python modules (PL/Python)
1525   --with-gssapi           build with GSSAPI support
1526   --with-krb5             build with Kerberos 5 support
1527   --with-krb-srvnam=NAME  default service principal name in Kerberos
1528                           [postgres]
1529   --with-pam              build with PAM support
1530   --with-ldap             build with LDAP support
1531   --with-bonjour          build with Bonjour support
1532   --with-openssl          build with OpenSSL support
1533   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1534   --with-libedit-preferred
1535                           prefer BSD Libedit over GNU Readline
1536   --with-ossp-uuid        use OSSP UUID library when building
1537                           contrib/uuid-ossp
1538   --with-libxml           build with XML support
1539   --with-libxslt          use XSLT support when building contrib/xml2
1540   --with-system-tzdata=DIR
1541                           use system time zone data in DIR
1542   --without-zlib          do not use Zlib
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   LDFLAGS_SL  linker flags for shared library linking
1555   DOCBOOKSTYLE
1556               location of DocBook stylesheets
1557
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 Report bugs to <pgsql-bugs@postgresql.org>.
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567   # If there are subdirs, report their specific --help.
1568   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569     test -d "$ac_dir" ||
1570       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571       continue
1572     ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578   # A ".." for each directory in $ac_dir_suffix.
1579   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580   case $ac_top_builddir_sub in
1581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583   esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591   .)  # We are building in place.
1592     ac_srcdir=.
1593     ac_top_srcdir=$ac_top_builddir_sub
1594     ac_abs_top_srcdir=$ac_pwd ;;
1595   [\\/]* | ?:[\\/]* )  # Absolute name.
1596     ac_srcdir=$srcdir$ac_dir_suffix;
1597     ac_top_srcdir=$srcdir
1598     ac_abs_top_srcdir=$srcdir ;;
1599   *) # Relative name.
1600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601     ac_top_srcdir=$ac_top_build_prefix$srcdir
1602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606     cd "$ac_dir" || { ac_status=$?; continue; }
1607     # Check for guested configure.
1608     if test -f "$ac_srcdir/configure.gnu"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611     elif test -f "$ac_srcdir/configure"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure" --help=recursive
1614     else
1615       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616     fi || ac_status=$?
1617     cd "$ac_pwd" || { ac_status=$?; break; }
1618   done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623   cat <<\_ACEOF
1624 PostgreSQL configure 8.5devel
1625 generated by GNU Autoconf 2.63
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631
1632 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1633 _ACEOF
1634   exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by PostgreSQL $as_me 8.5devel, which was
1641 generated by GNU Autoconf 2.63.  Invocation command line was
1642
1643   $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1661
1662 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1663 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1666 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1667 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1668 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   $as_echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704   for ac_arg
1705   do
1706     case $ac_arg in
1707     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709     | -silent | --silent | --silen | --sile | --sil)
1710       continue ;;
1711     *\'*)
1712       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713     esac
1714     case $ac_pass in
1715     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716     2)
1717       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718       if test $ac_must_keep_next = true; then
1719         ac_must_keep_next=false # Got value, back to normal.
1720       else
1721         case $ac_arg in
1722           *=* | --config-cache | -C | -disable-* | --disable-* \
1723           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725           | -with-* | --with-* | -without-* | --without-* | --x)
1726             case "$ac_configure_args0 " in
1727               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728             esac
1729             ;;
1730           -* ) ac_must_keep_next=true ;;
1731         esac
1732       fi
1733       ac_configure_args="$ac_configure_args '$ac_arg'"
1734       ;;
1735     esac
1736   done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log.  We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747   # Save into config.log some information that might help in debugging.
1748   {
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756     echo
1757     # The following way of writing the cache mishandles newlines in values,
1758 (
1759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760     eval ac_val=\$$ac_var
1761     case $ac_val in #(
1762     *${as_nl}*)
1763       case $ac_var in #(
1764       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1766       esac
1767       case $ac_var in #(
1768       _ | IFS | as_nl) ;; #(
1769       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770       *) $as_unset $ac_var ;;
1771       esac ;;
1772     esac
1773   done
1774   (set) 2>&1 |
1775     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776     *${as_nl}ac_space=\ *)
1777       sed -n \
1778         "s/'\''/'\''\\\\'\'''\''/g;
1779           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1780       ;; #(
1781     *)
1782       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783       ;;
1784     esac |
1785     sort
1786 )
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1793 _ASBOX
1794     echo
1795     for ac_var in $ac_subst_vars
1796     do
1797       eval ac_val=\$$ac_var
1798       case $ac_val in
1799       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800       esac
1801       $as_echo "$ac_var='\''$ac_val'\''"
1802     done | sort
1803     echo
1804
1805     if test -n "$ac_subst_files"; then
1806       cat <<\_ASBOX
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1810 _ASBOX
1811       echo
1812       for ac_var in $ac_subst_files
1813       do
1814         eval ac_val=\$$ac_var
1815         case $ac_val in
1816         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817         esac
1818         $as_echo "$ac_var='\''$ac_val'\''"
1819       done | sort
1820       echo
1821     fi
1822
1823     if test -s confdefs.h; then
1824       cat <<\_ASBOX
1825 ## ----------- ##
1826 ## confdefs.h. ##
1827 ## ----------- ##
1828 _ASBOX
1829       echo
1830       cat confdefs.h
1831       echo
1832     fi
1833     test "$ac_signal" != 0 &&
1834       $as_echo "$as_me: caught signal $ac_signal"
1835     $as_echo "$as_me: exit $exit_status"
1836   } >&5
1837   rm -f core *.core core.conftest.* &&
1838     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1839     exit $exit_status
1840 ' 0
1841 for ac_signal in 1 2 13 15; do
1842   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 done
1844 ac_signal=0
1845
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1848
1849 # Predefined preprocessor variables.
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 _ACEOF
1874
1875
1876 # Let the site file select an alternate cache file if it wants to.
1877 # Prefer an explicitly selected file to automatically selected ones.
1878 ac_site_file1=NONE
1879 ac_site_file2=NONE
1880 if test -n "$CONFIG_SITE"; then
1881   ac_site_file1=$CONFIG_SITE
1882 elif test "x$prefix" != xNONE; then
1883   ac_site_file1=$prefix/share/config.site
1884   ac_site_file2=$prefix/etc/config.site
1885 else
1886   ac_site_file1=$ac_default_prefix/share/config.site
1887   ac_site_file2=$ac_default_prefix/etc/config.site
1888 fi
1889 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1890 do
1891   test "x$ac_site_file" = xNONE && continue
1892   if test -r "$ac_site_file"; then
1893     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895     sed 's/^/| /' "$ac_site_file" >&5
1896     . "$ac_site_file"
1897   fi
1898 done
1899
1900 if test -r "$cache_file"; then
1901   # Some versions of bash will fail to source /dev/null (special
1902   # files actually), so we avoid doing that.
1903   if test -f "$cache_file"; then
1904     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 $as_echo "$as_me: loading cache $cache_file" >&6;}
1906     case $cache_file in
1907       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908       *)                      . "./$cache_file";;
1909     esac
1910   fi
1911 else
1912   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 $as_echo "$as_me: creating cache $cache_file" >&6;}
1914   >$cache_file
1915 fi
1916
1917 # Check that the precious variables saved in the cache have kept the same
1918 # value.
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922   eval ac_new_set=\$ac_env_${ac_var}_set
1923   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924   eval ac_new_val=\$ac_env_${ac_var}_value
1925   case $ac_old_set,$ac_new_set in
1926     set,)
1927       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,set)
1931       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,);;
1935     *)
1936       if test "x$ac_old_val" != "x$ac_new_val"; then
1937         # differences in whitespace do not lead to failure.
1938         ac_old_val_w=`echo x $ac_old_val`
1939         ac_new_val_w=`echo x $ac_new_val`
1940         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943           ac_cache_corrupted=:
1944         else
1945           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947           eval $ac_var=\$ac_old_val
1948         fi
1949         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1950 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1951         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1952 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006
2007
2008
2009
2010
2011
2012 ac_aux_dir=
2013 for ac_dir in config "$srcdir"/config; do
2014   if test -f "$ac_dir/install-sh"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/install-sh -c"
2017     break
2018   elif test -f "$ac_dir/install.sh"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/install.sh -c"
2021     break
2022   elif test -f "$ac_dir/shtool"; then
2023     ac_aux_dir=$ac_dir
2024     ac_install_sh="$ac_aux_dir/shtool install -c"
2025     break
2026   fi
2027 done
2028 if test -z "$ac_aux_dir"; then
2029   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2030 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2041
2042
2043
2044 configure_args=$ac_configure_args
2045
2046
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PG_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2057 _ACEOF
2058
2059
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064    { (exit 1); exit 1; }; }
2065
2066 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2067 $as_echo_n "checking build system type... " >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069   $as_echo_n "(cached) " >&6
2070 else
2071   ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077    { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 fi
2084 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 $as_echo "$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2087 *-*-*) ;;
2088 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2090    { (exit 1); exit 1; }; };;
2091 esac
2092 build=$ac_cv_build
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_build
2095 shift
2096 build_cpu=$1
2097 build_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 build_os=$*
2102 IFS=$ac_save_IFS
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2104
2105
2106 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2107 $as_echo_n "checking host system type... " >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109   $as_echo_n "(cached) " >&6
2110 else
2111   if test "x$host_alias" = x; then
2112   ac_cv_host=$ac_cv_build
2113 else
2114   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 fi
2121 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 $as_echo "$ac_cv_host" >&6; }
2123 case $ac_cv_host in
2124 *-*-*) ;;
2125 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2127    { (exit 1); exit 1; }; };;
2128 esac
2129 host=$ac_cv_host
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_host
2132 shift
2133 host_cpu=$1
2134 host_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 host_os=$*
2139 IFS=$ac_save_IFS
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2141
2142
2143
2144 template=
2145 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2146 $as_echo_n "checking which template to use... " >&6; }
2147
2148
2149
2150
2151 # Check whether --with-template was given.
2152 if test "${with_template+set}" = set; then
2153   withval=$with_template;
2154   case $withval in
2155     yes)
2156       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2157 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2158    { (exit 1); exit 1; }; }
2159       ;;
2160     no)
2161       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2162 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2163    { (exit 1); exit 1; }; }
2164       ;;
2165     *)
2166
2167   case $withval in
2168     list)   echo; ls "$srcdir/src/template"; exit;;
2169     *)      if test -f "$srcdir/src/template/$with_template" ; then
2170               template=$withval
2171             else
2172               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2173 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2174    { (exit 1); exit 1; }; }
2175             fi;;
2176   esac
2177
2178       ;;
2179   esac
2180
2181 else
2182
2183 # --with-template not given
2184
2185 case $host_os in
2186      aix*) template=aix ;;
2187     bsdi*) template=bsdi ;;
2188   cygwin*) template=cygwin ;;
2189   darwin*) template=darwin ;;
2190     dgux*) template=dgux ;;
2191  freebsd*) template=freebsd ;;
2192     hpux*) template=hpux ;;
2193     irix*) template=irix ;;
2194  linux*|gnu*|k*bsd*-gnu)
2195            template=linux ;;
2196    mingw*) template=win32 ;;
2197   netbsd*) template=netbsd ;;
2198 nextstep*) template=nextstep ;;
2199  openbsd*) template=openbsd ;;
2200      osf*) template=osf ;;
2201      sco*) template=sco ;;
2202  solaris*) template=solaris ;;
2203    sunos*) template=sunos4 ;;
2204  sysv4.2*)
2205         case $host_vendor in
2206           univel) template=univel ;;
2207         esac ;;
2208    sysv4*) template=svr4 ;;
2209    sysv5*) template=unixware ;;
2210   ultrix*) template=ultrix4 ;;
2211 esac
2212
2213   if test x"$template" = x"" ; then
2214     { { $as_echo "$as_me:$LINENO: error:
2215 *******************************************************************
2216 PostgreSQL has apparently not been ported to your platform yet.
2217 To try a manual configuration, look into the src/template directory
2218 for a similar platform and use the '--with-template=' option.
2219
2220 Please also contact <pgsql-bugs@postgresql.org> to see about
2221 rectifying this.  Include the above 'checking host system type...'
2222 line.
2223 *******************************************************************
2224 " >&5
2225 $as_echo "$as_me: error:
2226 *******************************************************************
2227 PostgreSQL has apparently not been ported to your platform yet.
2228 To try a manual configuration, look into the src/template directory
2229 for a similar platform and use the '--with-template=' option.
2230
2231 Please also contact <pgsql-bugs@postgresql.org> to see about
2232 rectifying this.  Include the above 'checking host system type...'
2233 line.
2234 *******************************************************************
2235 " >&2;}
2236    { (exit 1); exit 1; }; }
2237   fi
2238
2239
2240 fi
2241
2242
2243
2244 { $as_echo "$as_me:$LINENO: result: $template" >&5
2245 $as_echo "$template" >&6; }
2246
2247 PORTNAME=$template
2248
2249
2250 # Initialize default assumption that we do not need separate assembly code
2251 # for TAS (test-and-set).  This can be overridden by the template file
2252 # when it's executed.
2253 need_tas=no
2254 tas_file=dummy.s
2255
2256
2257
2258 ##
2259 ## Command line options
2260 ##
2261
2262 #
2263 # Add non-standard directories to the include path
2264 #
2265
2266
2267
2268 # Check whether --with-includes was given.
2269 if test "${with_includes+set}" = set; then
2270   withval=$with_includes;
2271   case $withval in
2272     yes)
2273       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2274 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2275    { (exit 1); exit 1; }; }
2276       ;;
2277     no)
2278       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2279 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2280    { (exit 1); exit 1; }; }
2281       ;;
2282     *)
2283
2284       ;;
2285   esac
2286
2287 fi
2288
2289
2290
2291
2292 #
2293 # Add non-standard directories to the library search path
2294 #
2295
2296
2297
2298 # Check whether --with-libraries was given.
2299 if test "${with_libraries+set}" = set; then
2300   withval=$with_libraries;
2301   case $withval in
2302     yes)
2303       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2304 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2305    { (exit 1); exit 1; }; }
2306       ;;
2307     no)
2308       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2309 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2310    { (exit 1); exit 1; }; }
2311       ;;
2312     *)
2313       LIBRARY_DIRS=$withval
2314       ;;
2315   esac
2316
2317 fi
2318
2319
2320
2321
2322
2323
2324 # Check whether --with-libs was given.
2325 if test "${with_libs+set}" = set; then
2326   withval=$with_libs;
2327   case $withval in
2328     yes)
2329       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2330 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2331    { (exit 1); exit 1; }; }
2332       ;;
2333     no)
2334       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2335 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2336    { (exit 1); exit 1; }; }
2337       ;;
2338     *)
2339       LIBRARY_DIRS=$withval
2340       ;;
2341   esac
2342
2343 fi
2344
2345
2346
2347
2348 #
2349 # 64-bit integer date/time storage: enabled by default.
2350 #
2351 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2352 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2353
2354
2355 # Check whether --enable-integer-datetimes was given.
2356 if test "${enable_integer_datetimes+set}" = set; then
2357   enableval=$enable_integer_datetimes;
2358   case $enableval in
2359     yes)
2360
2361 cat >>confdefs.h <<\_ACEOF
2362 #define USE_INTEGER_DATETIMES 1
2363 _ACEOF
2364
2365       ;;
2366     no)
2367       :
2368       ;;
2369     *)
2370       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2371 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2372    { (exit 1); exit 1; }; }
2373       ;;
2374   esac
2375
2376 else
2377   enable_integer_datetimes=yes
2378
2379 cat >>confdefs.h <<\_ACEOF
2380 #define USE_INTEGER_DATETIMES 1
2381 _ACEOF
2382
2383 fi
2384
2385
2386 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2387 $as_echo "$enable_integer_datetimes" >&6; }
2388
2389
2390 #
2391 # NLS
2392 #
2393 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2394 $as_echo_n "checking whether NLS is wanted... " >&6; }
2395
2396
2397 # Check whether --enable-nls was given.
2398 if test "${enable_nls+set}" = set; then
2399   enableval=$enable_nls;
2400   case $enableval in
2401     yes)
2402       :
2403       ;;
2404     no)
2405       :
2406       ;;
2407     *)
2408       enable_nls=yes
2409 WANTED_LANGUAGES=$enableval
2410       ;;
2411   esac
2412
2413 else
2414   enable_nls=no
2415 fi
2416
2417
2418
2419 if test "$enable_nls" = yes; then
2420
2421 cat >>confdefs.h <<\_ACEOF
2422 #define ENABLE_NLS 1
2423 _ACEOF
2424
2425 fi
2426
2427 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2428 $as_echo "$enable_nls" >&6; }
2429
2430
2431
2432 #
2433 # Default port number (--with-pgport), default 5432
2434 #
2435 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2436 $as_echo_n "checking for default port number... " >&6; }
2437
2438
2439
2440 # Check whether --with-pgport was given.
2441 if test "${with_pgport+set}" = set; then
2442   withval=$with_pgport;
2443   case $withval in
2444     yes)
2445       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2446 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2447    { (exit 1); exit 1; }; }
2448       ;;
2449     no)
2450       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2451 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2452    { (exit 1); exit 1; }; }
2453       ;;
2454     *)
2455       default_port=$withval
2456       ;;
2457   esac
2458
2459 else
2460   default_port=5432
2461 fi
2462
2463
2464 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2465 $as_echo "$default_port" >&6; }
2466 # Need both of these because some places want an integer and some a string
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define DEF_PGPORT ${default_port}
2470 _ACEOF
2471
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define DEF_PGPORT_STR "${default_port}"
2475 _ACEOF
2476
2477
2478
2479 #
2480 # Option to disable shared libraries
2481 #
2482
2483
2484 # Check whether --enable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486   enableval=$enable_shared;
2487   case $enableval in
2488     yes)
2489       :
2490       ;;
2491     no)
2492       :
2493       ;;
2494     *)
2495       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2496 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2497    { (exit 1); exit 1; }; }
2498       ;;
2499   esac
2500
2501 else
2502   enable_shared=yes
2503
2504 fi
2505
2506
2507
2508
2509 #
2510 # '-rpath'-like feature can be disabled
2511 #
2512
2513
2514 # Check whether --enable-rpath was given.
2515 if test "${enable_rpath+set}" = set; then
2516   enableval=$enable_rpath;
2517   case $enableval in
2518     yes)
2519       :
2520       ;;
2521     no)
2522       :
2523       ;;
2524     *)
2525       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2526 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2527    { (exit 1); exit 1; }; }
2528       ;;
2529   esac
2530
2531 else
2532   enable_rpath=yes
2533
2534 fi
2535
2536
2537
2538
2539 #
2540 # Spinlocks
2541 #
2542
2543
2544 # Check whether --enable-spinlocks was given.
2545 if test "${enable_spinlocks+set}" = set; then
2546   enableval=$enable_spinlocks;
2547   case $enableval in
2548     yes)
2549       :
2550       ;;
2551     no)
2552       :
2553       ;;
2554     *)
2555       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2556 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2557    { (exit 1); exit 1; }; }
2558       ;;
2559   esac
2560
2561 else
2562   enable_spinlocks=yes
2563
2564 fi
2565
2566
2567
2568 #
2569 # --enable-debug adds -g to compiler flags
2570 #
2571
2572
2573 # Check whether --enable-debug was given.
2574 if test "${enable_debug+set}" = set; then
2575   enableval=$enable_debug;
2576   case $enableval in
2577     yes)
2578       :
2579       ;;
2580     no)
2581       :
2582       ;;
2583     *)
2584       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2585 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2586    { (exit 1); exit 1; }; }
2587       ;;
2588   esac
2589
2590 else
2591   enable_debug=no
2592
2593 fi
2594
2595
2596
2597
2598 #
2599 # --enable-profiling enables gcc profiling
2600 #
2601
2602
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605   enableval=$enable_profiling;
2606   case $enableval in
2607     yes)
2608       :
2609       ;;
2610     no)
2611       :
2612       ;;
2613     *)
2614       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2615 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2616    { (exit 1); exit 1; }; }
2617       ;;
2618   esac
2619
2620 else
2621   enable_profiling=no
2622
2623 fi
2624
2625
2626
2627
2628 #
2629 # --enable-coverage enables generation of code coverage metrics with gcov
2630 #
2631
2632
2633 # Check whether --enable-coverage was given.
2634 if test "${enable_coverage+set}" = set; then
2635   enableval=$enable_coverage;
2636   case $enableval in
2637     yes)
2638       for ac_prog in gcov
2639 do
2640   # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_GCOV+set}" = set; then
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$GCOV"; then
2648   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_GCOV="$ac_prog"
2658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 GCOV=$ac_cv_prog_GCOV
2668 if test -n "$GCOV"; then
2669   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2670 $as_echo "$GCOV" >&6; }
2671 else
2672   { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677   test -n "$GCOV" && break
2678 done
2679
2680 if test -z "$GCOV"; then
2681   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2682 $as_echo "$as_me: error: gcov not found" >&2;}
2683    { (exit 1); exit 1; }; }
2684 fi
2685 for ac_prog in lcov
2686 do
2687   # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_LCOV+set}" = set; then
2692   $as_echo_n "(cached) " >&6
2693 else
2694   if test -n "$LCOV"; then
2695   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702   for ac_exec_ext in '' $ac_executable_extensions; do
2703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704     ac_cv_prog_LCOV="$ac_prog"
2705     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 LCOV=$ac_cv_prog_LCOV
2715 if test -n "$LCOV"; then
2716   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2717 $as_echo "$LCOV" >&6; }
2718 else
2719   { $as_echo "$as_me:$LINENO: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724   test -n "$LCOV" && break
2725 done
2726
2727 if test -z "$LCOV"; then
2728   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2729 $as_echo "$as_me: error: lcov not found" >&2;}
2730    { (exit 1); exit 1; }; }
2731 fi
2732 for ac_prog in genhtml
2733 do
2734   # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_GENHTML+set}" = set; then
2739   $as_echo_n "(cached) " >&6
2740 else
2741   if test -n "$GENHTML"; then
2742   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749   for ac_exec_ext in '' $ac_executable_extensions; do
2750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751     ac_cv_prog_GENHTML="$ac_prog"
2752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 GENHTML=$ac_cv_prog_GENHTML
2762 if test -n "$GENHTML"; then
2763   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2764 $as_echo "$GENHTML" >&6; }
2765 else
2766   { $as_echo "$as_me:$LINENO: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771   test -n "$GENHTML" && break
2772 done
2773
2774 if test -z "$GENHTML"; then
2775   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2776 $as_echo "$as_me: error: genhtml not found" >&2;}
2777    { (exit 1); exit 1; }; }
2778 fi
2779       ;;
2780     no)
2781       :
2782       ;;
2783     *)
2784       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2785 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2786    { (exit 1); exit 1; }; }
2787       ;;
2788   esac
2789
2790 else
2791   enable_coverage=no
2792
2793 fi
2794
2795
2796
2797
2798 #
2799 # DTrace
2800 #
2801
2802
2803 # Check whether --enable-dtrace was given.
2804 if test "${enable_dtrace+set}" = set; then
2805   enableval=$enable_dtrace;
2806   case $enableval in
2807     yes)
2808
2809 cat >>confdefs.h <<\_ACEOF
2810 #define ENABLE_DTRACE 1
2811 _ACEOF
2812
2813 for ac_prog in dtrace
2814 do
2815   # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_DTRACE+set}" = set; then
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$DTRACE"; then
2823   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_DTRACE="$ac_prog"
2833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 DTRACE=$ac_cv_prog_DTRACE
2843 if test -n "$DTRACE"; then
2844   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2845 $as_echo "$DTRACE" >&6; }
2846 else
2847   { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852   test -n "$DTRACE" && break
2853 done
2854
2855 if test -z "$DTRACE"; then
2856   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2857 $as_echo "$as_me: error: dtrace not found" >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861       ;;
2862     no)
2863       :
2864       ;;
2865     *)
2866       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2867 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2868    { (exit 1); exit 1; }; }
2869       ;;
2870   esac
2871
2872 else
2873   enable_dtrace=no
2874
2875 fi
2876
2877
2878
2879
2880 #
2881 # Block size
2882 #
2883 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2884 $as_echo_n "checking for block size... " >&6; }
2885
2886
2887
2888 # Check whether --with-blocksize was given.
2889 if test "${with_blocksize+set}" = set; then
2890   withval=$with_blocksize;
2891   case $withval in
2892     yes)
2893       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2894 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2895    { (exit 1); exit 1; }; }
2896       ;;
2897     no)
2898       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2899 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2900    { (exit 1); exit 1; }; }
2901       ;;
2902     *)
2903       blocksize=$withval
2904       ;;
2905   esac
2906
2907 else
2908   blocksize=8
2909 fi
2910
2911
2912 case ${blocksize} in
2913   1) BLCKSZ=1024;;
2914   2) BLCKSZ=2048;;
2915   4) BLCKSZ=4096;;
2916   8) BLCKSZ=8192;;
2917  16) BLCKSZ=16384;;
2918  32) BLCKSZ=32768;;
2919   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2920 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2921    { (exit 1); exit 1; }; }
2922 esac
2923 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2924 $as_echo "${blocksize}kB" >&6; }
2925
2926
2927 cat >>confdefs.h <<_ACEOF
2928 #define BLCKSZ ${BLCKSZ}
2929 _ACEOF
2930
2931
2932 #
2933 # Relation segment size
2934 #
2935 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2936 $as_echo_n "checking for segment size... " >&6; }
2937
2938
2939
2940 # Check whether --with-segsize was given.
2941 if test "${with_segsize+set}" = set; then
2942   withval=$with_segsize;
2943   case $withval in
2944     yes)
2945       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2946 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2947    { (exit 1); exit 1; }; }
2948       ;;
2949     no)
2950       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2951 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2952    { (exit 1); exit 1; }; }
2953       ;;
2954     *)
2955       segsize=$withval
2956       ;;
2957   esac
2958
2959 else
2960   segsize=1
2961 fi
2962
2963
2964 # this expression is set up to avoid unnecessary integer overflow
2965 # blocksize is already guaranteed to be a factor of 1024
2966 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2967 test $? -eq 0 || exit 1
2968 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2969 $as_echo "${segsize}GB" >&6; }
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define RELSEG_SIZE ${RELSEG_SIZE}
2974 _ACEOF
2975
2976
2977 #
2978 # WAL block size
2979 #
2980 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2981 $as_echo_n "checking for WAL block size... " >&6; }
2982
2983
2984
2985 # Check whether --with-wal-blocksize was given.
2986 if test "${with_wal_blocksize+set}" = set; then
2987   withval=$with_wal_blocksize;
2988   case $withval in
2989     yes)
2990       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2991 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2992    { (exit 1); exit 1; }; }
2993       ;;
2994     no)
2995       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2996 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2997    { (exit 1); exit 1; }; }
2998       ;;
2999     *)
3000       wal_blocksize=$withval
3001       ;;
3002   esac
3003
3004 else
3005   wal_blocksize=8
3006 fi
3007
3008
3009 case ${wal_blocksize} in
3010   1) XLOG_BLCKSZ=1024;;
3011   2) XLOG_BLCKSZ=2048;;
3012   4) XLOG_BLCKSZ=4096;;
3013   8) XLOG_BLCKSZ=8192;;
3014  16) XLOG_BLCKSZ=16384;;
3015  32) XLOG_BLCKSZ=32768;;
3016  64) XLOG_BLCKSZ=65536;;
3017   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3018 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3019    { (exit 1); exit 1; }; }
3020 esac
3021 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3022 $as_echo "${wal_blocksize}kB" >&6; }
3023
3024
3025 cat >>confdefs.h <<_ACEOF
3026 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3027 _ACEOF
3028
3029
3030 #
3031 # WAL segment size
3032 #
3033 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3034 $as_echo_n "checking for WAL segment size... " >&6; }
3035
3036
3037
3038 # Check whether --with-wal-segsize was given.
3039 if test "${with_wal_segsize+set}" = set; then
3040   withval=$with_wal_segsize;
3041   case $withval in
3042     yes)
3043       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3044 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3045    { (exit 1); exit 1; }; }
3046       ;;
3047     no)
3048       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3049 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3050    { (exit 1); exit 1; }; }
3051       ;;
3052     *)
3053       wal_segsize=$withval
3054       ;;
3055   esac
3056
3057 else
3058   wal_segsize=16
3059 fi
3060
3061
3062 case ${wal_segsize} in
3063   1) ;;
3064   2) ;;
3065   4) ;;
3066   8) ;;
3067  16) ;;
3068  32) ;;
3069  64) ;;
3070   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3071 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3072    { (exit 1); exit 1; }; }
3073 esac
3074 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3075 $as_echo "${wal_segsize}MB" >&6; }
3076
3077
3078 cat >>confdefs.h <<_ACEOF
3079 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3080 _ACEOF
3081
3082
3083 #
3084 # C compiler
3085 #
3086
3087 # For historical reasons you can also use --with-CC to specify the C compiler
3088 # to use, although the standard way to do this is to set the CC environment
3089 # variable.
3090
3091
3092
3093 # Check whether --with-CC was given.
3094 if test "${with_CC+set}" = set; then
3095   withval=$with_CC;
3096   case $withval in
3097     yes)
3098       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3099 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3100    { (exit 1); exit 1; }; }
3101       ;;
3102     no)
3103       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3104 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3105    { (exit 1); exit 1; }; }
3106       ;;
3107     *)
3108       CC=$with_CC
3109       ;;
3110   esac
3111
3112 fi
3113
3114
3115
3116 case $template in
3117   aix) pgac_cc_list="gcc xlc";;
3118  irix) pgac_cc_list="cc";; # no gcc
3119     *) pgac_cc_list="gcc cc";;
3120 esac
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128   for ac_prog in $pgac_cc_list
3129   do
3130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$CC"; then
3138   ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167     test -n "$CC" && break
3168   done
3169 fi
3170 if test -z "$CC"; then
3171   ac_ct_CC=$CC
3172   for ac_prog in $pgac_cc_list
3173 do
3174   # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -n "$ac_ct_CC"; then
3182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191     ac_cv_prog_ac_ct_CC="$ac_prog"
3192     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3205 else
3206   { $as_echo "$as_me:$LINENO: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211   test -n "$ac_ct_CC" && break
3212 done
3213
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223     CC=$ac_ct_CC
3224   fi
3225 fi
3226
3227
3228 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details." >&5
3232 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&2;}
3234    { (exit 1); exit 1; }; }; }
3235
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 { (ac_try="$ac_compiler --version >&5"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247   (eval "$ac_compiler --version >&5") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }
3251 { (ac_try="$ac_compiler -v >&5"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258   (eval "$ac_compiler -v >&5") 2>&5
3259   ac_status=$?
3260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269   (eval "$ac_compiler -V >&5") 2>&5
3270   ac_status=$?
3271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }
3273
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300
3301 ac_rmfiles=
3302 for ac_file in $ac_files
3303 do
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307   esac
3308 done
3309 rm -f $ac_rmfiles
3310
3311 if { (ac_try="$ac_link_default"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318   (eval "$ac_link_default") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; then
3322   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3326 # Autoconf.
3327 for ac_file in $ac_files ''
3328 do
3329   test -f "$ac_file" || continue
3330   case $ac_file in
3331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332         ;;
3333     [ab].out )
3334         # We found the default executable, but exeext='' is most
3335         # certainly right.
3336         break;;
3337     *.* )
3338         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339         then :; else
3340            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341         fi
3342         # We set ac_cv_exeext here because the later test for it is not
3343         # safe: cross compilers may not add the suffix if given an `-o'
3344         # argument, so we may need to know it at that point already.
3345         # Even if this section looks crufty: it has the advantage of
3346         # actually working.
3347         break;;
3348     * )
3349         break;;
3350   esac
3351 done
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353
3354 else
3355   ac_file=''
3356 fi
3357
3358 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3359 $as_echo "$ac_file" >&6; }
3360 if test -z "$ac_file"; then
3361   $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3367 See \`config.log' for more details." >&5
3368 $as_echo "$as_me: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&2;}
3370    { (exit 77); exit 77; }; }; }
3371 fi
3372
3373 ac_exeext=$ac_cv_exeext
3374
3375 # Check that the compiler produces executables we can run.  If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3378 $as_echo_n "checking whether the C compiler works... " >&6; }
3379 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3380 # If not cross compiling, check that we can run a simple program.
3381 if test "$cross_compiling" != yes; then
3382   if { ac_try='./$ac_file'
3383   { (case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388 $as_echo "$ac_try_echo") >&5
3389   (eval "$ac_try") 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; }; then
3393     cross_compiling=no
3394   else
3395     if test "$cross_compiling" = maybe; then
3396         cross_compiling=yes
3397     else
3398         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&2;}
3406    { (exit 1); exit 1; }; }; }
3407     fi
3408   fi
3409 fi
3410 { $as_echo "$as_me:$LINENO: result: yes" >&5
3411 $as_echo "yes" >&6; }
3412
3413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3414 ac_clean_files=$ac_clean_files_save
3415 # Check that the compiler produces executables we can run.  If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { (ac_try="$ac_link"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430 $as_echo "$ac_try_echo") >&5
3431   (eval "$ac_link") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; then
3435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 # `rm'.
3439 for ac_file in conftest.exe conftest conftest.*; do
3440   test -f "$ac_file" || continue
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444           break;;
3445     * ) break;;
3446   esac
3447 done
3448 else
3449   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." >&5
3453 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }; }
3456 fi
3457
3458 rm -f conftest$ac_cv_exeext
3459 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3460 $as_echo "$ac_cv_exeext" >&6; }
3461
3462 rm -f conftest.$ac_ext
3463 EXEEXT=$ac_cv_exeext
3464 ac_exeext=$EXEEXT
3465 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3466 $as_echo_n "checking for suffix of object files... " >&6; }
3467 if test "${ac_cv_objext+set}" = set; then
3468   $as_echo_n "(cached) " >&6
3469 else
3470   cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476
3477 int
3478 main ()
3479 {
3480
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.o conftest.obj
3486 if { (ac_try="$ac_compile"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493   (eval "$ac_compile") 2>&5
3494   ac_status=$?
3495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); }; then
3497   for ac_file in conftest.o conftest.obj conftest.*; do
3498   test -f "$ac_file" || continue;
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3501     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3502        break;;
3503   esac
3504 done
3505 else
3506   $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details." >&5
3513 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details." >&2;}
3515    { (exit 1); exit 1; }; }; }
3516 fi
3517
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519 fi
3520 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3523 ac_objext=$OBJEXT
3524 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3527   $as_echo_n "(cached) " >&6
3528 else
3529   cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539 #ifndef __GNUC__
3540        choke me
3541 #endif
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3549 case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3554 $as_echo "$ac_try_echo") >&5
3555   (eval "$ac_compile") 2>conftest.er1
3556   ac_status=$?
3557   grep -v '^ *+' conftest.er1 >conftest.err
3558   rm -f conftest.er1
3559   cat conftest.err >&5
3560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } && {
3562          test -z "$ac_c_werror_flag" ||
3563          test ! -s conftest.err
3564        } && test -s conftest.$ac_objext; then
3565   ac_compiler_gnu=yes
3566 else
3567   $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570         ac_compiler_gnu=no
3571 fi
3572
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575
3576 fi
3577 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3580   GCC=yes
3581 else
3582   GCC=
3583 fi
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then
3589   $as_echo_n "(cached) " >&6
3590 else
3591   ac_save_c_werror_flag=$ac_c_werror_flag
3592    ac_c_werror_flag=yes
3593    ac_cv_prog_cc_g=no
3594    CFLAGS="-g"
3595    cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3617 $as_echo "$ac_try_echo") >&5
3618   (eval "$ac_compile") 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } && {
3625          test -z "$ac_c_werror_flag" ||
3626          test ! -s conftest.err
3627        } && test -s conftest.$ac_objext; then
3628   ac_cv_prog_cc_g=yes
3629 else
3630   $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633         CFLAGS=""
3634       cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640
3641 int
3642 main ()
3643 {
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } && {
3664          test -z "$ac_c_werror_flag" ||
3665          test ! -s conftest.err
3666        } && test -s conftest.$ac_objext; then
3667   :
3668 else
3669   $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672         ac_c_werror_flag=$ac_save_c_werror_flag
3673          CFLAGS="-g"
3674          cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (ac_try="$ac_compile"
3691 case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3696 $as_echo "$ac_try_echo") >&5
3697   (eval "$ac_compile") 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } && {
3704          test -z "$ac_c_werror_flag" ||
3705          test ! -s conftest.err
3706        } && test -s conftest.$ac_objext; then
3707   ac_cv_prog_cc_g=yes
3708 else
3709   $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712
3713 fi
3714
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722    ac_c_werror_flag=$ac_save_c_werror_flag
3723 fi
3724 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3725 $as_echo "$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727   CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729   if test "$GCC" = yes; then
3730     CFLAGS="-g -O2"
3731   else
3732     CFLAGS="-g"
3733   fi
3734 else
3735   if test "$GCC" = yes; then
3736     CFLAGS="-O2"
3737   else
3738     CFLAGS=
3739   fi
3740 fi
3741 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743 if test "${ac_cv_prog_cc_c89+set}" = set; then
3744   $as_echo_n "(cached) " >&6
3745 else
3746   ac_cv_prog_cc_c89=no
3747 ac_save_CC=$CC
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h.  */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h.  */
3754 #include <stdarg.h>
3755 #include <stdio.h>
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3762      char **p;
3763      int i;
3764 {
3765   return p[i];
3766 }
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3768 {
3769   char *s;
3770   va_list v;
3771   va_start (v,p);
3772   s = g (p, va_arg (v,int));
3773   va_end (v);
3774   return s;
3775 }
3776
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3778    function prototypes and stuff, but not '\xHH' hex character constants.
3779    These don't provoke an error unfortunately, instead are silently treated
3780    as 'x'.  The following induces an error, until -std is added to get
3781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3782    array size at least.  It's necessary to write '\x00'==0 to get something
3783    that's true only with -std.  */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787    inside strings and character constants.  */
3788 #define FOO(x) 'x'
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795 int argc;
3796 char **argv;
3797 int
3798 main ()
3799 {
3800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 do
3808   CC="$ac_save_CC $ac_arg"
3809   rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3816 $as_echo "$ac_try_echo") >&5
3817   (eval "$ac_compile") 2>conftest.er1
3818   ac_status=$?
3819   grep -v '^ *+' conftest.er1 >conftest.err
3820   rm -f conftest.er1
3821   cat conftest.err >&5
3822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); } && {
3824          test -z "$ac_c_werror_flag" ||
3825          test ! -s conftest.err
3826        } && test -s conftest.$ac_objext; then
3827   ac_cv_prog_cc_c89=$ac_arg
3828 else
3829   $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832
3833 fi
3834
3835 rm -f core conftest.err conftest.$ac_objext
3836   test "x$ac_cv_prog_cc_c89" != "xno" && break
3837 done
3838 rm -f conftest.$ac_ext
3839 CC=$ac_save_CC
3840
3841 fi
3842 # AC_CACHE_VAL
3843 case "x$ac_cv_prog_cc_c89" in
3844   x)
3845     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3847   xno)
3848     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3850   *)
3851     CC="$CC $ac_cv_prog_cc_c89"
3852     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3854 esac
3855
3856
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863
3864 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3865 # but has idiosyncrasies of its own.  We assume icc will define
3866 # __INTEL_COMPILER regardless of CFLAGS.
3867
3868 cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878 #ifndef __INTEL_COMPILER
3879 choke me
3880 #endif
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3887 case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893   (eval "$ac_compile") 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } && {
3900          test -z "$ac_c_werror_flag" ||
3901          test ! -s conftest.err
3902        } && test -s conftest.$ac_objext; then
3903   ICC=yes
3904 else
3905   $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908         ICC=no
3909 fi
3910
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912
3913 # Check if it's Sun Studio compiler. We assume that
3914 # __SUNPRO_C will be defined for Sun Studio compilers
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925 #ifndef __SUNPRO_C
3926 choke me
3927 #endif
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3939 $as_echo "$ac_try_echo") >&5
3940   (eval "$ac_compile") 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } && {
3947          test -z "$ac_c_werror_flag" ||
3948          test ! -s conftest.err
3949        } && test -s conftest.$ac_objext; then
3950   SUN_STUDIO_CC=yes
3951 else
3952   $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955         SUN_STUDIO_CC=no
3956 fi
3957
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
3960
3961
3962 unset CFLAGS
3963
3964 #
3965 # Read the template
3966 #
3967 . "$srcdir/src/template/$template" || exit
3968
3969 # CFLAGS are selected so:
3970 # If the user specifies something in the environment, that is used.
3971 # else:  If the template file set something, that is used.
3972 # else:  If coverage was enabled, don't set anything.
3973 # else:  If the compiler is GCC, then we use -O2.
3974 # else:  If the compiler is something else, then we use -O, unless debugging.
3975
3976 if test "$ac_env_CFLAGS_set" = set; then
3977   CFLAGS=$ac_env_CFLAGS_value
3978 elif test "${CFLAGS+set}" = set; then
3979   : # (keep what template set)
3980 elif test "$enable_coverage" = yes; then
3981   : # no optimization by default
3982 elif test "$GCC" = yes; then
3983   CFLAGS="-O2"
3984 else
3985   # if the user selected debug mode, don't use -O
3986   if test "$enable_debug" != yes; then
3987     CFLAGS="-O"
3988   fi
3989 fi
3990
3991 # Some versions of GCC support some additional useful warning flags.
3992 # Check whether they are supported, and add them to CFLAGS if so.
3993 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3994 # but has its own.  Also check other compiler-specific flags here.
3995
3996 if test "$GCC" = yes -a "$ICC" = no; then
3997   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3998   # These work in some but not all gcc versions
3999   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4000 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4001 pgac_save_CFLAGS=$CFLAGS
4002 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4025 $as_echo "$ac_try_echo") >&5
4026   (eval "$ac_compile") 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } && {
4033          test -z "$ac_c_werror_flag" ||
4034          test ! -s conftest.err
4035        } && test -s conftest.$ac_objext; then
4036   { $as_echo "$as_me:$LINENO: result: yes" >&5
4037 $as_echo "yes" >&6; }
4038 else
4039   $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042         CFLAGS="$pgac_save_CFLAGS"
4043                     { $as_echo "$as_me:$LINENO: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048
4049   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4050 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4051 pgac_save_CFLAGS=$CFLAGS
4052 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076   (eval "$ac_compile") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } && {
4083          test -z "$ac_c_werror_flag" ||
4084          test ! -s conftest.err
4085        } && test -s conftest.$ac_objext; then
4086   { $as_echo "$as_me:$LINENO: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 else
4089   $as_echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         CFLAGS="$pgac_save_CFLAGS"
4093                     { $as_echo "$as_me:$LINENO: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098
4099   # Disable strict-aliasing rules; needed for gcc 3.3+
4100   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4101 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4102 pgac_save_CFLAGS=$CFLAGS
4103 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h.  */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4126 $as_echo "$ac_try_echo") >&5
4127   (eval "$ac_compile") 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } && {
4134          test -z "$ac_c_werror_flag" ||
4135          test ! -s conftest.err
4136        } && test -s conftest.$ac_objext; then
4137   { $as_echo "$as_me:$LINENO: result: yes" >&5
4138 $as_echo "yes" >&6; }
4139 else
4140   $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143         CFLAGS="$pgac_save_CFLAGS"
4144                     { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149
4150   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4151   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4152 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4153 pgac_save_CFLAGS=$CFLAGS
4154 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161
4162 int
4163 main ()
4164 {
4165
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (ac_try="$ac_compile"
4172 case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178   (eval "$ac_compile") 2>conftest.er1
4179   ac_status=$?
4180   grep -v '^ *+' conftest.er1 >conftest.err
4181   rm -f conftest.er1
4182   cat conftest.err >&5
4183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } && {
4185          test -z "$ac_c_werror_flag" ||
4186          test ! -s conftest.err
4187        } && test -s conftest.$ac_objext; then
4188   { $as_echo "$as_me:$LINENO: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190 else
4191   $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194         CFLAGS="$pgac_save_CFLAGS"
4195                     { $as_echo "$as_me:$LINENO: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200
4201 elif test "$ICC" = yes; then
4202   # Intel's compiler has a bug/misoptimization in checking for
4203   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4204   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4205 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4206 pgac_save_CFLAGS=$CFLAGS
4207 CFLAGS="$pgac_save_CFLAGS -mp1"
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214
4215 int
4216 main ()
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4225 case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230 $as_echo "$ac_try_echo") >&5
4231   (eval "$ac_compile") 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } && {
4238          test -z "$ac_c_werror_flag" ||
4239          test ! -s conftest.err
4240        } && test -s conftest.$ac_objext; then
4241   { $as_echo "$as_me:$LINENO: result: yes" >&5
4242 $as_echo "yes" >&6; }
4243 else
4244   $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247         CFLAGS="$pgac_save_CFLAGS"
4248                     { $as_echo "$as_me:$LINENO: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253
4254   # Make sure strict aliasing is off (though this is said to be the default)
4255   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4256 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4257 pgac_save_CFLAGS=$CFLAGS
4258 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4276 case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282   (eval "$ac_compile") 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } && {
4289          test -z "$ac_c_werror_flag" ||
4290          test ! -s conftest.err
4291        } && test -s conftest.$ac_objext; then
4292   { $as_echo "$as_me:$LINENO: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 else
4295   $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298         CFLAGS="$pgac_save_CFLAGS"
4299                     { $as_echo "$as_me:$LINENO: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305 elif test "$PORTNAME" = "aix"; then
4306   # AIX's xlc has to have strict aliasing turned off too
4307   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4308 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4309 pgac_save_CFLAGS=$CFLAGS
4310 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (ac_try="$ac_compile"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334   (eval "$ac_compile") 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } && {
4341          test -z "$ac_c_werror_flag" ||
4342          test ! -s conftest.err
4343        } && test -s conftest.$ac_objext; then
4344   { $as_echo "$as_me:$LINENO: result: yes" >&5
4345 $as_echo "yes" >&6; }
4346 else
4347   $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350         CFLAGS="$pgac_save_CFLAGS"
4351                     { $as_echo "$as_me:$LINENO: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356
4357 fi
4358
4359 # supply -g if --enable-debug
4360 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4361   CFLAGS="$CFLAGS -g"
4362 fi
4363
4364 # enable code coverage if --enable-coverage
4365 if test "$enable_coverage" = yes; then
4366   if test "$GCC" = yes; then
4367     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4368   else
4369     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4370 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4371    { (exit 1); exit 1; }; }
4372   fi
4373 fi
4374
4375 # enable profiling if --enable-profiling
4376 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4377   if test "$GCC" = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define PROFILE_PID_DIR 1
4381 _ACEOF
4382
4383     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4384   else
4385     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4386 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4387    { (exit 1); exit 1; }; }
4388   fi
4389 fi
4390
4391 # We already have this in Makefile.win32, but configure needs it too
4392 if test "$PORTNAME" = "win32"; then
4393   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4394 fi
4395
4396 # Check if the compiler still works with the template settings
4397 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4398 $as_echo_n "checking whether the C compiler still works... " >&6; }
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405
4406 int
4407 main ()
4408 {
4409 return 0;
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 rm -f conftest.$ac_objext conftest$ac_exeext
4415 if { (ac_try="$ac_link"
4416 case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4421 $as_echo "$ac_try_echo") >&5
4422   (eval "$ac_link") 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } && {
4429          test -z "$ac_c_werror_flag" ||
4430          test ! -s conftest.err
4431        } && test -s conftest$ac_exeext && {
4432          test "$cross_compiling" = yes ||
4433          $as_test_x conftest$ac_exeext
4434        }; then
4435   { $as_echo "$as_me:$LINENO: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 else
4438   $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         { $as_echo "$as_me:$LINENO: result: no" >&5
4442 $as_echo "no" >&6; }
4443    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4444 $as_echo "$as_me: error: cannot proceed" >&2;}
4445    { (exit 1); exit 1; }; }
4446 fi
4447
4448 rm -rf conftest.dSYM
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450       conftest$ac_exeext conftest.$ac_ext
4451
4452 # Defend against gcc -ffast-math
4453 if test "$GCC" = yes; then
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460
4461 int
4462 main ()
4463 {
4464 #ifdef __FAST_MATH__
4465 choke me
4466 #endif
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479   (eval "$ac_compile") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } && {
4486          test -z "$ac_c_werror_flag" ||
4487          test ! -s conftest.err
4488        } && test -s conftest.$ac_objext; then
4489   :
4490 else
4491   $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4495 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4496    { (exit 1); exit 1; }; }
4497 fi
4498
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4509 # On Suns, sometimes $CPP names a directory.
4510 if test -n "$CPP" && test -d "$CPP"; then
4511   CPP=
4512 fi
4513 if test -z "$CPP"; then
4514   if test "${ac_cv_prog_CPP+set}" = set; then
4515   $as_echo_n "(cached) " >&6
4516 else
4517       # Double quotes because CPP needs to be expanded
4518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4519     do
4520       ac_preproc_ok=false
4521 for ac_c_preproc_warn_flag in '' yes
4522 do
4523   # Use a header file that comes with gcc, so configuring glibc
4524   # with a fresh cross-compiler works.
4525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526   # <limits.h> exists even on freestanding compilers.
4527   # On the NeXT, cc -E runs the code through the compiler's parser,
4528   # not just through cpp. "Syntax error" is here to catch this case.
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 #ifdef __STDC__
4536 # include <limits.h>
4537 #else
4538 # include <assert.h>
4539 #endif
4540                      Syntax error
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4548 $as_echo "$ac_try_echo") >&5
4549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } >/dev/null && {
4556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557          test ! -s conftest.err
4558        }; then
4559   :
4560 else
4561   $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564   # Broken: fails on valid input.
4565 continue
4566 fi
4567
4568 rm -f conftest.err conftest.$ac_ext
4569
4570   # OK, works on sane cases.  Now check whether nonexistent headers
4571   # can be detected and how.
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <ac_nonexistent.h>
4579 _ACEOF
4580 if { (ac_try="$ac_cpp conftest.$ac_ext"
4581 case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586 $as_echo "$ac_try_echo") >&5
4587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } >/dev/null && {
4594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595          test ! -s conftest.err
4596        }; then
4597   # Broken: success on invalid input.
4598 continue
4599 else
4600   $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603   # Passes both tests.
4604 ac_preproc_ok=:
4605 break
4606 fi
4607
4608 rm -f conftest.err conftest.$ac_ext
4609
4610 done
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then
4614   break
4615 fi
4616
4617     done
4618     ac_cv_prog_CPP=$CPP
4619
4620 fi
4621   CPP=$ac_cv_prog_CPP
4622 else
4623   ac_cv_prog_CPP=$CPP
4624 fi
4625 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4626 $as_echo "$CPP" >&6; }
4627 ac_preproc_ok=false
4628 for ac_c_preproc_warn_flag in '' yes
4629 do
4630   # Use a header file that comes with gcc, so configuring glibc
4631   # with a fresh cross-compiler works.
4632   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633   # <limits.h> exists even on freestanding compilers.
4634   # On the NeXT, cc -E runs the code through the compiler's parser,
4635   # not just through cpp. "Syntax error" is here to catch this case.
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 #ifdef __STDC__
4643 # include <limits.h>
4644 #else
4645 # include <assert.h>
4646 #endif
4647                      Syntax error
4648 _ACEOF
4649 if { (ac_try="$ac_cpp conftest.$ac_ext"
4650 case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 $as_echo "$ac_try_echo") >&5
4656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } >/dev/null && {
4663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664          test ! -s conftest.err
4665        }; then
4666   :
4667 else
4668   $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671   # Broken: fails on valid input.
4672 continue
4673 fi
4674
4675 rm -f conftest.err conftest.$ac_ext
4676
4677   # OK, works on sane cases.  Now check whether nonexistent headers
4678   # can be detected and how.
4679   cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685 #include <ac_nonexistent.h>
4686 _ACEOF
4687 if { (ac_try="$ac_cpp conftest.$ac_ext"
4688 case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4695   ac_status=$?
4696   grep -v '^ *+' conftest.er1 >conftest.err
4697   rm -f conftest.er1
4698   cat conftest.err >&5
4699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } >/dev/null && {
4701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4702          test ! -s conftest.err
4703        }; then
4704   # Broken: success on invalid input.
4705 continue
4706 else
4707   $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710   # Passes both tests.
4711 ac_preproc_ok=:
4712 break
4713 fi
4714
4715 rm -f conftest.err conftest.$ac_ext
4716
4717 done
4718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4719 rm -f conftest.err conftest.$ac_ext
4720 if $ac_preproc_ok; then
4721   :
4722 else
4723   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4725 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4726 See \`config.log' for more details." >&5
4727 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details." >&2;}
4729    { (exit 1); exit 1; }; }; }
4730 fi
4731
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738
4739
4740
4741 #
4742 # Set up TAS assembly code if needed; the template file has now had its
4743 # chance to request this.
4744 #
4745 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4746
4747
4748 if test "$need_tas" = yes ; then
4749   TAS=tas.o
4750 else
4751   TAS=""
4752 fi
4753
4754
4755
4756 #
4757 # Automatic dependency tracking
4758 #
4759
4760
4761 # Check whether --enable-depend was given.
4762 if test "${enable_depend+set}" = set; then
4763   enableval=$enable_depend;
4764   case $enableval in
4765     yes)
4766       autodepend=yes
4767       ;;
4768     no)
4769       :
4770       ;;
4771     *)
4772       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4773 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4774    { (exit 1); exit 1; }; }
4775       ;;
4776   esac
4777
4778 else
4779   enable_depend=no
4780
4781 fi
4782
4783
4784
4785
4786
4787 #
4788 # Enable assert checks
4789 #
4790
4791
4792 # Check whether --enable-cassert was given.
4793 if test "${enable_cassert+set}" = set; then
4794   enableval=$enable_cassert;
4795   case $enableval in
4796     yes)
4797
4798 cat >>confdefs.h <<\_ACEOF
4799 #define USE_ASSERT_CHECKING 1
4800 _ACEOF
4801
4802       ;;
4803     no)
4804       :
4805       ;;
4806     *)
4807       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4808 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4809    { (exit 1); exit 1; }; }
4810       ;;
4811   esac
4812
4813 else
4814   enable_cassert=no
4815
4816 fi
4817
4818
4819
4820
4821 #
4822 # Include directories
4823 #
4824 ac_save_IFS=$IFS
4825 IFS="${IFS}${PATH_SEPARATOR}"
4826 # SRCH_INC comes from the template file
4827 for dir in $with_includes $SRCH_INC; do
4828   if test -d "$dir"; then
4829     INCLUDES="$INCLUDES -I$dir"
4830   else
4831     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4832 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4833   fi
4834 done
4835 IFS=$ac_save_IFS
4836
4837
4838
4839 #
4840 # Library directories
4841 #
4842 ac_save_IFS=$IFS
4843 IFS="${IFS}${PATH_SEPARATOR}"
4844 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4845 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4846   if test -d "$dir"; then
4847     LIBDIRS="$LIBDIRS -L$dir"
4848   else
4849     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4850 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4851   fi
4852 done
4853 IFS=$ac_save_IFS
4854
4855 #
4856 # Enable thread-safe client libraries
4857 #
4858 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4859 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4860
4861
4862 # Check whether --enable-thread-safety was given.
4863 if test "${enable_thread_safety+set}" = set; then
4864   enableval=$enable_thread_safety;
4865   case $enableval in
4866     yes)
4867       :
4868       ;;
4869     no)
4870       :
4871       ;;
4872     *)
4873       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4874 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4875    { (exit 1); exit 1; }; }
4876       ;;
4877   esac
4878
4879 else
4880   enable_thread_safety=yes
4881
4882 fi
4883
4884
4885 if test "$enable_thread_safety" = yes; then
4886
4887 cat >>confdefs.h <<\_ACEOF
4888 #define ENABLE_THREAD_SAFETY 1
4889 _ACEOF
4890
4891 fi
4892 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4893 $as_echo "$enable_thread_safety" >&6; }
4894
4895
4896 #
4897 # Optionally build Tcl modules (PL/Tcl)
4898 #
4899 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4900 $as_echo_n "checking whether to build with Tcl... " >&6; }
4901
4902
4903
4904 # Check whether --with-tcl was given.
4905 if test "${with_tcl+set}" = set; then
4906   withval=$with_tcl;
4907   case $withval in
4908     yes)
4909       :
4910       ;;
4911     no)
4912       :
4913       ;;
4914     *)
4915       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4916 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4917    { (exit 1); exit 1; }; }
4918       ;;
4919   esac
4920
4921 else
4922   with_tcl=no
4923
4924 fi
4925
4926
4927 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4928 $as_echo "$with_tcl" >&6; }
4929
4930
4931 # We see if the path to the Tcl/Tk configuration scripts is specified.
4932 # This will override the use of tclsh to find the paths to search.
4933
4934
4935
4936
4937 # Check whether --with-tclconfig was given.
4938 if test "${with_tclconfig+set}" = set; then
4939   withval=$with_tclconfig;
4940   case $withval in
4941     yes)
4942       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4943 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4944    { (exit 1); exit 1; }; }
4945       ;;
4946     no)
4947       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4948 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4949    { (exit 1); exit 1; }; }
4950       ;;
4951     *)
4952
4953       ;;
4954   esac
4955
4956 fi
4957
4958
4959
4960 #
4961 # Optionally build Perl modules (PL/Perl)
4962 #
4963 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4964 $as_echo_n "checking whether to build Perl modules... " >&6; }
4965
4966
4967
4968 # Check whether --with-perl was given.
4969 if test "${with_perl+set}" = set; then
4970   withval=$with_perl;
4971   case $withval in
4972     yes)
4973       :
4974       ;;
4975     no)
4976       :
4977       ;;
4978     *)
4979       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4980 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4981    { (exit 1); exit 1; }; }
4982       ;;
4983   esac
4984
4985 else
4986   with_perl=no
4987
4988 fi
4989
4990
4991 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4992 $as_echo "$with_perl" >&6; }
4993
4994
4995 #
4996 # Optionally build Python modules (PL/Python)
4997 #
4998 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4999 $as_echo_n "checking whether to build Python modules... " >&6; }
5000
5001
5002
5003 # Check whether --with-python was given.
5004 if test "${with_python+set}" = set; then
5005   withval=$with_python;
5006   case $withval in
5007     yes)
5008       :
5009       ;;
5010     no)
5011       :
5012       ;;
5013     *)
5014       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5015 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5016    { (exit 1); exit 1; }; }
5017       ;;
5018   esac
5019
5020 else
5021   with_python=no
5022
5023 fi
5024
5025
5026 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5027 $as_echo "$with_python" >&6; }
5028
5029
5030 #
5031 # GSSAPI
5032 #
5033 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5034 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5035
5036
5037
5038 # Check whether --with-gssapi was given.
5039 if test "${with_gssapi+set}" = set; then
5040   withval=$with_gssapi;
5041   case $withval in
5042     yes)
5043
5044
5045 cat >>confdefs.h <<\_ACEOF
5046 #define ENABLE_GSS 1
5047 _ACEOF
5048
5049   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5050
5051       ;;
5052     no)
5053       :
5054       ;;
5055     *)
5056       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5057 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5058    { (exit 1); exit 1; }; }
5059       ;;
5060   esac
5061
5062 else
5063   with_gssapi=no
5064
5065 fi
5066
5067
5068 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5069 $as_echo "$with_gssapi" >&6; }
5070
5071
5072 #
5073 # Kerberos 5
5074 #
5075 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5076 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5077
5078
5079
5080 # Check whether --with-krb5 was given.
5081 if test "${with_krb5+set}" = set; then
5082   withval=$with_krb5;
5083   case $withval in
5084     yes)
5085
5086
5087 cat >>confdefs.h <<\_ACEOF
5088 #define KRB5 1
5089 _ACEOF
5090
5091   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5092
5093       ;;
5094     no)
5095       :
5096       ;;
5097     *)
5098       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5099 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5100    { (exit 1); exit 1; }; }
5101       ;;
5102   esac
5103
5104 else
5105   with_krb5=no
5106
5107 fi
5108
5109
5110 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5111 $as_echo "$with_krb5" >&6; }
5112
5113
5114
5115
5116
5117
5118 #
5119 # Kerberos configuration parameters
5120 #
5121
5122
5123
5124 # Check whether --with-krb-srvnam was given.
5125 if test "${with_krb_srvnam+set}" = set; then
5126   withval=$with_krb_srvnam;
5127   case $withval in
5128     yes)
5129       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5130 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5131    { (exit 1); exit 1; }; }
5132       ;;
5133     no)
5134       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5135 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5136    { (exit 1); exit 1; }; }
5137       ;;
5138     *)
5139
5140       ;;
5141   esac
5142
5143 else
5144   with_krb_srvnam="postgres"
5145 fi
5146
5147
5148
5149 cat >>confdefs.h <<_ACEOF
5150 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5151 _ACEOF
5152
5153
5154
5155 #
5156 # PAM
5157 #
5158 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5159 $as_echo_n "checking whether to build with PAM support... " >&6; }
5160
5161
5162
5163 # Check whether --with-pam was given.
5164 if test "${with_pam+set}" = set; then
5165   withval=$with_pam;
5166   case $withval in
5167     yes)
5168
5169 cat >>confdefs.h <<\_ACEOF
5170 #define USE_PAM 1
5171 _ACEOF
5172
5173       ;;
5174     no)
5175       :
5176       ;;
5177     *)
5178       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5179 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5180    { (exit 1); exit 1; }; }
5181       ;;
5182   esac
5183
5184 else
5185   with_pam=no
5186
5187 fi
5188
5189
5190 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5191 $as_echo "$with_pam" >&6; }
5192
5193
5194
5195 #
5196 # LDAP
5197 #
5198 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5199 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5200
5201
5202
5203 # Check whether --with-ldap was given.
5204 if test "${with_ldap+set}" = set; then
5205   withval=$with_ldap;
5206   case $withval in
5207     yes)
5208
5209 cat >>confdefs.h <<\_ACEOF
5210 #define USE_LDAP 1
5211 _ACEOF
5212
5213       ;;
5214     no)
5215       :
5216       ;;
5217     *)
5218       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5219 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5220    { (exit 1); exit 1; }; }
5221       ;;
5222   esac
5223
5224 else
5225   with_ldap=no
5226
5227 fi
5228
5229
5230 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5231 $as_echo "$with_ldap" >&6; }
5232
5233
5234
5235 #
5236 # Bonjour
5237 #
5238 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5239 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5240
5241
5242
5243 # Check whether --with-bonjour was given.
5244 if test "${with_bonjour+set}" = set; then
5245   withval=$with_bonjour;
5246   case $withval in
5247     yes)
5248
5249 cat >>confdefs.h <<\_ACEOF
5250 #define USE_BONJOUR 1
5251 _ACEOF
5252
5253       ;;
5254     no)
5255       :
5256       ;;
5257     *)
5258       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5259 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5260    { (exit 1); exit 1; }; }
5261       ;;
5262   esac
5263
5264 else
5265   with_bonjour=no
5266
5267 fi
5268
5269
5270 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5271 $as_echo "$with_bonjour" >&6; }
5272
5273
5274
5275 #
5276 # OpenSSL
5277 #
5278 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5279 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5280
5281
5282
5283 # Check whether --with-openssl was given.
5284 if test "${with_openssl+set}" = set; then
5285   withval=$with_openssl;
5286   case $withval in
5287     yes)
5288
5289 cat >>confdefs.h <<\_ACEOF
5290 #define USE_SSL 1
5291 _ACEOF
5292
5293       ;;
5294     no)
5295       :
5296       ;;
5297     *)
5298       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5299 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5300    { (exit 1); exit 1; }; }
5301       ;;
5302   esac
5303
5304 else
5305   with_openssl=no
5306
5307 fi
5308
5309
5310 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5311 $as_echo "$with_openssl" >&6; }
5312
5313
5314
5315 #
5316 # Readline
5317 #
5318
5319
5320
5321 # Check whether --with-readline was given.
5322 if test "${with_readline+set}" = set; then
5323   withval=$with_readline;
5324   case $withval in
5325     yes)
5326       :
5327       ;;
5328     no)
5329       :
5330       ;;
5331     *)
5332       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5333 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5334    { (exit 1); exit 1; }; }
5335       ;;
5336   esac
5337
5338 else
5339   with_readline=yes
5340
5341 fi
5342
5343
5344 # readline on MinGW has problems with backslashes in psql and other bugs.
5345 # This is particularly a problem with non-US code pages.
5346 # Therefore disable its use until we understand the cause. 2004-07-20
5347 if test "$PORTNAME" = "win32"; then
5348   if test "$with_readline" = yes; then
5349     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5350 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5351     with_readline=no
5352   fi
5353 fi
5354
5355
5356 #
5357 # Prefer libedit
5358 #
5359
5360
5361
5362 # Check whether --with-libedit-preferred was given.
5363 if test "${with_libedit_preferred+set}" = set; then
5364   withval=$with_libedit_preferred;
5365   case $withval in
5366     yes)
5367       :
5368       ;;
5369     no)
5370       :
5371       ;;
5372     *)
5373       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5374 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5375    { (exit 1); exit 1; }; }
5376       ;;
5377   esac
5378
5379 else
5380   with_libedit_preferred=no
5381
5382 fi
5383
5384
5385
5386
5387 #
5388 # OSSP UUID library
5389 #
5390
5391
5392
5393 # Check whether --with-ossp-uuid was given.
5394 if test "${with_ossp_uuid+set}" = set; then
5395   withval=$with_ossp_uuid;
5396   case $withval in
5397     yes)
5398       :
5399       ;;
5400     no)
5401       :
5402       ;;
5403     *)
5404       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5405 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5406    { (exit 1); exit 1; }; }
5407       ;;
5408   esac
5409
5410 else
5411   with_ossp_uuid=no
5412
5413 fi
5414
5415
5416
5417
5418
5419 #
5420 # XML
5421 #
5422
5423
5424
5425 # Check whether --with-libxml was given.
5426 if test "${with_libxml+set}" = set; then
5427   withval=$with_libxml;
5428   case $withval in
5429     yes)
5430
5431 cat >>confdefs.h <<\_ACEOF
5432 #define USE_LIBXML 1
5433 _ACEOF
5434
5435       ;;
5436     no)
5437       :
5438       ;;
5439     *)
5440       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5441 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5442    { (exit 1); exit 1; }; }
5443       ;;
5444   esac
5445
5446 else
5447   with_libxml=no
5448
5449 fi
5450
5451
5452
5453 if test "$with_libxml" = yes ; then
5454   for ac_prog in xml2-config
5455 do
5456   # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5461   $as_echo_n "(cached) " >&6
5462 else
5463   if test -n "$XML2_CONFIG"; then
5464   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_exec_ext in '' $ac_executable_extensions; do
5472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473     ac_cv_prog_XML2_CONFIG="$ac_prog"
5474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5484 if test -n "$XML2_CONFIG"; then
5485   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5486 $as_echo "$XML2_CONFIG" >&6; }
5487 else
5488   { $as_echo "$as_me:$LINENO: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493   test -n "$XML2_CONFIG" && break
5494 done
5495
5496   if test -n "$XML2_CONFIG"; then
5497     for pgac_option in `$XML2_CONFIG --cflags`; do
5498       case $pgac_option in
5499         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5500       esac
5501     done
5502     for pgac_option in `$XML2_CONFIG --libs`; do
5503       case $pgac_option in
5504         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5505       esac
5506     done
5507   fi
5508 fi
5509
5510
5511
5512 #
5513 # XSLT
5514 #
5515
5516
5517
5518 # Check whether --with-libxslt was given.
5519 if test "${with_libxslt+set}" = set; then
5520   withval=$with_libxslt;
5521   case $withval in
5522     yes)
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define USE_LIBXSLT 1
5526 _ACEOF
5527
5528       ;;
5529     no)
5530       :
5531       ;;
5532     *)
5533       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5534 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5535    { (exit 1); exit 1; }; }
5536       ;;
5537   esac
5538
5539 else
5540   with_libxslt=no
5541
5542 fi
5543
5544
5545
5546
5547
5548
5549 #
5550 # tzdata
5551 #
5552
5553
5554
5555 # Check whether --with-system-tzdata was given.
5556 if test "${with_system_tzdata+set}" = set; then
5557   withval=$with_system_tzdata;
5558   case $withval in
5559     yes)
5560       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5561 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5562    { (exit 1); exit 1; }; }
5563       ;;
5564     no)
5565       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5566 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5567    { (exit 1); exit 1; }; }
5568       ;;
5569     *)
5570
5571       ;;
5572   esac
5573
5574 fi
5575
5576
5577
5578
5579 #
5580 # Zlib
5581 #
5582
5583
5584
5585 # Check whether --with-zlib was given.
5586 if test "${with_zlib+set}" = set; then
5587   withval=$with_zlib;
5588   case $withval in
5589     yes)
5590       :
5591       ;;
5592     no)
5593       :
5594       ;;
5595     *)
5596       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5597 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5598    { (exit 1); exit 1; }; }
5599       ;;
5600   esac
5601
5602 else
5603   with_zlib=yes
5604
5605 fi
5606
5607
5608
5609
5610 #
5611 # Elf
5612 #
5613
5614 # Assume system is ELF if it predefines __ELF__ as 1,
5615 # otherwise believe host_os based default.
5616 case $host_os in
5617     freebsd1*|freebsd2*) elf=no;;
5618     freebsd3*|freebsd4*) elf=yes;;
5619 esac
5620
5621
5622 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5624 if test "${ac_cv_path_GREP+set}" = set; then
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if test -z "$GREP"; then
5628   ac_path_GREP_found=false
5629   # Loop through the user's path and test for each of PROGNAME-LIST
5630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for ac_prog in grep ggrep; do
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5638       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5639 # Check for GNU ac_path_GREP and select it if it is found.
5640   # Check for GNU $ac_path_GREP
5641 case `"$ac_path_GREP" --version 2>&1` in
5642 *GNU*)
5643   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5644 *)
5645   ac_count=0
5646   $as_echo_n 0123456789 >"conftest.in"
5647   while :
5648   do
5649     cat "conftest.in" "conftest.in" >"conftest.tmp"
5650     mv "conftest.tmp" "conftest.in"
5651     cp "conftest.in" "conftest.nl"
5652     $as_echo 'GREP' >> "conftest.nl"
5653     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655     ac_count=`expr $ac_count + 1`
5656     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5657       # Best one so far, save it but keep looking for a better one
5658       ac_cv_path_GREP="$ac_path_GREP"
5659       ac_path_GREP_max=$ac_count
5660     fi
5661     # 10*(2^10) chars as input seems more than enough
5662     test $ac_count -gt 10 && break
5663   done
5664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5666
5667       $ac_path_GREP_found && break 3
5668     done
5669   done
5670 done
5671 IFS=$as_save_IFS
5672   if test -z "$ac_cv_path_GREP"; then
5673     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675    { (exit 1); exit 1; }; }
5676   fi
5677 else
5678   ac_cv_path_GREP=$GREP
5679 fi
5680
5681 fi
5682 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5683 $as_echo "$ac_cv_path_GREP" >&6; }
5684  GREP="$ac_cv_path_GREP"
5685
5686
5687 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5688 $as_echo_n "checking for egrep... " >&6; }
5689 if test "${ac_cv_path_EGREP+set}" = set; then
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5693    then ac_cv_path_EGREP="$GREP -E"
5694    else
5695      if test -z "$EGREP"; then
5696   ac_path_EGREP_found=false
5697   # Loop through the user's path and test for each of PROGNAME-LIST
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_prog in egrep; do
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5706       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5707 # Check for GNU ac_path_EGREP and select it if it is found.
5708   # Check for GNU $ac_path_EGREP
5709 case `"$ac_path_EGREP" --version 2>&1` in
5710 *GNU*)
5711   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5712 *)
5713   ac_count=0
5714   $as_echo_n 0123456789 >"conftest.in"
5715   while :
5716   do
5717     cat "conftest.in" "conftest.in" >"conftest.tmp"
5718     mv "conftest.tmp" "conftest.in"
5719     cp "conftest.in" "conftest.nl"
5720     $as_echo 'EGREP' >> "conftest.nl"
5721     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723     ac_count=`expr $ac_count + 1`
5724     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5725       # Best one so far, save it but keep looking for a better one
5726       ac_cv_path_EGREP="$ac_path_EGREP"
5727       ac_path_EGREP_max=$ac_count
5728     fi
5729     # 10*(2^10) chars as input seems more than enough
5730     test $ac_count -gt 10 && break
5731   done
5732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733 esac
5734
5735       $ac_path_EGREP_found && break 3
5736     done
5737   done
5738 done
5739 IFS=$as_save_IFS
5740   if test -z "$ac_cv_path_EGREP"; then
5741     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743    { (exit 1); exit 1; }; }
5744   fi
5745 else
5746   ac_cv_path_EGREP=$EGREP
5747 fi
5748
5749    fi
5750 fi
5751 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5752 $as_echo "$ac_cv_path_EGREP" >&6; }
5753  EGREP="$ac_cv_path_EGREP"
5754
5755
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762 #if __ELF__
5763   yes
5764 #endif
5765
5766 _ACEOF
5767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5768   $EGREP "yes" >/dev/null 2>&1; then
5769   ELF_SYS=true
5770 else
5771   if test "X$elf" = "Xyes" ; then
5772   ELF_SYS=true
5773 else
5774   ELF_SYS=
5775 fi
5776 fi
5777 rm -f conftest*
5778
5779
5780
5781 #
5782 # Assignments
5783 #
5784
5785 CPPFLAGS="$CPPFLAGS $INCLUDES"
5786 LDFLAGS="$LDFLAGS $LIBDIRS"
5787
5788
5789
5790
5791 # Check whether --with-gnu-ld was given.
5792 if test "${with_gnu_ld+set}" = set; then
5793   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5794 else
5795   with_gnu_ld=no
5796 fi
5797
5798 ac_prog=ld
5799 if test "$GCC" = yes; then
5800   # Check if gcc -print-prog-name=ld gives a path.
5801   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5802 $as_echo_n "checking for ld used by GCC... " >&6; }
5803   case $host in
5804   *-*-mingw*)
5805     # gcc leaves a trailing carriage return which upsets mingw
5806     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5807   *)
5808     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5809   esac
5810   case "$ac_prog" in
5811     # Accept absolute paths.
5812     [\\/]* | [A-Za-z]:[\\/]*)
5813       re_direlt='/[^/][^/]*/\.\./'
5814       # Canonicalize the path of ld
5815       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5816       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5817         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5818       done
5819       test -z "$LD" && LD="$ac_prog"
5820       ;;
5821   "")
5822     # If it fails, then pretend we aren't using GCC.
5823     ac_prog=ld
5824     ;;
5825   *)
5826     # If it is relative, then search for the first ld in PATH.
5827     with_gnu_ld=unknown
5828     ;;
5829   esac
5830 elif test "$with_gnu_ld" = yes; then
5831   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5832 $as_echo_n "checking for GNU ld... " >&6; }
5833 else
5834   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5835 $as_echo_n "checking for non-GNU ld... " >&6; }
5836 fi
5837 if test "${ac_cv_path_LD+set}" = set; then
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -z "$LD"; then
5841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5842   for ac_dir in $PATH; do
5843     test -z "$ac_dir" && ac_dir=.
5844     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5845       ac_cv_path_LD="$ac_dir/$ac_prog"
5846       # Check to see if the program is GNU ld.  I'd rather use --version,
5847       # but apparently some GNU ld's only accept -v.
5848       # Break only if it was the GNU/non-GNU ld that we prefer.
5849       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5850         test "$with_gnu_ld" != no && break
5851       else
5852         test "$with_gnu_ld" != yes && break
5853       fi
5854     fi
5855   done
5856   IFS="$ac_save_ifs"
5857 else
5858   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5859 fi
5860 fi
5861
5862 LD="$ac_cv_path_LD"
5863 if test -n "$LD"; then
5864   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5866 else
5867   { $as_echo "$as_me:$LINENO: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5871 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5872    { (exit 1); exit 1; }; }
5873 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5876   $as_echo_n "(cached) " >&6
5877 else
5878   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5879 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5880   ac_cv_prog_gnu_ld=yes
5881 else
5882   ac_cv_prog_gnu_ld=no
5883 fi
5884 fi
5885 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5886 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5887 with_gnu_ld=$ac_cv_prog_gnu_ld
5888
5889
5890
5891
5892 case $host_os in sysv5*)
5893   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5894 $as_echo_n "checking whether ld -R works... " >&6; }
5895 if test "${pgac_cv_prog_ld_R+set}" = set; then
5896   $as_echo_n "(cached) " >&6
5897 else
5898
5899     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5900     cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906
5907 int
5908 main ()
5909 {
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (ac_try="$ac_link"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923   (eval "$ac_link") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && {
5930          test -z "$ac_c_werror_flag" ||
5931          test ! -s conftest.err
5932        } && test -s conftest$ac_exeext && {
5933          test "$cross_compiling" = yes ||
5934          $as_test_x conftest$ac_exeext
5935        }; then
5936   pgac_cv_prog_ld_R=yes
5937 else
5938   $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941         pgac_cv_prog_ld_R=no
5942 fi
5943
5944 rm -rf conftest.dSYM
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5946       conftest$ac_exeext conftest.$ac_ext
5947     LDFLAGS=$pgac_save_LDFLAGS
5948
5949 fi
5950 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5951 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5952   ld_R_works=$pgac_cv_prog_ld_R
5953
5954 esac
5955 if test -n "$ac_tool_prefix"; then
5956   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_RANLIB+set}" = set; then
5961   $as_echo_n "(cached) " >&6
5962 else
5963   if test -n "$RANLIB"; then
5964   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_exec_ext in '' $ac_executable_extensions; do
5972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5974     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 RANLIB=$ac_cv_prog_RANLIB
5984 if test -n "$RANLIB"; then
5985   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5986 $as_echo "$RANLIB" >&6; }
5987 else
5988   { $as_echo "$as_me:$LINENO: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 fi
5994 if test -z "$ac_cv_prog_RANLIB"; then
5995   ac_ct_RANLIB=$RANLIB
5996   # Extract the first word of "ranlib", so it can be a program name with args.
5997 set dummy ranlib; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6001   $as_echo_n "(cached) " >&6
6002 else
6003   if test -n "$ac_ct_RANLIB"; then
6004   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013     ac_cv_prog_ac_ct_RANLIB="ranlib"
6014     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024 if test -n "$ac_ct_RANLIB"; then
6025   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6026 $as_echo "$ac_ct_RANLIB" >&6; }
6027 else
6028   { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032   if test "x$ac_ct_RANLIB" = x; then
6033     RANLIB=":"
6034   else
6035     case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041     RANLIB=$ac_ct_RANLIB
6042   fi
6043 else
6044   RANLIB="$ac_cv_prog_RANLIB"
6045 fi
6046
6047
6048   if test -n "$ac_tool_prefix"; then
6049   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_STRIP+set}" = set; then
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$STRIP"; then
6057   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 STRIP=$ac_cv_prog_STRIP
6077 if test -n "$STRIP"; then
6078   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6079 $as_echo "$STRIP" >&6; }
6080 else
6081   { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 fi
6087 if test -z "$ac_cv_prog_STRIP"; then
6088   ac_ct_STRIP=$STRIP
6089   # Extract the first word of "strip", so it can be a program name with args.
6090 set dummy strip; ac_word=$2
6091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6094   $as_echo_n "(cached) " >&6
6095 else
6096   if test -n "$ac_ct_STRIP"; then
6097   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_ac_ct_STRIP="strip"
6107     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117 if test -n "$ac_ct_STRIP"; then
6118   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6119 $as_echo "$ac_ct_STRIP" >&6; }
6120 else
6121   { $as_echo "$as_me:$LINENO: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125   if test "x$ac_ct_STRIP" = x; then
6126     STRIP=":"
6127   else
6128     case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134     STRIP=$ac_ct_STRIP
6135   fi
6136 else
6137   STRIP="$ac_cv_prog_STRIP"
6138 fi
6139
6140
6141   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6142 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6143   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6144     STRIP_STATIC_LIB="$STRIP -x"
6145     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6146     { $as_echo "$as_me:$LINENO: result: yes" >&5
6147 $as_echo "yes" >&6; }
6148   else
6149     STRIP_STATIC_LIB=:
6150     STRIP_SHARED_LIB=:
6151     { $as_echo "$as_me:$LINENO: result: no" >&5
6152 $as_echo "no" >&6; }
6153   fi
6154
6155
6156
6157 if test -n "$ac_tool_prefix"; then
6158   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}ar; ac_word=$2
6160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_AR+set}" = set; then
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -n "$AR"; then
6166   ac_cv_prog_AR="$AR" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173   for ac_exec_ext in '' $ac_executable_extensions; do
6174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175     ac_cv_prog_AR="${ac_tool_prefix}ar"
6176     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 AR=$ac_cv_prog_AR
6186 if test -n "$AR"; then
6187   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6188 $as_echo "$AR" >&6; }
6189 else
6190   { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194
6195 fi
6196 if test -z "$ac_cv_prog_AR"; then
6197   ac_ct_AR=$AR
6198   # Extract the first word of "ar", so it can be a program name with args.
6199 set dummy ar; ac_word=$2
6200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$ac_ct_AR"; then
6206   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213   for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_ac_ct_AR="ar"
6216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6226 if test -n "$ac_ct_AR"; then
6227   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6228 $as_echo "$ac_ct_AR" >&6; }
6229 else
6230   { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234   if test "x$ac_ct_AR" = x; then
6235     AR="ar"
6236   else
6237     case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243     AR=$ac_ct_AR
6244   fi
6245 else
6246   AR="$ac_cv_prog_AR"
6247 fi
6248
6249 if test "$PORTNAME" = "win32"; then
6250   if test -n "$ac_tool_prefix"; then
6251   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6256   $as_echo_n "(cached) " >&6
6257 else
6258   if test -n "$DLLTOOL"; then
6259   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 DLLTOOL=$ac_cv_prog_DLLTOOL
6279 if test -n "$DLLTOOL"; then
6280   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6281 $as_echo "$DLLTOOL" >&6; }
6282 else
6283   { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_DLLTOOL"; then
6290   ac_ct_DLLTOOL=$DLLTOOL
6291   # Extract the first word of "dlltool", so it can be a program name with args.
6292 set dummy dlltool; ac_word=$2
6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$ac_ct_DLLTOOL"; then
6299   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6309     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6319 if test -n "$ac_ct_DLLTOOL"; then
6320   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6321 $as_echo "$ac_ct_DLLTOOL" >&6; }
6322 else
6323   { $as_echo "$as_me:$LINENO: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327   if test "x$ac_ct_DLLTOOL" = x; then
6328     DLLTOOL="dlltool"
6329   else
6330     case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336     DLLTOOL=$ac_ct_DLLTOOL
6337   fi
6338 else
6339   DLLTOOL="$ac_cv_prog_DLLTOOL"
6340 fi
6341
6342   if test -n "$ac_tool_prefix"; then
6343   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6348   $as_echo_n "(cached) " >&6
6349 else
6350   if test -n "$DLLWRAP"; then
6351   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6361     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 DLLWRAP=$ac_cv_prog_DLLWRAP
6371 if test -n "$DLLWRAP"; then
6372   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6373 $as_echo "$DLLWRAP" >&6; }
6374 else
6375   { $as_echo "$as_me:$LINENO: result: no" >&5
6376 $as_echo "no" >&6; }
6377 fi
6378
6379
6380 fi
6381 if test -z "$ac_cv_prog_DLLWRAP"; then
6382   ac_ct_DLLWRAP=$DLLWRAP
6383   # Extract the first word of "dllwrap", so it can be a program name with args.
6384 set dummy dllwrap; ac_word=$2
6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6388   $as_echo_n "(cached) " >&6
6389 else
6390   if test -n "$ac_ct_DLLWRAP"; then
6391   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6411 if test -n "$ac_ct_DLLWRAP"; then
6412   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6413 $as_echo "$ac_ct_DLLWRAP" >&6; }
6414 else
6415   { $as_echo "$as_me:$LINENO: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419   if test "x$ac_ct_DLLWRAP" = x; then
6420     DLLWRAP="dllwrap"
6421   else
6422     case $cross_compiling:$ac_tool_warned in
6423 yes:)
6424 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428     DLLWRAP=$ac_ct_DLLWRAP
6429   fi
6430 else
6431   DLLWRAP="$ac_cv_prog_DLLWRAP"
6432 fi
6433
6434   if test -n "$ac_tool_prefix"; then
6435   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}windres; ac_word=$2
6437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if test "${ac_cv_prog_WINDRES+set}" = set; then
6440   $as_echo_n "(cached) " >&6
6441 else
6442   if test -n "$WINDRES"; then
6443   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450   for ac_exec_ext in '' $ac_executable_extensions; do
6451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6453     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 WINDRES=$ac_cv_prog_WINDRES
6463 if test -n "$WINDRES"; then
6464   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6465 $as_echo "$WINDRES" >&6; }
6466 else
6467   { $as_echo "$as_me:$LINENO: result: no" >&5
6468 $as_echo "no" >&6; }
6469 fi
6470
6471
6472 fi
6473 if test -z "$ac_cv_prog_WINDRES"; then
6474   ac_ct_WINDRES=$WINDRES
6475   # Extract the first word of "windres", so it can be a program name with args.
6476 set dummy windres; ac_word=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6480   $as_echo_n "(cached) " >&6
6481 else
6482   if test -n "$ac_ct_WINDRES"; then
6483   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490   for ac_exec_ext in '' $ac_executable_extensions; do
6491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492     ac_cv_prog_ac_ct_WINDRES="windres"
6493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6503 if test -n "$ac_ct_WINDRES"; then
6504   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6505 $as_echo "$ac_ct_WINDRES" >&6; }
6506 else
6507   { $as_echo "$as_me:$LINENO: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510
6511   if test "x$ac_ct_WINDRES" = x; then
6512     WINDRES="windres"
6513   else
6514     case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6519 esac
6520     WINDRES=$ac_ct_WINDRES
6521   fi
6522 else
6523   WINDRES="$ac_cv_prog_WINDRES"
6524 fi
6525
6526 fi
6527
6528 # Extract the first word of "tar", so it can be a program name with args.
6529 set dummy tar; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_path_TAR+set}" = set; then
6533   $as_echo_n "(cached) " >&6
6534 else
6535   case $TAR in
6536   [\\/]* | ?:[\\/]*)
6537   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6538   ;;
6539   *)
6540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555   ;;
6556 esac
6557 fi
6558 TAR=$ac_cv_path_TAR
6559 if test -n "$TAR"; then
6560   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6561 $as_echo "$TAR" >&6; }
6562 else
6563   { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6569 $as_echo_n "checking whether ln -s works... " >&6; }
6570 LN_S=$as_ln_s
6571 if test "$LN_S" = "ln -s"; then
6572   { $as_echo "$as_me:$LINENO: result: yes" >&5
6573 $as_echo "yes" >&6; }
6574 else
6575   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6576 $as_echo "no, using $LN_S" >&6; }
6577 fi
6578
6579 for ac_prog in gawk mawk nawk awk
6580 do
6581   # Extract the first word of "$ac_prog", so it can be a program name with args.
6582 set dummy $ac_prog; ac_word=$2
6583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_AWK+set}" = set; then
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$AWK"; then
6589   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_prog_AWK="$ac_prog"
6599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 AWK=$ac_cv_prog_AWK
6609 if test -n "$AWK"; then
6610   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6611 $as_echo "$AWK" >&6; }
6612 else
6613   { $as_echo "$as_me:$LINENO: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618   test -n "$AWK" && break
6619 done
6620
6621 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6623 if test -z "$MKDIR_P"; then
6624   if test "${ac_cv_path_mkdir+set}" = set; then
6625   $as_echo_n "(cached) " >&6
6626 else
6627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_prog in mkdir gmkdir; do
6633          for ac_exec_ext in '' $ac_executable_extensions; do
6634            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6635            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6636              'mkdir (GNU coreutils) '* | \
6637              'mkdir (coreutils) '* | \
6638              'mkdir (fileutils) '4.1*)
6639                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6640                break 3;;
6641            esac
6642          done
6643        done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648
6649   if test "${ac_cv_path_mkdir+set}" = set; then
6650     MKDIR_P="$ac_cv_path_mkdir -p"
6651   else
6652     # As a last resort, use the slow shell script.  Don't cache a
6653     # value for MKDIR_P within a source directory, because that will
6654     # break other packages using the cache if that directory is
6655     # removed, or if the value is a relative name.
6656     test -d ./--version && rmdir ./--version
6657     MKDIR_P="$ac_install_sh -d"
6658   fi
6659 fi
6660 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6661 $as_echo "$MKDIR_P" >&6; }
6662
6663 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6664 # a relative path to it in each makefile where it subsitutes it. This clashes
6665 # with our Makefile.global concept. This workaround helps.
6666 case $MKDIR_P in
6667   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6668 esac
6669
6670 # Let the user override the search
6671 if test -z "$BISON"; then
6672   for ac_prog in bison
6673 do
6674   # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_path_BISON+set}" = set; then
6679   $as_echo_n "(cached) " >&6
6680 else
6681   case $BISON in
6682   [\\/]* | ?:[\\/]*)
6683   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6684   ;;
6685   *)
6686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701   ;;
6702 esac
6703 fi
6704 BISON=$ac_cv_path_BISON
6705 if test -n "$BISON"; then
6706   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6707 $as_echo "$BISON" >&6; }
6708 else
6709   { $as_echo "$as_me:$LINENO: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713
6714   test -n "$BISON" && break
6715 done
6716
6717 fi
6718
6719 if test "$BISON"; then
6720   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6721   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6722 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6723   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6724   then
6725     { $as_echo "$as_me:$LINENO: WARNING:
6726 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6727 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6728 $as_echo "$as_me: WARNING:
6729 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6730 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6731     BISON=""
6732   fi
6733 fi
6734
6735 if test -z "$BISON"; then
6736   { $as_echo "$as_me:$LINENO: WARNING:
6737 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6738 *** change any of the parser definition files.  You can obtain Bison from
6739 *** a GNU mirror site.  (If you are using the official distribution of
6740 *** PostgreSQL then you do not need to worry about this, because the Bison
6741 *** output is pre-generated.)" >&5
6742 $as_echo "$as_me: WARNING:
6743 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6744 *** change any of the parser definition files.  You can obtain Bison from
6745 *** a GNU mirror site.  (If you are using the official distribution of
6746 *** PostgreSQL then you do not need to worry about this, because the Bison
6747 *** output is pre-generated.)" >&2;}
6748 fi
6749 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6750
6751
6752 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6753 $as_echo_n "checking for flex... " >&6; }
6754 if test "${pgac_cv_path_flex+set}" = set; then
6755   $as_echo_n "(cached) " >&6
6756 else
6757   # Let the user override the test
6758 if test -n "$FLEX"; then
6759   pgac_cv_path_flex=$FLEX
6760 else
6761   pgac_save_IFS=$IFS
6762   IFS=$PATH_SEPARATOR
6763   for pgac_dir in $PATH; do
6764     IFS=$pgac_save_IFS
6765     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6766       pgac_dir=`pwd`
6767     fi
6768     for pgac_prog in flex lex; do
6769       pgac_candidate="$pgac_dir/$pgac_prog"
6770       if test -f "$pgac_candidate" \
6771         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6772       then
6773         echo '%%'  > conftest.l
6774         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6775           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6776           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6777           then
6778             pgac_cv_path_flex=$pgac_candidate
6779             break 2
6780           else
6781             { $as_echo "$as_me:$LINENO: WARNING:
6782 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6783 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6784 $as_echo "$as_me: WARNING:
6785 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6786 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6787           fi
6788         fi
6789       fi
6790     done
6791   done
6792   rm -f conftest.l lex.yy.c
6793   : ${pgac_cv_path_flex=no}
6794 fi
6795
6796 fi
6797 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6798 $as_echo "$pgac_cv_path_flex" >&6; }
6799 if test x"$pgac_cv_path_flex" = x"no"; then
6800   { $as_echo "$as_me:$LINENO: WARNING:
6801 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6802 *** change any of the scanner definition files.  You can obtain Flex from
6803 *** a GNU mirror site.  (If you are using the official distribution of
6804 *** PostgreSQL then you do not need to worry about this because the Flex
6805 *** output is pre-generated.)" >&5
6806 $as_echo "$as_me: WARNING:
6807 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6808 *** change any of the scanner definition files.  You can obtain Flex from
6809 *** a GNU mirror site.  (If you are using the official distribution of
6810 *** PostgreSQL then you do not need to worry about this because the Flex
6811 *** output is pre-generated.)" >&2;}
6812
6813   FLEX=
6814 else
6815   FLEX=$pgac_cv_path_flex
6816   pgac_flex_version=`$FLEX --version 2>/dev/null`
6817   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6818 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6819 fi
6820
6821
6822
6823
6824
6825 # Extract the first word of "perl", so it can be a program name with args.
6826 set dummy perl; ac_word=$2
6827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_path_PERL+set}" = set; then
6830   $as_echo_n "(cached) " >&6
6831 else
6832   case $PERL in
6833   [\\/]* | ?:[\\/]*)
6834   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6835   ;;
6836   *)
6837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842   for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6845     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852   ;;
6853 esac
6854 fi
6855 PERL=$ac_cv_path_PERL
6856 if test -n "$PERL"; then
6857   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6858 $as_echo "$PERL" >&6; }
6859 else
6860   { $as_echo "$as_me:$LINENO: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864
6865 if test "$with_perl" = yes; then
6866
6867 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6868 $as_echo_n "checking for Perl archlibexp... " >&6; }
6869 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6870 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6871 $as_echo "$perl_archlibexp" >&6; }
6872 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6873 $as_echo_n "checking for Perl privlibexp... " >&6; }
6874 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6875 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6876 $as_echo "$perl_privlibexp" >&6; }
6877 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6878 $as_echo_n "checking for Perl useshrplib... " >&6; }
6879 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6880 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6881 $as_echo "$perl_useshrplib" >&6; }
6882
6883 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6884 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6885 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6886 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6887 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6888 if test -z "$perl_embed_ldflags" ; then
6889         { $as_echo "$as_me:$LINENO: result: no" >&5
6890 $as_echo "no" >&6; }
6891         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6892 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6893 installed." >&5
6894 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6895 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6896 installed." >&2;}
6897    { (exit 1); exit 1; }; }
6898 else
6899         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6900 $as_echo "$perl_embed_ldflags" >&6; }
6901 fi
6902
6903 fi
6904
6905 if test "$with_python" = yes; then
6906   # Extract the first word of "python", so it can be a program name with args.
6907 set dummy python; ac_word=$2
6908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if test "${ac_cv_path_PYTHON+set}" = set; then
6911   $as_echo_n "(cached) " >&6
6912 else
6913   case $PYTHON in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6926     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933   ;;
6934 esac
6935 fi
6936 PYTHON=$ac_cv_path_PYTHON
6937 if test -n "$PYTHON"; then
6938   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6939 $as_echo "$PYTHON" >&6; }
6940 else
6941   { $as_echo "$as_me:$LINENO: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 if test x"$PYTHON" = x""; then
6947   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6948 $as_echo "$as_me: error: Python not found" >&2;}
6949    { (exit 1); exit 1; }; }
6950 fi
6951
6952
6953 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6954 $as_echo_n "checking for Python distutils module... " >&6; }
6955 if "${PYTHON}" -c 'import distutils' 2>&5
6956 then
6957     { $as_echo "$as_me:$LINENO: result: yes" >&5
6958 $as_echo "yes" >&6; }
6959 else
6960     { $as_echo "$as_me:$LINENO: result: no" >&5
6961 $as_echo "no" >&6; }
6962     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
6963 $as_echo "$as_me: error: distutils module not found" >&2;}
6964    { (exit 1); exit 1; }; }
6965 fi
6966 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
6967 $as_echo_n "checking Python configuration directory... " >&6; }
6968 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
6969 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6970 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'))"`
6971 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6972
6973 # This should be enough of a message.
6974 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
6975 $as_echo "$python_configdir" >&6; }
6976
6977
6978 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6979 $as_echo_n "checking how to link an embedded Python application... " >&6; }
6980
6981 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6982 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6983 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6984 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6985
6986 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6987 then
6988         # New way: use the official shared library
6989         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6990         python_libspec="-L${python_libdir} -l${ldlibrary}"
6991 else
6992         # Old way: use libpython from python_configdir
6993         python_libdir="${python_configdir}"
6994         python_libspec="-L${python_libdir} -lpython${python_version}"
6995 fi
6996
6997 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6998
6999 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7000 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7001
7002
7003 # threaded python is not supported on bsd's
7004 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7005 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7006 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7007 if test "$pythreads" = "1"; then
7008   { $as_echo "$as_me:$LINENO: result: yes" >&5
7009 $as_echo "yes" >&6; }
7010   case $host_os in
7011   openbsd*|freebsd*)
7012     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7013 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7014    { (exit 1); exit 1; }; }
7015     ;;
7016   esac
7017 else
7018   { $as_echo "$as_me:$LINENO: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023 fi
7024
7025 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7026   # Extract the first word of "zic", so it can be a program name with args.
7027 set dummy zic; ac_word=$2
7028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if test "${ac_cv_path_ZIC+set}" = set; then
7031   $as_echo_n "(cached) " >&6
7032 else
7033   case $ZIC in
7034   [\\/]* | ?:[\\/]*)
7035   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7036   ;;
7037   *)
7038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053   ;;
7054 esac
7055 fi
7056 ZIC=$ac_cv_path_ZIC
7057 if test -n "$ZIC"; then
7058   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7059 $as_echo "$ZIC" >&6; }
7060 else
7061   { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066   if test -z "$ZIC"; then
7067     { { $as_echo "$as_me:$LINENO: error:
7068 When cross-compiling, either use the option --with-system-tzdata to use
7069 existing time-zone data, or set the environment variable ZIC to a zic
7070 program to use during the build." >&5
7071 $as_echo "$as_me: error:
7072 When cross-compiling, either use the option --with-system-tzdata to use
7073 existing time-zone data, or set the environment variable ZIC to a zic
7074 program to use during the build." >&2;}
7075    { (exit 1); exit 1; }; }
7076   fi
7077 fi
7078
7079
7080 ##
7081 ## Libraries
7082 ##
7083 ## Most libraries are included only if they demonstrably provide a function
7084 ## we need, but libm is an exception: always include it, because there are
7085 ## too many compilers that play cute optimization games that will break
7086 ## probes for standard functions such as pow().
7087 ##
7088
7089
7090 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7091 $as_echo_n "checking for main in -lm... " >&6; }
7092 if test "${ac_cv_lib_m_main+set}" = set; then
7093   $as_echo_n "(cached) " >&6
7094 else
7095   ac_check_lib_save_LIBS=$LIBS
7096 LIBS="-lm  $LIBS"
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103
7104
7105 int
7106 main ()
7107 {
7108 return main ();
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121   (eval "$ac_link") 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && {
7128          test -z "$ac_c_werror_flag" ||
7129          test ! -s conftest.err
7130        } && test -s conftest$ac_exeext && {
7131          test "$cross_compiling" = yes ||
7132          $as_test_x conftest$ac_exeext
7133        }; then
7134   ac_cv_lib_m_main=yes
7135 else
7136   $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139         ac_cv_lib_m_main=no
7140 fi
7141
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7144       conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7146 fi
7147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7148 $as_echo "$ac_cv_lib_m_main" >&6; }
7149 if test "x$ac_cv_lib_m_main" = x""yes; then
7150   cat >>confdefs.h <<_ACEOF
7151 #define HAVE_LIBM 1
7152 _ACEOF
7153
7154   LIBS="-lm $LIBS"
7155
7156 fi
7157
7158 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7159 $as_echo_n "checking for library containing setproctitle... " >&6; }
7160 if test "${ac_cv_search_setproctitle+set}" = set; then
7161   $as_echo_n "(cached) " >&6
7162 else
7163   ac_func_search_save_LIBS=$LIBS
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 /* Override any GCC internal prototype to avoid an error.
7172    Use char because int might match the return type of a GCC
7173    builtin and then its argument prototype would still apply.  */
7174 #ifdef __cplusplus
7175 extern "C"
7176 #endif
7177 char setproctitle ();
7178 int
7179 main ()
7180 {
7181 return setproctitle ();
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 for ac_lib in '' util; do
7187   if test -z "$ac_lib"; then
7188     ac_res="none required"
7189   else
7190     ac_res=-l$ac_lib
7191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7192   fi
7193   rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (ac_try="$ac_link"
7195 case "(($ac_try" in
7196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197   *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201   (eval "$ac_link") 2>conftest.er1
7202   ac_status=$?
7203   grep -v '^ *+' conftest.er1 >conftest.err
7204   rm -f conftest.er1
7205   cat conftest.err >&5
7206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); } && {
7208          test -z "$ac_c_werror_flag" ||
7209          test ! -s conftest.err
7210        } && test -s conftest$ac_exeext && {
7211          test "$cross_compiling" = yes ||
7212          $as_test_x conftest$ac_exeext
7213        }; then
7214   ac_cv_search_setproctitle=$ac_res
7215 else
7216   $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219
7220 fi
7221
7222 rm -rf conftest.dSYM
7223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7224       conftest$ac_exeext
7225   if test "${ac_cv_search_setproctitle+set}" = set; then
7226   break
7227 fi
7228 done
7229 if test "${ac_cv_search_setproctitle+set}" = set; then
7230   :
7231 else
7232   ac_cv_search_setproctitle=no
7233 fi
7234 rm conftest.$ac_ext
7235 LIBS=$ac_func_search_save_LIBS
7236 fi
7237 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7238 $as_echo "$ac_cv_search_setproctitle" >&6; }
7239 ac_res=$ac_cv_search_setproctitle
7240 if test "$ac_res" != no; then
7241   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7242
7243 fi
7244
7245 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7246 $as_echo_n "checking for library containing dlopen... " >&6; }
7247 if test "${ac_cv_search_dlopen+set}" = set; then
7248   $as_echo_n "(cached) " >&6
7249 else
7250   ac_func_search_save_LIBS=$LIBS
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257
7258 /* Override any GCC internal prototype to avoid an error.
7259    Use char because int might match the return type of a GCC
7260    builtin and then its argument prototype would still apply.  */
7261 #ifdef __cplusplus
7262 extern "C"
7263 #endif
7264 char dlopen ();
7265 int
7266 main ()
7267 {
7268 return dlopen ();
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 for ac_lib in '' dl; do
7274   if test -z "$ac_lib"; then
7275     ac_res="none required"
7276   else
7277     ac_res=-l$ac_lib
7278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7279   fi
7280   rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284   *) ac_try_echo=$ac_try;;
7285 esac
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288   (eval "$ac_link") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } && {
7295          test -z "$ac_c_werror_flag" ||
7296          test ! -s conftest.err
7297        } && test -s conftest$ac_exeext && {
7298          test "$cross_compiling" = yes ||
7299          $as_test_x conftest$ac_exeext
7300        }; then
7301   ac_cv_search_dlopen=$ac_res
7302 else
7303   $as_echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306
7307 fi
7308
7309 rm -rf conftest.dSYM
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7311       conftest$ac_exeext
7312   if test "${ac_cv_search_dlopen+set}" = set; then
7313   break
7314 fi
7315 done
7316 if test "${ac_cv_search_dlopen+set}" = set; then
7317   :
7318 else
7319   ac_cv_search_dlopen=no
7320 fi
7321 rm conftest.$ac_ext
7322 LIBS=$ac_func_search_save_LIBS
7323 fi
7324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7325 $as_echo "$ac_cv_search_dlopen" >&6; }
7326 ac_res=$ac_cv_search_dlopen
7327 if test "$ac_res" != no; then
7328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7329
7330 fi
7331
7332 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7333 $as_echo_n "checking for library containing socket... " >&6; }
7334 if test "${ac_cv_search_socket+set}" = set; then
7335   $as_echo_n "(cached) " >&6
7336 else
7337   ac_func_search_save_LIBS=$LIBS
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344
7345 /* Override any GCC internal prototype to avoid an error.
7346    Use char because int might match the return type of a GCC
7347    builtin and then its argument prototype would still apply.  */
7348 #ifdef __cplusplus
7349 extern "C"
7350 #endif
7351 char socket ();
7352 int
7353 main ()
7354 {
7355 return socket ();
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 for ac_lib in '' socket wsock32; do
7361   if test -z "$ac_lib"; then
7362     ac_res="none required"
7363   else
7364     ac_res=-l$ac_lib
7365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7366   fi
7367   rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (ac_try="$ac_link"
7369 case "(($ac_try" in
7370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371   *) ac_try_echo=$ac_try;;
7372 esac
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375   (eval "$ac_link") 2>conftest.er1
7376   ac_status=$?
7377   grep -v '^ *+' conftest.er1 >conftest.err
7378   rm -f conftest.er1
7379   cat conftest.err >&5
7380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } && {
7382          test -z "$ac_c_werror_flag" ||
7383          test ! -s conftest.err
7384        } && test -s conftest$ac_exeext && {
7385          test "$cross_compiling" = yes ||
7386          $as_test_x conftest$ac_exeext
7387        }; then
7388   ac_cv_search_socket=$ac_res
7389 else
7390   $as_echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393
7394 fi
7395
7396 rm -rf conftest.dSYM
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398       conftest$ac_exeext
7399   if test "${ac_cv_search_socket+set}" = set; then
7400   break
7401 fi
7402 done
7403 if test "${ac_cv_search_socket+set}" = set; then
7404   :
7405 else
7406   ac_cv_search_socket=no
7407 fi
7408 rm conftest.$ac_ext
7409 LIBS=$ac_func_search_save_LIBS
7410 fi
7411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7412 $as_echo "$ac_cv_search_socket" >&6; }
7413 ac_res=$ac_cv_search_socket
7414 if test "$ac_res" != no; then
7415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7416
7417 fi
7418
7419 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7420 $as_echo_n "checking for library containing shl_load... " >&6; }
7421 if test "${ac_cv_search_shl_load+set}" = set; then
7422   $as_echo_n "(cached) " >&6
7423 else
7424   ac_func_search_save_LIBS=$LIBS
7425 cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h.  */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h.  */
7431
7432 /* Override any GCC internal prototype to avoid an error.
7433    Use char because int might match the return type of a GCC
7434    builtin and then its argument prototype would still apply.  */
7435 #ifdef __cplusplus
7436 extern "C"
7437 #endif
7438 char shl_load ();
7439 int
7440 main ()
7441 {
7442 return shl_load ();
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 for ac_lib in '' dld; do
7448   if test -z "$ac_lib"; then
7449     ac_res="none required"
7450   else
7451     ac_res=-l$ac_lib
7452     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7453   fi
7454   rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7456 case "(($ac_try" in
7457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458   *) ac_try_echo=$ac_try;;
7459 esac
7460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461 $as_echo "$ac_try_echo") >&5
7462   (eval "$ac_link") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } && {
7469          test -z "$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        } && test -s conftest$ac_exeext && {
7472          test "$cross_compiling" = yes ||
7473          $as_test_x conftest$ac_exeext
7474        }; then
7475   ac_cv_search_shl_load=$ac_res
7476 else
7477   $as_echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480
7481 fi
7482
7483 rm -rf conftest.dSYM
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485       conftest$ac_exeext
7486   if test "${ac_cv_search_shl_load+set}" = set; then
7487   break
7488 fi
7489 done
7490 if test "${ac_cv_search_shl_load+set}" = set; then
7491   :
7492 else
7493   ac_cv_search_shl_load=no
7494 fi
7495 rm conftest.$ac_ext
7496 LIBS=$ac_func_search_save_LIBS
7497 fi
7498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7499 $as_echo "$ac_cv_search_shl_load" >&6; }
7500 ac_res=$ac_cv_search_shl_load
7501 if test "$ac_res" != no; then
7502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7503
7504 fi
7505
7506 # We only use libld in port/dynloader/aix.c
7507 case $host_os in
7508      aix*)
7509         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7510 $as_echo_n "checking for library containing ldopen... " >&6; }
7511 if test "${ac_cv_search_ldopen+set}" = set; then
7512   $as_echo_n "(cached) " >&6
7513 else
7514   ac_func_search_save_LIBS=$LIBS
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h.  */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h.  */
7521
7522 /* Override any GCC internal prototype to avoid an error.
7523    Use char because int might match the return type of a GCC
7524    builtin and then its argument prototype would still apply.  */
7525 #ifdef __cplusplus
7526 extern "C"
7527 #endif
7528 char ldopen ();
7529 int
7530 main ()
7531 {
7532 return ldopen ();
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 for ac_lib in '' ld; do
7538   if test -z "$ac_lib"; then
7539     ac_res="none required"
7540   else
7541     ac_res=-l$ac_lib
7542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7543   fi
7544   rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (ac_try="$ac_link"
7546 case "(($ac_try" in
7547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548   *) ac_try_echo=$ac_try;;
7549 esac
7550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551 $as_echo "$ac_try_echo") >&5
7552   (eval "$ac_link") 2>conftest.er1
7553   ac_status=$?
7554   grep -v '^ *+' conftest.er1 >conftest.err
7555   rm -f conftest.er1
7556   cat conftest.err >&5
7557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } && {
7559          test -z "$ac_c_werror_flag" ||
7560          test ! -s conftest.err
7561        } && test -s conftest$ac_exeext && {
7562          test "$cross_compiling" = yes ||
7563          $as_test_x conftest$ac_exeext
7564        }; then
7565   ac_cv_search_ldopen=$ac_res
7566 else
7567   $as_echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570
7571 fi
7572
7573 rm -rf conftest.dSYM
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575       conftest$ac_exeext
7576   if test "${ac_cv_search_ldopen+set}" = set; then
7577   break
7578 fi
7579 done
7580 if test "${ac_cv_search_ldopen+set}" = set; then
7581   :
7582 else
7583   ac_cv_search_ldopen=no
7584 fi
7585 rm conftest.$ac_ext
7586 LIBS=$ac_func_search_save_LIBS
7587 fi
7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7589 $as_echo "$ac_cv_search_ldopen" >&6; }
7590 ac_res=$ac_cv_search_ldopen
7591 if test "$ac_res" != no; then
7592   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7593
7594 fi
7595
7596         ;;
7597 esac
7598 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7599 $as_echo_n "checking for library containing getopt_long... " >&6; }
7600 if test "${ac_cv_search_getopt_long+set}" = set; then
7601   $as_echo_n "(cached) " >&6
7602 else
7603   ac_func_search_save_LIBS=$LIBS
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610
7611 /* Override any GCC internal prototype to avoid an error.
7612    Use char because int might match the return type of a GCC
7613    builtin and then its argument prototype would still apply.  */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char getopt_long ();
7618 int
7619 main ()
7620 {
7621 return getopt_long ();
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 for ac_lib in '' getopt gnugetopt; do
7627   if test -z "$ac_lib"; then
7628     ac_res="none required"
7629   else
7630     ac_res=-l$ac_lib
7631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7632   fi
7633   rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (ac_try="$ac_link"
7635 case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641   (eval "$ac_link") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } && {
7648          test -z "$ac_c_werror_flag" ||
7649          test ! -s conftest.err
7650        } && test -s conftest$ac_exeext && {
7651          test "$cross_compiling" = yes ||
7652          $as_test_x conftest$ac_exeext
7653        }; then
7654   ac_cv_search_getopt_long=$ac_res
7655 else
7656   $as_echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659
7660 fi
7661
7662 rm -rf conftest.dSYM
7663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7664       conftest$ac_exeext
7665   if test "${ac_cv_search_getopt_long+set}" = set; then
7666   break
7667 fi
7668 done
7669 if test "${ac_cv_search_getopt_long+set}" = set; then
7670   :
7671 else
7672   ac_cv_search_getopt_long=no
7673 fi
7674 rm conftest.$ac_ext
7675 LIBS=$ac_func_search_save_LIBS
7676 fi
7677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7678 $as_echo "$ac_cv_search_getopt_long" >&6; }
7679 ac_res=$ac_cv_search_getopt_long
7680 if test "$ac_res" != no; then
7681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7682
7683 fi
7684
7685 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7686 $as_echo_n "checking for library containing crypt... " >&6; }
7687 if test "${ac_cv_search_crypt+set}" = set; then
7688   $as_echo_n "(cached) " >&6
7689 else
7690   ac_func_search_save_LIBS=$LIBS
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697
7698 /* Override any GCC internal prototype to avoid an error.
7699    Use char because int might match the return type of a GCC
7700    builtin and then its argument prototype would still apply.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 char crypt ();
7705 int
7706 main ()
7707 {
7708 return crypt ();
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 for ac_lib in '' crypt; do
7714   if test -z "$ac_lib"; then
7715     ac_res="none required"
7716   else
7717     ac_res=-l$ac_lib
7718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7719   fi
7720   rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (ac_try="$ac_link"
7722 case "(($ac_try" in
7723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724   *) ac_try_echo=$ac_try;;
7725 esac
7726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7727 $as_echo "$ac_try_echo") >&5
7728   (eval "$ac_link") 2>conftest.er1
7729   ac_status=$?
7730   grep -v '^ *+' conftest.er1 >conftest.err
7731   rm -f conftest.er1
7732   cat conftest.err >&5
7733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); } && {
7735          test -z "$ac_c_werror_flag" ||
7736          test ! -s conftest.err
7737        } && test -s conftest$ac_exeext && {
7738          test "$cross_compiling" = yes ||
7739          $as_test_x conftest$ac_exeext
7740        }; then
7741   ac_cv_search_crypt=$ac_res
7742 else
7743   $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746
7747 fi
7748
7749 rm -rf conftest.dSYM
7750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7751       conftest$ac_exeext
7752   if test "${ac_cv_search_crypt+set}" = set; then
7753   break
7754 fi
7755 done
7756 if test "${ac_cv_search_crypt+set}" = set; then
7757   :
7758 else
7759   ac_cv_search_crypt=no
7760 fi
7761 rm conftest.$ac_ext
7762 LIBS=$ac_func_search_save_LIBS
7763 fi
7764 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7765 $as_echo "$ac_cv_search_crypt" >&6; }
7766 ac_res=$ac_cv_search_crypt
7767 if test "$ac_res" != no; then
7768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7769
7770 fi
7771
7772 # Solaris:
7773 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7774 $as_echo_n "checking for library containing fdatasync... " >&6; }
7775 if test "${ac_cv_search_fdatasync+set}" = set; then
7776   $as_echo_n "(cached) " >&6
7777 else
7778   ac_func_search_save_LIBS=$LIBS
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 /* Override any GCC internal prototype to avoid an error.
7787    Use char because int might match the return type of a GCC
7788    builtin and then its argument prototype would still apply.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char fdatasync ();
7793 int
7794 main ()
7795 {
7796 return fdatasync ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 for ac_lib in '' rt posix4; do
7802   if test -z "$ac_lib"; then
7803     ac_res="none required"
7804   else
7805     ac_res=-l$ac_lib
7806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7807   fi
7808   rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (ac_try="$ac_link"
7810 case "(($ac_try" in
7811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812   *) ac_try_echo=$ac_try;;
7813 esac
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816   (eval "$ac_link") 2>conftest.er1
7817   ac_status=$?
7818   grep -v '^ *+' conftest.er1 >conftest.err
7819   rm -f conftest.er1
7820   cat conftest.err >&5
7821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } && {
7823          test -z "$ac_c_werror_flag" ||
7824          test ! -s conftest.err
7825        } && test -s conftest$ac_exeext && {
7826          test "$cross_compiling" = yes ||
7827          $as_test_x conftest$ac_exeext
7828        }; then
7829   ac_cv_search_fdatasync=$ac_res
7830 else
7831   $as_echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834
7835 fi
7836
7837 rm -rf conftest.dSYM
7838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7839       conftest$ac_exeext
7840   if test "${ac_cv_search_fdatasync+set}" = set; then
7841   break
7842 fi
7843 done
7844 if test "${ac_cv_search_fdatasync+set}" = set; then
7845   :
7846 else
7847   ac_cv_search_fdatasync=no
7848 fi
7849 rm conftest.$ac_ext
7850 LIBS=$ac_func_search_save_LIBS
7851 fi
7852 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7853 $as_echo "$ac_cv_search_fdatasync" >&6; }
7854 ac_res=$ac_cv_search_fdatasync
7855 if test "$ac_res" != no; then
7856   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7857
7858 fi
7859
7860 # Required for thread_test.c on Solaris 2.5:
7861 # Other ports use it too (HP-UX) so test unconditionally
7862 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7863 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7864 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7865   $as_echo_n "(cached) " >&6
7866 else
7867   ac_func_search_save_LIBS=$LIBS
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874
7875 /* Override any GCC internal prototype to avoid an error.
7876    Use char because int might match the return type of a GCC
7877    builtin and then its argument prototype would still apply.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 char gethostbyname_r ();
7882 int
7883 main ()
7884 {
7885 return gethostbyname_r ();
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 for ac_lib in '' nsl; do
7891   if test -z "$ac_lib"; then
7892     ac_res="none required"
7893   else
7894     ac_res=-l$ac_lib
7895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7896   fi
7897   rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905   (eval "$ac_link") 2>conftest.er1
7906   ac_status=$?
7907   grep -v '^ *+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } && {
7912          test -z "$ac_c_werror_flag" ||
7913          test ! -s conftest.err
7914        } && test -s conftest$ac_exeext && {
7915          test "$cross_compiling" = yes ||
7916          $as_test_x conftest$ac_exeext
7917        }; then
7918   ac_cv_search_gethostbyname_r=$ac_res
7919 else
7920   $as_echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923
7924 fi
7925
7926 rm -rf conftest.dSYM
7927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928       conftest$ac_exeext
7929   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7930   break
7931 fi
7932 done
7933 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7934   :
7935 else
7936   ac_cv_search_gethostbyname_r=no
7937 fi
7938 rm conftest.$ac_ext
7939 LIBS=$ac_func_search_save_LIBS
7940 fi
7941 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7942 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7943 ac_res=$ac_cv_search_gethostbyname_r
7944 if test "$ac_res" != no; then
7945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7946
7947 fi
7948
7949 # Cygwin:
7950 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7951 $as_echo_n "checking for library containing shmget... " >&6; }
7952 if test "${ac_cv_search_shmget+set}" = set; then
7953   $as_echo_n "(cached) " >&6
7954 else
7955   ac_func_search_save_LIBS=$LIBS
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 /* Override any GCC internal prototype to avoid an error.
7964    Use char because int might match the return type of a GCC
7965    builtin and then its argument prototype would still apply.  */
7966 #ifdef __cplusplus
7967 extern "C"
7968 #endif
7969 char shmget ();
7970 int
7971 main ()
7972 {
7973 return shmget ();
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 for ac_lib in '' cygipc; do
7979   if test -z "$ac_lib"; then
7980     ac_res="none required"
7981   else
7982     ac_res=-l$ac_lib
7983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7984   fi
7985   rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7987 case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993   (eval "$ac_link") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && {
8000          test -z "$ac_c_werror_flag" ||
8001          test ! -s conftest.err
8002        } && test -s conftest$ac_exeext && {
8003          test "$cross_compiling" = yes ||
8004          $as_test_x conftest$ac_exeext
8005        }; then
8006   ac_cv_search_shmget=$ac_res
8007 else
8008   $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011
8012 fi
8013
8014 rm -rf conftest.dSYM
8015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8016       conftest$ac_exeext
8017   if test "${ac_cv_search_shmget+set}" = set; then
8018   break
8019 fi
8020 done
8021 if test "${ac_cv_search_shmget+set}" = set; then
8022   :
8023 else
8024   ac_cv_search_shmget=no
8025 fi
8026 rm conftest.$ac_ext
8027 LIBS=$ac_func_search_save_LIBS
8028 fi
8029 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8030 $as_echo "$ac_cv_search_shmget" >&6; }
8031 ac_res=$ac_cv_search_shmget
8032 if test "$ac_res" != no; then
8033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8034
8035 fi
8036
8037
8038 if test "$with_readline" = yes; then
8039
8040
8041 if test "${pgac_cv_check_readline+set}" = set; then
8042   $as_echo_n "(cached) " >&6
8043 else
8044   pgac_cv_check_readline=no
8045 pgac_save_LIBS=$LIBS
8046 if test x"$with_libedit_preferred" != x"yes"
8047 then    READLINE_ORDER="-lreadline -ledit"
8048 else    READLINE_ORDER="-ledit -lreadline"
8049 fi
8050 for pgac_rllib in $READLINE_ORDER ; do
8051   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8052 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8053   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8054     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8055     cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061
8062 /* Override any GCC internal prototype to avoid an error.
8063    Use char because int might match the return type of a GCC
8064    builtin and then its argument prototype would still apply.  */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 char readline ();
8069 int
8070 main ()
8071 {
8072 return readline ();
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085   (eval "$ac_link") 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } && {
8092          test -z "$ac_c_werror_flag" ||
8093          test ! -s conftest.err
8094        } && test -s conftest$ac_exeext && {
8095          test "$cross_compiling" = yes ||
8096          $as_test_x conftest$ac_exeext
8097        }; then
8098
8099       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8100       # recognize dependent libraries; assume curses is needed if we didn't
8101       # find any dependency.
8102       case $host_os in
8103         netbsd* | openbsd* | irix*)
8104           if test x"$pgac_lib" = x"" ; then
8105             pgac_lib=" -lcurses"
8106           fi ;;
8107       esac
8108
8109       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8110       break
8111
8112 else
8113   $as_echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8115
8116
8117 fi
8118
8119 rm -rf conftest.dSYM
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121       conftest$ac_exeext conftest.$ac_ext
8122   done
8123   if test "$pgac_cv_check_readline" != no ; then
8124     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8125 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8126     break
8127   else
8128     { $as_echo "$as_me:$LINENO: result: no" >&5
8129 $as_echo "no" >&6; }
8130   fi
8131 done
8132 LIBS=$pgac_save_LIBS
8133
8134 fi
8135
8136 if test "$pgac_cv_check_readline" != no ; then
8137   LIBS="$pgac_cv_check_readline $LIBS"
8138
8139 cat >>confdefs.h <<\_ACEOF
8140 #define HAVE_LIBREADLINE 1
8141 _ACEOF
8142
8143 fi
8144
8145
8146   if test x"$pgac_cv_check_readline" = x"no"; then
8147     { { $as_echo "$as_me:$LINENO: error: readline library not found
8148 If you have readline already installed, see config.log for details on the
8149 failure.  It is possible the compiler isn't looking in the proper directory.
8150 Use --without-readline to disable readline support." >&5
8151 $as_echo "$as_me: error: readline library not found
8152 If you have readline already installed, see config.log for details on the
8153 failure.  It is possible the compiler isn't looking in the proper directory.
8154 Use --without-readline to disable readline support." >&2;}
8155    { (exit 1); exit 1; }; }
8156   fi
8157 fi
8158
8159 if test "$with_zlib" = yes; then
8160
8161 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8162 $as_echo_n "checking for inflate in -lz... " >&6; }
8163 if test "${ac_cv_lib_z_inflate+set}" = set; then
8164   $as_echo_n "(cached) " >&6
8165 else
8166   ac_check_lib_save_LIBS=$LIBS
8167 LIBS="-lz  $LIBS"
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174
8175 /* Override any GCC internal prototype to avoid an error.
8176    Use char because int might match the return type of a GCC
8177    builtin and then its argument prototype would still apply.  */
8178 #ifdef __cplusplus
8179 extern "C"
8180 #endif
8181 char inflate ();
8182 int
8183 main ()
8184 {
8185 return inflate ();
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8197 $as_echo "$ac_try_echo") >&5
8198   (eval "$ac_link") 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } && {
8205          test -z "$ac_c_werror_flag" ||
8206          test ! -s conftest.err
8207        } && test -s conftest$ac_exeext && {
8208          test "$cross_compiling" = yes ||
8209          $as_test_x conftest$ac_exeext
8210        }; then
8211   ac_cv_lib_z_inflate=yes
8212 else
8213   $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216         ac_cv_lib_z_inflate=no
8217 fi
8218
8219 rm -rf conftest.dSYM
8220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8221       conftest$ac_exeext conftest.$ac_ext
8222 LIBS=$ac_check_lib_save_LIBS
8223 fi
8224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8225 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8226 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8227   cat >>confdefs.h <<_ACEOF
8228 #define HAVE_LIBZ 1
8229 _ACEOF
8230
8231   LIBS="-lz $LIBS"
8232
8233 else
8234   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8235 If you have zlib already installed, see config.log for details on the
8236 failure.  It is possible the compiler isn't looking in the proper directory.
8237 Use --without-zlib to disable zlib support." >&5
8238 $as_echo "$as_me: error: zlib library not found
8239 If you have zlib already installed, see config.log for details on the
8240 failure.  It is possible the compiler isn't looking in the proper directory.
8241 Use --without-zlib to disable zlib support." >&2;}
8242    { (exit 1); exit 1; }; }
8243 fi
8244
8245 fi
8246
8247 if test "$enable_spinlocks" = yes; then
8248
8249 cat >>confdefs.h <<\_ACEOF
8250 #define HAVE_SPINLOCKS 1
8251 _ACEOF
8252
8253 else
8254   { $as_echo "$as_me:$LINENO: WARNING:
8255 *** Not using spinlocks will cause poor performance." >&5
8256 $as_echo "$as_me: WARNING:
8257 *** Not using spinlocks will cause poor performance." >&2;}
8258 fi
8259
8260 if test "$with_gssapi" = yes ; then
8261   if test "$PORTNAME" != "win32"; then
8262     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8263 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8264 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8265   $as_echo_n "(cached) " >&6
8266 else
8267   ac_func_search_save_LIBS=$LIBS
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274
8275 /* Override any GCC internal prototype to avoid an error.
8276    Use char because int might match the return type of a GCC
8277    builtin and then its argument prototype would still apply.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 #endif
8281 char gss_init_sec_context ();
8282 int
8283 main ()
8284 {
8285 return gss_init_sec_context ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8291   if test -z "$ac_lib"; then
8292     ac_res="none required"
8293   else
8294     ac_res=-l$ac_lib
8295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8296   fi
8297   rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8304 $as_echo "$ac_try_echo") >&5
8305   (eval "$ac_link") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && {
8312          test -z "$ac_c_werror_flag" ||
8313          test ! -s conftest.err
8314        } && test -s conftest$ac_exeext && {
8315          test "$cross_compiling" = yes ||
8316          $as_test_x conftest$ac_exeext
8317        }; then
8318   ac_cv_search_gss_init_sec_context=$ac_res
8319 else
8320   $as_echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323
8324 fi
8325
8326 rm -rf conftest.dSYM
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328       conftest$ac_exeext
8329   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8330   break
8331 fi
8332 done
8333 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8334   :
8335 else
8336   ac_cv_search_gss_init_sec_context=no
8337 fi
8338 rm conftest.$ac_ext
8339 LIBS=$ac_func_search_save_LIBS
8340 fi
8341 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8342 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8343 ac_res=$ac_cv_search_gss_init_sec_context
8344 if test "$ac_res" != no; then
8345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8346
8347 else
8348   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8349 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8350    { (exit 1); exit 1; }; }
8351 fi
8352
8353   else
8354     LIBS="$LIBS -lgssapi32"
8355   fi
8356 fi
8357
8358 if test "$with_krb5" = yes ; then
8359   if test "$PORTNAME" != "win32"; then
8360      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8361 $as_echo_n "checking for library containing com_err... " >&6; }
8362 if test "${ac_cv_search_com_err+set}" = set; then
8363   $as_echo_n "(cached) " >&6
8364 else
8365   ac_func_search_save_LIBS=$LIBS
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372
8373 /* Override any GCC internal prototype to avoid an error.
8374    Use char because int might match the return type of a GCC
8375    builtin and then its argument prototype would still apply.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 char com_err ();
8380 int
8381 main ()
8382 {
8383 return com_err ();
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8389   if test -z "$ac_lib"; then
8390     ac_res="none required"
8391   else
8392     ac_res=-l$ac_lib
8393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8394   fi
8395   rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (ac_try="$ac_link"
8397 case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403   (eval "$ac_link") 2>conftest.er1
8404   ac_status=$?
8405   grep -v '^ *+' conftest.er1 >conftest.err
8406   rm -f conftest.er1
8407   cat conftest.err >&5
8408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); } && {
8410          test -z "$ac_c_werror_flag" ||
8411          test ! -s conftest.err
8412        } && test -s conftest$ac_exeext && {
8413          test "$cross_compiling" = yes ||
8414          $as_test_x conftest$ac_exeext
8415        }; then
8416   ac_cv_search_com_err=$ac_res
8417 else
8418   $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421
8422 fi
8423
8424 rm -rf conftest.dSYM
8425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8426       conftest$ac_exeext
8427   if test "${ac_cv_search_com_err+set}" = set; then
8428   break
8429 fi
8430 done
8431 if test "${ac_cv_search_com_err+set}" = set; then
8432   :
8433 else
8434   ac_cv_search_com_err=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8440 $as_echo "$ac_cv_search_com_err" >&6; }
8441 ac_res=$ac_cv_search_com_err
8442 if test "$ac_res" != no; then
8443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 else
8446   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8447 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8448    { (exit 1); exit 1; }; }
8449 fi
8450
8451      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8452 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8453 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8454   $as_echo_n "(cached) " >&6
8455 else
8456   ac_func_search_save_LIBS=$LIBS
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 /* Override any GCC internal prototype to avoid an error.
8465    Use char because int might match the return type of a GCC
8466    builtin and then its argument prototype would still apply.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 char krb5_sendauth ();
8471 int
8472 main ()
8473 {
8474 return krb5_sendauth ();
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8480   if test -z "$ac_lib"; then
8481     ac_res="none required"
8482   else
8483     ac_res=-l$ac_lib
8484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8485   fi
8486   rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8488 case "(($ac_try" in
8489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490   *) ac_try_echo=$ac_try;;
8491 esac
8492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8493 $as_echo "$ac_try_echo") >&5
8494   (eval "$ac_link") 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } && {
8501          test -z "$ac_c_werror_flag" ||
8502          test ! -s conftest.err
8503        } && test -s conftest$ac_exeext && {
8504          test "$cross_compiling" = yes ||
8505          $as_test_x conftest$ac_exeext
8506        }; then
8507   ac_cv_search_krb5_sendauth=$ac_res
8508 else
8509   $as_echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512
8513 fi
8514
8515 rm -rf conftest.dSYM
8516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517       conftest$ac_exeext
8518   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8519   break
8520 fi
8521 done
8522 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8523   :
8524 else
8525   ac_cv_search_krb5_sendauth=no
8526 fi
8527 rm conftest.$ac_ext
8528 LIBS=$ac_func_search_save_LIBS
8529 fi
8530 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8531 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8532 ac_res=$ac_cv_search_krb5_sendauth
8533 if test "$ac_res" != no; then
8534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8535
8536 else
8537   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8538 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8539    { (exit 1); exit 1; }; }
8540 fi
8541
8542   else
8543      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8544 $as_echo_n "checking for library containing com_err... " >&6; }
8545 if test "${ac_cv_search_com_err+set}" = set; then
8546   $as_echo_n "(cached) " >&6
8547 else
8548   ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555
8556 /* Override any GCC internal prototype to avoid an error.
8557    Use char because int might match the return type of a GCC
8558    builtin and then its argument prototype would still apply.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 char com_err ();
8563 int
8564 main ()
8565 {
8566 return com_err ();
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8572   if test -z "$ac_lib"; then
8573     ac_res="none required"
8574   else
8575     ac_res=-l$ac_lib
8576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8577   fi
8578   rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586   (eval "$ac_link") 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } && {
8593          test -z "$ac_c_werror_flag" ||
8594          test ! -s conftest.err
8595        } && test -s conftest$ac_exeext && {
8596          test "$cross_compiling" = yes ||
8597          $as_test_x conftest$ac_exeext
8598        }; then
8599   ac_cv_search_com_err=$ac_res
8600 else
8601   $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604
8605 fi
8606
8607 rm -rf conftest.dSYM
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609       conftest$ac_exeext
8610   if test "${ac_cv_search_com_err+set}" = set; then
8611   break
8612 fi
8613 done
8614 if test "${ac_cv_search_com_err+set}" = set; then
8615   :
8616 else
8617   ac_cv_search_com_err=no
8618 fi
8619 rm conftest.$ac_ext
8620 LIBS=$ac_func_search_save_LIBS
8621 fi
8622 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8623 $as_echo "$ac_cv_search_com_err" >&6; }
8624 ac_res=$ac_cv_search_com_err
8625 if test "$ac_res" != no; then
8626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627
8628 else
8629   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8630 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8631    { (exit 1); exit 1; }; }
8632 fi
8633
8634   fi
8635 fi
8636
8637 if test "$with_openssl" = yes ; then
8638     if test "$PORTNAME" != "win32"; then
8639
8640 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8641 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8642 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8643   $as_echo_n "(cached) " >&6
8644 else
8645   ac_check_lib_save_LIBS=$LIBS
8646 LIBS="-lcrypto  $LIBS"
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653
8654 /* Override any GCC internal prototype to avoid an error.
8655    Use char because int might match the return type of a GCC
8656    builtin and then its argument prototype would still apply.  */
8657 #ifdef __cplusplus
8658 extern "C"
8659 #endif
8660 char CRYPTO_new_ex_data ();
8661 int
8662 main ()
8663 {
8664 return CRYPTO_new_ex_data ();
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8671 case "(($ac_try" in
8672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673   *) ac_try_echo=$ac_try;;
8674 esac
8675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676 $as_echo "$ac_try_echo") >&5
8677   (eval "$ac_link") 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } && {
8684          test -z "$ac_c_werror_flag" ||
8685          test ! -s conftest.err
8686        } && test -s conftest$ac_exeext && {
8687          test "$cross_compiling" = yes ||
8688          $as_test_x conftest$ac_exeext
8689        }; then
8690   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8691 else
8692   $as_echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8696 fi
8697
8698 rm -rf conftest.dSYM
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700       conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8704 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8705 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8706   cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBCRYPTO 1
8708 _ACEOF
8709
8710   LIBS="-lcrypto $LIBS"
8711
8712 else
8713   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8714 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8715    { (exit 1); exit 1; }; }
8716 fi
8717
8718
8719 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8720 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8721 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8722   $as_echo_n "(cached) " >&6
8723 else
8724   ac_check_lib_save_LIBS=$LIBS
8725 LIBS="-lssl  $LIBS"
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h.  */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h.  */
8732
8733 /* Override any GCC internal prototype to avoid an error.
8734    Use char because int might match the return type of a GCC
8735    builtin and then its argument prototype would still apply.  */
8736 #ifdef __cplusplus
8737 extern "C"
8738 #endif
8739 char SSL_library_init ();
8740 int
8741 main ()
8742 {
8743 return SSL_library_init ();
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (ac_try="$ac_link"
8750 case "(($ac_try" in
8751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752   *) ac_try_echo=$ac_try;;
8753 esac
8754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8755 $as_echo "$ac_try_echo") >&5
8756   (eval "$ac_link") 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } && {
8763          test -z "$ac_c_werror_flag" ||
8764          test ! -s conftest.err
8765        } && test -s conftest$ac_exeext && {
8766          test "$cross_compiling" = yes ||
8767          $as_test_x conftest$ac_exeext
8768        }; then
8769   ac_cv_lib_ssl_SSL_library_init=yes
8770 else
8771   $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774         ac_cv_lib_ssl_SSL_library_init=no
8775 fi
8776
8777 rm -rf conftest.dSYM
8778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8779       conftest$ac_exeext conftest.$ac_ext
8780 LIBS=$ac_check_lib_save_LIBS
8781 fi
8782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8783 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8784 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8785   cat >>confdefs.h <<_ACEOF
8786 #define HAVE_LIBSSL 1
8787 _ACEOF
8788
8789   LIBS="-lssl $LIBS"
8790
8791 else
8792   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8793 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8794    { (exit 1); exit 1; }; }
8795 fi
8796
8797   else
8798
8799 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8800 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8801 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8802   $as_echo_n "(cached) " >&6
8803 else
8804   ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-leay32  $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812
8813 /* Override any GCC internal prototype to avoid an error.
8814    Use char because int might match the return type of a GCC
8815    builtin and then its argument prototype would still apply.  */
8816 #ifdef __cplusplus
8817 extern "C"
8818 #endif
8819 char CRYPTO_new_ex_data ();
8820 int
8821 main ()
8822 {
8823 return CRYPTO_new_ex_data ();
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (ac_try="$ac_link"
8830 case "(($ac_try" in
8831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832   *) ac_try_echo=$ac_try;;
8833 esac
8834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835 $as_echo "$ac_try_echo") >&5
8836   (eval "$ac_link") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } && {
8843          test -z "$ac_c_werror_flag" ||
8844          test ! -s conftest.err
8845        } && test -s conftest$ac_exeext && {
8846          test "$cross_compiling" = yes ||
8847          $as_test_x conftest$ac_exeext
8848        }; then
8849   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8850 else
8851   $as_echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8855 fi
8856
8857 rm -rf conftest.dSYM
8858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8859       conftest$ac_exeext conftest.$ac_ext
8860 LIBS=$ac_check_lib_save_LIBS
8861 fi
8862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8863 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8864 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8865   cat >>confdefs.h <<_ACEOF
8866 #define HAVE_LIBEAY32 1
8867 _ACEOF
8868
8869   LIBS="-leay32 $LIBS"
8870
8871 else
8872   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8873 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8874    { (exit 1); exit 1; }; }
8875 fi
8876
8877
8878 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8879 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8880 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8881   $as_echo_n "(cached) " >&6
8882 else
8883   ac_check_lib_save_LIBS=$LIBS
8884 LIBS="-lssleay32  $LIBS"
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891
8892 /* Override any GCC internal prototype to avoid an error.
8893    Use char because int might match the return type of a GCC
8894    builtin and then its argument prototype would still apply.  */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 char SSL_library_init ();
8899 int
8900 main ()
8901 {
8902 return SSL_library_init ();
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915   (eval "$ac_link") 2>conftest.er1
8916   ac_status=$?
8917   grep -v '^ *+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } && {
8922          test -z "$ac_c_werror_flag" ||
8923          test ! -s conftest.err
8924        } && test -s conftest$ac_exeext && {
8925          test "$cross_compiling" = yes ||
8926          $as_test_x conftest$ac_exeext
8927        }; then
8928   ac_cv_lib_ssleay32_SSL_library_init=yes
8929 else
8930   $as_echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933         ac_cv_lib_ssleay32_SSL_library_init=no
8934 fi
8935
8936 rm -rf conftest.dSYM
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938       conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8940 fi
8941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8942 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8943 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8944   cat >>confdefs.h <<_ACEOF
8945 #define HAVE_LIBSSLEAY32 1
8946 _ACEOF
8947
8948   LIBS="-lssleay32 $LIBS"
8949
8950 else
8951   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8952 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8953    { (exit 1); exit 1; }; }
8954 fi
8955
8956   fi
8957 fi
8958
8959 if test "$with_pam" = yes ; then
8960
8961 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8962 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8963 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8964   $as_echo_n "(cached) " >&6
8965 else
8966   ac_check_lib_save_LIBS=$LIBS
8967 LIBS="-lpam  $LIBS"
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h.  */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h.  */
8974
8975 /* Override any GCC internal prototype to avoid an error.
8976    Use char because int might match the return type of a GCC
8977    builtin and then its argument prototype would still apply.  */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 char pam_start ();
8982 int
8983 main ()
8984 {
8985 return pam_start ();
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8992 case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998   (eval "$ac_link") 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } && {
9005          test -z "$ac_c_werror_flag" ||
9006          test ! -s conftest.err
9007        } && test -s conftest$ac_exeext && {
9008          test "$cross_compiling" = yes ||
9009          $as_test_x conftest$ac_exeext
9010        }; then
9011   ac_cv_lib_pam_pam_start=yes
9012 else
9013   $as_echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016         ac_cv_lib_pam_pam_start=no
9017 fi
9018
9019 rm -rf conftest.dSYM
9020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021       conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9023 fi
9024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9025 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9026 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9027   cat >>confdefs.h <<_ACEOF
9028 #define HAVE_LIBPAM 1
9029 _ACEOF
9030
9031   LIBS="-lpam $LIBS"
9032
9033 else
9034   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9035 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9036    { (exit 1); exit 1; }; }
9037 fi
9038
9039 fi
9040
9041 if test "$with_libxml" = yes ; then
9042
9043 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9044 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9045 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9046   $as_echo_n "(cached) " >&6
9047 else
9048   ac_check_lib_save_LIBS=$LIBS
9049 LIBS="-lxml2  $LIBS"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056
9057 /* Override any GCC internal prototype to avoid an error.
9058    Use char because int might match the return type of a GCC
9059    builtin and then its argument prototype would still apply.  */
9060 #ifdef __cplusplus
9061 extern "C"
9062 #endif
9063 char xmlSaveToBuffer ();
9064 int
9065 main ()
9066 {
9067 return xmlSaveToBuffer ();
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9079 $as_echo "$ac_try_echo") >&5
9080   (eval "$ac_link") 2>conftest.er1
9081   ac_status=$?
9082   grep -v '^ *+' conftest.er1 >conftest.err
9083   rm -f conftest.er1
9084   cat conftest.err >&5
9085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } && {
9087          test -z "$ac_c_werror_flag" ||
9088          test ! -s conftest.err
9089        } && test -s conftest$ac_exeext && {
9090          test "$cross_compiling" = yes ||
9091          $as_test_x conftest$ac_exeext
9092        }; then
9093   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9094 else
9095   $as_echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098         ac_cv_lib_xml2_xmlSaveToBuffer=no
9099 fi
9100
9101 rm -rf conftest.dSYM
9102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103       conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9105 fi
9106 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9107 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9108 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9109   cat >>confdefs.h <<_ACEOF
9110 #define HAVE_LIBXML2 1
9111 _ACEOF
9112
9113   LIBS="-lxml2 $LIBS"
9114
9115 else
9116   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9117 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9118    { (exit 1); exit 1; }; }
9119 fi
9120
9121 fi
9122
9123 if test "$with_libxslt" = yes ; then
9124
9125 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9126 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9127 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9128   $as_echo_n "(cached) " >&6
9129 else
9130   ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-lxslt  $LIBS"
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138
9139 /* Override any GCC internal prototype to avoid an error.
9140    Use char because int might match the return type of a GCC
9141    builtin and then its argument prototype would still apply.  */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char xsltCleanupGlobals ();
9146 int
9147 main ()
9148 {
9149 return xsltCleanupGlobals ();
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9156 case "(($ac_try" in
9157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158   *) ac_try_echo=$ac_try;;
9159 esac
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162   (eval "$ac_link") 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } && {
9169          test -z "$ac_c_werror_flag" ||
9170          test ! -s conftest.err
9171        } && test -s conftest$ac_exeext && {
9172          test "$cross_compiling" = yes ||
9173          $as_test_x conftest$ac_exeext
9174        }; then
9175   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9176 else
9177   $as_echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9179
9180         ac_cv_lib_xslt_xsltCleanupGlobals=no
9181 fi
9182
9183 rm -rf conftest.dSYM
9184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9185       conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9187 fi
9188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9189 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9190 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9191   cat >>confdefs.h <<_ACEOF
9192 #define HAVE_LIBXSLT 1
9193 _ACEOF
9194
9195   LIBS="-lxslt $LIBS"
9196
9197 else
9198   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9199 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9200    { (exit 1); exit 1; }; }
9201 fi
9202
9203 fi
9204
9205 # for contrib/uuid-ossp
9206 if test "$with_ossp_uuid" = yes ; then
9207   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9208 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9209 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9210   $as_echo_n "(cached) " >&6
9211 else
9212   ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lossp-uuid  $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h.  */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h.  */
9220
9221 /* Override any GCC internal prototype to avoid an error.
9222    Use char because int might match the return type of a GCC
9223    builtin and then its argument prototype would still apply.  */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char uuid_export ();
9228 int
9229 main ()
9230 {
9231 return uuid_export ();
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9238 case "(($ac_try" in
9239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240   *) ac_try_echo=$ac_try;;
9241 esac
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244   (eval "$ac_link") 2>conftest.er1
9245   ac_status=$?
9246   grep -v '^ *+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } && {
9251          test -z "$ac_c_werror_flag" ||
9252          test ! -s conftest.err
9253        } && test -s conftest$ac_exeext && {
9254          test "$cross_compiling" = yes ||
9255          $as_test_x conftest$ac_exeext
9256        }; then
9257   ac_cv_lib_ossp_uuid_uuid_export=yes
9258 else
9259   $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262         ac_cv_lib_ossp_uuid_uuid_export=no
9263 fi
9264
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267       conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9271 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9272 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9273   OSSP_UUID_LIBS="-lossp-uuid"
9274 else
9275   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9276 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9277 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9278   $as_echo_n "(cached) " >&6
9279 else
9280   ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-luuid  $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290    Use char because int might match the return type of a GCC
9291    builtin and then its argument prototype would still apply.  */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char uuid_export ();
9296 int
9297 main ()
9298 {
9299 return uuid_export ();
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9306 case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312   (eval "$ac_link") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } && {
9319          test -z "$ac_c_werror_flag" ||
9320          test ! -s conftest.err
9321        } && test -s conftest$ac_exeext && {
9322          test "$cross_compiling" = yes ||
9323          $as_test_x conftest$ac_exeext
9324        }; then
9325   ac_cv_lib_uuid_uuid_export=yes
9326 else
9327   $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         ac_cv_lib_uuid_uuid_export=no
9331 fi
9332
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335       conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9339 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9340 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9341   OSSP_UUID_LIBS="-luuid"
9342 else
9343   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9344 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9345    { (exit 1); exit 1; }; }
9346 fi
9347
9348 fi
9349
9350 fi
9351
9352
9353
9354 ##
9355 ## Header files
9356 ##
9357
9358 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9359 $as_echo_n "checking for ANSI C header files... " >&6; }
9360 if test "${ac_cv_header_stdc+set}" = set; then
9361   $as_echo_n "(cached) " >&6
9362 else
9363   cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 #include <stdlib.h>
9370 #include <stdarg.h>
9371 #include <string.h>
9372 #include <float.h>
9373
9374 int
9375 main ()
9376 {
9377
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (ac_try="$ac_compile"
9384 case "(($ac_try" in
9385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386   *) ac_try_echo=$ac_try;;
9387 esac
9388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9389 $as_echo "$ac_try_echo") >&5
9390   (eval "$ac_compile") 2>conftest.er1
9391   ac_status=$?
9392   grep -v '^ *+' conftest.er1 >conftest.err
9393   rm -f conftest.er1
9394   cat conftest.err >&5
9395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } && {
9397          test -z "$ac_c_werror_flag" ||
9398          test ! -s conftest.err
9399        } && test -s conftest.$ac_objext; then
9400   ac_cv_header_stdc=yes
9401 else
9402   $as_echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405         ac_cv_header_stdc=no
9406 fi
9407
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409
9410 if test $ac_cv_header_stdc = yes; then
9411   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9412   cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418 #include <string.h>
9419
9420 _ACEOF
9421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9422   $EGREP "memchr" >/dev/null 2>&1; then
9423   :
9424 else
9425   ac_cv_header_stdc=no
9426 fi
9427 rm -f conftest*
9428
9429 fi
9430
9431 if test $ac_cv_header_stdc = yes; then
9432   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9433   cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 #include <stdlib.h>
9440
9441 _ACEOF
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443   $EGREP "free" >/dev/null 2>&1; then
9444   :
9445 else
9446   ac_cv_header_stdc=no
9447 fi
9448 rm -f conftest*
9449
9450 fi
9451
9452 if test $ac_cv_header_stdc = yes; then
9453   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9454   if test "$cross_compiling" = yes; then
9455   :
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463 #include <ctype.h>
9464 #include <stdlib.h>
9465 #if ((' ' & 0x0FF) == 0x020)
9466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9468 #else
9469 # define ISLOWER(c) \
9470                    (('a' <= (c) && (c) <= 'i') \
9471                      || ('j' <= (c) && (c) <= 'r') \
9472                      || ('s' <= (c) && (c) <= 'z'))
9473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9474 #endif
9475
9476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9477 int
9478 main ()
9479 {
9480   int i;
9481   for (i = 0; i < 256; i++)
9482     if (XOR (islower (i), ISLOWER (i))
9483         || toupper (i) != TOUPPER (i))
9484       return 2;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9495 $as_echo "$ac_try_echo") >&5
9496   (eval "$ac_link") 2>&5
9497   ac_status=$?
9498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9500   { (case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9505 $as_echo "$ac_try_echo") >&5
9506   (eval "$ac_try") 2>&5
9507   ac_status=$?
9508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; }; then
9510   :
9511 else
9512   $as_echo "$as_me: program exited with status $ac_status" >&5
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 ( exit $ac_status )
9517 ac_cv_header_stdc=no
9518 fi
9519 rm -rf conftest.dSYM
9520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9521 fi
9522
9523
9524 fi
9525 fi
9526 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9527 $as_echo "$ac_cv_header_stdc" >&6; }
9528 if test $ac_cv_header_stdc = yes; then
9529
9530 cat >>confdefs.h <<\_ACEOF
9531 #define STDC_HEADERS 1
9532 _ACEOF
9533
9534 fi
9535
9536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9547                   inttypes.h stdint.h unistd.h
9548 do
9549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 $as_echo_n "checking for $ac_header... " >&6; }
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553   $as_echo_n "(cached) " >&6
9554 else
9555   cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561 $ac_includes_default
9562
9563 #include <$ac_header>
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9567 case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9572 $as_echo "$ac_try_echo") >&5
9573   (eval "$ac_compile") 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } && {
9580          test -z "$ac_c_werror_flag" ||
9581          test ! -s conftest.err
9582        } && test -s conftest.$ac_objext; then
9583   eval "$as_ac_Header=yes"
9584 else
9585   $as_echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         eval "$as_ac_Header=no"
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 ac_res=`eval 'as_val=${'$as_ac_Header'}
9594                  $as_echo "$as_val"'`
9595                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9596 $as_echo "$ac_res" >&6; }
9597 as_val=`eval 'as_val=${'$as_ac_Header'}
9598                  $as_echo "$as_val"'`
9599    if test "x$as_val" = x""yes; then
9600   cat >>confdefs.h <<_ACEOF
9601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 fi
9605
9606 done
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9640 do
9641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9643   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9644 $as_echo_n "checking for $ac_header... " >&6; }
9645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9646   $as_echo_n "(cached) " >&6
9647 fi
9648 ac_res=`eval 'as_val=${'$as_ac_Header'}
9649                  $as_echo "$as_val"'`
9650                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9651 $as_echo "$ac_res" >&6; }
9652 else
9653   # Is the header compilable?
9654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 $as_echo_n "checking $ac_header usability... " >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9672 $as_echo "$ac_try_echo") >&5
9673   (eval "$ac_compile") 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && {
9680          test -z "$ac_c_werror_flag" ||
9681          test ! -s conftest.err
9682        } && test -s conftest.$ac_objext; then
9683   ac_header_compiler=yes
9684 else
9685   $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688         ac_header_compiler=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 $as_echo "$ac_header_compiler" >&6; }
9694
9695 # Is the header present?
9696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697 $as_echo_n "checking $ac_header presence... " >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704 #include <$ac_header>
9705 _ACEOF
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 case "(($ac_try" in
9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709   *) ac_try_echo=$ac_try;;
9710 esac
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } >/dev/null && {
9720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9721          test ! -s conftest.err
9722        }; then
9723   ac_header_preproc=yes
9724 else
9725   $as_echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728   ac_header_preproc=no
9729 fi
9730
9731 rm -f conftest.err conftest.$ac_ext
9732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733 $as_echo "$ac_header_preproc" >&6; }
9734
9735 # So?  What about this header?
9736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737   yes:no: )
9738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9742     ac_header_preproc=yes
9743     ;;
9744   no:yes:* )
9745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9748 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9752 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9757     ( cat <<\_ASBOX
9758 ## ---------------------------------------- ##
9759 ## Report this to pgsql-bugs@postgresql.org ##
9760 ## ---------------------------------------- ##
9761 _ASBOX
9762      ) | sed "s/^/$as_me: WARNING:     /" >&2
9763     ;;
9764 esac
9765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 $as_echo_n "checking for $ac_header... " >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768   $as_echo_n "(cached) " >&6
9769 else
9770   eval "$as_ac_Header=\$ac_header_preproc"
9771 fi
9772 ac_res=`eval 'as_val=${'$as_ac_Header'}
9773                  $as_echo "$as_val"'`
9774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9775 $as_echo "$ac_res" >&6; }
9776
9777 fi
9778 as_val=`eval 'as_val=${'$as_ac_Header'}
9779                  $as_echo "$as_val"'`
9780    if test "x$as_val" = x""yes; then
9781   cat >>confdefs.h <<_ACEOF
9782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 _ACEOF
9784
9785 fi
9786
9787 done
9788
9789
9790 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9791 # is included first.
9792
9793 for ac_header in net/if.h
9794 do
9795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9797 $as_echo_n "checking for $ac_header... " >&6; }
9798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9799   $as_echo_n "(cached) " >&6
9800 else
9801   cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h.  */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h.  */
9807 $ac_includes_default
9808 #ifdef HAVE_SYS_SOCKET_H
9809 #include <sys/socket.h>
9810 #endif
9811
9812
9813 #include <$ac_header>
9814 _ACEOF
9815 rm -f conftest.$ac_objext
9816 if { (ac_try="$ac_compile"
9817 case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9822 $as_echo "$ac_try_echo") >&5
9823   (eval "$ac_compile") 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } && {
9830          test -z "$ac_c_werror_flag" ||
9831          test ! -s conftest.err
9832        } && test -s conftest.$ac_objext; then
9833   eval "$as_ac_Header=yes"
9834 else
9835   $as_echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838         eval "$as_ac_Header=no"
9839 fi
9840
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 ac_res=`eval 'as_val=${'$as_ac_Header'}
9844                  $as_echo "$as_val"'`
9845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9846 $as_echo "$ac_res" >&6; }
9847 as_val=`eval 'as_val=${'$as_ac_Header'}
9848                  $as_echo "$as_val"'`
9849    if test "x$as_val" = x""yes; then
9850   cat >>confdefs.h <<_ACEOF
9851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9852 _ACEOF
9853
9854 fi
9855
9856 done
9857
9858
9859 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9860 # netinet/in.h is included first.
9861
9862 for ac_header in netinet/in.h
9863 do
9864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9866   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 $as_echo_n "checking for $ac_header... " >&6; }
9868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9869   $as_echo_n "(cached) " >&6
9870 fi
9871 ac_res=`eval 'as_val=${'$as_ac_Header'}
9872                  $as_echo "$as_val"'`
9873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9874 $as_echo "$ac_res" >&6; }
9875 else
9876   # Is the header compilable?
9877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9878 $as_echo_n "checking $ac_header usability... " >&6; }
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885 $ac_includes_default
9886 #include <$ac_header>
9887 _ACEOF
9888 rm -f conftest.$ac_objext
9889 if { (ac_try="$ac_compile"
9890 case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9895 $as_echo "$ac_try_echo") >&5
9896   (eval "$ac_compile") 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } && {
9903          test -z "$ac_c_werror_flag" ||
9904          test ! -s conftest.err
9905        } && test -s conftest.$ac_objext; then
9906   ac_header_compiler=yes
9907 else
9908   $as_echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911         ac_header_compiler=no
9912 fi
9913
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9916 $as_echo "$ac_header_compiler" >&6; }
9917
9918 # Is the header present?
9919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9920 $as_echo_n "checking $ac_header presence... " >&6; }
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927 #include <$ac_header>
9928 _ACEOF
9929 if { (ac_try="$ac_cpp conftest.$ac_ext"
9930 case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } >/dev/null && {
9943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9944          test ! -s conftest.err
9945        }; then
9946   ac_header_preproc=yes
9947 else
9948   $as_echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951   ac_header_preproc=no
9952 fi
9953
9954 rm -f conftest.err conftest.$ac_ext
9955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9956 $as_echo "$ac_header_preproc" >&6; }
9957
9958 # So?  What about this header?
9959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9960   yes:no: )
9961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9965     ac_header_preproc=yes
9966     ;;
9967   no:yes:* )
9968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9971 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9975 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9980     ( cat <<\_ASBOX
9981 ## ---------------------------------------- ##
9982 ## Report this to pgsql-bugs@postgresql.org ##
9983 ## ---------------------------------------- ##
9984 _ASBOX
9985      ) | sed "s/^/$as_me: WARNING:     /" >&2
9986     ;;
9987 esac
9988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 $as_echo_n "checking for $ac_header... " >&6; }
9990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9991   $as_echo_n "(cached) " >&6
9992 else
9993   eval "$as_ac_Header=\$ac_header_preproc"
9994 fi
9995 ac_res=`eval 'as_val=${'$as_ac_Header'}
9996                  $as_echo "$as_val"'`
9997                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9998 $as_echo "$ac_res" >&6; }
9999
10000 fi
10001 as_val=`eval 'as_val=${'$as_ac_Header'}
10002                  $as_echo "$as_val"'`
10003    if test "x$as_val" = x""yes; then
10004   cat >>confdefs.h <<_ACEOF
10005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10006 _ACEOF
10007
10008 fi
10009
10010 done
10011
10012
10013 for ac_header in netinet/tcp.h
10014 do
10015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 $as_echo_n "checking for $ac_header... " >&6; }
10018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019   $as_echo_n "(cached) " >&6
10020 else
10021   cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027 $ac_includes_default
10028 #ifdef HAVE_NETINET_IN_H
10029 #include <netinet/in.h>
10030 #endif
10031
10032
10033 #include <$ac_header>
10034 _ACEOF
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043   (eval "$ac_compile") 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } && {
10050          test -z "$ac_c_werror_flag" ||
10051          test ! -s conftest.err
10052        } && test -s conftest.$ac_objext; then
10053   eval "$as_ac_Header=yes"
10054 else
10055   $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         eval "$as_ac_Header=no"
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 ac_res=`eval 'as_val=${'$as_ac_Header'}
10064                  $as_echo "$as_val"'`
10065                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10066 $as_echo "$ac_res" >&6; }
10067 as_val=`eval 'as_val=${'$as_ac_Header'}
10068                  $as_echo "$as_val"'`
10069    if test "x$as_val" = x""yes; then
10070   cat >>confdefs.h <<_ACEOF
10071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072 _ACEOF
10073
10074 fi
10075
10076 done
10077
10078
10079 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10080
10081 for ac_header in readline/readline.h
10082 do
10083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10085   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 $as_echo_n "checking for $ac_header... " >&6; }
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088   $as_echo_n "(cached) " >&6
10089 fi
10090 ac_res=`eval 'as_val=${'$as_ac_Header'}
10091                  $as_echo "$as_val"'`
10092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10093 $as_echo "$ac_res" >&6; }
10094 else
10095   # Is the header compilable?
10096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10097 $as_echo_n "checking $ac_header usability... " >&6; }
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 $ac_includes_default
10105 #include <$ac_header>
10106 _ACEOF
10107 rm -f conftest.$ac_objext
10108 if { (ac_try="$ac_compile"
10109 case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10114 $as_echo "$ac_try_echo") >&5
10115   (eval "$ac_compile") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } && {
10122          test -z "$ac_c_werror_flag" ||
10123          test ! -s conftest.err
10124        } && test -s conftest.$ac_objext; then
10125   ac_header_compiler=yes
10126 else
10127   $as_echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130         ac_header_compiler=no
10131 fi
10132
10133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 $as_echo "$ac_header_compiler" >&6; }
10136
10137 # Is the header present?
10138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10139 $as_echo_n "checking $ac_header presence... " >&6; }
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146 #include <$ac_header>
10147 _ACEOF
10148 if { (ac_try="$ac_cpp conftest.$ac_ext"
10149 case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154 $as_echo "$ac_try_echo") >&5
10155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } >/dev/null && {
10162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163          test ! -s conftest.err
10164        }; then
10165   ac_header_preproc=yes
10166 else
10167   $as_echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170   ac_header_preproc=no
10171 fi
10172
10173 rm -f conftest.err conftest.$ac_ext
10174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 $as_echo "$ac_header_preproc" >&6; }
10176
10177 # So?  What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10179   yes:no: )
10180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184     ac_header_preproc=yes
10185     ;;
10186   no:yes:* )
10187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10190 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10194 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10199     ( cat <<\_ASBOX
10200 ## ---------------------------------------- ##
10201 ## Report this to pgsql-bugs@postgresql.org ##
10202 ## ---------------------------------------- ##
10203 _ASBOX
10204      ) | sed "s/^/$as_me: WARNING:     /" >&2
10205     ;;
10206 esac
10207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 $as_echo_n "checking for $ac_header... " >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210   $as_echo_n "(cached) " >&6
10211 else
10212   eval "$as_ac_Header=\$ac_header_preproc"
10213 fi
10214 ac_res=`eval 'as_val=${'$as_ac_Header'}
10215                  $as_echo "$as_val"'`
10216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10217 $as_echo "$ac_res" >&6; }
10218
10219 fi
10220 as_val=`eval 'as_val=${'$as_ac_Header'}
10221                  $as_echo "$as_val"'`
10222    if test "x$as_val" = x""yes; then
10223   cat >>confdefs.h <<_ACEOF
10224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10225 _ACEOF
10226
10227 else
10228
10229 for ac_header in readline.h
10230 do
10231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10234 $as_echo_n "checking for $ac_header... " >&6; }
10235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10236   $as_echo_n "(cached) " >&6
10237 fi
10238 ac_res=`eval 'as_val=${'$as_ac_Header'}
10239                  $as_echo "$as_val"'`
10240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10241 $as_echo "$ac_res" >&6; }
10242 else
10243   # Is the header compilable?
10244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10245 $as_echo_n "checking $ac_header usability... " >&6; }
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 $ac_includes_default
10253 #include <$ac_header>
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (ac_try="$ac_compile"
10257 case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263   (eval "$ac_compile") 2>conftest.er1
10264   ac_status=$?
10265   grep -v '^ *+' conftest.er1 >conftest.err
10266   rm -f conftest.er1
10267   cat conftest.err >&5
10268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } && {
10270          test -z "$ac_c_werror_flag" ||
10271          test ! -s conftest.err
10272        } && test -s conftest.$ac_objext; then
10273   ac_header_compiler=yes
10274 else
10275   $as_echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278         ac_header_compiler=no
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10283 $as_echo "$ac_header_compiler" >&6; }
10284
10285 # Is the header present?
10286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10287 $as_echo_n "checking $ac_header presence... " >&6; }
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 #include <$ac_header>
10295 _ACEOF
10296 if { (ac_try="$ac_cpp conftest.$ac_ext"
10297 case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10302 $as_echo "$ac_try_echo") >&5
10303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } >/dev/null && {
10310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10311          test ! -s conftest.err
10312        }; then
10313   ac_header_preproc=yes
10314 else
10315   $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318   ac_header_preproc=no
10319 fi
10320
10321 rm -f conftest.err conftest.$ac_ext
10322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10323 $as_echo "$ac_header_preproc" >&6; }
10324
10325 # So?  What about this header?
10326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10327   yes:no: )
10328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10332     ac_header_preproc=yes
10333     ;;
10334   no:yes:* )
10335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10338 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10342 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10347     ( cat <<\_ASBOX
10348 ## ---------------------------------------- ##
10349 ## Report this to pgsql-bugs@postgresql.org ##
10350 ## ---------------------------------------- ##
10351 _ASBOX
10352      ) | sed "s/^/$as_me: WARNING:     /" >&2
10353     ;;
10354 esac
10355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10356 $as_echo_n "checking for $ac_header... " >&6; }
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358   $as_echo_n "(cached) " >&6
10359 else
10360   eval "$as_ac_Header=\$ac_header_preproc"
10361 fi
10362 ac_res=`eval 'as_val=${'$as_ac_Header'}
10363                  $as_echo "$as_val"'`
10364                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10365 $as_echo "$ac_res" >&6; }
10366
10367 fi
10368 as_val=`eval 'as_val=${'$as_ac_Header'}
10369                  $as_echo "$as_val"'`
10370    if test "x$as_val" = x""yes; then
10371   cat >>confdefs.h <<_ACEOF
10372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10373 _ACEOF
10374
10375 else
10376   { { $as_echo "$as_me:$LINENO: error: readline header not found
10377 If you have readline already installed, see config.log for details on the
10378 failure.  It is possible the compiler isn't looking in the proper directory.
10379 Use --without-readline to disable readline support." >&5
10380 $as_echo "$as_me: error: readline header not found
10381 If you have readline already installed, see config.log for details on the
10382 failure.  It is possible the compiler isn't looking in the proper directory.
10383 Use --without-readline to disable readline support." >&2;}
10384    { (exit 1); exit 1; }; }
10385 fi
10386
10387 done
10388
10389 fi
10390
10391 done
10392
10393
10394 for ac_header in readline/history.h
10395 do
10396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401   $as_echo_n "(cached) " >&6
10402 fi
10403 ac_res=`eval 'as_val=${'$as_ac_Header'}
10404                  $as_echo "$as_val"'`
10405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10406 $as_echo "$ac_res" >&6; }
10407 else
10408   # Is the header compilable?
10409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10410 $as_echo_n "checking $ac_header usability... " >&6; }
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h.  */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h.  */
10417 $ac_includes_default
10418 #include <$ac_header>
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (ac_try="$ac_compile"
10422 case "(($ac_try" in
10423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424   *) ac_try_echo=$ac_try;;
10425 esac
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428   (eval "$ac_compile") 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } && {
10435          test -z "$ac_c_werror_flag" ||
10436          test ! -s conftest.err
10437        } && test -s conftest.$ac_objext; then
10438   ac_header_compiler=yes
10439 else
10440   $as_echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_header_compiler=no
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448 $as_echo "$ac_header_compiler" >&6; }
10449
10450 # Is the header present?
10451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10452 $as_echo_n "checking $ac_header presence... " >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #include <$ac_header>
10460 _ACEOF
10461 if { (ac_try="$ac_cpp conftest.$ac_ext"
10462 case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10467 $as_echo "$ac_try_echo") >&5
10468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } >/dev/null && {
10475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10476          test ! -s conftest.err
10477        }; then
10478   ac_header_preproc=yes
10479 else
10480   $as_echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483   ac_header_preproc=no
10484 fi
10485
10486 rm -f conftest.err conftest.$ac_ext
10487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 $as_echo "$ac_header_preproc" >&6; }
10489
10490 # So?  What about this header?
10491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10492   yes:no: )
10493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10497     ac_header_preproc=yes
10498     ;;
10499   no:yes:* )
10500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10503 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10507 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10512     ( cat <<\_ASBOX
10513 ## ---------------------------------------- ##
10514 ## Report this to pgsql-bugs@postgresql.org ##
10515 ## ---------------------------------------- ##
10516 _ASBOX
10517      ) | sed "s/^/$as_me: WARNING:     /" >&2
10518     ;;
10519 esac
10520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 $as_echo_n "checking for $ac_header... " >&6; }
10522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523   $as_echo_n "(cached) " >&6
10524 else
10525   eval "$as_ac_Header=\$ac_header_preproc"
10526 fi
10527 ac_res=`eval 'as_val=${'$as_ac_Header'}
10528                  $as_echo "$as_val"'`
10529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10530 $as_echo "$ac_res" >&6; }
10531
10532 fi
10533 as_val=`eval 'as_val=${'$as_ac_Header'}
10534                  $as_echo "$as_val"'`
10535    if test "x$as_val" = x""yes; then
10536   cat >>confdefs.h <<_ACEOF
10537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538 _ACEOF
10539
10540 else
10541
10542 for ac_header in history.h
10543 do
10544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 $as_echo_n "checking for $ac_header... " >&6; }
10548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549   $as_echo_n "(cached) " >&6
10550 fi
10551 ac_res=`eval 'as_val=${'$as_ac_Header'}
10552                  $as_echo "$as_val"'`
10553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10554 $as_echo "$ac_res" >&6; }
10555 else
10556   # Is the header compilable?
10557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 $as_echo_n "checking $ac_header usability... " >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 $ac_includes_default
10566 #include <$ac_header>
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576   (eval "$ac_compile") 2>conftest.er1
10577   ac_status=$?
10578   grep -v '^ *+' conftest.er1 >conftest.err
10579   rm -f conftest.er1
10580   cat conftest.err >&5
10581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } && {
10583          test -z "$ac_c_werror_flag" ||
10584          test ! -s conftest.err
10585        } && test -s conftest.$ac_objext; then
10586   ac_header_compiler=yes
10587 else
10588   $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591         ac_header_compiler=no
10592 fi
10593
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 $as_echo "$ac_header_compiler" >&6; }
10597
10598 # Is the header present?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 $as_echo_n "checking $ac_header presence... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h.  */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h.  */
10607 #include <$ac_header>
10608 _ACEOF
10609 if { (ac_try="$ac_cpp conftest.$ac_ext"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10617   ac_status=$?
10618   grep -v '^ *+' conftest.er1 >conftest.err
10619   rm -f conftest.er1
10620   cat conftest.err >&5
10621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } >/dev/null && {
10623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10624          test ! -s conftest.err
10625        }; then
10626   ac_header_preproc=yes
10627 else
10628   $as_echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631   ac_header_preproc=no
10632 fi
10633
10634 rm -f conftest.err conftest.$ac_ext
10635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 $as_echo "$ac_header_preproc" >&6; }
10637
10638 # So?  What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640   yes:no: )
10641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645     ac_header_preproc=yes
10646     ;;
10647   no:yes:* )
10648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10651 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10655 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10660     ( cat <<\_ASBOX
10661 ## ---------------------------------------- ##
10662 ## Report this to pgsql-bugs@postgresql.org ##
10663 ## ---------------------------------------- ##
10664 _ASBOX
10665      ) | sed "s/^/$as_me: WARNING:     /" >&2
10666     ;;
10667 esac
10668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 $as_echo_n "checking for $ac_header... " >&6; }
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671   $as_echo_n "(cached) " >&6
10672 else
10673   eval "$as_ac_Header=\$ac_header_preproc"
10674 fi
10675 ac_res=`eval 'as_val=${'$as_ac_Header'}
10676                  $as_echo "$as_val"'`
10677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10678 $as_echo "$ac_res" >&6; }
10679
10680 fi
10681 as_val=`eval 'as_val=${'$as_ac_Header'}
10682                  $as_echo "$as_val"'`
10683    if test "x$as_val" = x""yes; then
10684   cat >>confdefs.h <<_ACEOF
10685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686 _ACEOF
10687
10688 else
10689   { { $as_echo "$as_me:$LINENO: error: history header not found
10690 If you have readline already installed, see config.log for details on the
10691 failure.  It is possible the compiler isn't looking in the proper directory.
10692 Use --without-readline to disable readline support." >&5
10693 $as_echo "$as_me: error: history header not found
10694 If you have readline already installed, see config.log for details on the
10695 failure.  It is possible the compiler isn't looking in the proper directory.
10696 Use --without-readline to disable readline support." >&2;}
10697    { (exit 1); exit 1; }; }
10698 fi
10699
10700 done
10701
10702 fi
10703
10704 done
10705
10706 fi
10707
10708 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10709 # Some installations of libedit usurp /usr/include/readline/, which seems
10710 # bad practice, since in combined installations readline will have its headers
10711 # there.  We might have to resort to AC_EGREP checks to make sure we found
10712 # the proper header...
10713
10714 for ac_header in editline/readline.h
10715 do
10716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10719 $as_echo_n "checking for $ac_header... " >&6; }
10720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10721   $as_echo_n "(cached) " >&6
10722 fi
10723 ac_res=`eval 'as_val=${'$as_ac_Header'}
10724                  $as_echo "$as_val"'`
10725                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10726 $as_echo "$ac_res" >&6; }
10727 else
10728   # Is the header compilable?
10729 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10730 $as_echo_n "checking $ac_header usability... " >&6; }
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 $ac_includes_default
10738 #include <$ac_header>
10739 _ACEOF
10740 rm -f conftest.$ac_objext
10741 if { (ac_try="$ac_compile"
10742 case "(($ac_try" in
10743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744   *) ac_try_echo=$ac_try;;
10745 esac
10746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10747 $as_echo "$ac_try_echo") >&5
10748   (eval "$ac_compile") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } && {
10755          test -z "$ac_c_werror_flag" ||
10756          test ! -s conftest.err
10757        } && test -s conftest.$ac_objext; then
10758   ac_header_compiler=yes
10759 else
10760   $as_echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763         ac_header_compiler=no
10764 fi
10765
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10768 $as_echo "$ac_header_compiler" >&6; }
10769
10770 # Is the header present?
10771 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10772 $as_echo_n "checking $ac_header presence... " >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 #include <$ac_header>
10780 _ACEOF
10781 if { (ac_try="$ac_cpp conftest.$ac_ext"
10782 case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10787 $as_echo "$ac_try_echo") >&5
10788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } >/dev/null && {
10795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10796          test ! -s conftest.err
10797        }; then
10798   ac_header_preproc=yes
10799 else
10800   $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803   ac_header_preproc=no
10804 fi
10805
10806 rm -f conftest.err conftest.$ac_ext
10807 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 $as_echo "$ac_header_preproc" >&6; }
10809
10810 # So?  What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812   yes:no: )
10813     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817     ac_header_preproc=yes
10818     ;;
10819   no:yes:* )
10820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10823 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10827 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10832     ( cat <<\_ASBOX
10833 ## ---------------------------------------- ##
10834 ## Report this to pgsql-bugs@postgresql.org ##
10835 ## ---------------------------------------- ##
10836 _ASBOX
10837      ) | sed "s/^/$as_me: WARNING:     /" >&2
10838     ;;
10839 esac
10840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10841 $as_echo_n "checking for $ac_header... " >&6; }
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843   $as_echo_n "(cached) " >&6
10844 else
10845   eval "$as_ac_Header=\$ac_header_preproc"
10846 fi
10847 ac_res=`eval 'as_val=${'$as_ac_Header'}
10848                  $as_echo "$as_val"'`
10849                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10850 $as_echo "$ac_res" >&6; }
10851
10852 fi
10853 as_val=`eval 'as_val=${'$as_ac_Header'}
10854                  $as_echo "$as_val"'`
10855    if test "x$as_val" = x""yes; then
10856   cat >>confdefs.h <<_ACEOF
10857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 else
10861
10862 for ac_header in readline.h
10863 do
10864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 $as_echo_n "checking for $ac_header... " >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869   $as_echo_n "(cached) " >&6
10870 fi
10871 ac_res=`eval 'as_val=${'$as_ac_Header'}
10872                  $as_echo "$as_val"'`
10873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10874 $as_echo "$ac_res" >&6; }
10875 else
10876   # Is the header compilable?
10877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 $as_echo_n "checking $ac_header usability... " >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 $ac_includes_default
10886 #include <$ac_header>
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10895 $as_echo "$ac_try_echo") >&5
10896   (eval "$ac_compile") 2>conftest.er1
10897   ac_status=$?
10898   grep -v '^ *+' conftest.er1 >conftest.err
10899   rm -f conftest.er1
10900   cat conftest.err >&5
10901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } && {
10903          test -z "$ac_c_werror_flag" ||
10904          test ! -s conftest.err
10905        } && test -s conftest.$ac_objext; then
10906   ac_header_compiler=yes
10907 else
10908   $as_echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         ac_header_compiler=no
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10916 $as_echo "$ac_header_compiler" >&6; }
10917
10918 # Is the header present?
10919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10920 $as_echo_n "checking $ac_header presence... " >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 #include <$ac_header>
10928 _ACEOF
10929 if { (ac_try="$ac_cpp conftest.$ac_ext"
10930 case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } >/dev/null && {
10943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10944          test ! -s conftest.err
10945        }; then
10946   ac_header_preproc=yes
10947 else
10948   $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951   ac_header_preproc=no
10952 fi
10953
10954 rm -f conftest.err conftest.$ac_ext
10955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956 $as_echo "$ac_header_preproc" >&6; }
10957
10958 # So?  What about this header?
10959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960   yes:no: )
10961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10965     ac_header_preproc=yes
10966     ;;
10967   no:yes:* )
10968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10971 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10975 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10980     ( cat <<\_ASBOX
10981 ## ---------------------------------------- ##
10982 ## Report this to pgsql-bugs@postgresql.org ##
10983 ## ---------------------------------------- ##
10984 _ASBOX
10985      ) | sed "s/^/$as_me: WARNING:     /" >&2
10986     ;;
10987 esac
10988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 $as_echo_n "checking for $ac_header... " >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991   $as_echo_n "(cached) " >&6
10992 else
10993   eval "$as_ac_Header=\$ac_header_preproc"
10994 fi
10995 ac_res=`eval 'as_val=${'$as_ac_Header'}
10996                  $as_echo "$as_val"'`
10997                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998 $as_echo "$ac_res" >&6; }
10999
11000 fi
11001 as_val=`eval 'as_val=${'$as_ac_Header'}
11002                  $as_echo "$as_val"'`
11003    if test "x$as_val" = x""yes; then
11004   cat >>confdefs.h <<_ACEOF
11005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11006 _ACEOF
11007
11008 else
11009
11010 for ac_header in readline/readline.h
11011 do
11012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11015 $as_echo_n "checking for $ac_header... " >&6; }
11016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11017   $as_echo_n "(cached) " >&6
11018 fi
11019 ac_res=`eval 'as_val=${'$as_ac_Header'}
11020                  $as_echo "$as_val"'`
11021                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11022 $as_echo "$ac_res" >&6; }
11023 else
11024   # Is the header compilable?
11025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11026 $as_echo_n "checking $ac_header usability... " >&6; }
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033 $ac_includes_default
11034 #include <$ac_header>
11035 _ACEOF
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044   (eval "$ac_compile") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } && {
11051          test -z "$ac_c_werror_flag" ||
11052          test ! -s conftest.err
11053        } && test -s conftest.$ac_objext; then
11054   ac_header_compiler=yes
11055 else
11056   $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         ac_header_compiler=no
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064 $as_echo "$ac_header_compiler" >&6; }
11065
11066 # Is the header present?
11067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11068 $as_echo_n "checking $ac_header presence... " >&6; }
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <$ac_header>
11076 _ACEOF
11077 if { (ac_try="$ac_cpp conftest.$ac_ext"
11078 case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11083 $as_echo "$ac_try_echo") >&5
11084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } >/dev/null && {
11091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11092          test ! -s conftest.err
11093        }; then
11094   ac_header_preproc=yes
11095 else
11096   $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099   ac_header_preproc=no
11100 fi
11101
11102 rm -f conftest.err conftest.$ac_ext
11103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 $as_echo "$ac_header_preproc" >&6; }
11105
11106 # So?  What about this header?
11107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11108   yes:no: )
11109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11113     ac_header_preproc=yes
11114     ;;
11115   no:yes:* )
11116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11119 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11123 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11128     ( cat <<\_ASBOX
11129 ## ---------------------------------------- ##
11130 ## Report this to pgsql-bugs@postgresql.org ##
11131 ## ---------------------------------------- ##
11132 _ASBOX
11133      ) | sed "s/^/$as_me: WARNING:     /" >&2
11134     ;;
11135 esac
11136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 $as_echo_n "checking for $ac_header... " >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139   $as_echo_n "(cached) " >&6
11140 else
11141   eval "$as_ac_Header=\$ac_header_preproc"
11142 fi
11143 ac_res=`eval 'as_val=${'$as_ac_Header'}
11144                  $as_echo "$as_val"'`
11145                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11146 $as_echo "$ac_res" >&6; }
11147
11148 fi
11149 as_val=`eval 'as_val=${'$as_ac_Header'}
11150                  $as_echo "$as_val"'`
11151    if test "x$as_val" = x""yes; then
11152   cat >>confdefs.h <<_ACEOF
11153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11154 _ACEOF
11155
11156 else
11157   { { $as_echo "$as_me:$LINENO: error: readline header not found
11158 If you have libedit already installed, see config.log for details on the
11159 failure.  It is possible the compiler isn't looking in the proper directory.
11160 Use --without-readline to disable libedit support." >&5
11161 $as_echo "$as_me: error: readline header not found
11162 If you have libedit already installed, see config.log for details on the
11163 failure.  It is possible the compiler isn't looking in the proper directory.
11164 Use --without-readline to disable libedit support." >&2;}
11165    { (exit 1); exit 1; }; }
11166 fi
11167
11168 done
11169
11170 fi
11171
11172 done
11173
11174 fi
11175
11176 done
11177
11178 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11179 # not be there at all.  Hence, don't complain if not found.  We must check
11180 # though, since in yet other versions it is an independent header.
11181
11182 for ac_header in editline/history.h
11183 do
11184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 $as_echo_n "checking for $ac_header... " >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189   $as_echo_n "(cached) " >&6
11190 fi
11191 ac_res=`eval 'as_val=${'$as_ac_Header'}
11192                  $as_echo "$as_val"'`
11193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11194 $as_echo "$ac_res" >&6; }
11195 else
11196   # Is the header compilable?
11197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11198 $as_echo_n "checking $ac_header usability... " >&6; }
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 $ac_includes_default
11206 #include <$ac_header>
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216   (eval "$ac_compile") 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } && {
11223          test -z "$ac_c_werror_flag" ||
11224          test ! -s conftest.err
11225        } && test -s conftest.$ac_objext; then
11226   ac_header_compiler=yes
11227 else
11228   $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         ac_header_compiler=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 $as_echo "$ac_header_compiler" >&6; }
11237
11238 # Is the header present?
11239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 $as_echo_n "checking $ac_header presence... " >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252   *) ac_try_echo=$ac_try;;
11253 esac
11254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11255 $as_echo "$ac_try_echo") >&5
11256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } >/dev/null && {
11263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11264          test ! -s conftest.err
11265        }; then
11266   ac_header_preproc=yes
11267 else
11268   $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271   ac_header_preproc=no
11272 fi
11273
11274 rm -f conftest.err conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 $as_echo "$ac_header_preproc" >&6; }
11277
11278 # So?  What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280   yes:no: )
11281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285     ac_header_preproc=yes
11286     ;;
11287   no:yes:* )
11288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11291 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11295 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11300     ( cat <<\_ASBOX
11301 ## ---------------------------------------- ##
11302 ## Report this to pgsql-bugs@postgresql.org ##
11303 ## ---------------------------------------- ##
11304 _ASBOX
11305      ) | sed "s/^/$as_me: WARNING:     /" >&2
11306     ;;
11307 esac
11308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 $as_echo_n "checking for $ac_header... " >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311   $as_echo_n "(cached) " >&6
11312 else
11313   eval "$as_ac_Header=\$ac_header_preproc"
11314 fi
11315 ac_res=`eval 'as_val=${'$as_ac_Header'}
11316                  $as_echo "$as_val"'`
11317                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11318 $as_echo "$ac_res" >&6; }
11319
11320 fi
11321 as_val=`eval 'as_val=${'$as_ac_Header'}
11322                  $as_echo "$as_val"'`
11323    if test "x$as_val" = x""yes; then
11324   cat >>confdefs.h <<_ACEOF
11325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 _ACEOF
11327
11328 else
11329
11330 for ac_header in history.h
11331 do
11332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 $as_echo_n "checking for $ac_header... " >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337   $as_echo_n "(cached) " >&6
11338 fi
11339 ac_res=`eval 'as_val=${'$as_ac_Header'}
11340                  $as_echo "$as_val"'`
11341                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11342 $as_echo "$ac_res" >&6; }
11343 else
11344   # Is the header compilable?
11345 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346 $as_echo_n "checking $ac_header usability... " >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h.  */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h.  */
11353 $ac_includes_default
11354 #include <$ac_header>
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11363 $as_echo "$ac_try_echo") >&5
11364   (eval "$ac_compile") 2>conftest.er1
11365   ac_status=$?
11366   grep -v '^ *+' conftest.er1 >conftest.err
11367   rm -f conftest.er1
11368   cat conftest.err >&5
11369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); } && {
11371          test -z "$ac_c_werror_flag" ||
11372          test ! -s conftest.err
11373        } && test -s conftest.$ac_objext; then
11374   ac_header_compiler=yes
11375 else
11376   $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379         ac_header_compiler=no
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 $as_echo "$ac_header_compiler" >&6; }
11385
11386 # Is the header present?
11387 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 $as_echo_n "checking $ac_header presence... " >&6; }
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395 #include <$ac_header>
11396 _ACEOF
11397 if { (ac_try="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403 $as_echo "$ac_try_echo") >&5
11404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11405   ac_status=$?
11406   grep -v '^ *+' conftest.er1 >conftest.err
11407   rm -f conftest.er1
11408   cat conftest.err >&5
11409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); } >/dev/null && {
11411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11412          test ! -s conftest.err
11413        }; then
11414   ac_header_preproc=yes
11415 else
11416   $as_echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419   ac_header_preproc=no
11420 fi
11421
11422 rm -f conftest.err conftest.$ac_ext
11423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 $as_echo "$ac_header_preproc" >&6; }
11425
11426 # So?  What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428   yes:no: )
11429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433     ac_header_preproc=yes
11434     ;;
11435   no:yes:* )
11436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11439 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11443 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11448     ( cat <<\_ASBOX
11449 ## ---------------------------------------- ##
11450 ## Report this to pgsql-bugs@postgresql.org ##
11451 ## ---------------------------------------- ##
11452 _ASBOX
11453      ) | sed "s/^/$as_me: WARNING:     /" >&2
11454     ;;
11455 esac
11456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 $as_echo_n "checking for $ac_header... " >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459   $as_echo_n "(cached) " >&6
11460 else
11461   eval "$as_ac_Header=\$ac_header_preproc"
11462 fi
11463 ac_res=`eval 'as_val=${'$as_ac_Header'}
11464                  $as_echo "$as_val"'`
11465                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11466 $as_echo "$ac_res" >&6; }
11467
11468 fi
11469 as_val=`eval 'as_val=${'$as_ac_Header'}
11470                  $as_echo "$as_val"'`
11471    if test "x$as_val" = x""yes; then
11472   cat >>confdefs.h <<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 _ACEOF
11475
11476 else
11477
11478 for ac_header in readline/history.h
11479 do
11480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 $as_echo_n "checking for $ac_header... " >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485   $as_echo_n "(cached) " >&6
11486 fi
11487 ac_res=`eval 'as_val=${'$as_ac_Header'}
11488                  $as_echo "$as_val"'`
11489                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11490 $as_echo "$ac_res" >&6; }
11491 else
11492   # Is the header compilable?
11493 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 $as_echo_n "checking $ac_header usability... " >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 $ac_includes_default
11502 #include <$ac_header>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11511 $as_echo "$ac_try_echo") >&5
11512   (eval "$ac_compile") 2>conftest.er1
11513   ac_status=$?
11514   grep -v '^ *+' conftest.er1 >conftest.err
11515   rm -f conftest.er1
11516   cat conftest.err >&5
11517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } && {
11519          test -z "$ac_c_werror_flag" ||
11520          test ! -s conftest.err
11521        } && test -s conftest.$ac_objext; then
11522   ac_header_compiler=yes
11523 else
11524   $as_echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527         ac_header_compiler=no
11528 fi
11529
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 $as_echo "$ac_header_compiler" >&6; }
11533
11534 # Is the header present?
11535 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 $as_echo_n "checking $ac_header presence... " >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 #include <$ac_header>
11544 _ACEOF
11545 if { (ac_try="$ac_cpp conftest.$ac_ext"
11546 case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11551 $as_echo "$ac_try_echo") >&5
11552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } >/dev/null && {
11559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560          test ! -s conftest.err
11561        }; then
11562   ac_header_preproc=yes
11563 else
11564   $as_echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567   ac_header_preproc=no
11568 fi
11569
11570 rm -f conftest.err conftest.$ac_ext
11571 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 $as_echo "$ac_header_preproc" >&6; }
11573
11574 # So?  What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576   yes:no: )
11577     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581     ac_header_preproc=yes
11582     ;;
11583   no:yes:* )
11584     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11587 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11588     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11591 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11596     ( cat <<\_ASBOX
11597 ## ---------------------------------------- ##
11598 ## Report this to pgsql-bugs@postgresql.org ##
11599 ## ---------------------------------------- ##
11600 _ASBOX
11601      ) | sed "s/^/$as_me: WARNING:     /" >&2
11602     ;;
11603 esac
11604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 $as_echo_n "checking for $ac_header... " >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607   $as_echo_n "(cached) " >&6
11608 else
11609   eval "$as_ac_Header=\$ac_header_preproc"
11610 fi
11611 ac_res=`eval 'as_val=${'$as_ac_Header'}
11612                  $as_echo "$as_val"'`
11613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11614 $as_echo "$ac_res" >&6; }
11615
11616 fi
11617 as_val=`eval 'as_val=${'$as_ac_Header'}
11618                  $as_echo "$as_val"'`
11619    if test "x$as_val" = x""yes; then
11620   cat >>confdefs.h <<_ACEOF
11621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11622 _ACEOF
11623
11624 fi
11625
11626 done
11627
11628 fi
11629
11630 done
11631
11632 fi
11633
11634 done
11635
11636 fi
11637
11638 if test "$with_zlib" = yes; then
11639   if test "${ac_cv_header_zlib_h+set}" = set; then
11640   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11641 $as_echo_n "checking for zlib.h... " >&6; }
11642 if test "${ac_cv_header_zlib_h+set}" = set; then
11643   $as_echo_n "(cached) " >&6
11644 fi
11645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11646 $as_echo "$ac_cv_header_zlib_h" >&6; }
11647 else
11648   # Is the header compilable?
11649 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11650 $as_echo_n "checking zlib.h usability... " >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 $ac_includes_default
11658 #include <zlib.h>
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (ac_try="$ac_compile"
11662 case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668   (eval "$ac_compile") 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } && {
11675          test -z "$ac_c_werror_flag" ||
11676          test ! -s conftest.err
11677        } && test -s conftest.$ac_objext; then
11678   ac_header_compiler=yes
11679 else
11680   $as_echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683         ac_header_compiler=no
11684 fi
11685
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11688 $as_echo "$ac_header_compiler" >&6; }
11689
11690 # Is the header present?
11691 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11692 $as_echo_n "checking zlib.h presence... " >&6; }
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 #include <zlib.h>
11700 _ACEOF
11701 if { (ac_try="$ac_cpp conftest.$ac_ext"
11702 case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } >/dev/null && {
11715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11716          test ! -s conftest.err
11717        }; then
11718   ac_header_preproc=yes
11719 else
11720   $as_echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723   ac_header_preproc=no
11724 fi
11725
11726 rm -f conftest.err conftest.$ac_ext
11727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11728 $as_echo "$ac_header_preproc" >&6; }
11729
11730 # So?  What about this header?
11731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11732   yes:no: )
11733     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11734 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11735     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11736 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11737     ac_header_preproc=yes
11738     ;;
11739   no:yes:* )
11740     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11741 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11742     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11743 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11744     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11745 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11746     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11747 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11748     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11749 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11750     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11751 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11752     ( cat <<\_ASBOX
11753 ## ---------------------------------------- ##
11754 ## Report this to pgsql-bugs@postgresql.org ##
11755 ## ---------------------------------------- ##
11756 _ASBOX
11757      ) | sed "s/^/$as_me: WARNING:     /" >&2
11758     ;;
11759 esac
11760 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11761 $as_echo_n "checking for zlib.h... " >&6; }
11762 if test "${ac_cv_header_zlib_h+set}" = set; then
11763   $as_echo_n "(cached) " >&6
11764 else
11765   ac_cv_header_zlib_h=$ac_header_preproc
11766 fi
11767 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11768 $as_echo "$ac_cv_header_zlib_h" >&6; }
11769
11770 fi
11771 if test "x$ac_cv_header_zlib_h" = x""yes; then
11772   :
11773 else
11774   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11775 If you have zlib already installed, see config.log for details on the
11776 failure.  It is possible the compiler isn't looking in the proper directory.
11777 Use --without-zlib to disable zlib support." >&5
11778 $as_echo "$as_me: error: zlib header not found
11779 If you have zlib already installed, see config.log for details on the
11780 failure.  It is possible the compiler isn't looking in the proper directory.
11781 Use --without-zlib to disable zlib support." >&2;}
11782    { (exit 1); exit 1; }; }
11783 fi
11784
11785
11786 fi
11787
11788 if test "$with_gssapi" = yes ; then
11789
11790 for ac_header in gssapi/gssapi.h
11791 do
11792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 $as_echo_n "checking for $ac_header... " >&6; }
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797   $as_echo_n "(cached) " >&6
11798 fi
11799 ac_res=`eval 'as_val=${'$as_ac_Header'}
11800                  $as_echo "$as_val"'`
11801                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11802 $as_echo "$ac_res" >&6; }
11803 else
11804   # Is the header compilable?
11805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 $as_echo_n "checking $ac_header usability... " >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 $ac_includes_default
11814 #include <$ac_header>
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (ac_try="$ac_compile"
11818 case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824   (eval "$ac_compile") 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } && {
11831          test -z "$ac_c_werror_flag" ||
11832          test ! -s conftest.err
11833        } && test -s conftest.$ac_objext; then
11834   ac_header_compiler=yes
11835 else
11836   $as_echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839         ac_header_compiler=no
11840 fi
11841
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 $as_echo "$ac_header_compiler" >&6; }
11845
11846 # Is the header present?
11847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 $as_echo_n "checking $ac_header presence... " >&6; }
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (ac_try="$ac_cpp conftest.$ac_ext"
11858 case "(($ac_try" in
11859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860   *) ac_try_echo=$ac_try;;
11861 esac
11862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11863 $as_echo "$ac_try_echo") >&5
11864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } >/dev/null && {
11871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872          test ! -s conftest.err
11873        }; then
11874   ac_header_preproc=yes
11875 else
11876   $as_echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879   ac_header_preproc=no
11880 fi
11881
11882 rm -f conftest.err conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 $as_echo "$ac_header_preproc" >&6; }
11885
11886 # So?  What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888   yes:no: )
11889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893     ac_header_preproc=yes
11894     ;;
11895   no:yes:* )
11896     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11899 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11903 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908     ( cat <<\_ASBOX
11909 ## ---------------------------------------- ##
11910 ## Report this to pgsql-bugs@postgresql.org ##
11911 ## ---------------------------------------- ##
11912 _ASBOX
11913      ) | sed "s/^/$as_me: WARNING:     /" >&2
11914     ;;
11915 esac
11916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 $as_echo_n "checking for $ac_header... " >&6; }
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919   $as_echo_n "(cached) " >&6
11920 else
11921   eval "$as_ac_Header=\$ac_header_preproc"
11922 fi
11923 ac_res=`eval 'as_val=${'$as_ac_Header'}
11924                  $as_echo "$as_val"'`
11925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11926 $as_echo "$ac_res" >&6; }
11927
11928 fi
11929 as_val=`eval 'as_val=${'$as_ac_Header'}
11930                  $as_echo "$as_val"'`
11931    if test "x$as_val" = x""yes; then
11932   cat >>confdefs.h <<_ACEOF
11933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11934 _ACEOF
11935
11936 else
11937
11938 for ac_header in gssapi.h
11939 do
11940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11942   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11943 $as_echo_n "checking for $ac_header... " >&6; }
11944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11945   $as_echo_n "(cached) " >&6
11946 fi
11947 ac_res=`eval 'as_val=${'$as_ac_Header'}
11948                  $as_echo "$as_val"'`
11949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11950 $as_echo "$ac_res" >&6; }
11951 else
11952   # Is the header compilable?
11953 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11954 $as_echo_n "checking $ac_header usability... " >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961 $ac_includes_default
11962 #include <$ac_header>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972   (eval "$ac_compile") 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } && {
11979          test -z "$ac_c_werror_flag" ||
11980          test ! -s conftest.err
11981        } && test -s conftest.$ac_objext; then
11982   ac_header_compiler=yes
11983 else
11984   $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         ac_header_compiler=no
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 $as_echo "$ac_header_compiler" >&6; }
11993
11994 # Is the header present?
11995 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11996 $as_echo_n "checking $ac_header presence... " >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003 #include <$ac_header>
12004 _ACEOF
12005 if { (ac_try="$ac_cpp conftest.$ac_ext"
12006 case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } >/dev/null && {
12019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020          test ! -s conftest.err
12021        }; then
12022   ac_header_preproc=yes
12023 else
12024   $as_echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027   ac_header_preproc=no
12028 fi
12029
12030 rm -f conftest.err conftest.$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 $as_echo "$ac_header_preproc" >&6; }
12033
12034 # So?  What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036   yes:no: )
12037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041     ac_header_preproc=yes
12042     ;;
12043   no:yes:* )
12044     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12047 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12051 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056     ( cat <<\_ASBOX
12057 ## ---------------------------------------- ##
12058 ## Report this to pgsql-bugs@postgresql.org ##
12059 ## ---------------------------------------- ##
12060 _ASBOX
12061      ) | sed "s/^/$as_me: WARNING:     /" >&2
12062     ;;
12063 esac
12064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12065 $as_echo_n "checking for $ac_header... " >&6; }
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067   $as_echo_n "(cached) " >&6
12068 else
12069   eval "$as_ac_Header=\$ac_header_preproc"
12070 fi
12071 ac_res=`eval 'as_val=${'$as_ac_Header'}
12072                  $as_echo "$as_val"'`
12073                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12074 $as_echo "$ac_res" >&6; }
12075
12076 fi
12077 as_val=`eval 'as_val=${'$as_ac_Header'}
12078                  $as_echo "$as_val"'`
12079    if test "x$as_val" = x""yes; then
12080   cat >>confdefs.h <<_ACEOF
12081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 else
12085   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12086 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12087    { (exit 1); exit 1; }; }
12088 fi
12089
12090 done
12091
12092 fi
12093
12094 done
12095
12096 fi
12097
12098 if test "$with_krb5" = yes ; then
12099   if test "${ac_cv_header_krb5_h+set}" = set; then
12100   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12101 $as_echo_n "checking for krb5.h... " >&6; }
12102 if test "${ac_cv_header_krb5_h+set}" = set; then
12103   $as_echo_n "(cached) " >&6
12104 fi
12105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12106 $as_echo "$ac_cv_header_krb5_h" >&6; }
12107 else
12108   # Is the header compilable?
12109 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12110 $as_echo_n "checking krb5.h usability... " >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117 $ac_includes_default
12118 #include <krb5.h>
12119 _ACEOF
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128   (eval "$ac_compile") 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } && {
12135          test -z "$ac_c_werror_flag" ||
12136          test ! -s conftest.err
12137        } && test -s conftest.$ac_objext; then
12138   ac_header_compiler=yes
12139 else
12140   $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143         ac_header_compiler=no
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 $as_echo "$ac_header_compiler" >&6; }
12149
12150 # Is the header present?
12151 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12152 $as_echo_n "checking krb5.h presence... " >&6; }
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159 #include <krb5.h>
12160 _ACEOF
12161 if { (ac_try="$ac_cpp conftest.$ac_ext"
12162 case "(($ac_try" in
12163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164   *) ac_try_echo=$ac_try;;
12165 esac
12166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$ac_try_echo") >&5
12168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } >/dev/null && {
12175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12176          test ! -s conftest.err
12177        }; then
12178   ac_header_preproc=yes
12179 else
12180   $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183   ac_header_preproc=no
12184 fi
12185
12186 rm -f conftest.err conftest.$ac_ext
12187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12188 $as_echo "$ac_header_preproc" >&6; }
12189
12190 # So?  What about this header?
12191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12192   yes:no: )
12193     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12194 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12195     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12196 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12197     ac_header_preproc=yes
12198     ;;
12199   no:yes:* )
12200     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12201 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12202     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12203 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12204     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12205 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12206     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12207 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12208     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12209 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12210     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12211 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12212     ( cat <<\_ASBOX
12213 ## ---------------------------------------- ##
12214 ## Report this to pgsql-bugs@postgresql.org ##
12215 ## ---------------------------------------- ##
12216 _ASBOX
12217      ) | sed "s/^/$as_me: WARNING:     /" >&2
12218     ;;
12219 esac
12220 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12221 $as_echo_n "checking for krb5.h... " >&6; }
12222 if test "${ac_cv_header_krb5_h+set}" = set; then
12223   $as_echo_n "(cached) " >&6
12224 else
12225   ac_cv_header_krb5_h=$ac_header_preproc
12226 fi
12227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12228 $as_echo "$ac_cv_header_krb5_h" >&6; }
12229
12230 fi
12231 if test "x$ac_cv_header_krb5_h" = x""yes; then
12232   :
12233 else
12234   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12235 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12236    { (exit 1); exit 1; }; }
12237 fi
12238
12239
12240 fi
12241
12242 if test "$with_openssl" = yes ; then
12243   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12244   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12245 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12246 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12247   $as_echo_n "(cached) " >&6
12248 fi
12249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12250 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12251 else
12252   # Is the header compilable?
12253 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12254 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 $ac_includes_default
12262 #include <openssl/ssl.h>
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12271 $as_echo "$ac_try_echo") >&5
12272   (eval "$ac_compile") 2>conftest.er1
12273   ac_status=$?
12274   grep -v '^ *+' conftest.er1 >conftest.err
12275   rm -f conftest.er1
12276   cat conftest.err >&5
12277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } && {
12279          test -z "$ac_c_werror_flag" ||
12280          test ! -s conftest.err
12281        } && test -s conftest.$ac_objext; then
12282   ac_header_compiler=yes
12283 else
12284   $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287         ac_header_compiler=no
12288 fi
12289
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12292 $as_echo "$ac_header_compiler" >&6; }
12293
12294 # Is the header present?
12295 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12296 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303 #include <openssl/ssl.h>
12304 _ACEOF
12305 if { (ac_try="$ac_cpp conftest.$ac_ext"
12306 case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12311 $as_echo "$ac_try_echo") >&5
12312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } >/dev/null && {
12319          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12320          test ! -s conftest.err
12321        }; then
12322   ac_header_preproc=yes
12323 else
12324   $as_echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327   ac_header_preproc=no
12328 fi
12329
12330 rm -f conftest.err conftest.$ac_ext
12331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 $as_echo "$ac_header_preproc" >&6; }
12333
12334 # So?  What about this header?
12335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336   yes:no: )
12337     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12338 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12340 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12341     ac_header_preproc=yes
12342     ;;
12343   no:yes:* )
12344     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12345 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12346     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12347 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12348     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12349 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12350     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12351 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12352     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12353 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12354     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12355 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12356     ( cat <<\_ASBOX
12357 ## ---------------------------------------- ##
12358 ## Report this to pgsql-bugs@postgresql.org ##
12359 ## ---------------------------------------- ##
12360 _ASBOX
12361      ) | sed "s/^/$as_me: WARNING:     /" >&2
12362     ;;
12363 esac
12364 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12365 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12366 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12367   $as_echo_n "(cached) " >&6
12368 else
12369   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12370 fi
12371 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12372 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12373
12374 fi
12375 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12376   :
12377 else
12378   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12379 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12380    { (exit 1); exit 1; }; }
12381 fi
12382
12383
12384   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12385   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12386 $as_echo_n "checking for openssl/err.h... " >&6; }
12387 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12388   $as_echo_n "(cached) " >&6
12389 fi
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12391 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12392 else
12393   # Is the header compilable?
12394 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12395 $as_echo_n "checking openssl/err.h usability... " >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402 $ac_includes_default
12403 #include <openssl/err.h>
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412 $as_echo "$ac_try_echo") >&5
12413   (eval "$ac_compile") 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } && {
12420          test -z "$ac_c_werror_flag" ||
12421          test ! -s conftest.err
12422        } && test -s conftest.$ac_objext; then
12423   ac_header_compiler=yes
12424 else
12425   $as_echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12427
12428         ac_header_compiler=no
12429 fi
12430
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12433 $as_echo "$ac_header_compiler" >&6; }
12434
12435 # Is the header present?
12436 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12437 $as_echo_n "checking openssl/err.h presence... " >&6; }
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 #include <openssl/err.h>
12445 _ACEOF
12446 if { (ac_try="$ac_cpp conftest.$ac_ext"
12447 case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } >/dev/null && {
12460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12461          test ! -s conftest.err
12462        }; then
12463   ac_header_preproc=yes
12464 else
12465   $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468   ac_header_preproc=no
12469 fi
12470
12471 rm -f conftest.err conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12473 $as_echo "$ac_header_preproc" >&6; }
12474
12475 # So?  What about this header?
12476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12477   yes:no: )
12478     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12479 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12480     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12481 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12482     ac_header_preproc=yes
12483     ;;
12484   no:yes:* )
12485     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12486 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12487     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12488 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12489     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12490 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12491     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12492 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12493     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12494 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12495     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12496 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12497     ( cat <<\_ASBOX
12498 ## ---------------------------------------- ##
12499 ## Report this to pgsql-bugs@postgresql.org ##
12500 ## ---------------------------------------- ##
12501 _ASBOX
12502      ) | sed "s/^/$as_me: WARNING:     /" >&2
12503     ;;
12504 esac
12505 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12506 $as_echo_n "checking for openssl/err.h... " >&6; }
12507 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12508   $as_echo_n "(cached) " >&6
12509 else
12510   ac_cv_header_openssl_err_h=$ac_header_preproc
12511 fi
12512 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12513 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12514
12515 fi
12516 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12517   :
12518 else
12519   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12520 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12521    { (exit 1); exit 1; }; }
12522 fi
12523
12524
12525
12526 for ac_func in ERR_set_mark
12527 do
12528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12530 $as_echo_n "checking for $ac_func... " >&6; }
12531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12532   $as_echo_n "(cached) " >&6
12533 else
12534   cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12542 #define $ac_func innocuous_$ac_func
12543
12544 /* System header to define __stub macros and hopefully few prototypes,
12545     which can conflict with char $ac_func (); below.
12546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12547     <limits.h> exists even on freestanding compilers.  */
12548
12549 #ifdef __STDC__
12550 # include <limits.h>
12551 #else
12552 # include <assert.h>
12553 #endif
12554
12555 #undef $ac_func
12556
12557 /* Override any GCC internal prototype to avoid an error.
12558    Use char because int might match the return type of a GCC
12559    builtin and then its argument prototype would still apply.  */
12560 #ifdef __cplusplus
12561 extern "C"
12562 #endif
12563 char $ac_func ();
12564 /* The GNU C library defines this for functions which it implements
12565     to always fail with ENOSYS.  Some functions are actually named
12566     something starting with __ and the normal name is an alias.  */
12567 #if defined __stub_$ac_func || defined __stub___$ac_func
12568 choke me
12569 #endif
12570
12571 int
12572 main ()
12573 {
12574 return $ac_func ();
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12586 $as_echo "$ac_try_echo") >&5
12587   (eval "$ac_link") 2>conftest.er1
12588   ac_status=$?
12589   grep -v '^ *+' conftest.er1 >conftest.err
12590   rm -f conftest.er1
12591   cat conftest.err >&5
12592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } && {
12594          test -z "$ac_c_werror_flag" ||
12595          test ! -s conftest.err
12596        } && test -s conftest$ac_exeext && {
12597          test "$cross_compiling" = yes ||
12598          $as_test_x conftest$ac_exeext
12599        }; then
12600   eval "$as_ac_var=yes"
12601 else
12602   $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605         eval "$as_ac_var=no"
12606 fi
12607
12608 rm -rf conftest.dSYM
12609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12610       conftest$ac_exeext conftest.$ac_ext
12611 fi
12612 ac_res=`eval 'as_val=${'$as_ac_var'}
12613                  $as_echo "$as_val"'`
12614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12615 $as_echo "$ac_res" >&6; }
12616 as_val=`eval 'as_val=${'$as_ac_var'}
12617                  $as_echo "$as_val"'`
12618    if test "x$as_val" = x""yes; then
12619   cat >>confdefs.h <<_ACEOF
12620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12621 _ACEOF
12622
12623 fi
12624 done
12625
12626 fi
12627
12628 if test "$with_pam" = yes ; then
12629
12630 for ac_header in security/pam_appl.h
12631 do
12632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637   $as_echo_n "(cached) " >&6
12638 fi
12639 ac_res=`eval 'as_val=${'$as_ac_Header'}
12640                  $as_echo "$as_val"'`
12641                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12642 $as_echo "$ac_res" >&6; }
12643 else
12644   # Is the header compilable?
12645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646 $as_echo_n "checking $ac_header usability... " >&6; }
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 $ac_includes_default
12654 #include <$ac_header>
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (ac_try="$ac_compile"
12658 case "(($ac_try" in
12659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660   *) ac_try_echo=$ac_try;;
12661 esac
12662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663 $as_echo "$ac_try_echo") >&5
12664   (eval "$ac_compile") 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } && {
12671          test -z "$ac_c_werror_flag" ||
12672          test ! -s conftest.err
12673        } && test -s conftest.$ac_objext; then
12674   ac_header_compiler=yes
12675 else
12676   $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679         ac_header_compiler=no
12680 fi
12681
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 $as_echo "$ac_header_compiler" >&6; }
12685
12686 # Is the header present?
12687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688 $as_echo_n "checking $ac_header presence... " >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695 #include <$ac_header>
12696 _ACEOF
12697 if { (ac_try="$ac_cpp conftest.$ac_ext"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703 $as_echo "$ac_try_echo") >&5
12704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } >/dev/null && {
12711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12712          test ! -s conftest.err
12713        }; then
12714   ac_header_preproc=yes
12715 else
12716   $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719   ac_header_preproc=no
12720 fi
12721
12722 rm -f conftest.err conftest.$ac_ext
12723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 $as_echo "$ac_header_preproc" >&6; }
12725
12726 # So?  What about this header?
12727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12728   yes:no: )
12729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733     ac_header_preproc=yes
12734     ;;
12735   no:yes:* )
12736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12739 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12743 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12748     ( cat <<\_ASBOX
12749 ## ---------------------------------------- ##
12750 ## Report this to pgsql-bugs@postgresql.org ##
12751 ## ---------------------------------------- ##
12752 _ASBOX
12753      ) | sed "s/^/$as_me: WARNING:     /" >&2
12754     ;;
12755 esac
12756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12757 $as_echo_n "checking for $ac_header... " >&6; }
12758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12759   $as_echo_n "(cached) " >&6
12760 else
12761   eval "$as_ac_Header=\$ac_header_preproc"
12762 fi
12763 ac_res=`eval 'as_val=${'$as_ac_Header'}
12764                  $as_echo "$as_val"'`
12765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12766 $as_echo "$ac_res" >&6; }
12767
12768 fi
12769 as_val=`eval 'as_val=${'$as_ac_Header'}
12770                  $as_echo "$as_val"'`
12771    if test "x$as_val" = x""yes; then
12772   cat >>confdefs.h <<_ACEOF
12773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12774 _ACEOF
12775
12776 else
12777
12778 for ac_header in pam/pam_appl.h
12779 do
12780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12782   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 $as_echo_n "checking for $ac_header... " >&6; }
12784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12785   $as_echo_n "(cached) " >&6
12786 fi
12787 ac_res=`eval 'as_val=${'$as_ac_Header'}
12788                  $as_echo "$as_val"'`
12789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12791 else
12792   # Is the header compilable?
12793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794 $as_echo_n "checking $ac_header usability... " >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 $ac_includes_default
12802 #include <$ac_header>
12803 _ACEOF
12804 rm -f conftest.$ac_objext
12805 if { (ac_try="$ac_compile"
12806 case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12811 $as_echo "$ac_try_echo") >&5
12812   (eval "$ac_compile") 2>conftest.er1
12813   ac_status=$?
12814   grep -v '^ *+' conftest.er1 >conftest.err
12815   rm -f conftest.er1
12816   cat conftest.err >&5
12817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } && {
12819          test -z "$ac_c_werror_flag" ||
12820          test ! -s conftest.err
12821        } && test -s conftest.$ac_objext; then
12822   ac_header_compiler=yes
12823 else
12824   $as_echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827         ac_header_compiler=no
12828 fi
12829
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12832 $as_echo "$ac_header_compiler" >&6; }
12833
12834 # Is the header present?
12835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12836 $as_echo_n "checking $ac_header presence... " >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 #include <$ac_header>
12844 _ACEOF
12845 if { (ac_try="$ac_cpp conftest.$ac_ext"
12846 case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12853   ac_status=$?
12854   grep -v '^ *+' conftest.er1 >conftest.err
12855   rm -f conftest.er1
12856   cat conftest.err >&5
12857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } >/dev/null && {
12859          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12860          test ! -s conftest.err
12861        }; then
12862   ac_header_preproc=yes
12863 else
12864   $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867   ac_header_preproc=no
12868 fi
12869
12870 rm -f conftest.err conftest.$ac_ext
12871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12872 $as_echo "$ac_header_preproc" >&6; }
12873
12874 # So?  What about this header?
12875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12876   yes:no: )
12877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12881     ac_header_preproc=yes
12882     ;;
12883   no:yes:* )
12884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12887 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12890     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12891 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12894     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12896     ( cat <<\_ASBOX
12897 ## ---------------------------------------- ##
12898 ## Report this to pgsql-bugs@postgresql.org ##
12899 ## ---------------------------------------- ##
12900 _ASBOX
12901      ) | sed "s/^/$as_me: WARNING:     /" >&2
12902     ;;
12903 esac
12904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 $as_echo_n "checking for $ac_header... " >&6; }
12906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12907   $as_echo_n "(cached) " >&6
12908 else
12909   eval "$as_ac_Header=\$ac_header_preproc"
12910 fi
12911 ac_res=`eval 'as_val=${'$as_ac_Header'}
12912                  $as_echo "$as_val"'`
12913                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12914 $as_echo "$ac_res" >&6; }
12915
12916 fi
12917 as_val=`eval 'as_val=${'$as_ac_Header'}
12918                  $as_echo "$as_val"'`
12919    if test "x$as_val" = x""yes; then
12920   cat >>confdefs.h <<_ACEOF
12921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12922 _ACEOF
12923
12924 else
12925   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12926 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12927    { (exit 1); exit 1; }; }
12928 fi
12929
12930 done
12931
12932 fi
12933
12934 done
12935
12936 fi
12937
12938 if test "$with_libxml" = yes ; then
12939   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12940   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12941 $as_echo_n "checking for libxml/parser.h... " >&6; }
12942 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12943   $as_echo_n "(cached) " >&6
12944 fi
12945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12946 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12947 else
12948   # Is the header compilable?
12949 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12950 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957 $ac_includes_default
12958 #include <libxml/parser.h>
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (ac_try="$ac_compile"
12962 case "(($ac_try" in
12963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964   *) ac_try_echo=$ac_try;;
12965 esac
12966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12967 $as_echo "$ac_try_echo") >&5
12968   (eval "$ac_compile") 2>conftest.er1
12969   ac_status=$?
12970   grep -v '^ *+' conftest.er1 >conftest.err
12971   rm -f conftest.er1
12972   cat conftest.err >&5
12973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } && {
12975          test -z "$ac_c_werror_flag" ||
12976          test ! -s conftest.err
12977        } && test -s conftest.$ac_objext; then
12978   ac_header_compiler=yes
12979 else
12980   $as_echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983         ac_header_compiler=no
12984 fi
12985
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12988 $as_echo "$ac_header_compiler" >&6; }
12989
12990 # Is the header present?
12991 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12992 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h.  */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h.  */
12999 #include <libxml/parser.h>
13000 _ACEOF
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004   *) ac_try_echo=$ac_try;;
13005 esac
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13009   ac_status=$?
13010   grep -v '^ *+' conftest.er1 >conftest.err
13011   rm -f conftest.er1
13012   cat conftest.err >&5
13013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } >/dev/null && {
13015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13016          test ! -s conftest.err
13017        }; then
13018   ac_header_preproc=yes
13019 else
13020   $as_echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023   ac_header_preproc=no
13024 fi
13025
13026 rm -f conftest.err conftest.$ac_ext
13027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13028 $as_echo "$ac_header_preproc" >&6; }
13029
13030 # So?  What about this header?
13031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13032   yes:no: )
13033     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13034 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13035     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13036 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13037     ac_header_preproc=yes
13038     ;;
13039   no:yes:* )
13040     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13041 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13042     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13043 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13044     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13045 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13046     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13047 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13048     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13049 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13050     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13051 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13052     ( cat <<\_ASBOX
13053 ## ---------------------------------------- ##
13054 ## Report this to pgsql-bugs@postgresql.org ##
13055 ## ---------------------------------------- ##
13056 _ASBOX
13057      ) | sed "s/^/$as_me: WARNING:     /" >&2
13058     ;;
13059 esac
13060 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13061 $as_echo_n "checking for libxml/parser.h... " >&6; }
13062 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13063   $as_echo_n "(cached) " >&6
13064 else
13065   ac_cv_header_libxml_parser_h=$ac_header_preproc
13066 fi
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13068 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13069
13070 fi
13071 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13072   :
13073 else
13074   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13075 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13076    { (exit 1); exit 1; }; }
13077 fi
13078
13079
13080 fi
13081
13082 if test "$with_libxslt" = yes ; then
13083   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13084   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13085 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13086 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13087   $as_echo_n "(cached) " >&6
13088 fi
13089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13090 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13091 else
13092   # Is the header compilable?
13093 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13094 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h.  */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h.  */
13101 $ac_includes_default
13102 #include <libxslt/xslt.h>
13103 _ACEOF
13104 rm -f conftest.$ac_objext
13105 if { (ac_try="$ac_compile"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13111 $as_echo "$ac_try_echo") >&5
13112   (eval "$ac_compile") 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } && {
13119          test -z "$ac_c_werror_flag" ||
13120          test ! -s conftest.err
13121        } && test -s conftest.$ac_objext; then
13122   ac_header_compiler=yes
13123 else
13124   $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127         ac_header_compiler=no
13128 fi
13129
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13132 $as_echo "$ac_header_compiler" >&6; }
13133
13134 # Is the header present?
13135 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13136 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h.  */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h.  */
13143 #include <libxslt/xslt.h>
13144 _ACEOF
13145 if { (ac_try="$ac_cpp conftest.$ac_ext"
13146 case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13151 $as_echo "$ac_try_echo") >&5
13152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13153   ac_status=$?
13154   grep -v '^ *+' conftest.er1 >conftest.err
13155   rm -f conftest.er1
13156   cat conftest.err >&5
13157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } >/dev/null && {
13159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13160          test ! -s conftest.err
13161        }; then
13162   ac_header_preproc=yes
13163 else
13164   $as_echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167   ac_header_preproc=no
13168 fi
13169
13170 rm -f conftest.err conftest.$ac_ext
13171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13172 $as_echo "$ac_header_preproc" >&6; }
13173
13174 # So?  What about this header?
13175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13176   yes:no: )
13177     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13178 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13179     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13180 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13181     ac_header_preproc=yes
13182     ;;
13183   no:yes:* )
13184     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13185 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13186     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13187 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13188     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13189 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13190     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13191 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13192     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13193 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13194     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13195 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13196     ( cat <<\_ASBOX
13197 ## ---------------------------------------- ##
13198 ## Report this to pgsql-bugs@postgresql.org ##
13199 ## ---------------------------------------- ##
13200 _ASBOX
13201      ) | sed "s/^/$as_me: WARNING:     /" >&2
13202     ;;
13203 esac
13204 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13205 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13206 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13207   $as_echo_n "(cached) " >&6
13208 else
13209   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13210 fi
13211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13212 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13213
13214 fi
13215 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13216   :
13217 else
13218   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13219 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13220    { (exit 1); exit 1; }; }
13221 fi
13222
13223
13224 fi
13225
13226 if test "$with_ldap" = yes ; then
13227   if test "$PORTNAME" != "win32"; then
13228
13229 for ac_header in ldap.h
13230 do
13231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 $as_echo_n "checking for $ac_header... " >&6; }
13235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236   $as_echo_n "(cached) " >&6
13237 fi
13238 ac_res=`eval 'as_val=${'$as_ac_Header'}
13239                  $as_echo "$as_val"'`
13240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13241 $as_echo "$ac_res" >&6; }
13242 else
13243   # Is the header compilable?
13244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13245 $as_echo_n "checking $ac_header usability... " >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 $ac_includes_default
13253 #include <$ac_header>
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263   (eval "$ac_compile") 2>conftest.er1
13264   ac_status=$?
13265   grep -v '^ *+' conftest.er1 >conftest.err
13266   rm -f conftest.er1
13267   cat conftest.err >&5
13268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } && {
13270          test -z "$ac_c_werror_flag" ||
13271          test ! -s conftest.err
13272        } && test -s conftest.$ac_objext; then
13273   ac_header_compiler=yes
13274 else
13275   $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278         ac_header_compiler=no
13279 fi
13280
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283 $as_echo "$ac_header_compiler" >&6; }
13284
13285 # Is the header present?
13286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13287 $as_echo_n "checking $ac_header presence... " >&6; }
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 #include <$ac_header>
13295 _ACEOF
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13302 $as_echo "$ac_try_echo") >&5
13303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13304   ac_status=$?
13305   grep -v '^ *+' conftest.er1 >conftest.err
13306   rm -f conftest.er1
13307   cat conftest.err >&5
13308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } >/dev/null && {
13310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13311          test ! -s conftest.err
13312        }; then
13313   ac_header_preproc=yes
13314 else
13315   $as_echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318   ac_header_preproc=no
13319 fi
13320
13321 rm -f conftest.err conftest.$ac_ext
13322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323 $as_echo "$ac_header_preproc" >&6; }
13324
13325 # So?  What about this header?
13326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13327   yes:no: )
13328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13332     ac_header_preproc=yes
13333     ;;
13334   no:yes:* )
13335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13338 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13342 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13347     ( cat <<\_ASBOX
13348 ## ---------------------------------------- ##
13349 ## Report this to pgsql-bugs@postgresql.org ##
13350 ## ---------------------------------------- ##
13351 _ASBOX
13352      ) | sed "s/^/$as_me: WARNING:     /" >&2
13353     ;;
13354 esac
13355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 $as_echo_n "checking for $ac_header... " >&6; }
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358   $as_echo_n "(cached) " >&6
13359 else
13360   eval "$as_ac_Header=\$ac_header_preproc"
13361 fi
13362 ac_res=`eval 'as_val=${'$as_ac_Header'}
13363                  $as_echo "$as_val"'`
13364                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13365 $as_echo "$ac_res" >&6; }
13366
13367 fi
13368 as_val=`eval 'as_val=${'$as_ac_Header'}
13369                  $as_echo "$as_val"'`
13370    if test "x$as_val" = x""yes; then
13371   cat >>confdefs.h <<_ACEOF
13372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13373 _ACEOF
13374
13375 else
13376   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13377 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13378    { (exit 1); exit 1; }; }
13379 fi
13380
13381 done
13382
13383   else
13384
13385 for ac_header in winldap.h
13386 do
13387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13389 $as_echo_n "checking for $ac_header... " >&6; }
13390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13391   $as_echo_n "(cached) " >&6
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 $ac_includes_default
13400 #include <windows.h>
13401
13402
13403 #include <$ac_header>
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
13413   (eval "$ac_compile") 2>conftest.er1
13414   ac_status=$?
13415   grep -v '^ *+' conftest.er1 >conftest.err
13416   rm -f conftest.er1
13417   cat conftest.err >&5
13418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } && {
13420          test -z "$ac_c_werror_flag" ||
13421          test ! -s conftest.err
13422        } && test -s conftest.$ac_objext; then
13423   eval "$as_ac_Header=yes"
13424 else
13425   $as_echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13427
13428         eval "$as_ac_Header=no"
13429 fi
13430
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 ac_res=`eval 'as_val=${'$as_ac_Header'}
13434                  $as_echo "$as_val"'`
13435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13436 $as_echo "$ac_res" >&6; }
13437 as_val=`eval 'as_val=${'$as_ac_Header'}
13438                  $as_echo "$as_val"'`
13439    if test "x$as_val" = x""yes; then
13440   cat >>confdefs.h <<_ACEOF
13441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13442 _ACEOF
13443
13444 else
13445   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13446 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13447    { (exit 1); exit 1; }; }
13448 fi
13449
13450 done
13451
13452   fi
13453 fi
13454
13455 if test "$with_bonjour" = yes ; then
13456   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13457   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13458 $as_echo_n "checking for dns_sd.h... " >&6; }
13459 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13460   $as_echo_n "(cached) " >&6
13461 fi
13462 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13463 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13464 else
13465   # Is the header compilable?
13466 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13467 $as_echo_n "checking dns_sd.h usability... " >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 $ac_includes_default
13475 #include <dns_sd.h>
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485   (eval "$ac_compile") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } && {
13492          test -z "$ac_c_werror_flag" ||
13493          test ! -s conftest.err
13494        } && test -s conftest.$ac_objext; then
13495   ac_header_compiler=yes
13496 else
13497   $as_echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500         ac_header_compiler=no
13501 fi
13502
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 $as_echo "$ac_header_compiler" >&6; }
13506
13507 # Is the header present?
13508 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13509 $as_echo_n "checking dns_sd.h presence... " >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516 #include <dns_sd.h>
13517 _ACEOF
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } >/dev/null && {
13532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13533          test ! -s conftest.err
13534        }; then
13535   ac_header_preproc=yes
13536 else
13537   $as_echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540   ac_header_preproc=no
13541 fi
13542
13543 rm -f conftest.err conftest.$ac_ext
13544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 $as_echo "$ac_header_preproc" >&6; }
13546
13547 # So?  What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549   yes:no: )
13550     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13551 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13553 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13554     ac_header_preproc=yes
13555     ;;
13556   no:yes:* )
13557     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13558 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13559     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13560 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13561     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13562 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13563     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13564 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13565     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13566 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13567     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13568 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13569     ( cat <<\_ASBOX
13570 ## ---------------------------------------- ##
13571 ## Report this to pgsql-bugs@postgresql.org ##
13572 ## ---------------------------------------- ##
13573 _ASBOX
13574      ) | sed "s/^/$as_me: WARNING:     /" >&2
13575     ;;
13576 esac
13577 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13578 $as_echo_n "checking for dns_sd.h... " >&6; }
13579 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13580   $as_echo_n "(cached) " >&6
13581 else
13582   ac_cv_header_dns_sd_h=$ac_header_preproc
13583 fi
13584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13585 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13586
13587 fi
13588 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13589   :
13590 else
13591   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13592 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13593    { (exit 1); exit 1; }; }
13594 fi
13595
13596
13597 fi
13598
13599 # for contrib/uuid-ossp
13600 if test "$with_ossp_uuid" = yes ; then
13601
13602 for ac_header in ossp/uuid.h
13603 do
13604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13606   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 $as_echo_n "checking for $ac_header... " >&6; }
13608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13609   $as_echo_n "(cached) " >&6
13610 fi
13611 ac_res=`eval 'as_val=${'$as_ac_Header'}
13612                  $as_echo "$as_val"'`
13613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13614 $as_echo "$ac_res" >&6; }
13615 else
13616   # Is the header compilable?
13617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13618 $as_echo_n "checking $ac_header usability... " >&6; }
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 $ac_includes_default
13626 #include <$ac_header>
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13635 $as_echo "$ac_try_echo") >&5
13636   (eval "$ac_compile") 2>conftest.er1
13637   ac_status=$?
13638   grep -v '^ *+' conftest.er1 >conftest.err
13639   rm -f conftest.er1
13640   cat conftest.err >&5
13641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } && {
13643          test -z "$ac_c_werror_flag" ||
13644          test ! -s conftest.err
13645        } && test -s conftest.$ac_objext; then
13646   ac_header_compiler=yes
13647 else
13648   $as_echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651         ac_header_compiler=no
13652 fi
13653
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13656 $as_echo "$ac_header_compiler" >&6; }
13657
13658 # Is the header present?
13659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13660 $as_echo_n "checking $ac_header presence... " >&6; }
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 #include <$ac_header>
13668 _ACEOF
13669 if { (ac_try="$ac_cpp conftest.$ac_ext"
13670 case "(($ac_try" in
13671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672   *) ac_try_echo=$ac_try;;
13673 esac
13674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13675 $as_echo "$ac_try_echo") >&5
13676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13677   ac_status=$?
13678   grep -v '^ *+' conftest.er1 >conftest.err
13679   rm -f conftest.er1
13680   cat conftest.err >&5
13681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } >/dev/null && {
13683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13684          test ! -s conftest.err
13685        }; then
13686   ac_header_preproc=yes
13687 else
13688   $as_echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691   ac_header_preproc=no
13692 fi
13693
13694 rm -f conftest.err conftest.$ac_ext
13695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13696 $as_echo "$ac_header_preproc" >&6; }
13697
13698 # So?  What about this header?
13699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13700   yes:no: )
13701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13705     ac_header_preproc=yes
13706     ;;
13707   no:yes:* )
13708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13711 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13712     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13715 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13720     ( cat <<\_ASBOX
13721 ## ---------------------------------------- ##
13722 ## Report this to pgsql-bugs@postgresql.org ##
13723 ## ---------------------------------------- ##
13724 _ASBOX
13725      ) | sed "s/^/$as_me: WARNING:     /" >&2
13726     ;;
13727 esac
13728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13729 $as_echo_n "checking for $ac_header... " >&6; }
13730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13731   $as_echo_n "(cached) " >&6
13732 else
13733   eval "$as_ac_Header=\$ac_header_preproc"
13734 fi
13735 ac_res=`eval 'as_val=${'$as_ac_Header'}
13736                  $as_echo "$as_val"'`
13737                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13738 $as_echo "$ac_res" >&6; }
13739
13740 fi
13741 as_val=`eval 'as_val=${'$as_ac_Header'}
13742                  $as_echo "$as_val"'`
13743    if test "x$as_val" = x""yes; then
13744   cat >>confdefs.h <<_ACEOF
13745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13746 _ACEOF
13747
13748 else
13749
13750
13751 for ac_header in uuid.h
13752 do
13753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13756 $as_echo_n "checking for $ac_header... " >&6; }
13757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13758   $as_echo_n "(cached) " >&6
13759 fi
13760 ac_res=`eval 'as_val=${'$as_ac_Header'}
13761                  $as_echo "$as_val"'`
13762                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13763 $as_echo "$ac_res" >&6; }
13764 else
13765   # Is the header compilable?
13766 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13767 $as_echo_n "checking $ac_header usability... " >&6; }
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 $ac_includes_default
13775 #include <$ac_header>
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781   *) ac_try_echo=$ac_try;;
13782 esac
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785   (eval "$ac_compile") 2>conftest.er1
13786   ac_status=$?
13787   grep -v '^ *+' conftest.er1 >conftest.err
13788   rm -f conftest.er1
13789   cat conftest.err >&5
13790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); } && {
13792          test -z "$ac_c_werror_flag" ||
13793          test ! -s conftest.err
13794        } && test -s conftest.$ac_objext; then
13795   ac_header_compiler=yes
13796 else
13797   $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800         ac_header_compiler=no
13801 fi
13802
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 $as_echo "$ac_header_compiler" >&6; }
13806
13807 # Is the header present?
13808 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13809 $as_echo_n "checking $ac_header presence... " >&6; }
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816 #include <$ac_header>
13817 _ACEOF
13818 if { (ac_try="$ac_cpp conftest.$ac_ext"
13819 case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13824 $as_echo "$ac_try_echo") >&5
13825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } >/dev/null && {
13832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13833          test ! -s conftest.err
13834        }; then
13835   ac_header_preproc=yes
13836 else
13837   $as_echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840   ac_header_preproc=no
13841 fi
13842
13843 rm -f conftest.err conftest.$ac_ext
13844 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13845 $as_echo "$ac_header_preproc" >&6; }
13846
13847 # So?  What about this header?
13848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13849   yes:no: )
13850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13851 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13852     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13854     ac_header_preproc=yes
13855     ;;
13856   no:yes:* )
13857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13858 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13860 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13862 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13864 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13868 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13869     ( cat <<\_ASBOX
13870 ## ---------------------------------------- ##
13871 ## Report this to pgsql-bugs@postgresql.org ##
13872 ## ---------------------------------------- ##
13873 _ASBOX
13874      ) | sed "s/^/$as_me: WARNING:     /" >&2
13875     ;;
13876 esac
13877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13878 $as_echo_n "checking for $ac_header... " >&6; }
13879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13880   $as_echo_n "(cached) " >&6
13881 else
13882   eval "$as_ac_Header=\$ac_header_preproc"
13883 fi
13884 ac_res=`eval 'as_val=${'$as_ac_Header'}
13885                  $as_echo "$as_val"'`
13886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13887 $as_echo "$ac_res" >&6; }
13888
13889 fi
13890 as_val=`eval 'as_val=${'$as_ac_Header'}
13891                  $as_echo "$as_val"'`
13892    if test "x$as_val" = x""yes; then
13893   cat >>confdefs.h <<_ACEOF
13894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 _ACEOF
13896
13897 else
13898   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13899 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13900    { (exit 1); exit 1; }; }
13901 fi
13902
13903 done
13904
13905 fi
13906
13907 done
13908
13909 fi
13910
13911
13912 ##
13913 ## Types, structures, compiler characteristics
13914 ##
13915
13916
13917  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13919 if test "${ac_cv_c_bigendian+set}" = set; then
13920   $as_echo_n "(cached) " >&6
13921 else
13922   ac_cv_c_bigendian=unknown
13923     # See if we're dealing with a universal compiler.
13924     cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h.  */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h.  */
13930 #ifndef __APPLE_CC__
13931                not a universal capable compiler
13932              #endif
13933              typedef int dummy;
13934
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13943 $as_echo "$ac_try_echo") >&5
13944   (eval "$ac_compile") 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } && {
13951          test -z "$ac_c_werror_flag" ||
13952          test ! -s conftest.err
13953        } && test -s conftest.$ac_objext; then
13954
13955         # Check for potential -arch flags.  It is not universal unless
13956         # there are some -arch flags.  Note that *ppc* also matches
13957         # ppc64.  This check is also rather less than ideal.
13958         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13959           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13960         esac
13961 else
13962   $as_echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965
13966 fi
13967
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969     if test $ac_cv_c_bigendian = unknown; then
13970       # See if sys/param.h defines the BYTE_ORDER macro.
13971       cat >conftest.$ac_ext <<_ACEOF
13972 /* confdefs.h.  */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h.  */
13977 #include <sys/types.h>
13978              #include <sys/param.h>
13979
13980 int
13981 main ()
13982 {
13983 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13984                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13985                      && LITTLE_ENDIAN)
13986               bogus endian macros
13987              #endif
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14000 $as_echo "$ac_try_echo") >&5
14001   (eval "$ac_compile") 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } && {
14008          test -z "$ac_c_werror_flag" ||
14009          test ! -s conftest.err
14010        } && test -s conftest.$ac_objext; then
14011   # It does; now see whether it defined to BIG_ENDIAN or not.
14012          cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018 #include <sys/types.h>
14019                 #include <sys/param.h>
14020
14021 int
14022 main ()
14023 {
14024 #if BYTE_ORDER != BIG_ENDIAN
14025                  not big endian
14026                 #endif
14027
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040   (eval "$ac_compile") 2>conftest.er1
14041   ac_status=$?
14042   grep -v '^ *+' conftest.er1 >conftest.err
14043   rm -f conftest.er1
14044   cat conftest.err >&5
14045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } && {
14047          test -z "$ac_c_werror_flag" ||
14048          test ! -s conftest.err
14049        } && test -s conftest.$ac_objext; then
14050   ac_cv_c_bigendian=yes
14051 else
14052   $as_echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055         ac_cv_c_bigendian=no
14056 fi
14057
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 else
14060   $as_echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063
14064 fi
14065
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067     fi
14068     if test $ac_cv_c_bigendian = unknown; then
14069       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14070       cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076 #include <limits.h>
14077
14078 int
14079 main ()
14080 {
14081 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14082               bogus endian macros
14083              #endif
14084
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext
14090 if { (ac_try="$ac_compile"
14091 case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097   (eval "$ac_compile") 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } && {
14104          test -z "$ac_c_werror_flag" ||
14105          test ! -s conftest.err
14106        } && test -s conftest.$ac_objext; then
14107   # It does; now see whether it defined to _BIG_ENDIAN or not.
14108          cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 #include <limits.h>
14115
14116 int
14117 main ()
14118 {
14119 #ifndef _BIG_ENDIAN
14120                  not big endian
14121                 #endif
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } && {
14142          test -z "$ac_c_werror_flag" ||
14143          test ! -s conftest.err
14144        } && test -s conftest.$ac_objext; then
14145   ac_cv_c_bigendian=yes
14146 else
14147   $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150         ac_cv_c_bigendian=no
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 else
14155   $as_echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158
14159 fi
14160
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162     fi
14163     if test $ac_cv_c_bigendian = unknown; then
14164       # Compile a test program.
14165       if test "$cross_compiling" = yes; then
14166   # Try to guess by grepping values from an object file.
14167          cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h.  */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h.  */
14173 short int ascii_mm[] =
14174                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14175                 short int ascii_ii[] =
14176                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14177                 int use_ascii (int i) {
14178                   return ascii_mm[i] + ascii_ii[i];
14179                 }
14180                 short int ebcdic_ii[] =
14181                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14182                 short int ebcdic_mm[] =
14183                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14184                 int use_ebcdic (int i) {
14185                   return ebcdic_mm[i] + ebcdic_ii[i];
14186                 }
14187                 extern int foo;
14188
14189 int
14190 main ()
14191 {
14192 return use_ascii (foo) == use_ebcdic (foo);
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205   (eval "$ac_compile") 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } && {
14212          test -z "$ac_c_werror_flag" ||
14213          test ! -s conftest.err
14214        } && test -s conftest.$ac_objext; then
14215   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14216               ac_cv_c_bigendian=yes
14217             fi
14218             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14219               if test "$ac_cv_c_bigendian" = unknown; then
14220                 ac_cv_c_bigendian=no
14221               else
14222                 # finding both strings is unlikely to happen, but who knows?
14223                 ac_cv_c_bigendian=unknown
14224               fi
14225             fi
14226 else
14227   $as_echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230
14231 fi
14232
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241 $ac_includes_default
14242 int
14243 main ()
14244 {
14245
14246              /* Are we little or big endian?  From Harbison&Steele.  */
14247              union
14248              {
14249                long int l;
14250                char c[sizeof (long int)];
14251              } u;
14252              u.l = 1;
14253              return u.c[sizeof (long int) - 1] == 1;
14254
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14266 $as_echo "$ac_try_echo") >&5
14267   (eval "$ac_link") 2>&5
14268   ac_status=$?
14269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   ac_cv_c_bigendian=no
14282 else
14283   $as_echo "$as_me: program exited with status $ac_status" >&5
14284 $as_echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ( exit $ac_status )
14288 ac_cv_c_bigendian=yes
14289 fi
14290 rm -rf conftest.dSYM
14291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14292 fi
14293
14294
14295     fi
14296 fi
14297 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14298 $as_echo "$ac_cv_c_bigendian" >&6; }
14299  case $ac_cv_c_bigendian in #(
14300    yes)
14301      cat >>confdefs.h <<\_ACEOF
14302 #define WORDS_BIGENDIAN 1
14303 _ACEOF
14304 ;; #(
14305    no)
14306       ;; #(
14307    universal)
14308
14309 cat >>confdefs.h <<\_ACEOF
14310 #define AC_APPLE_UNIVERSAL_BUILD 1
14311 _ACEOF
14312
14313      ;; #(
14314    *)
14315      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14316  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14317 $as_echo "$as_me: error: unknown endianness
14318  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14319    { (exit 1); exit 1; }; } ;;
14320  esac
14321
14322 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14324 if test "${ac_cv_c_const+set}" = set; then
14325   $as_echo_n "(cached) " >&6
14326 else
14327   cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333
14334 int
14335 main ()
14336 {
14337 /* FIXME: Include the comments suggested by Paul. */
14338 #ifndef __cplusplus
14339   /* Ultrix mips cc rejects this.  */
14340   typedef int charset[2];
14341   const charset cs;
14342   /* SunOS 4.1.1 cc rejects this.  */
14343   char const *const *pcpcc;
14344   char **ppc;
14345   /* NEC SVR4.0.2 mips cc rejects this.  */
14346   struct point {int x, y;};
14347   static struct point const zero = {0,0};
14348   /* AIX XL C 1.02.0.0 rejects this.
14349      It does not let you subtract one const X* pointer from another in
14350      an arm of an if-expression whose if-part is not a constant
14351      expression */
14352   const char *g = "string";
14353   pcpcc = &g + (g ? g-g : 0);
14354   /* HPUX 7.0 cc rejects these. */
14355   ++pcpcc;
14356   ppc = (char**) pcpcc;
14357   pcpcc = (char const *const *) ppc;
14358   { /* SCO 3.2v4 cc rejects this.  */
14359     char *t;
14360     char const *s = 0 ? (char *) 0 : (char const *) 0;
14361
14362     *t++ = 0;
14363     if (s) return 0;
14364   }
14365   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14366     int x[] = {25, 17};
14367     const int *foo = &x[0];
14368     ++foo;
14369   }
14370   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14371     typedef const int *iptr;
14372     iptr p = 0;
14373     ++p;
14374   }
14375   { /* AIX XL C 1.02.0.0 rejects this saying
14376        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14377     struct s { int j; const int *ap[3]; };
14378     struct s *b; b->j = 5;
14379   }
14380   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14381     const int foo = 10;
14382     if (!foo) return 0;
14383   }
14384   return !cs[0] && !zero.x;
14385 #endif
14386
14387   ;
14388   return 0;
14389 }
14390 _ACEOF
14391 rm -f conftest.$ac_objext
14392 if { (ac_try="$ac_compile"
14393 case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399   (eval "$ac_compile") 2>conftest.er1
14400   ac_status=$?
14401   grep -v '^ *+' conftest.er1 >conftest.err
14402   rm -f conftest.er1
14403   cat conftest.err >&5
14404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); } && {
14406          test -z "$ac_c_werror_flag" ||
14407          test ! -s conftest.err
14408        } && test -s conftest.$ac_objext; then
14409   ac_cv_c_const=yes
14410 else
14411   $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414         ac_cv_c_const=no
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14420 $as_echo "$ac_cv_c_const" >&6; }
14421 if test $ac_cv_c_const = no; then
14422
14423 cat >>confdefs.h <<\_ACEOF
14424 #define const /**/
14425 _ACEOF
14426
14427 fi
14428
14429 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14430 $as_echo_n "checking for inline... " >&6; }
14431 if test "${ac_cv_c_inline+set}" = set; then
14432   $as_echo_n "(cached) " >&6
14433 else
14434   ac_cv_c_inline=no
14435 for ac_kw in inline __inline__ __inline; do
14436   cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 #ifndef __cplusplus
14443 typedef int foo_t;
14444 static $ac_kw foo_t static_foo () {return 0; }
14445 $ac_kw foo_t foo () {return 0; }
14446 #endif
14447
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453   *) ac_try_echo=$ac_try;;
14454 esac
14455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14456 $as_echo "$ac_try_echo") >&5
14457   (eval "$ac_compile") 2>conftest.er1
14458   ac_status=$?
14459   grep -v '^ *+' conftest.er1 >conftest.err
14460   rm -f conftest.er1
14461   cat conftest.err >&5
14462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } && {
14464          test -z "$ac_c_werror_flag" ||
14465          test ! -s conftest.err
14466        } && test -s conftest.$ac_objext; then
14467   ac_cv_c_inline=$ac_kw
14468 else
14469   $as_echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472
14473 fi
14474
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476   test "$ac_cv_c_inline" != no && break
14477 done
14478
14479 fi
14480 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14481 $as_echo "$ac_cv_c_inline" >&6; }
14482
14483
14484 case $ac_cv_c_inline in
14485   inline | yes) ;;
14486   *)
14487     case $ac_cv_c_inline in
14488       no) ac_val=;;
14489       *) ac_val=$ac_cv_c_inline;;
14490     esac
14491     cat >>confdefs.h <<_ACEOF
14492 #ifndef __cplusplus
14493 #define inline $ac_val
14494 #endif
14495 _ACEOF
14496     ;;
14497 esac
14498
14499 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14500 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14501 if test "${ac_cv_c_stringize+set}" = set; then
14502   $as_echo_n "(cached) " >&6
14503 else
14504   cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 #define x(y) #y
14511
14512 char *s = x(teststring);
14513 _ACEOF
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515   $EGREP "#teststring" >/dev/null 2>&1; then
14516   ac_cv_c_stringize=no
14517 else
14518   ac_cv_c_stringize=yes
14519 fi
14520 rm -f conftest*
14521
14522 fi
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14524 $as_echo "$ac_cv_c_stringize" >&6; }
14525 if test $ac_cv_c_stringize = yes; then
14526
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_STRINGIZE 1
14529 _ACEOF
14530
14531 fi
14532
14533 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14534 $as_echo_n "checking for signed types... " >&6; }
14535 if test "${pgac_cv_c_signed+set}" = set; then
14536   $as_echo_n "(cached) " >&6
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544
14545 int
14546 main ()
14547 {
14548 signed char c; signed short s; signed int i;
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14560 $as_echo "$ac_try_echo") >&5
14561   (eval "$ac_compile") 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } && {
14568          test -z "$ac_c_werror_flag" ||
14569          test ! -s conftest.err
14570        } && test -s conftest.$ac_objext; then
14571   pgac_cv_c_signed=yes
14572 else
14573   $as_echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576         pgac_cv_c_signed=no
14577 fi
14578
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14582 $as_echo "$pgac_cv_c_signed" >&6; }
14583 if test x"$pgac_cv_c_signed" = xno ; then
14584
14585 cat >>confdefs.h <<\_ACEOF
14586 #define signed /**/
14587 _ACEOF
14588
14589 fi
14590 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14591 $as_echo_n "checking for working volatile... " >&6; }
14592 if test "${ac_cv_c_volatile+set}" = set; then
14593   $as_echo_n "(cached) " >&6
14594 else
14595   cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h.  */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h.  */
14601
14602 int
14603 main ()
14604 {
14605
14606 volatile int x;
14607 int * volatile y = (int *) 0;
14608 return !x && !y;
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621   (eval "$ac_compile") 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } && {
14628          test -z "$ac_c_werror_flag" ||
14629          test ! -s conftest.err
14630        } && test -s conftest.$ac_objext; then
14631   ac_cv_c_volatile=yes
14632 else
14633   $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636         ac_cv_c_volatile=no
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14642 $as_echo "$ac_cv_c_volatile" >&6; }
14643 if test $ac_cv_c_volatile = no; then
14644
14645 cat >>confdefs.h <<\_ACEOF
14646 #define volatile /**/
14647 _ACEOF
14648
14649 fi
14650
14651 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14652 $as_echo_n "checking for __func__... " >&6; }
14653 if test "${pgac_cv_funcname_func_support+set}" = set; then
14654   $as_echo_n "(cached) " >&6
14655 else
14656   cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h.  */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h.  */
14662 #include <stdio.h>
14663 int
14664 main ()
14665 {
14666 printf("%s\n", __func__);
14667   ;
14668   return 0;
14669 }
14670 _ACEOF
14671 rm -f conftest.$ac_objext
14672 if { (ac_try="$ac_compile"
14673 case "(($ac_try" in
14674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675   *) ac_try_echo=$ac_try;;
14676 esac
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679   (eval "$ac_compile") 2>conftest.er1
14680   ac_status=$?
14681   grep -v '^ *+' conftest.er1 >conftest.err
14682   rm -f conftest.er1
14683   cat conftest.err >&5
14684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } && {
14686          test -z "$ac_c_werror_flag" ||
14687          test ! -s conftest.err
14688        } && test -s conftest.$ac_objext; then
14689   pgac_cv_funcname_func_support=yes
14690 else
14691   $as_echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694         pgac_cv_funcname_func_support=no
14695 fi
14696
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14700 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14701 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14702
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_FUNCNAME__FUNC 1
14705 _ACEOF
14706
14707 else
14708 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14709 $as_echo_n "checking for __FUNCTION__... " >&6; }
14710 if test "${pgac_cv_funcname_function_support+set}" = set; then
14711   $as_echo_n "(cached) " >&6
14712 else
14713   cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719 #include <stdio.h>
14720 int
14721 main ()
14722 {
14723 printf("%s\n", __FUNCTION__);
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736   (eval "$ac_compile") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } && {
14743          test -z "$ac_c_werror_flag" ||
14744          test ! -s conftest.err
14745        } && test -s conftest.$ac_objext; then
14746   pgac_cv_funcname_function_support=yes
14747 else
14748   $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751         pgac_cv_funcname_function_support=no
14752 fi
14753
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 fi
14756 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14757 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14758 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14759
14760 cat >>confdefs.h <<\_ACEOF
14761 #define HAVE_FUNCNAME__FUNCTION 1
14762 _ACEOF
14763
14764 fi
14765 fi
14766 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14767 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14768 if test "${ac_cv_struct_tm+set}" = set; then
14769   $as_echo_n "(cached) " >&6
14770 else
14771   cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h.  */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h.  */
14777 #include <sys/types.h>
14778 #include <time.h>
14779
14780 int
14781 main ()
14782 {
14783 struct tm tm;
14784                                      int *p = &tm.tm_sec;
14785                                      return !p;
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_struct_tm=time.h
14809 else
14810   $as_echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813         ac_cv_struct_tm=sys/time.h
14814 fi
14815
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14819 $as_echo "$ac_cv_struct_tm" >&6; }
14820 if test $ac_cv_struct_tm = sys/time.h; then
14821
14822 cat >>confdefs.h <<\_ACEOF
14823 #define TM_IN_SYS_TIME 1
14824 _ACEOF
14825
14826 fi
14827
14828 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14829 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14830 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14831   $as_echo_n "(cached) " >&6
14832 else
14833   cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 #include <sys/types.h>
14840 #include <$ac_cv_struct_tm>
14841
14842
14843 int
14844 main ()
14845 {
14846 static struct tm ac_aggr;
14847 if (ac_aggr.tm_zone)
14848 return 0;
14849   ;
14850   return 0;
14851 }
14852 _ACEOF
14853 rm -f conftest.$ac_objext
14854 if { (ac_try="$ac_compile"
14855 case "(($ac_try" in
14856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857   *) ac_try_echo=$ac_try;;
14858 esac
14859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14860 $as_echo "$ac_try_echo") >&5
14861   (eval "$ac_compile") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } && {
14868          test -z "$ac_c_werror_flag" ||
14869          test ! -s conftest.err
14870        } && test -s conftest.$ac_objext; then
14871   ac_cv_member_struct_tm_tm_zone=yes
14872 else
14873   $as_echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14875
14876         cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 #include <sys/types.h>
14883 #include <$ac_cv_struct_tm>
14884
14885
14886 int
14887 main ()
14888 {
14889 static struct tm ac_aggr;
14890 if (sizeof ac_aggr.tm_zone)
14891 return 0;
14892   ;
14893   return 0;
14894 }
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14903 $as_echo "$ac_try_echo") >&5
14904   (eval "$ac_compile") 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } && {
14911          test -z "$ac_c_werror_flag" ||
14912          test ! -s conftest.err
14913        } && test -s conftest.$ac_objext; then
14914   ac_cv_member_struct_tm_tm_zone=yes
14915 else
14916   $as_echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919         ac_cv_member_struct_tm_tm_zone=no
14920 fi
14921
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 fi
14924
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 fi
14927 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14928 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14929 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14930
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_STRUCT_TM_TM_ZONE 1
14933 _ACEOF
14934
14935
14936 fi
14937
14938 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14939
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_TM_ZONE 1
14942 _ACEOF
14943
14944 fi
14945 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14946 $as_echo_n "checking for tzname... " >&6; }
14947 if test "${ac_cv_var_tzname+set}" = set; then
14948   $as_echo_n "(cached) " >&6
14949 else
14950   cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 #include <time.h>
14957 #ifndef tzname /* For SGI.  */
14958 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14959 #endif
14960
14961 int
14962 main ()
14963 {
14964 atoi(*tzname);
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973   *) ac_try_echo=$ac_try;;
14974 esac
14975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14976 $as_echo "$ac_try_echo") >&5
14977   (eval "$ac_link") 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } && {
14984          test -z "$ac_c_werror_flag" ||
14985          test ! -s conftest.err
14986        } && test -s conftest$ac_exeext && {
14987          test "$cross_compiling" = yes ||
14988          $as_test_x conftest$ac_exeext
14989        }; then
14990   ac_cv_var_tzname=yes
14991 else
14992   $as_echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995         ac_cv_var_tzname=no
14996 fi
14997
14998 rm -rf conftest.dSYM
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000       conftest$ac_exeext conftest.$ac_ext
15001 fi
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15003 $as_echo "$ac_cv_var_tzname" >&6; }
15004 if test $ac_cv_var_tzname = yes; then
15005
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_TZNAME 1
15008 _ACEOF
15009
15010 fi
15011
15012 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15013 $as_echo_n "checking for union semun... " >&6; }
15014 if test "${ac_cv_type_union_semun+set}" = set; then
15015   $as_echo_n "(cached) " >&6
15016 else
15017   ac_cv_type_union_semun=no
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #include <sys/types.h>
15025 #include <sys/ipc.h>
15026 #include <sys/sem.h>
15027
15028 int
15029 main ()
15030 {
15031 if (sizeof (union semun))
15032        return 0;
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15044 $as_echo "$ac_try_echo") >&5
15045   (eval "$ac_compile") 2>conftest.er1
15046   ac_status=$?
15047   grep -v '^ *+' conftest.er1 >conftest.err
15048   rm -f conftest.er1
15049   cat conftest.err >&5
15050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); } && {
15052          test -z "$ac_c_werror_flag" ||
15053          test ! -s conftest.err
15054        } && test -s conftest.$ac_objext; then
15055   cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 #include <sys/types.h>
15062 #include <sys/ipc.h>
15063 #include <sys/sem.h>
15064
15065 int
15066 main ()
15067 {
15068 if (sizeof ((union semun)))
15069           return 0;
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext
15075 if { (ac_try="$ac_compile"
15076 case "(($ac_try" in
15077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078   *) ac_try_echo=$ac_try;;
15079 esac
15080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15081 $as_echo "$ac_try_echo") >&5
15082   (eval "$ac_compile") 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } && {
15089          test -z "$ac_c_werror_flag" ||
15090          test ! -s conftest.err
15091        } && test -s conftest.$ac_objext; then
15092   :
15093 else
15094   $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097         ac_cv_type_union_semun=yes
15098 fi
15099
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 else
15102   $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 fi
15110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15111 $as_echo "$ac_cv_type_union_semun" >&6; }
15112 if test "x$ac_cv_type_union_semun" = x""yes; then
15113
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_UNION_SEMUN 1
15116 _ACEOF
15117
15118
15119 fi
15120
15121 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15122 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15123 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15124   $as_echo_n "(cached) " >&6
15125 else
15126   ac_cv_type_struct_sockaddr_un=no
15127 cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 #include <sys/types.h>
15134 #ifdef HAVE_SYS_UN_H
15135 #include <sys/un.h>
15136 #endif
15137
15138
15139 int
15140 main ()
15141 {
15142 if (sizeof (struct sockaddr_un))
15143        return 0;
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext
15149 if { (ac_try="$ac_compile"
15150 case "(($ac_try" in
15151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152   *) ac_try_echo=$ac_try;;
15153 esac
15154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155 $as_echo "$ac_try_echo") >&5
15156   (eval "$ac_compile") 2>conftest.er1
15157   ac_status=$?
15158   grep -v '^ *+' conftest.er1 >conftest.err
15159   rm -f conftest.er1
15160   cat conftest.err >&5
15161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } && {
15163          test -z "$ac_c_werror_flag" ||
15164          test ! -s conftest.err
15165        } && test -s conftest.$ac_objext; then
15166   cat >conftest.$ac_ext <<_ACEOF
15167 /* confdefs.h.  */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h.  */
15172 #include <sys/types.h>
15173 #ifdef HAVE_SYS_UN_H
15174 #include <sys/un.h>
15175 #endif
15176
15177
15178 int
15179 main ()
15180 {
15181 if (sizeof ((struct sockaddr_un)))
15182           return 0;
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext
15188 if { (ac_try="$ac_compile"
15189 case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15194 $as_echo "$ac_try_echo") >&5
15195   (eval "$ac_compile") 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } && {
15202          test -z "$ac_c_werror_flag" ||
15203          test ! -s conftest.err
15204        } && test -s conftest.$ac_objext; then
15205   :
15206 else
15207   $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210         ac_cv_type_struct_sockaddr_un=yes
15211 fi
15212
15213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 else
15215   $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218
15219 fi
15220
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 fi
15223 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15224 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15225 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15226
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_STRUCT_SOCKADDR_UN 1
15229 _ACEOF
15230
15231
15232 cat >>confdefs.h <<\_ACEOF
15233 #define HAVE_UNIX_SOCKETS 1
15234 _ACEOF
15235
15236 fi
15237
15238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15239 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15240 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15241   $as_echo_n "(cached) " >&6
15242 else
15243   ac_cv_type_struct_sockaddr_storage=no
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 #include <sys/types.h>
15251 #ifdef HAVE_SYS_SOCKET_H
15252 #include <sys/socket.h>
15253 #endif
15254
15255
15256 int
15257 main ()
15258 {
15259 if (sizeof (struct sockaddr_storage))
15260        return 0;
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (ac_try="$ac_compile"
15267 case "(($ac_try" in
15268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269   *) ac_try_echo=$ac_try;;
15270 esac
15271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15272 $as_echo "$ac_try_echo") >&5
15273   (eval "$ac_compile") 2>conftest.er1
15274   ac_status=$?
15275   grep -v '^ *+' conftest.er1 >conftest.err
15276   rm -f conftest.er1
15277   cat conftest.err >&5
15278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } && {
15280          test -z "$ac_c_werror_flag" ||
15281          test ! -s conftest.err
15282        } && test -s conftest.$ac_objext; then
15283   cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 #include <sys/types.h>
15290 #ifdef HAVE_SYS_SOCKET_H
15291 #include <sys/socket.h>
15292 #endif
15293
15294
15295 int
15296 main ()
15297 {
15298 if (sizeof ((struct sockaddr_storage)))
15299           return 0;
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } && {
15319          test -z "$ac_c_werror_flag" ||
15320          test ! -s conftest.err
15321        } && test -s conftest.$ac_objext; then
15322   :
15323 else
15324   $as_echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327         ac_cv_type_struct_sockaddr_storage=yes
15328 fi
15329
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 else
15332   $as_echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335
15336 fi
15337
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15341 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15342 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15343
15344 cat >>confdefs.h <<_ACEOF
15345 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15346 _ACEOF
15347
15348
15349 fi
15350
15351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15352 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15353 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15354   $as_echo_n "(cached) " >&6
15355 else
15356   cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h.  */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h.  */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15365 #endif
15366
15367
15368 int
15369 main ()
15370 {
15371 static struct sockaddr_storage ac_aggr;
15372 if (ac_aggr.ss_family)
15373 return 0;
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386   (eval "$ac_compile") 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } && {
15393          test -z "$ac_c_werror_flag" ||
15394          test ! -s conftest.err
15395        } && test -s conftest.$ac_objext; then
15396   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15397 else
15398   $as_echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401         cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407 #include <sys/types.h>
15408 #ifdef HAVE_SYS_SOCKET_H
15409 #include <sys/socket.h>
15410 #endif
15411
15412
15413 int
15414 main ()
15415 {
15416 static struct sockaddr_storage ac_aggr;
15417 if (sizeof ac_aggr.ss_family)
15418 return 0;
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (ac_try="$ac_compile"
15425 case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430 $as_echo "$ac_try_echo") >&5
15431   (eval "$ac_compile") 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } && {
15438          test -z "$ac_c_werror_flag" ||
15439          test ! -s conftest.err
15440        } && test -s conftest.$ac_objext; then
15441   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15442 else
15443   $as_echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446         ac_cv_member_struct_sockaddr_storage_ss_family=no
15447 fi
15448
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 fi
15451
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 fi
15454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15457
15458 cat >>confdefs.h <<_ACEOF
15459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15460 _ACEOF
15461
15462
15463 fi
15464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15465 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15466 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15467   $as_echo_n "(cached) " >&6
15468 else
15469   cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475 #include <sys/types.h>
15476 #ifdef HAVE_SYS_SOCKET_H
15477 #include <sys/socket.h>
15478 #endif
15479
15480
15481 int
15482 main ()
15483 {
15484 static struct sockaddr_storage ac_aggr;
15485 if (ac_aggr.__ss_family)
15486 return 0;
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (ac_try="$ac_compile"
15493 case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498 $as_echo "$ac_try_echo") >&5
15499   (eval "$ac_compile") 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } && {
15506          test -z "$ac_c_werror_flag" ||
15507          test ! -s conftest.err
15508        } && test -s conftest.$ac_objext; then
15509   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15510 else
15511   $as_echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 #include <sys/types.h>
15521 #ifdef HAVE_SYS_SOCKET_H
15522 #include <sys/socket.h>
15523 #endif
15524
15525
15526 int
15527 main ()
15528 {
15529 static struct sockaddr_storage ac_aggr;
15530 if (sizeof ac_aggr.__ss_family)
15531 return 0;
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15543 $as_echo "$ac_try_echo") >&5
15544   (eval "$ac_compile") 2>conftest.er1
15545   ac_status=$?
15546   grep -v '^ *+' conftest.er1 >conftest.err
15547   rm -f conftest.er1
15548   cat conftest.err >&5
15549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } && {
15551          test -z "$ac_c_werror_flag" ||
15552          test ! -s conftest.err
15553        } && test -s conftest.$ac_objext; then
15554   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15555 else
15556   $as_echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559         ac_cv_member_struct_sockaddr_storage___ss_family=no
15560 fi
15561
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 fi
15564
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 fi
15567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15573 _ACEOF
15574
15575
15576 fi
15577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15578 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15579 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15580   $as_echo_n "(cached) " >&6
15581 else
15582   cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588 #include <sys/types.h>
15589 #ifdef HAVE_SYS_SOCKET_H
15590 #include <sys/socket.h>
15591 #endif
15592
15593
15594 int
15595 main ()
15596 {
15597 static struct sockaddr_storage ac_aggr;
15598 if (ac_aggr.ss_len)
15599 return 0;
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608   *) ac_try_echo=$ac_try;;
15609 esac
15610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15611 $as_echo "$ac_try_echo") >&5
15612   (eval "$ac_compile") 2>conftest.er1
15613   ac_status=$?
15614   grep -v '^ *+' conftest.er1 >conftest.err
15615   rm -f conftest.er1
15616   cat conftest.err >&5
15617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } && {
15619          test -z "$ac_c_werror_flag" ||
15620          test ! -s conftest.err
15621        } && test -s conftest.$ac_objext; then
15622   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15623 else
15624   $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627         cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633 #include <sys/types.h>
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15636 #endif
15637
15638
15639 int
15640 main ()
15641 {
15642 static struct sockaddr_storage ac_aggr;
15643 if (sizeof ac_aggr.ss_len)
15644 return 0;
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext
15650 if { (ac_try="$ac_compile"
15651 case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657   (eval "$ac_compile") 2>conftest.er1
15658   ac_status=$?
15659   grep -v '^ *+' conftest.er1 >conftest.err
15660   rm -f conftest.er1
15661   cat conftest.err >&5
15662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } && {
15664          test -z "$ac_c_werror_flag" ||
15665          test ! -s conftest.err
15666        } && test -s conftest.$ac_objext; then
15667   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15668 else
15669   $as_echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672         ac_cv_member_struct_sockaddr_storage_ss_len=no
15673 fi
15674
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 fi
15680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15681 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15682 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15683
15684 cat >>confdefs.h <<_ACEOF
15685 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15686 _ACEOF
15687
15688
15689 fi
15690 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15691 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15692 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15693   $as_echo_n "(cached) " >&6
15694 else
15695   cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h.  */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h.  */
15701 #include <sys/types.h>
15702 #ifdef HAVE_SYS_SOCKET_H
15703 #include <sys/socket.h>
15704 #endif
15705
15706
15707 int
15708 main ()
15709 {
15710 static struct sockaddr_storage ac_aggr;
15711 if (ac_aggr.__ss_len)
15712 return 0;
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725   (eval "$ac_compile") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } && {
15732          test -z "$ac_c_werror_flag" ||
15733          test ! -s conftest.err
15734        } && test -s conftest.$ac_objext; then
15735   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15736 else
15737   $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740         cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746 #include <sys/types.h>
15747 #ifdef HAVE_SYS_SOCKET_H
15748 #include <sys/socket.h>
15749 #endif
15750
15751
15752 int
15753 main ()
15754 {
15755 static struct sockaddr_storage ac_aggr;
15756 if (sizeof ac_aggr.__ss_len)
15757 return 0;
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766   *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770   (eval "$ac_compile") 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } && {
15777          test -z "$ac_c_werror_flag" ||
15778          test ! -s conftest.err
15779        } && test -s conftest.$ac_objext; then
15780   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15781 else
15782   $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785         ac_cv_member_struct_sockaddr_storage___ss_len=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 fi
15790
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 fi
15793 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15794 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15795 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15796
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15799 _ACEOF
15800
15801
15802 fi
15803 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15804 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15805 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15806   $as_echo_n "(cached) " >&6
15807 else
15808   cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 #include <sys/types.h>
15815 #ifdef HAVE_SYS_SOCKET_H
15816 #include <sys/socket.h>
15817 #endif
15818
15819
15820 int
15821 main ()
15822 {
15823 static struct sockaddr ac_aggr;
15824 if (ac_aggr.sa_len)
15825 return 0;
15826   ;
15827   return 0;
15828 }
15829 _ACEOF
15830 rm -f conftest.$ac_objext
15831 if { (ac_try="$ac_compile"
15832 case "(($ac_try" in
15833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834   *) ac_try_echo=$ac_try;;
15835 esac
15836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15837 $as_echo "$ac_try_echo") >&5
15838   (eval "$ac_compile") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } && {
15845          test -z "$ac_c_werror_flag" ||
15846          test ! -s conftest.err
15847        } && test -s conftest.$ac_objext; then
15848   ac_cv_member_struct_sockaddr_sa_len=yes
15849 else
15850   $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853         cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 #include <sys/types.h>
15860 #ifdef HAVE_SYS_SOCKET_H
15861 #include <sys/socket.h>
15862 #endif
15863
15864
15865 int
15866 main ()
15867 {
15868 static struct sockaddr ac_aggr;
15869 if (sizeof ac_aggr.sa_len)
15870 return 0;
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15882 $as_echo "$ac_try_echo") >&5
15883   (eval "$ac_compile") 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } && {
15890          test -z "$ac_c_werror_flag" ||
15891          test ! -s conftest.err
15892        } && test -s conftest.$ac_objext; then
15893   ac_cv_member_struct_sockaddr_sa_len=yes
15894 else
15895   $as_echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898         ac_cv_member_struct_sockaddr_sa_len=no
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 fi
15906 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15907 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15908 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15909
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15912 _ACEOF
15913
15914
15915 fi
15916
15917 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15918 $as_echo_n "checking for struct addrinfo... " >&6; }
15919 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15920   $as_echo_n "(cached) " >&6
15921 else
15922   ac_cv_type_struct_addrinfo=no
15923 cat >conftest.$ac_ext <<_ACEOF
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929 #include <sys/types.h>
15930 #include <sys/socket.h>
15931 #include <netdb.h>
15932
15933
15934 int
15935 main ()
15936 {
15937 if (sizeof (struct addrinfo))
15938        return 0;
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15950 $as_echo "$ac_try_echo") >&5
15951   (eval "$ac_compile") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } && {
15958          test -z "$ac_c_werror_flag" ||
15959          test ! -s conftest.err
15960        } && test -s conftest.$ac_objext; then
15961   cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 #include <sys/types.h>
15968 #include <sys/socket.h>
15969 #include <netdb.h>
15970
15971
15972 int
15973 main ()
15974 {
15975 if (sizeof ((struct addrinfo)))
15976           return 0;
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15988 $as_echo "$ac_try_echo") >&5
15989   (eval "$ac_compile") 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } && {
15996          test -z "$ac_c_werror_flag" ||
15997          test ! -s conftest.err
15998        } && test -s conftest.$ac_objext; then
15999   :
16000 else
16001   $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004         ac_cv_type_struct_addrinfo=yes
16005 fi
16006
16007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008 else
16009   $as_echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012
16013 fi
16014
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 fi
16017 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16018 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16019 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16020
16021 cat >>confdefs.h <<_ACEOF
16022 #define HAVE_STRUCT_ADDRINFO 1
16023 _ACEOF
16024
16025
16026 fi
16027
16028
16029   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16030 $as_echo_n "checking for intptr_t... " >&6; }
16031 if test "${ac_cv_type_intptr_t+set}" = set; then
16032   $as_echo_n "(cached) " >&6
16033 else
16034   ac_cv_type_intptr_t=no
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041 $ac_includes_default
16042 int
16043 main ()
16044 {
16045 if (sizeof (intptr_t))
16046        return 0;
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055   *) ac_try_echo=$ac_try;;
16056 esac
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059   (eval "$ac_compile") 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } && {
16066          test -z "$ac_c_werror_flag" ||
16067          test ! -s conftest.err
16068        } && test -s conftest.$ac_objext; then
16069   cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h.  */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h.  */
16075 $ac_includes_default
16076 int
16077 main ()
16078 {
16079 if (sizeof ((intptr_t)))
16080           return 0;
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (ac_try="$ac_compile"
16087 case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16092 $as_echo "$ac_try_echo") >&5
16093   (eval "$ac_compile") 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } && {
16100          test -z "$ac_c_werror_flag" ||
16101          test ! -s conftest.err
16102        } && test -s conftest.$ac_objext; then
16103   :
16104 else
16105   $as_echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108         ac_cv_type_intptr_t=yes
16109 fi
16110
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 else
16113   $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116
16117 fi
16118
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 fi
16121 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16122 $as_echo "$ac_cv_type_intptr_t" >&6; }
16123 if test "x$ac_cv_type_intptr_t" = x""yes; then
16124
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE_INTPTR_T 1
16127 _ACEOF
16128
16129 else
16130   for ac_type in 'int' 'long int' 'long long int'; do
16131        cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 $ac_includes_default
16138 int
16139 main ()
16140 {
16141 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16142 test_array [0] = 0
16143
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (ac_try="$ac_compile"
16150 case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156   (eval "$ac_compile") 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } && {
16163          test -z "$ac_c_werror_flag" ||
16164          test ! -s conftest.err
16165        } && test -s conftest.$ac_objext; then
16166
16167 cat >>confdefs.h <<_ACEOF
16168 #define intptr_t $ac_type
16169 _ACEOF
16170
16171           ac_type=
16172 else
16173   $as_echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176
16177 fi
16178
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180        test -z "$ac_type" && break
16181      done
16182 fi
16183
16184
16185
16186   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16187 $as_echo_n "checking for uintptr_t... " >&6; }
16188 if test "${ac_cv_type_uintptr_t+set}" = set; then
16189   $as_echo_n "(cached) " >&6
16190 else
16191   ac_cv_type_uintptr_t=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 $ac_includes_default
16199 int
16200 main ()
16201 {
16202 if (sizeof (uintptr_t))
16203        return 0;
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216   (eval "$ac_compile") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && {
16223          test -z "$ac_c_werror_flag" ||
16224          test ! -s conftest.err
16225        } && test -s conftest.$ac_objext; then
16226   cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 $ac_includes_default
16233 int
16234 main ()
16235 {
16236 if (sizeof ((uintptr_t)))
16237           return 0;
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250   (eval "$ac_compile") 2>conftest.er1
16251   ac_status=$?
16252   grep -v '^ *+' conftest.er1 >conftest.err
16253   rm -f conftest.er1
16254   cat conftest.err >&5
16255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } && {
16257          test -z "$ac_c_werror_flag" ||
16258          test ! -s conftest.err
16259        } && test -s conftest.$ac_objext; then
16260   :
16261 else
16262   $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265         ac_cv_type_uintptr_t=yes
16266 fi
16267
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 else
16270   $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273
16274 fi
16275
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 fi
16278 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16279 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16280 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16281
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_UINTPTR_T 1
16284 _ACEOF
16285
16286 else
16287   for ac_type in 'unsigned int' 'unsigned long int' \
16288         'unsigned long long int'; do
16289        cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 $ac_includes_default
16296 int
16297 main ()
16298 {
16299 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16300 test_array [0] = 0
16301
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext
16307 if { (ac_try="$ac_compile"
16308 case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313 $as_echo "$ac_try_echo") >&5
16314   (eval "$ac_compile") 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } && {
16321          test -z "$ac_c_werror_flag" ||
16322          test ! -s conftest.err
16323        } && test -s conftest.$ac_objext; then
16324
16325 cat >>confdefs.h <<_ACEOF
16326 #define uintptr_t $ac_type
16327 _ACEOF
16328
16329           ac_type=
16330 else
16331   $as_echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338        test -z "$ac_type" && break
16339      done
16340 fi
16341
16342
16343
16344 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16345 $as_echo_n "checking for struct cmsgcred... " >&6; }
16346 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16347   $as_echo_n "(cached) " >&6
16348 else
16349   ac_cv_type_struct_cmsgcred=no
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 #include <sys/param.h>
16357 #include <sys/types.h>
16358 #include <sys/socket.h>
16359 #include <sys/ucred.h>
16360
16361 int
16362 main ()
16363 {
16364 if (sizeof (struct cmsgcred))
16365        return 0;
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16377 $as_echo "$ac_try_echo") >&5
16378   (eval "$ac_compile") 2>conftest.er1
16379   ac_status=$?
16380   grep -v '^ *+' conftest.er1 >conftest.err
16381   rm -f conftest.er1
16382   cat conftest.err >&5
16383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } && {
16385          test -z "$ac_c_werror_flag" ||
16386          test ! -s conftest.err
16387        } && test -s conftest.$ac_objext; then
16388   cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394 #include <sys/param.h>
16395 #include <sys/types.h>
16396 #include <sys/socket.h>
16397 #include <sys/ucred.h>
16398
16399 int
16400 main ()
16401 {
16402 if (sizeof ((struct cmsgcred)))
16403           return 0;
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16415 $as_echo "$ac_try_echo") >&5
16416   (eval "$ac_compile") 2>conftest.er1
16417   ac_status=$?
16418   grep -v '^ *+' conftest.er1 >conftest.err
16419   rm -f conftest.er1
16420   cat conftest.err >&5
16421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } && {
16423          test -z "$ac_c_werror_flag" ||
16424          test ! -s conftest.err
16425        } && test -s conftest.$ac_objext; then
16426   :
16427 else
16428   $as_echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16430
16431         ac_cv_type_struct_cmsgcred=yes
16432 fi
16433
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 else
16436   $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439
16440 fi
16441
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 fi
16444 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16445 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16446 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16447
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_STRUCT_CMSGCRED 1
16450 _ACEOF
16451
16452
16453 fi
16454 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16455 $as_echo_n "checking for struct fcred... " >&6; }
16456 if test "${ac_cv_type_struct_fcred+set}" = set; then
16457   $as_echo_n "(cached) " >&6
16458 else
16459   ac_cv_type_struct_fcred=no
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 #include <sys/param.h>
16467 #include <sys/types.h>
16468 #include <sys/socket.h>
16469 #include <sys/ucred.h>
16470
16471 int
16472 main ()
16473 {
16474 if (sizeof (struct fcred))
16475        return 0;
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484   *) ac_try_echo=$ac_try;;
16485 esac
16486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16487 $as_echo "$ac_try_echo") >&5
16488   (eval "$ac_compile") 2>conftest.er1
16489   ac_status=$?
16490   grep -v '^ *+' conftest.er1 >conftest.err
16491   rm -f conftest.er1
16492   cat conftest.err >&5
16493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); } && {
16495          test -z "$ac_c_werror_flag" ||
16496          test ! -s conftest.err
16497        } && test -s conftest.$ac_objext; then
16498   cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504 #include <sys/param.h>
16505 #include <sys/types.h>
16506 #include <sys/socket.h>
16507 #include <sys/ucred.h>
16508
16509 int
16510 main ()
16511 {
16512 if (sizeof ((struct fcred)))
16513           return 0;
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16525 $as_echo "$ac_try_echo") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_c_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest.$ac_objext; then
16536   :
16537 else
16538   $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         ac_cv_type_struct_fcred=yes
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 else
16546   $as_echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 fi
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16555 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16556 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16557
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_STRUCT_FCRED 1
16560 _ACEOF
16561
16562
16563 fi
16564 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16565 $as_echo_n "checking for struct sockcred... " >&6; }
16566 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16567   $as_echo_n "(cached) " >&6
16568 else
16569   ac_cv_type_struct_sockcred=no
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576 #include <sys/param.h>
16577 #include <sys/types.h>
16578 #include <sys/socket.h>
16579 #include <sys/ucred.h>
16580
16581 int
16582 main ()
16583 {
16584 if (sizeof (struct sockcred))
16585        return 0;
16586   ;
16587   return 0;
16588 }
16589 _ACEOF
16590 rm -f conftest.$ac_objext
16591 if { (ac_try="$ac_compile"
16592 case "(($ac_try" in
16593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594   *) ac_try_echo=$ac_try;;
16595 esac
16596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16597 $as_echo "$ac_try_echo") >&5
16598   (eval "$ac_compile") 2>conftest.er1
16599   ac_status=$?
16600   grep -v '^ *+' conftest.er1 >conftest.err
16601   rm -f conftest.er1
16602   cat conftest.err >&5
16603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); } && {
16605          test -z "$ac_c_werror_flag" ||
16606          test ! -s conftest.err
16607        } && test -s conftest.$ac_objext; then
16608   cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614 #include <sys/param.h>
16615 #include <sys/types.h>
16616 #include <sys/socket.h>
16617 #include <sys/ucred.h>
16618
16619 int
16620 main ()
16621 {
16622 if (sizeof ((struct sockcred)))
16623           return 0;
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 rm -f conftest.$ac_objext
16629 if { (ac_try="$ac_compile"
16630 case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16635 $as_echo "$ac_try_echo") >&5
16636   (eval "$ac_compile") 2>conftest.er1
16637   ac_status=$?
16638   grep -v '^ *+' conftest.er1 >conftest.err
16639   rm -f conftest.er1
16640   cat conftest.err >&5
16641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); } && {
16643          test -z "$ac_c_werror_flag" ||
16644          test ! -s conftest.err
16645        } && test -s conftest.$ac_objext; then
16646   :
16647 else
16648   $as_echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16650
16651         ac_cv_type_struct_sockcred=yes
16652 fi
16653
16654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16655 else
16656   $as_echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659
16660 fi
16661
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 fi
16664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16665 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16666 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16667
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_STRUCT_SOCKCRED 1
16670 _ACEOF
16671
16672
16673 fi
16674
16675
16676 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16677 $as_echo_n "checking for struct option... " >&6; }
16678 if test "${ac_cv_type_struct_option+set}" = set; then
16679   $as_echo_n "(cached) " >&6
16680 else
16681   ac_cv_type_struct_option=no
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h.  */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h.  */
16688 #ifdef HAVE_GETOPT_H
16689 #include <getopt.h>
16690 #endif
16691
16692 int
16693 main ()
16694 {
16695 if (sizeof (struct option))
16696        return 0;
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16708 $as_echo "$ac_try_echo") >&5
16709   (eval "$ac_compile") 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } && {
16716          test -z "$ac_c_werror_flag" ||
16717          test ! -s conftest.err
16718        } && test -s conftest.$ac_objext; then
16719   cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h.  */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h.  */
16725 #ifdef HAVE_GETOPT_H
16726 #include <getopt.h>
16727 #endif
16728
16729 int
16730 main ()
16731 {
16732 if (sizeof ((struct option)))
16733           return 0;
16734   ;
16735   return 0;
16736 }
16737 _ACEOF
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742   *) ac_try_echo=$ac_try;;
16743 esac
16744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16745 $as_echo "$ac_try_echo") >&5
16746   (eval "$ac_compile") 2>conftest.er1
16747   ac_status=$?
16748   grep -v '^ *+' conftest.er1 >conftest.err
16749   rm -f conftest.er1
16750   cat conftest.err >&5
16751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); } && {
16753          test -z "$ac_c_werror_flag" ||
16754          test ! -s conftest.err
16755        } && test -s conftest.$ac_objext; then
16756   :
16757 else
16758   $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761         ac_cv_type_struct_option=yes
16762 fi
16763
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 else
16766   $as_echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769
16770 fi
16771
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 fi
16774 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16775 $as_echo "$ac_cv_type_struct_option" >&6; }
16776 if test "x$ac_cv_type_struct_option" = x""yes; then
16777
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_STRUCT_OPTION 1
16780 _ACEOF
16781
16782
16783 fi
16784
16785
16786 if test "$with_zlib" = yes; then
16787   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16788   # did not).  While we could work around the lack of z_streamp, it
16789   # seems unwise to encourage people to use such old zlib versions...
16790   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16791 $as_echo_n "checking for z_streamp... " >&6; }
16792 if test "${ac_cv_type_z_streamp+set}" = set; then
16793   $as_echo_n "(cached) " >&6
16794 else
16795   ac_cv_type_z_streamp=no
16796 cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h.  */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h.  */
16802 #include <zlib.h>
16803
16804 int
16805 main ()
16806 {
16807 if (sizeof (z_streamp))
16808        return 0;
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext
16814 if { (ac_try="$ac_compile"
16815 case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820 $as_echo "$ac_try_echo") >&5
16821   (eval "$ac_compile") 2>conftest.er1
16822   ac_status=$?
16823   grep -v '^ *+' conftest.er1 >conftest.err
16824   rm -f conftest.er1
16825   cat conftest.err >&5
16826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } && {
16828          test -z "$ac_c_werror_flag" ||
16829          test ! -s conftest.err
16830        } && test -s conftest.$ac_objext; then
16831   cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837 #include <zlib.h>
16838
16839 int
16840 main ()
16841 {
16842 if (sizeof ((z_streamp)))
16843           return 0;
16844   ;
16845   return 0;
16846 }
16847 _ACEOF
16848 rm -f conftest.$ac_objext
16849 if { (ac_try="$ac_compile"
16850 case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855 $as_echo "$ac_try_echo") >&5
16856   (eval "$ac_compile") 2>conftest.er1
16857   ac_status=$?
16858   grep -v '^ *+' conftest.er1 >conftest.err
16859   rm -f conftest.er1
16860   cat conftest.err >&5
16861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } && {
16863          test -z "$ac_c_werror_flag" ||
16864          test ! -s conftest.err
16865        } && test -s conftest.$ac_objext; then
16866   :
16867 else
16868   $as_echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871         ac_cv_type_z_streamp=yes
16872 fi
16873
16874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875 else
16876   $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879
16880 fi
16881
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16885 $as_echo "$ac_cv_type_z_streamp" >&6; }
16886 if test "x$ac_cv_type_z_streamp" = x""yes; then
16887   :
16888 else
16889   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16890 Use --without-zlib to disable zlib support." >&5
16891 $as_echo "$as_me: error: zlib version is too old
16892 Use --without-zlib to disable zlib support." >&2;}
16893    { (exit 1); exit 1; }; }
16894 fi
16895
16896 fi
16897
16898 if test "$with_krb5" = yes; then
16899 # Check for differences between MIT and Heimdal (KTH) releases
16900   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16901 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16902 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16903   $as_echo_n "(cached) " >&6
16904 else
16905   cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 #include <krb5.h>
16912
16913 int
16914 main ()
16915 {
16916 static krb5_ticket ac_aggr;
16917 if (ac_aggr.enc_part2)
16918 return 0;
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 rm -f conftest.$ac_objext
16924 if { (ac_try="$ac_compile"
16925 case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931   (eval "$ac_compile") 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && {
16938          test -z "$ac_c_werror_flag" ||
16939          test ! -s conftest.err
16940        } && test -s conftest.$ac_objext; then
16941   ac_cv_member_krb5_ticket_enc_part2=yes
16942 else
16943   $as_echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16945
16946         cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h.  */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h.  */
16952 #include <krb5.h>
16953
16954 int
16955 main ()
16956 {
16957 static krb5_ticket ac_aggr;
16958 if (sizeof ac_aggr.enc_part2)
16959 return 0;
16960   ;
16961   return 0;
16962 }
16963 _ACEOF
16964 rm -f conftest.$ac_objext
16965 if { (ac_try="$ac_compile"
16966 case "(($ac_try" in
16967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968   *) ac_try_echo=$ac_try;;
16969 esac
16970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16971 $as_echo "$ac_try_echo") >&5
16972   (eval "$ac_compile") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } && {
16979          test -z "$ac_c_werror_flag" ||
16980          test ! -s conftest.err
16981        } && test -s conftest.$ac_objext; then
16982   ac_cv_member_krb5_ticket_enc_part2=yes
16983 else
16984   $as_echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987         ac_cv_member_krb5_ticket_enc_part2=no
16988 fi
16989
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 fi
16992
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994 fi
16995 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16996 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16997 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16998
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_KRB5_TICKET_ENC_PART2 1
17001 _ACEOF
17002
17003
17004 else
17005   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17006 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17007 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17008   $as_echo_n "(cached) " >&6
17009 else
17010   cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016 #include <krb5.h>
17017
17018 int
17019 main ()
17020 {
17021 static krb5_ticket ac_aggr;
17022 if (ac_aggr.client)
17023 return 0;
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17035 $as_echo "$ac_try_echo") >&5
17036   (eval "$ac_compile") 2>conftest.er1
17037   ac_status=$?
17038   grep -v '^ *+' conftest.er1 >conftest.err
17039   rm -f conftest.er1
17040   cat conftest.err >&5
17041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); } && {
17043          test -z "$ac_c_werror_flag" ||
17044          test ! -s conftest.err
17045        } && test -s conftest.$ac_objext; then
17046   ac_cv_member_krb5_ticket_client=yes
17047 else
17048   $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051         cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 #include <krb5.h>
17058
17059 int
17060 main ()
17061 {
17062 static krb5_ticket ac_aggr;
17063 if (sizeof ac_aggr.client)
17064 return 0;
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073   *) ac_try_echo=$ac_try;;
17074 esac
17075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17076 $as_echo "$ac_try_echo") >&5
17077   (eval "$ac_compile") 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } && {
17084          test -z "$ac_c_werror_flag" ||
17085          test ! -s conftest.err
17086        } && test -s conftest.$ac_objext; then
17087   ac_cv_member_krb5_ticket_client=yes
17088 else
17089   $as_echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092         ac_cv_member_krb5_ticket_client=no
17093 fi
17094
17095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096 fi
17097
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 fi
17100 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17101 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17102 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17103
17104 cat >>confdefs.h <<_ACEOF
17105 #define HAVE_KRB5_TICKET_CLIENT 1
17106 _ACEOF
17107
17108
17109 else
17110   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17111 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17112    { (exit 1); exit 1; }; }
17113 fi
17114
17115 fi
17116
17117   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17118 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17119 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17120   $as_echo_n "(cached) " >&6
17121 else
17122   cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h.  */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h.  */
17128 #include <krb5.h>
17129
17130 int
17131 main ()
17132 {
17133 static krb5_error ac_aggr;
17134 if (ac_aggr.text.data)
17135 return 0;
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext
17141 if { (ac_try="$ac_compile"
17142 case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17147 $as_echo "$ac_try_echo") >&5
17148   (eval "$ac_compile") 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } && {
17155          test -z "$ac_c_werror_flag" ||
17156          test ! -s conftest.err
17157        } && test -s conftest.$ac_objext; then
17158   ac_cv_member_krb5_error_text_data=yes
17159 else
17160   $as_echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163         cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 #include <krb5.h>
17170
17171 int
17172 main ()
17173 {
17174 static krb5_error ac_aggr;
17175 if (sizeof ac_aggr.text.data)
17176 return 0;
17177   ;
17178   return 0;
17179 }
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
17183 case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17188 $as_echo "$ac_try_echo") >&5
17189   (eval "$ac_compile") 2>conftest.er1
17190   ac_status=$?
17191   grep -v '^ *+' conftest.er1 >conftest.err
17192   rm -f conftest.er1
17193   cat conftest.err >&5
17194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } && {
17196          test -z "$ac_c_werror_flag" ||
17197          test ! -s conftest.err
17198        } && test -s conftest.$ac_objext; then
17199   ac_cv_member_krb5_error_text_data=yes
17200 else
17201   $as_echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204         ac_cv_member_krb5_error_text_data=no
17205 fi
17206
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 fi
17209
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 fi
17212 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17213 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17214 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17215
17216 cat >>confdefs.h <<_ACEOF
17217 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17218 _ACEOF
17219
17220
17221 else
17222   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17223 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17224 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17225   $as_echo_n "(cached) " >&6
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233 #include <krb5.h>
17234
17235 int
17236 main ()
17237 {
17238 static krb5_error ac_aggr;
17239 if (ac_aggr.e_data)
17240 return 0;
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249   *) ac_try_echo=$ac_try;;
17250 esac
17251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253   (eval "$ac_compile") 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } && {
17260          test -z "$ac_c_werror_flag" ||
17261          test ! -s conftest.err
17262        } && test -s conftest.$ac_objext; then
17263   ac_cv_member_krb5_error_e_data=yes
17264 else
17265   $as_echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274 #include <krb5.h>
17275
17276 int
17277 main ()
17278 {
17279 static krb5_error ac_aggr;
17280 if (sizeof ac_aggr.e_data)
17281 return 0;
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294   (eval "$ac_compile") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && {
17301          test -z "$ac_c_werror_flag" ||
17302          test ! -s conftest.err
17303        } && test -s conftest.$ac_objext; then
17304   ac_cv_member_krb5_error_e_data=yes
17305 else
17306   $as_echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         ac_cv_member_krb5_error_e_data=no
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 fi
17314
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316 fi
17317 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17318 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17319 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17320
17321 cat >>confdefs.h <<_ACEOF
17322 #define HAVE_KRB5_ERROR_E_DATA 1
17323 _ACEOF
17324
17325
17326 else
17327   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17328 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17329    { (exit 1); exit 1; }; }
17330 fi
17331
17332 fi
17333
17334
17335 # Win32 requires headers to be loaded for __stdcall, so can't use
17336 # AC_CHECK_FUNCS here.
17337   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17338 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17339   cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 #include <krb5.h>
17346 int
17347 main ()
17348 {
17349 krb5_free_unparsed_name(NULL,NULL);
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext conftest$ac_exeext
17355 if { (ac_try="$ac_link"
17356 case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17361 $as_echo "$ac_try_echo") >&5
17362   (eval "$ac_link") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } && {
17369          test -z "$ac_c_werror_flag" ||
17370          test ! -s conftest.err
17371        } && test -s conftest$ac_exeext && {
17372          test "$cross_compiling" = yes ||
17373          $as_test_x conftest$ac_exeext
17374        }; then
17375
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17378 _ACEOF
17379
17380 { $as_echo "$as_me:$LINENO: result: yes" >&5
17381 $as_echo "yes" >&6; }
17382 else
17383   $as_echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386         { $as_echo "$as_me:$LINENO: result: no" >&5
17387 $as_echo "no" >&6; }
17388 fi
17389
17390 rm -rf conftest.dSYM
17391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17392       conftest$ac_exeext conftest.$ac_ext
17393 fi
17394
17395
17396 ##
17397 ## Functions, global variables
17398 ##
17399
17400 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17401 $as_echo_n "checking for int timezone... " >&6; }
17402 if test "${pgac_cv_var_int_timezone+set}" = set; then
17403   $as_echo_n "(cached) " >&6
17404 else
17405   cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411 #include <time.h>
17412 int res;
17413 int
17414 main ()
17415 {
17416 #ifndef __CYGWIN__
17417 res = timezone / 60;
17418 #else
17419 res = _timezone / 60;
17420 #endif
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17432 $as_echo "$ac_try_echo") >&5
17433   (eval "$ac_link") 2>conftest.er1
17434   ac_status=$?
17435   grep -v '^ *+' conftest.er1 >conftest.err
17436   rm -f conftest.er1
17437   cat conftest.err >&5
17438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); } && {
17440          test -z "$ac_c_werror_flag" ||
17441          test ! -s conftest.err
17442        } && test -s conftest$ac_exeext && {
17443          test "$cross_compiling" = yes ||
17444          $as_test_x conftest$ac_exeext
17445        }; then
17446   pgac_cv_var_int_timezone=yes
17447 else
17448   $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451         pgac_cv_var_int_timezone=no
17452 fi
17453
17454 rm -rf conftest.dSYM
17455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17456       conftest$ac_exeext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17459 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17460 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17461
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_INT_TIMEZONE /**/
17464 _ACEOF
17465
17466 fi
17467 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17468 $as_echo_n "checking types of arguments for accept()... " >&6; }
17469  if test "${ac_cv_func_accept_return+set}" = set; then
17470   $as_echo_n "(cached) " >&6
17471 else
17472    if test "${ac_cv_func_accept_arg1+set}" = set; then
17473   $as_echo_n "(cached) " >&6
17474 else
17475     if test "${ac_cv_func_accept_arg2+set}" = set; then
17476   $as_echo_n "(cached) " >&6
17477 else
17478      if test "${ac_cv_func_accept_arg3+set}" = set; then
17479   $as_echo_n "(cached) " >&6
17480 else
17481       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17482       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17483        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17484         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17485          cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h.  */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h.  */
17491 #ifdef HAVE_SYS_TYPES_H
17492 #include <sys/types.h>
17493 #endif
17494 #ifdef HAVE_SYS_SOCKET_H
17495 #include <sys/socket.h>
17496 #endif
17497 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17498 int
17499 main ()
17500 {
17501
17502   ;
17503   return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest.$ac_objext
17507 if { (ac_try="$ac_compile"
17508 case "(($ac_try" in
17509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510   *) ac_try_echo=$ac_try;;
17511 esac
17512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17513 $as_echo "$ac_try_echo") >&5
17514   (eval "$ac_compile") 2>conftest.er1
17515   ac_status=$?
17516   grep -v '^ *+' conftest.er1 >conftest.err
17517   rm -f conftest.er1
17518   cat conftest.err >&5
17519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); } && {
17521          test -z "$ac_c_werror_flag" ||
17522          test ! -s conftest.err
17523        } && test -s conftest.$ac_objext; then
17524   ac_not_found=no; break 4
17525 else
17526   $as_echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17528
17529         ac_not_found=yes
17530 fi
17531
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533        done
17534       done
17535      done
17536     done
17537     if test "$ac_not_found" = yes; then
17538       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17539 $as_echo "$as_me: error: could not determine argument types" >&2;}
17540    { (exit 1); exit 1; }; }
17541     fi
17542     if test "$ac_cv_func_accept_arg3" = "void"; then
17543       ac_cv_func_accept_arg3=int
17544     fi
17545
17546 fi
17547
17548 fi
17549
17550 fi
17551
17552 fi
17553  { $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
17554 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17555
17556 cat >>confdefs.h <<_ACEOF
17557 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17558 _ACEOF
17559
17560
17561 cat >>confdefs.h <<_ACEOF
17562 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17563 _ACEOF
17564
17565
17566 cat >>confdefs.h <<_ACEOF
17567 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17568 _ACEOF
17569
17570
17571 cat >>confdefs.h <<_ACEOF
17572 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17573 _ACEOF
17574
17575
17576 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17577 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17578 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17579   $as_echo_n "(cached) " >&6
17580 else
17581   cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 #include <sys/time.h>
17588 int
17589 main ()
17590 {
17591 struct timeval *tp;
17592 struct timezone *tzp;
17593 gettimeofday(tp,tzp);
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext
17599 if { (ac_try="$ac_compile"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17605 $as_echo "$ac_try_echo") >&5
17606   (eval "$ac_compile") 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } && {
17613          test -z "$ac_c_werror_flag" ||
17614          test ! -s conftest.err
17615        } && test -s conftest.$ac_objext; then
17616   pgac_cv_func_gettimeofday_1arg=no
17617 else
17618   $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621         pgac_cv_func_gettimeofday_1arg=yes
17622 fi
17623
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 fi
17626 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17627 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17628 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17629
17630 cat >>confdefs.h <<\_ACEOF
17631 #define GETTIMEOFDAY_1ARG /**/
17632 _ACEOF
17633
17634 fi
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17661 do
17662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17664 $as_echo_n "checking for $ac_func... " >&6; }
17665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17666   $as_echo_n "(cached) " >&6
17667 else
17668   cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17676 #define $ac_func innocuous_$ac_func
17677
17678 /* System header to define __stub macros and hopefully few prototypes,
17679     which can conflict with char $ac_func (); below.
17680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681     <limits.h> exists even on freestanding compilers.  */
17682
17683 #ifdef __STDC__
17684 # include <limits.h>
17685 #else
17686 # include <assert.h>
17687 #endif
17688
17689 #undef $ac_func
17690
17691 /* Override any GCC internal prototype to avoid an error.
17692    Use char because int might match the return type of a GCC
17693    builtin and then its argument prototype would still apply.  */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 char $ac_func ();
17698 /* The GNU C library defines this for functions which it implements
17699     to always fail with ENOSYS.  Some functions are actually named
17700     something starting with __ and the normal name is an alias.  */
17701 #if defined __stub_$ac_func || defined __stub___$ac_func
17702 choke me
17703 #endif
17704
17705 int
17706 main ()
17707 {
17708 return $ac_func ();
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17720 $as_echo "$ac_try_echo") >&5
17721   (eval "$ac_link") 2>conftest.er1
17722   ac_status=$?
17723   grep -v '^ *+' conftest.er1 >conftest.err
17724   rm -f conftest.er1
17725   cat conftest.err >&5
17726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); } && {
17728          test -z "$ac_c_werror_flag" ||
17729          test ! -s conftest.err
17730        } && test -s conftest$ac_exeext && {
17731          test "$cross_compiling" = yes ||
17732          $as_test_x conftest$ac_exeext
17733        }; then
17734   eval "$as_ac_var=yes"
17735 else
17736   $as_echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739         eval "$as_ac_var=no"
17740 fi
17741
17742 rm -rf conftest.dSYM
17743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17744       conftest$ac_exeext conftest.$ac_ext
17745 fi
17746 ac_res=`eval 'as_val=${'$as_ac_var'}
17747                  $as_echo "$as_val"'`
17748                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17749 $as_echo "$ac_res" >&6; }
17750 as_val=`eval 'as_val=${'$as_ac_var'}
17751                  $as_echo "$as_val"'`
17752    if test "x$as_val" = x""yes; then
17753   cat >>confdefs.h <<_ACEOF
17754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17755 _ACEOF
17756
17757 fi
17758 done
17759
17760
17761 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17762 # by calling it, 2009-04-02
17763 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17764 if test "$PORTNAME" != "solaris"; then
17765
17766 for ac_func in posix_fadvise
17767 do
17768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17770 $as_echo_n "checking for $ac_func... " >&6; }
17771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17772   $as_echo_n "(cached) " >&6
17773 else
17774   cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17782 #define $ac_func innocuous_$ac_func
17783
17784 /* System header to define __stub macros and hopefully few prototypes,
17785     which can conflict with char $ac_func (); below.
17786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17787     <limits.h> exists even on freestanding compilers.  */
17788
17789 #ifdef __STDC__
17790 # include <limits.h>
17791 #else
17792 # include <assert.h>
17793 #endif
17794
17795 #undef $ac_func
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798    Use char because int might match the return type of a GCC
17799    builtin and then its argument prototype would still apply.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char $ac_func ();
17804 /* The GNU C library defines this for functions which it implements
17805     to always fail with ENOSYS.  Some functions are actually named
17806     something starting with __ and the normal name is an alias.  */
17807 #if defined __stub_$ac_func || defined __stub___$ac_func
17808 choke me
17809 #endif
17810
17811 int
17812 main ()
17813 {
17814 return $ac_func ();
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (ac_try="$ac_link"
17821 case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17826 $as_echo "$ac_try_echo") >&5
17827   (eval "$ac_link") 2>conftest.er1
17828   ac_status=$?
17829   grep -v '^ *+' conftest.er1 >conftest.err
17830   rm -f conftest.er1
17831   cat conftest.err >&5
17832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } && {
17834          test -z "$ac_c_werror_flag" ||
17835          test ! -s conftest.err
17836        } && test -s conftest$ac_exeext && {
17837          test "$cross_compiling" = yes ||
17838          $as_test_x conftest$ac_exeext
17839        }; then
17840   eval "$as_ac_var=yes"
17841 else
17842   $as_echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845         eval "$as_ac_var=no"
17846 fi
17847
17848 rm -rf conftest.dSYM
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850       conftest$ac_exeext conftest.$ac_ext
17851 fi
17852 ac_res=`eval 'as_val=${'$as_ac_var'}
17853                  $as_echo "$as_val"'`
17854                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17855 $as_echo "$ac_res" >&6; }
17856 as_val=`eval 'as_val=${'$as_ac_var'}
17857                  $as_echo "$as_val"'`
17858    if test "x$as_val" = x""yes; then
17859   cat >>confdefs.h <<_ACEOF
17860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17861 _ACEOF
17862
17863 fi
17864 done
17865
17866 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17867 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17868 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17869   $as_echo_n "(cached) " >&6
17870 else
17871   cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877 #include <fcntl.h>
17878
17879 int
17880 main ()
17881 {
17882 #ifndef posix_fadvise
17883   (void) posix_fadvise;
17884 #endif
17885
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext
17891 if { (ac_try="$ac_compile"
17892 case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898   (eval "$ac_compile") 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } && {
17905          test -z "$ac_c_werror_flag" ||
17906          test ! -s conftest.err
17907        } && test -s conftest.$ac_objext; then
17908   ac_cv_have_decl_posix_fadvise=yes
17909 else
17910   $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913         ac_cv_have_decl_posix_fadvise=no
17914 fi
17915
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 fi
17918 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17919 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17920 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17921
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_DECL_POSIX_FADVISE 1
17924 _ACEOF
17925
17926
17927 else
17928   cat >>confdefs.h <<_ACEOF
17929 #define HAVE_DECL_POSIX_FADVISE 0
17930 _ACEOF
17931
17932
17933 fi
17934
17935
17936 fi
17937
17938 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17939 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17940 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17941   $as_echo_n "(cached) " >&6
17942 else
17943   cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h.  */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h.  */
17949 #include <unistd.h>
17950
17951 int
17952 main ()
17953 {
17954 #ifndef fdatasync
17955   (void) fdatasync;
17956 #endif
17957
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17969 $as_echo "$ac_try_echo") >&5
17970   (eval "$ac_compile") 2>conftest.er1
17971   ac_status=$?
17972   grep -v '^ *+' conftest.er1 >conftest.err
17973   rm -f conftest.er1
17974   cat conftest.err >&5
17975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } && {
17977          test -z "$ac_c_werror_flag" ||
17978          test ! -s conftest.err
17979        } && test -s conftest.$ac_objext; then
17980   ac_cv_have_decl_fdatasync=yes
17981 else
17982   $as_echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985         ac_cv_have_decl_fdatasync=no
17986 fi
17987
17988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 fi
17990 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17991 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17992 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17993
17994 cat >>confdefs.h <<_ACEOF
17995 #define HAVE_DECL_FDATASYNC 1
17996 _ACEOF
17997
17998
17999 else
18000   cat >>confdefs.h <<_ACEOF
18001 #define HAVE_DECL_FDATASYNC 0
18002 _ACEOF
18003
18004
18005 fi
18006
18007
18008 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
18009 $as_echo_n "checking whether strlcat is declared... " >&6; }
18010 if test "${ac_cv_have_decl_strlcat+set}" = set; then
18011   $as_echo_n "(cached) " >&6
18012 else
18013   cat >conftest.$ac_ext <<_ACEOF
18014 /* confdefs.h.  */
18015 _ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h.  */
18019 $ac_includes_default
18020 int
18021 main ()
18022 {
18023 #ifndef strlcat
18024   (void) strlcat;
18025 #endif
18026
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext
18032 if { (ac_try="$ac_compile"
18033 case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18038 $as_echo "$ac_try_echo") >&5
18039   (eval "$ac_compile") 2>conftest.er1
18040   ac_status=$?
18041   grep -v '^ *+' conftest.er1 >conftest.err
18042   rm -f conftest.er1
18043   cat conftest.err >&5
18044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); } && {
18046          test -z "$ac_c_werror_flag" ||
18047          test ! -s conftest.err
18048        } && test -s conftest.$ac_objext; then
18049   ac_cv_have_decl_strlcat=yes
18050 else
18051   $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054         ac_cv_have_decl_strlcat=no
18055 fi
18056
18057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18058 fi
18059 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
18060 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
18061 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
18062
18063 cat >>confdefs.h <<_ACEOF
18064 #define HAVE_DECL_STRLCAT 1
18065 _ACEOF
18066
18067
18068 else
18069   cat >>confdefs.h <<_ACEOF
18070 #define HAVE_DECL_STRLCAT 0
18071 _ACEOF
18072
18073
18074 fi
18075 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
18076 $as_echo_n "checking whether strlcpy is declared... " >&6; }
18077 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
18078   $as_echo_n "(cached) " >&6
18079 else
18080   cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 $ac_includes_default
18087 int
18088 main ()
18089 {
18090 #ifndef strlcpy
18091   (void) strlcpy;
18092 #endif
18093
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest.$ac_objext
18099 if { (ac_try="$ac_compile"
18100 case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106   (eval "$ac_compile") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } && {
18113          test -z "$ac_c_werror_flag" ||
18114          test ! -s conftest.err
18115        } && test -s conftest.$ac_objext; then
18116   ac_cv_have_decl_strlcpy=yes
18117 else
18118   $as_echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121         ac_cv_have_decl_strlcpy=no
18122 fi
18123
18124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125 fi
18126 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
18127 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
18128 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
18129
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_DECL_STRLCPY 1
18132 _ACEOF
18133
18134
18135 else
18136   cat >>confdefs.h <<_ACEOF
18137 #define HAVE_DECL_STRLCPY 0
18138 _ACEOF
18139
18140
18141 fi
18142
18143
18144 # This is probably only present on Darwin, but may as well check always
18145 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
18146 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
18147 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
18148   $as_echo_n "(cached) " >&6
18149 else
18150   cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 #include <fcntl.h>
18157
18158 int
18159 main ()
18160 {
18161 #ifndef F_FULLFSYNC
18162   (void) F_FULLFSYNC;
18163 #endif
18164
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext
18170 if { (ac_try="$ac_compile"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18176 $as_echo "$ac_try_echo") >&5
18177   (eval "$ac_compile") 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } && {
18184          test -z "$ac_c_werror_flag" ||
18185          test ! -s conftest.err
18186        } && test -s conftest.$ac_objext; then
18187   ac_cv_have_decl_F_FULLFSYNC=yes
18188 else
18189   $as_echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192         ac_cv_have_decl_F_FULLFSYNC=no
18193 fi
18194
18195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18196 fi
18197 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
18198 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
18199 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
18200
18201 cat >>confdefs.h <<_ACEOF
18202 #define HAVE_DECL_F_FULLFSYNC 1
18203 _ACEOF
18204
18205
18206 else
18207   cat >>confdefs.h <<_ACEOF
18208 #define HAVE_DECL_F_FULLFSYNC 0
18209 _ACEOF
18210
18211
18212 fi
18213
18214
18215
18216 HAVE_IPV6=no
18217 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
18218 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
18219 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
18220   $as_echo_n "(cached) " >&6
18221 else
18222   ac_cv_type_struct_sockaddr_in6=no
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229 $ac_includes_default
18230 #include <netinet/in.h>
18231
18232 int
18233 main ()
18234 {
18235 if (sizeof (struct sockaddr_in6))
18236        return 0;
18237   ;
18238   return 0;
18239 }
18240 _ACEOF
18241 rm -f conftest.$ac_objext
18242 if { (ac_try="$ac_compile"
18243 case "(($ac_try" in
18244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245   *) ac_try_echo=$ac_try;;
18246 esac
18247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18248 $as_echo "$ac_try_echo") >&5
18249   (eval "$ac_compile") 2>conftest.er1
18250   ac_status=$?
18251   grep -v '^ *+' conftest.er1 >conftest.err
18252   rm -f conftest.er1
18253   cat conftest.err >&5
18254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } && {
18256          test -z "$ac_c_werror_flag" ||
18257          test ! -s conftest.err
18258        } && test -s conftest.$ac_objext; then
18259   cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h.  */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h.  */
18265 $ac_includes_default
18266 #include <netinet/in.h>
18267
18268 int
18269 main ()
18270 {
18271 if (sizeof ((struct sockaddr_in6)))
18272           return 0;
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (ac_try="$ac_compile"
18279 case "(($ac_try" in
18280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281   *) ac_try_echo=$ac_try;;
18282 esac
18283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18284 $as_echo "$ac_try_echo") >&5
18285   (eval "$ac_compile") 2>conftest.er1
18286   ac_status=$?
18287   grep -v '^ *+' conftest.er1 >conftest.err
18288   rm -f conftest.er1
18289   cat conftest.err >&5
18290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } && {
18292          test -z "$ac_c_werror_flag" ||
18293          test ! -s conftest.err
18294        } && test -s conftest.$ac_objext; then
18295   :
18296 else
18297   $as_echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300         ac_cv_type_struct_sockaddr_in6=yes
18301 fi
18302
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 else
18305   $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308
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_type_struct_sockaddr_in6" >&5
18314 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
18315 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
18316
18317 cat >>confdefs.h <<\_ACEOF
18318 #define HAVE_IPV6 1
18319 _ACEOF
18320
18321          HAVE_IPV6=yes
18322 fi
18323
18324
18325
18326 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
18327 $as_echo_n "checking for PS_STRINGS... " >&6; }
18328 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
18329   $as_echo_n "(cached) " >&6
18330 else
18331   cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337 #include <machine/vmparam.h>
18338 #include <sys/exec.h>
18339
18340 int
18341 main ()
18342 {
18343 PS_STRINGS->ps_nargvstr = 1;
18344 PS_STRINGS->ps_argvstr = "foo";
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (ac_try="$ac_link"
18351 case "(($ac_try" in
18352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353   *) ac_try_echo=$ac_try;;
18354 esac
18355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18356 $as_echo "$ac_try_echo") >&5
18357   (eval "$ac_link") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } && {
18364          test -z "$ac_c_werror_flag" ||
18365          test ! -s conftest.err
18366        } && test -s conftest$ac_exeext && {
18367          test "$cross_compiling" = yes ||
18368          $as_test_x conftest$ac_exeext
18369        }; then
18370   pgac_cv_var_PS_STRINGS=yes
18371 else
18372   $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375         pgac_cv_var_PS_STRINGS=no
18376 fi
18377
18378 rm -rf conftest.dSYM
18379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18380       conftest$ac_exeext conftest.$ac_ext
18381 fi
18382 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18383 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18384 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18385
18386 cat >>confdefs.h <<\_ACEOF
18387 #define HAVE_PS_STRINGS /**/
18388 _ACEOF
18389
18390 fi
18391
18392
18393 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18394 # is missing.  Yes, there are machines that have only one.  We may
18395 # also decide to use snprintf.c if snprintf() is present but does not
18396 # have all the features we need --- see below.
18397
18398 if test "$PORTNAME" = "win32"; then
18399   # Win32 gets snprintf.c built unconditionally.
18400   #
18401   # To properly translate all NLS languages strings, we must support the
18402   # *printf() %$ format, which allows *printf() arguments to be selected
18403   # by position in the translated string.
18404   #
18405   # libintl versions < 0.13 use the native *printf() functions, and Win32
18406   # *printf() doesn't understand %$, so we must use our /port versions,
18407   # which do understand %$. libintl versions >= 0.13 include their own
18408   # *printf versions on Win32.  The libintl 0.13 release note text is:
18409   #
18410   #   C format strings with positions, as they arise when a translator
18411   #   needs to reorder a sentence, are now supported on all platforms.
18412   #   On those few platforms (NetBSD and Woe32) for which the native
18413   #   printf()/fprintf()/... functions don't support such format
18414   #   strings, replacements are provided through <libintl.h>.
18415   #
18416   # We could use libintl >= 0.13's *printf() if we were sure that we had
18417   # a litint >= 0.13 at runtime, but seeing that there is no clean way
18418   # to guarantee that, it is best to just use our own, so we are sure to
18419   # get %$ support. In include/port.h we disable the *printf() macros
18420   # that might have been defined by libintl.
18421   #
18422   # We do this unconditionally whether NLS is used or not so we are sure
18423   # that all Win32 libraries and binaries behave the same.
18424   pgac_need_repl_snprintf=yes
18425 else
18426   pgac_need_repl_snprintf=no
18427
18428 for ac_func in snprintf
18429 do
18430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18431 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18432 $as_echo_n "checking for $ac_func... " >&6; }
18433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18434   $as_echo_n "(cached) " >&6
18435 else
18436   cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18444 #define $ac_func innocuous_$ac_func
18445
18446 /* System header to define __stub macros and hopefully few prototypes,
18447     which can conflict with char $ac_func (); below.
18448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18449     <limits.h> exists even on freestanding compilers.  */
18450
18451 #ifdef __STDC__
18452 # include <limits.h>
18453 #else
18454 # include <assert.h>
18455 #endif
18456
18457 #undef $ac_func
18458
18459 /* Override any GCC internal prototype to avoid an error.
18460    Use char because int might match the return type of a GCC
18461    builtin and then its argument prototype would still apply.  */
18462 #ifdef __cplusplus
18463 extern "C"
18464 #endif
18465 char $ac_func ();
18466 /* The GNU C library defines this for functions which it implements
18467     to always fail with ENOSYS.  Some functions are actually named
18468     something starting with __ and the normal name is an alias.  */
18469 #if defined __stub_$ac_func || defined __stub___$ac_func
18470 choke me
18471 #endif
18472
18473 int
18474 main ()
18475 {
18476 return $ac_func ();
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 rm -f conftest.$ac_objext conftest$ac_exeext
18482 if { (ac_try="$ac_link"
18483 case "(($ac_try" in
18484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485   *) ac_try_echo=$ac_try;;
18486 esac
18487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18488 $as_echo "$ac_try_echo") >&5
18489   (eval "$ac_link") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } && {
18496          test -z "$ac_c_werror_flag" ||
18497          test ! -s conftest.err
18498        } && test -s conftest$ac_exeext && {
18499          test "$cross_compiling" = yes ||
18500          $as_test_x conftest$ac_exeext
18501        }; then
18502   eval "$as_ac_var=yes"
18503 else
18504   $as_echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507         eval "$as_ac_var=no"
18508 fi
18509
18510 rm -rf conftest.dSYM
18511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18512       conftest$ac_exeext conftest.$ac_ext
18513 fi
18514 ac_res=`eval 'as_val=${'$as_ac_var'}
18515                  $as_echo "$as_val"'`
18516                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18517 $as_echo "$ac_res" >&6; }
18518 as_val=`eval 'as_val=${'$as_ac_var'}
18519                  $as_echo "$as_val"'`
18520    if test "x$as_val" = x""yes; then
18521   cat >>confdefs.h <<_ACEOF
18522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523 _ACEOF
18524
18525 else
18526   pgac_need_repl_snprintf=yes
18527 fi
18528 done
18529
18530
18531 for ac_func in vsnprintf
18532 do
18533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18534 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18535 $as_echo_n "checking for $ac_func... " >&6; }
18536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18537   $as_echo_n "(cached) " >&6
18538 else
18539   cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18547 #define $ac_func innocuous_$ac_func
18548
18549 /* System header to define __stub macros and hopefully few prototypes,
18550     which can conflict with char $ac_func (); below.
18551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552     <limits.h> exists even on freestanding compilers.  */
18553
18554 #ifdef __STDC__
18555 # include <limits.h>
18556 #else
18557 # include <assert.h>
18558 #endif
18559
18560 #undef $ac_func
18561
18562 /* Override any GCC internal prototype to avoid an error.
18563    Use char because int might match the return type of a GCC
18564    builtin and then its argument prototype would still apply.  */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 char $ac_func ();
18569 /* The GNU C library defines this for functions which it implements
18570     to always fail with ENOSYS.  Some functions are actually named
18571     something starting with __ and the normal name is an alias.  */
18572 #if defined __stub_$ac_func || defined __stub___$ac_func
18573 choke me
18574 #endif
18575
18576 int
18577 main ()
18578 {
18579 return $ac_func ();
18580   ;
18581   return 0;
18582 }
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18591 $as_echo "$ac_try_echo") >&5
18592   (eval "$ac_link") 2>conftest.er1
18593   ac_status=$?
18594   grep -v '^ *+' conftest.er1 >conftest.err
18595   rm -f conftest.er1
18596   cat conftest.err >&5
18597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); } && {
18599          test -z "$ac_c_werror_flag" ||
18600          test ! -s conftest.err
18601        } && test -s conftest$ac_exeext && {
18602          test "$cross_compiling" = yes ||
18603          $as_test_x conftest$ac_exeext
18604        }; then
18605   eval "$as_ac_var=yes"
18606 else
18607   $as_echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610         eval "$as_ac_var=no"
18611 fi
18612
18613 rm -rf conftest.dSYM
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615       conftest$ac_exeext conftest.$ac_ext
18616 fi
18617 ac_res=`eval 'as_val=${'$as_ac_var'}
18618                  $as_echo "$as_val"'`
18619                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18620 $as_echo "$ac_res" >&6; }
18621 as_val=`eval 'as_val=${'$as_ac_var'}
18622                  $as_echo "$as_val"'`
18623    if test "x$as_val" = x""yes; then
18624   cat >>confdefs.h <<_ACEOF
18625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18626 _ACEOF
18627
18628 else
18629   pgac_need_repl_snprintf=yes
18630 fi
18631 done
18632
18633 fi
18634
18635
18636 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18637 # include/c.h will provide declarations.  Note this is a separate test
18638 # from whether the functions exist in the C library --- there are
18639 # systems that have the functions but don't bother to declare them :-(
18640
18641 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18642 $as_echo_n "checking whether snprintf is declared... " >&6; }
18643 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18644   $as_echo_n "(cached) " >&6
18645 else
18646   cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h.  */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h.  */
18652 $ac_includes_default
18653 int
18654 main ()
18655 {
18656 #ifndef snprintf
18657   (void) snprintf;
18658 #endif
18659
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext
18665 if { (ac_try="$ac_compile"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18671 $as_echo "$ac_try_echo") >&5
18672   (eval "$ac_compile") 2>conftest.er1
18673   ac_status=$?
18674   grep -v '^ *+' conftest.er1 >conftest.err
18675   rm -f conftest.er1
18676   cat conftest.err >&5
18677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); } && {
18679          test -z "$ac_c_werror_flag" ||
18680          test ! -s conftest.err
18681        } && test -s conftest.$ac_objext; then
18682   ac_cv_have_decl_snprintf=yes
18683 else
18684   $as_echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687         ac_cv_have_decl_snprintf=no
18688 fi
18689
18690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18691 fi
18692 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18693 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18694 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18695
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_DECL_SNPRINTF 1
18698 _ACEOF
18699
18700
18701 else
18702   cat >>confdefs.h <<_ACEOF
18703 #define HAVE_DECL_SNPRINTF 0
18704 _ACEOF
18705
18706
18707 fi
18708 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18709 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18710 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18711   $as_echo_n "(cached) " >&6
18712 else
18713   cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719 $ac_includes_default
18720 int
18721 main ()
18722 {
18723 #ifndef vsnprintf
18724   (void) vsnprintf;
18725 #endif
18726
18727   ;
18728   return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735   *) ac_try_echo=$ac_try;;
18736 esac
18737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18738 $as_echo "$ac_try_echo") >&5
18739   (eval "$ac_compile") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } && {
18746          test -z "$ac_c_werror_flag" ||
18747          test ! -s conftest.err
18748        } && test -s conftest.$ac_objext; then
18749   ac_cv_have_decl_vsnprintf=yes
18750 else
18751   $as_echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754         ac_cv_have_decl_vsnprintf=no
18755 fi
18756
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 fi
18759 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18760 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18761 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18762
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_DECL_VSNPRINTF 1
18765 _ACEOF
18766
18767
18768 else
18769   cat >>confdefs.h <<_ACEOF
18770 #define HAVE_DECL_VSNPRINTF 0
18771 _ACEOF
18772
18773
18774 fi
18775
18776
18777
18778
18779 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18780 $as_echo_n "checking for isinf... " >&6; }
18781 if test "${ac_cv_func_isinf+set}" = set; then
18782   $as_echo_n "(cached) " >&6
18783 else
18784   cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h.  */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h.  */
18790
18791 #include <math.h>
18792 double glob_double;
18793
18794 int
18795 main ()
18796 {
18797 return isinf(glob_double) ? 0 : 1;
18798   ;
18799   return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext conftest$ac_exeext
18803 if { (ac_try="$ac_link"
18804 case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18809 $as_echo "$ac_try_echo") >&5
18810   (eval "$ac_link") 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } && {
18817          test -z "$ac_c_werror_flag" ||
18818          test ! -s conftest.err
18819        } && test -s conftest$ac_exeext && {
18820          test "$cross_compiling" = yes ||
18821          $as_test_x conftest$ac_exeext
18822        }; then
18823   ac_cv_func_isinf=yes
18824 else
18825   $as_echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18827
18828         ac_cv_func_isinf=no
18829 fi
18830
18831 rm -rf conftest.dSYM
18832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18833       conftest$ac_exeext conftest.$ac_ext
18834 fi
18835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18836 $as_echo "$ac_cv_func_isinf" >&6; }
18837
18838 if test $ac_cv_func_isinf = yes ; then
18839
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE_ISINF 1
18842 _ACEOF
18843
18844 else
18845   case " $LIBOBJS " in
18846   *" isinf.$ac_objext "* ) ;;
18847   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18848  ;;
18849 esac
18850
18851   # Look for a way to implement a substitute for isinf()
18852
18853
18854
18855
18856 for ac_func in fpclass fp_class fp_class_d class
18857 do
18858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18859 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18860 $as_echo_n "checking for $ac_func... " >&6; }
18861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18862   $as_echo_n "(cached) " >&6
18863 else
18864   cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h.  */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h.  */
18870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18872 #define $ac_func innocuous_$ac_func
18873
18874 /* System header to define __stub macros and hopefully few prototypes,
18875     which can conflict with char $ac_func (); below.
18876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18877     <limits.h> exists even on freestanding compilers.  */
18878
18879 #ifdef __STDC__
18880 # include <limits.h>
18881 #else
18882 # include <assert.h>
18883 #endif
18884
18885 #undef $ac_func
18886
18887 /* Override any GCC internal prototype to avoid an error.
18888    Use char because int might match the return type of a GCC
18889    builtin and then its argument prototype would still apply.  */
18890 #ifdef __cplusplus
18891 extern "C"
18892 #endif
18893 char $ac_func ();
18894 /* The GNU C library defines this for functions which it implements
18895     to always fail with ENOSYS.  Some functions are actually named
18896     something starting with __ and the normal name is an alias.  */
18897 #if defined __stub_$ac_func || defined __stub___$ac_func
18898 choke me
18899 #endif
18900
18901 int
18902 main ()
18903 {
18904 return $ac_func ();
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913   *) ac_try_echo=$ac_try;;
18914 esac
18915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917   (eval "$ac_link") 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } && {
18924          test -z "$ac_c_werror_flag" ||
18925          test ! -s conftest.err
18926        } && test -s conftest$ac_exeext && {
18927          test "$cross_compiling" = yes ||
18928          $as_test_x conftest$ac_exeext
18929        }; then
18930   eval "$as_ac_var=yes"
18931 else
18932   $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935         eval "$as_ac_var=no"
18936 fi
18937
18938 rm -rf conftest.dSYM
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940       conftest$ac_exeext conftest.$ac_ext
18941 fi
18942 ac_res=`eval 'as_val=${'$as_ac_var'}
18943                  $as_echo "$as_val"'`
18944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18945 $as_echo "$ac_res" >&6; }
18946 as_val=`eval 'as_val=${'$as_ac_var'}
18947                  $as_echo "$as_val"'`
18948    if test "x$as_val" = x""yes; then
18949   cat >>confdefs.h <<_ACEOF
18950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18951 _ACEOF
18952  break
18953 fi
18954 done
18955
18956 fi
18957
18958 # Some versions of libedit contain strlcpy(); so disregard that library while
18959 # checking for these standard libc functions.
18960 pgac_save_LIBS="$LIBS"
18961 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18978 do
18979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18981 $as_echo_n "checking for $ac_func... " >&6; }
18982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18983   $as_echo_n "(cached) " >&6
18984 else
18985   cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h.  */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h.  */
18991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18993 #define $ac_func innocuous_$ac_func
18994
18995 /* System header to define __stub macros and hopefully few prototypes,
18996     which can conflict with char $ac_func (); below.
18997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18998     <limits.h> exists even on freestanding compilers.  */
18999
19000 #ifdef __STDC__
19001 # include <limits.h>
19002 #else
19003 # include <assert.h>
19004 #endif
19005
19006 #undef $ac_func
19007
19008 /* Override any GCC internal prototype to avoid an error.
19009    Use char because int might match the return type of a GCC
19010    builtin and then its argument prototype would still apply.  */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 char $ac_func ();
19015 /* The GNU C library defines this for functions which it implements
19016     to always fail with ENOSYS.  Some functions are actually named
19017     something starting with __ and the normal name is an alias.  */
19018 #if defined __stub_$ac_func || defined __stub___$ac_func
19019 choke me
19020 #endif
19021
19022 int
19023 main ()
19024 {
19025 return $ac_func ();
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19037 $as_echo "$ac_try_echo") >&5
19038   (eval "$ac_link") 2>conftest.er1
19039   ac_status=$?
19040   grep -v '^ *+' conftest.er1 >conftest.err
19041   rm -f conftest.er1
19042   cat conftest.err >&5
19043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); } && {
19045          test -z "$ac_c_werror_flag" ||
19046          test ! -s conftest.err
19047        } && test -s conftest$ac_exeext && {
19048          test "$cross_compiling" = yes ||
19049          $as_test_x conftest$ac_exeext
19050        }; then
19051   eval "$as_ac_var=yes"
19052 else
19053   $as_echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056         eval "$as_ac_var=no"
19057 fi
19058
19059 rm -rf conftest.dSYM
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061       conftest$ac_exeext conftest.$ac_ext
19062 fi
19063 ac_res=`eval 'as_val=${'$as_ac_var'}
19064                  $as_echo "$as_val"'`
19065                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19066 $as_echo "$ac_res" >&6; }
19067 as_val=`eval 'as_val=${'$as_ac_var'}
19068                  $as_echo "$as_val"'`
19069    if test "x$as_val" = x""yes; then
19070   cat >>confdefs.h <<_ACEOF
19071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19072 _ACEOF
19073
19074 else
19075   case " $LIBOBJS " in
19076   *" $ac_func.$ac_objext "* ) ;;
19077   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19078  ;;
19079 esac
19080
19081 fi
19082 done
19083
19084
19085
19086 case $host_os in
19087
19088         # Windows uses a specialised env handler
19089         mingw*)
19090
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_UNSETENV 1
19093 _ACEOF
19094
19095                 ac_cv_func_unsetenv=yes;;
19096         *)
19097
19098 for ac_func in unsetenv
19099 do
19100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19102 $as_echo_n "checking for $ac_func... " >&6; }
19103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19104   $as_echo_n "(cached) " >&6
19105 else
19106   cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19114 #define $ac_func innocuous_$ac_func
19115
19116 /* System header to define __stub macros and hopefully few prototypes,
19117     which can conflict with char $ac_func (); below.
19118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19119     <limits.h> exists even on freestanding compilers.  */
19120
19121 #ifdef __STDC__
19122 # include <limits.h>
19123 #else
19124 # include <assert.h>
19125 #endif
19126
19127 #undef $ac_func
19128
19129 /* Override any GCC internal prototype to avoid an error.
19130    Use char because int might match the return type of a GCC
19131    builtin and then its argument prototype would still apply.  */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 char $ac_func ();
19136 /* The GNU C library defines this for functions which it implements
19137     to always fail with ENOSYS.  Some functions are actually named
19138     something starting with __ and the normal name is an alias.  */
19139 #if defined __stub_$ac_func || defined __stub___$ac_func
19140 choke me
19141 #endif
19142
19143 int
19144 main ()
19145 {
19146 return $ac_func ();
19147   ;
19148   return 0;
19149 }
19150 _ACEOF
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19158 $as_echo "$ac_try_echo") >&5
19159   (eval "$ac_link") 2>conftest.er1
19160   ac_status=$?
19161   grep -v '^ *+' conftest.er1 >conftest.err
19162   rm -f conftest.er1
19163   cat conftest.err >&5
19164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } && {
19166          test -z "$ac_c_werror_flag" ||
19167          test ! -s conftest.err
19168        } && test -s conftest$ac_exeext && {
19169          test "$cross_compiling" = yes ||
19170          $as_test_x conftest$ac_exeext
19171        }; then
19172   eval "$as_ac_var=yes"
19173 else
19174   $as_echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177         eval "$as_ac_var=no"
19178 fi
19179
19180 rm -rf conftest.dSYM
19181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19182       conftest$ac_exeext conftest.$ac_ext
19183 fi
19184 ac_res=`eval 'as_val=${'$as_ac_var'}
19185                  $as_echo "$as_val"'`
19186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19187 $as_echo "$ac_res" >&6; }
19188 as_val=`eval 'as_val=${'$as_ac_var'}
19189                  $as_echo "$as_val"'`
19190    if test "x$as_val" = x""yes; then
19191   cat >>confdefs.h <<_ACEOF
19192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19193 _ACEOF
19194
19195 else
19196   case " $LIBOBJS " in
19197   *" $ac_func.$ac_objext "* ) ;;
19198   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19199  ;;
19200 esac
19201
19202 fi
19203 done
19204
19205
19206                 ;;
19207 esac
19208
19209
19210 LIBS="$pgac_save_LIBS"
19211
19212 # System's version of getaddrinfo(), if any, may be used only if we found
19213 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
19214 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
19215 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
19216 # because we want to use our own getaddrinfo.c on Windows anyway.)
19217 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
19218
19219 for ac_func in getaddrinfo
19220 do
19221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19222 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19223 $as_echo_n "checking for $ac_func... " >&6; }
19224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19225   $as_echo_n "(cached) " >&6
19226 else
19227   cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h.  */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h.  */
19233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19235 #define $ac_func innocuous_$ac_func
19236
19237 /* System header to define __stub macros and hopefully few prototypes,
19238     which can conflict with char $ac_func (); below.
19239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19240     <limits.h> exists even on freestanding compilers.  */
19241
19242 #ifdef __STDC__
19243 # include <limits.h>
19244 #else
19245 # include <assert.h>
19246 #endif
19247
19248 #undef $ac_func
19249
19250 /* Override any GCC internal prototype to avoid an error.
19251    Use char because int might match the return type of a GCC
19252    builtin and then its argument prototype would still apply.  */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 char $ac_func ();
19257 /* The GNU C library defines this for functions which it implements
19258     to always fail with ENOSYS.  Some functions are actually named
19259     something starting with __ and the normal name is an alias.  */
19260 #if defined __stub_$ac_func || defined __stub___$ac_func
19261 choke me
19262 #endif
19263
19264 int
19265 main ()
19266 {
19267 return $ac_func ();
19268   ;
19269   return 0;
19270 }
19271 _ACEOF
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276   *) ac_try_echo=$ac_try;;
19277 esac
19278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19279 $as_echo "$ac_try_echo") >&5
19280   (eval "$ac_link") 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } && {
19287          test -z "$ac_c_werror_flag" ||
19288          test ! -s conftest.err
19289        } && test -s conftest$ac_exeext && {
19290          test "$cross_compiling" = yes ||
19291          $as_test_x conftest$ac_exeext
19292        }; then
19293   eval "$as_ac_var=yes"
19294 else
19295   $as_echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298         eval "$as_ac_var=no"
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 fi
19305 ac_res=`eval 'as_val=${'$as_ac_var'}
19306                  $as_echo "$as_val"'`
19307                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19308 $as_echo "$ac_res" >&6; }
19309 as_val=`eval 'as_val=${'$as_ac_var'}
19310                  $as_echo "$as_val"'`
19311    if test "x$as_val" = x""yes; then
19312   cat >>confdefs.h <<_ACEOF
19313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19314 _ACEOF
19315
19316 else
19317   case " $LIBOBJS " in
19318   *" $ac_func.$ac_objext "* ) ;;
19319   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19320  ;;
19321 esac
19322
19323 fi
19324 done
19325
19326
19327 else
19328   case " $LIBOBJS " in
19329   *" getaddrinfo.$ac_objext "* ) ;;
19330   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
19331  ;;
19332 esac
19333
19334 fi
19335
19336 # Similarly, use system's getopt_long() only if system provides struct option.
19337 if test x"$ac_cv_type_struct_option" = xyes ; then
19338
19339 for ac_func in getopt_long
19340 do
19341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19342 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19343 $as_echo_n "checking for $ac_func... " >&6; }
19344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19345   $as_echo_n "(cached) " >&6
19346 else
19347   cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19355 #define $ac_func innocuous_$ac_func
19356
19357 /* System header to define __stub macros and hopefully few prototypes,
19358     which can conflict with char $ac_func (); below.
19359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19360     <limits.h> exists even on freestanding compilers.  */
19361
19362 #ifdef __STDC__
19363 # include <limits.h>
19364 #else
19365 # include <assert.h>
19366 #endif
19367
19368 #undef $ac_func
19369
19370 /* Override any GCC internal prototype to avoid an error.
19371    Use char because int might match the return type of a GCC
19372    builtin and then its argument prototype would still apply.  */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char $ac_func ();
19377 /* The GNU C library defines this for functions which it implements
19378     to always fail with ENOSYS.  Some functions are actually named
19379     something starting with __ and the normal name is an alias.  */
19380 #if defined __stub_$ac_func || defined __stub___$ac_func
19381 choke me
19382 #endif
19383
19384 int
19385 main ()
19386 {
19387 return $ac_func ();
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 rm -f conftest.$ac_objext conftest$ac_exeext
19393 if { (ac_try="$ac_link"
19394 case "(($ac_try" in
19395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396   *) ac_try_echo=$ac_try;;
19397 esac
19398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400   (eval "$ac_link") 2>conftest.er1
19401   ac_status=$?
19402   grep -v '^ *+' conftest.er1 >conftest.err
19403   rm -f conftest.er1
19404   cat conftest.err >&5
19405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } && {
19407          test -z "$ac_c_werror_flag" ||
19408          test ! -s conftest.err
19409        } && test -s conftest$ac_exeext && {
19410          test "$cross_compiling" = yes ||
19411          $as_test_x conftest$ac_exeext
19412        }; then
19413   eval "$as_ac_var=yes"
19414 else
19415   $as_echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418         eval "$as_ac_var=no"
19419 fi
19420
19421 rm -rf conftest.dSYM
19422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19423       conftest$ac_exeext conftest.$ac_ext
19424 fi
19425 ac_res=`eval 'as_val=${'$as_ac_var'}
19426                  $as_echo "$as_val"'`
19427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19428 $as_echo "$ac_res" >&6; }
19429 as_val=`eval 'as_val=${'$as_ac_var'}
19430                  $as_echo "$as_val"'`
19431    if test "x$as_val" = x""yes; then
19432   cat >>confdefs.h <<_ACEOF
19433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19434 _ACEOF
19435
19436 else
19437   case " $LIBOBJS " in
19438   *" $ac_func.$ac_objext "* ) ;;
19439   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19440  ;;
19441 esac
19442
19443 fi
19444 done
19445
19446
19447 else
19448   case " $LIBOBJS " in
19449   *" getopt_long.$ac_objext "* ) ;;
19450   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19451  ;;
19452 esac
19453
19454 fi
19455
19456 # Solaris' getopt() doesn't do what we want for long options, so always use
19457 # our version on that platform.
19458 if test "$PORTNAME" = "solaris"; then
19459   case " $LIBOBJS " in
19460   *" getopt.$ac_objext "* ) ;;
19461   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19462  ;;
19463 esac
19464
19465 fi
19466
19467 # Cygwin's erand48() is broken (always returns zero) in some releases,
19468 # so force use of ours.
19469 if test "$PORTNAME" = "cygwin"; then
19470   case " $LIBOBJS " in
19471   *" erand48.$ac_objext "* ) ;;
19472   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19473  ;;
19474 esac
19475
19476 fi
19477
19478 # Win32 support
19479 if test "$PORTNAME" = "win32"; then
19480
19481 for ac_func in gettimeofday
19482 do
19483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19484 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19485 $as_echo_n "checking for $ac_func... " >&6; }
19486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19487   $as_echo_n "(cached) " >&6
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19497 #define $ac_func innocuous_$ac_func
19498
19499 /* System header to define __stub macros and hopefully few prototypes,
19500     which can conflict with char $ac_func (); below.
19501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19502     <limits.h> exists even on freestanding compilers.  */
19503
19504 #ifdef __STDC__
19505 # include <limits.h>
19506 #else
19507 # include <assert.h>
19508 #endif
19509
19510 #undef $ac_func
19511
19512 /* Override any GCC internal prototype to avoid an error.
19513    Use char because int might match the return type of a GCC
19514    builtin and then its argument prototype would still apply.  */
19515 #ifdef __cplusplus
19516 extern "C"
19517 #endif
19518 char $ac_func ();
19519 /* The GNU C library defines this for functions which it implements
19520     to always fail with ENOSYS.  Some functions are actually named
19521     something starting with __ and the normal name is an alias.  */
19522 #if defined __stub_$ac_func || defined __stub___$ac_func
19523 choke me
19524 #endif
19525
19526 int
19527 main ()
19528 {
19529 return $ac_func ();
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19541 $as_echo "$ac_try_echo") >&5
19542   (eval "$ac_link") 2>conftest.er1
19543   ac_status=$?
19544   grep -v '^ *+' conftest.er1 >conftest.err
19545   rm -f conftest.er1
19546   cat conftest.err >&5
19547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); } && {
19549          test -z "$ac_c_werror_flag" ||
19550          test ! -s conftest.err
19551        } && test -s conftest$ac_exeext && {
19552          test "$cross_compiling" = yes ||
19553          $as_test_x conftest$ac_exeext
19554        }; then
19555   eval "$as_ac_var=yes"
19556 else
19557   $as_echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560         eval "$as_ac_var=no"
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 fi
19567 ac_res=`eval 'as_val=${'$as_ac_var'}
19568                  $as_echo "$as_val"'`
19569                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19570 $as_echo "$ac_res" >&6; }
19571 as_val=`eval 'as_val=${'$as_ac_var'}
19572                  $as_echo "$as_val"'`
19573    if test "x$as_val" = x""yes; then
19574   cat >>confdefs.h <<_ACEOF
19575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19576 _ACEOF
19577
19578 else
19579   case " $LIBOBJS " in
19580   *" $ac_func.$ac_objext "* ) ;;
19581   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19582  ;;
19583 esac
19584
19585 fi
19586 done
19587
19588
19589 case " $LIBOBJS " in
19590   *" kill.$ac_objext "* ) ;;
19591   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19592  ;;
19593 esac
19594
19595 case " $LIBOBJS " in
19596   *" open.$ac_objext "* ) ;;
19597   *) LIBOBJS="$LIBOBJS open.$ac_objext"
19598  ;;
19599 esac
19600
19601 case " $LIBOBJS " in
19602   *" win32env.$ac_objext "* ) ;;
19603   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19604  ;;
19605 esac
19606
19607 case " $LIBOBJS " in
19608   *" win32error.$ac_objext "* ) ;;
19609   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19610  ;;
19611 esac
19612
19613
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_SYMLINK 1
19616 _ACEOF
19617
19618 fi
19619
19620 if test "$with_readline" = yes; then
19621   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19622 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 #include <stdio.h>
19630 #ifdef HAVE_READLINE_READLINE_H
19631 # include <readline/readline.h>
19632 #elif defined(HAVE_READLINE_H)
19633 # include <readline.h>
19634 #endif
19635
19636 int
19637 main ()
19638 {
19639 rl_completion_append_character = 'x';
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (ac_try="$ac_link"
19646 case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19651 $as_echo "$ac_try_echo") >&5
19652   (eval "$ac_link") 2>conftest.er1
19653   ac_status=$?
19654   grep -v '^ *+' conftest.er1 >conftest.err
19655   rm -f conftest.er1
19656   cat conftest.err >&5
19657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); } && {
19659          test -z "$ac_c_werror_flag" ||
19660          test ! -s conftest.err
19661        } && test -s conftest$ac_exeext && {
19662          test "$cross_compiling" = yes ||
19663          $as_test_x conftest$ac_exeext
19664        }; then
19665   { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19670 _ACEOF
19671
19672 else
19673   $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676         { $as_echo "$as_me:$LINENO: result: no" >&5
19677 $as_echo "no" >&6; }
19678 fi
19679
19680 rm -rf conftest.dSYM
19681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682       conftest$ac_exeext conftest.$ac_ext
19683
19684
19685 for ac_func in rl_completion_matches rl_filename_completion_function
19686 do
19687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19688 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19689 $as_echo_n "checking for $ac_func... " >&6; }
19690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19691   $as_echo_n "(cached) " >&6
19692 else
19693   cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19701 #define $ac_func innocuous_$ac_func
19702
19703 /* System header to define __stub macros and hopefully few prototypes,
19704     which can conflict with char $ac_func (); below.
19705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19706     <limits.h> exists even on freestanding compilers.  */
19707
19708 #ifdef __STDC__
19709 # include <limits.h>
19710 #else
19711 # include <assert.h>
19712 #endif
19713
19714 #undef $ac_func
19715
19716 /* Override any GCC internal prototype to avoid an error.
19717    Use char because int might match the return type of a GCC
19718    builtin and then its argument prototype would still apply.  */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char $ac_func ();
19723 /* The GNU C library defines this for functions which it implements
19724     to always fail with ENOSYS.  Some functions are actually named
19725     something starting with __ and the normal name is an alias.  */
19726 #if defined __stub_$ac_func || defined __stub___$ac_func
19727 choke me
19728 #endif
19729
19730 int
19731 main ()
19732 {
19733 return $ac_func ();
19734   ;
19735   return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742   *) ac_try_echo=$ac_try;;
19743 esac
19744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19745 $as_echo "$ac_try_echo") >&5
19746   (eval "$ac_link") 2>conftest.er1
19747   ac_status=$?
19748   grep -v '^ *+' conftest.er1 >conftest.err
19749   rm -f conftest.er1
19750   cat conftest.err >&5
19751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } && {
19753          test -z "$ac_c_werror_flag" ||
19754          test ! -s conftest.err
19755        } && test -s conftest$ac_exeext && {
19756          test "$cross_compiling" = yes ||
19757          $as_test_x conftest$ac_exeext
19758        }; then
19759   eval "$as_ac_var=yes"
19760 else
19761   $as_echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764         eval "$as_ac_var=no"
19765 fi
19766
19767 rm -rf conftest.dSYM
19768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19769       conftest$ac_exeext conftest.$ac_ext
19770 fi
19771 ac_res=`eval 'as_val=${'$as_ac_var'}
19772                  $as_echo "$as_val"'`
19773                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19774 $as_echo "$ac_res" >&6; }
19775 as_val=`eval 'as_val=${'$as_ac_var'}
19776                  $as_echo "$as_val"'`
19777    if test "x$as_val" = x""yes; then
19778   cat >>confdefs.h <<_ACEOF
19779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19780 _ACEOF
19781
19782 fi
19783 done
19784
19785
19786
19787 for ac_func in append_history history_truncate_file
19788 do
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 $as_echo_n "checking for $ac_func... " >&6; }
19792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19793   $as_echo_n "(cached) " >&6
19794 else
19795   cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19803 #define $ac_func innocuous_$ac_func
19804
19805 /* System header to define __stub macros and hopefully few prototypes,
19806     which can conflict with char $ac_func (); below.
19807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808     <limits.h> exists even on freestanding compilers.  */
19809
19810 #ifdef __STDC__
19811 # include <limits.h>
19812 #else
19813 # include <assert.h>
19814 #endif
19815
19816 #undef $ac_func
19817
19818 /* Override any GCC internal prototype to avoid an error.
19819    Use char because int might match the return type of a GCC
19820    builtin and then its argument prototype would still apply.  */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char $ac_func ();
19825 /* The GNU C library defines this for functions which it implements
19826     to always fail with ENOSYS.  Some functions are actually named
19827     something starting with __ and the normal name is an alias.  */
19828 #if defined __stub_$ac_func || defined __stub___$ac_func
19829 choke me
19830 #endif
19831
19832 int
19833 main ()
19834 {
19835 return $ac_func ();
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848   (eval "$ac_link") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } && {
19855          test -z "$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        } && test -s conftest$ac_exeext && {
19858          test "$cross_compiling" = yes ||
19859          $as_test_x conftest$ac_exeext
19860        }; then
19861   eval "$as_ac_var=yes"
19862 else
19863   $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866         eval "$as_ac_var=no"
19867 fi
19868
19869 rm -rf conftest.dSYM
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871       conftest$ac_exeext conftest.$ac_ext
19872 fi
19873 ac_res=`eval 'as_val=${'$as_ac_var'}
19874                  $as_echo "$as_val"'`
19875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19876 $as_echo "$ac_res" >&6; }
19877 as_val=`eval 'as_val=${'$as_ac_var'}
19878                  $as_echo "$as_val"'`
19879    if test "x$as_val" = x""yes; then
19880   cat >>confdefs.h <<_ACEOF
19881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19882 _ACEOF
19883
19884 fi
19885 done
19886
19887 fi
19888
19889
19890 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19891 $as_echo_n "checking for sigsetjmp... " >&6; }
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 #include <setjmp.h>
19899 int
19900 main ()
19901 {
19902 sigjmp_buf x; sigsetjmp(x, 1);
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19914 $as_echo "$ac_try_echo") >&5
19915   (eval "$ac_link") 2>conftest.er1
19916   ac_status=$?
19917   grep -v '^ *+' conftest.er1 >conftest.err
19918   rm -f conftest.er1
19919   cat conftest.err >&5
19920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); } && {
19922          test -z "$ac_c_werror_flag" ||
19923          test ! -s conftest.err
19924        } && test -s conftest$ac_exeext && {
19925          test "$cross_compiling" = yes ||
19926          $as_test_x conftest$ac_exeext
19927        }; then
19928
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_SIGSETJMP 1
19931 _ACEOF
19932
19933 { $as_echo "$as_me:$LINENO: result: yes" >&5
19934 $as_echo "yes" >&6; }
19935 else
19936   $as_echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939         { $as_echo "$as_me:$LINENO: result: no" >&5
19940 $as_echo "no" >&6; }
19941 fi
19942
19943 rm -rf conftest.dSYM
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945       conftest$ac_exeext conftest.$ac_ext
19946
19947 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19948 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19949 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19950   $as_echo_n "(cached) " >&6
19951 else
19952   cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h.  */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h.  */
19958 #include <signal.h>
19959 /* NetBSD declares sys_siglist in unistd.h.  */
19960 #ifdef HAVE_UNISTD_H
19961 # include <unistd.h>
19962 #endif
19963
19964
19965 int
19966 main ()
19967 {
19968 #ifndef sys_siglist
19969   (void) sys_siglist;
19970 #endif
19971
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983 $as_echo "$ac_try_echo") >&5
19984   (eval "$ac_compile") 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } && {
19991          test -z "$ac_c_werror_flag" ||
19992          test ! -s conftest.err
19993        } && test -s conftest.$ac_objext; then
19994   ac_cv_have_decl_sys_siglist=yes
19995 else
19996   $as_echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999         ac_cv_have_decl_sys_siglist=no
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 fi
20004 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
20005 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
20006 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
20007
20008 cat >>confdefs.h <<_ACEOF
20009 #define HAVE_DECL_SYS_SIGLIST 1
20010 _ACEOF
20011
20012
20013 else
20014   cat >>confdefs.h <<_ACEOF
20015 #define HAVE_DECL_SYS_SIGLIST 0
20016 _ACEOF
20017
20018
20019 fi
20020
20021
20022
20023
20024 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
20025 $as_echo_n "checking for syslog... " >&6; }
20026 if test "${ac_cv_func_syslog+set}" = set; then
20027   $as_echo_n "(cached) " >&6
20028 else
20029   cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
20036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20037 #define syslog innocuous_syslog
20038
20039 /* System header to define __stub macros and hopefully few prototypes,
20040     which can conflict with char syslog (); below.
20041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042     <limits.h> exists even on freestanding compilers.  */
20043
20044 #ifdef __STDC__
20045 # include <limits.h>
20046 #else
20047 # include <assert.h>
20048 #endif
20049
20050 #undef syslog
20051
20052 /* Override any GCC internal prototype to avoid an error.
20053    Use char because int might match the return type of a GCC
20054    builtin and then its argument prototype would still apply.  */
20055 #ifdef __cplusplus
20056 extern "C"
20057 #endif
20058 char syslog ();
20059 /* The GNU C library defines this for functions which it implements
20060     to always fail with ENOSYS.  Some functions are actually named
20061     something starting with __ and the normal name is an alias.  */
20062 #if defined __stub_syslog || defined __stub___syslog
20063 choke me
20064 #endif
20065
20066 int
20067 main ()
20068 {
20069 return syslog ();
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082   (eval "$ac_link") 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } && {
20089          test -z "$ac_c_werror_flag" ||
20090          test ! -s conftest.err
20091        } && test -s conftest$ac_exeext && {
20092          test "$cross_compiling" = yes ||
20093          $as_test_x conftest$ac_exeext
20094        }; then
20095   ac_cv_func_syslog=yes
20096 else
20097   $as_echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100         ac_cv_func_syslog=no
20101 fi
20102
20103 rm -rf conftest.dSYM
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105       conftest$ac_exeext conftest.$ac_ext
20106 fi
20107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
20108 $as_echo "$ac_cv_func_syslog" >&6; }
20109 if test "x$ac_cv_func_syslog" = x""yes; then
20110   if test "${ac_cv_header_syslog_h+set}" = set; then
20111   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
20112 $as_echo_n "checking for syslog.h... " >&6; }
20113 if test "${ac_cv_header_syslog_h+set}" = set; then
20114   $as_echo_n "(cached) " >&6
20115 fi
20116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
20117 $as_echo "$ac_cv_header_syslog_h" >&6; }
20118 else
20119   # Is the header compilable?
20120 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
20121 $as_echo_n "checking syslog.h usability... " >&6; }
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 $ac_includes_default
20129 #include <syslog.h>
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20138 $as_echo "$ac_try_echo") >&5
20139   (eval "$ac_compile") 2>conftest.er1
20140   ac_status=$?
20141   grep -v '^ *+' conftest.er1 >conftest.err
20142   rm -f conftest.er1
20143   cat conftest.err >&5
20144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } && {
20146          test -z "$ac_c_werror_flag" ||
20147          test ! -s conftest.err
20148        } && test -s conftest.$ac_objext; then
20149   ac_header_compiler=yes
20150 else
20151   $as_echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154         ac_header_compiler=no
20155 fi
20156
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20159 $as_echo "$ac_header_compiler" >&6; }
20160
20161 # Is the header present?
20162 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
20163 $as_echo_n "checking syslog.h presence... " >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170 #include <syslog.h>
20171 _ACEOF
20172 if { (ac_try="$ac_cpp conftest.$ac_ext"
20173 case "(($ac_try" in
20174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175   *) ac_try_echo=$ac_try;;
20176 esac
20177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20178 $as_echo "$ac_try_echo") >&5
20179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20180   ac_status=$?
20181   grep -v '^ *+' conftest.er1 >conftest.err
20182   rm -f conftest.er1
20183   cat conftest.err >&5
20184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); } >/dev/null && {
20186          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20187          test ! -s conftest.err
20188        }; then
20189   ac_header_preproc=yes
20190 else
20191   $as_echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194   ac_header_preproc=no
20195 fi
20196
20197 rm -f conftest.err conftest.$ac_ext
20198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20199 $as_echo "$ac_header_preproc" >&6; }
20200
20201 # So?  What about this header?
20202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203   yes:no: )
20204     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
20205 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20206     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
20207 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
20208     ac_header_preproc=yes
20209     ;;
20210   no:yes:* )
20211     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
20212 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
20213     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
20214 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
20215     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
20216 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
20217     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
20218 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20219     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
20220 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
20221     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
20222 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
20223     ( cat <<\_ASBOX
20224 ## ---------------------------------------- ##
20225 ## Report this to pgsql-bugs@postgresql.org ##
20226 ## ---------------------------------------- ##
20227 _ASBOX
20228      ) | sed "s/^/$as_me: WARNING:     /" >&2
20229     ;;
20230 esac
20231 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
20232 $as_echo_n "checking for syslog.h... " >&6; }
20233 if test "${ac_cv_header_syslog_h+set}" = set; then
20234   $as_echo_n "(cached) " >&6
20235 else
20236   ac_cv_header_syslog_h=$ac_header_preproc
20237 fi
20238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
20239 $as_echo "$ac_cv_header_syslog_h" >&6; }
20240
20241 fi
20242 if test "x$ac_cv_header_syslog_h" = x""yes; then
20243
20244 cat >>confdefs.h <<\_ACEOF
20245 #define HAVE_SYSLOG 1
20246 _ACEOF
20247
20248 fi
20249
20250
20251 fi
20252
20253
20254 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
20255 $as_echo_n "checking for opterr... " >&6; }
20256 if test "${pgac_cv_var_int_opterr+set}" = set; then
20257   $as_echo_n "(cached) " >&6
20258 else
20259   cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265 #include <unistd.h>
20266 int
20267 main ()
20268 {
20269 extern int opterr; opterr = 1;
20270   ;
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20281 $as_echo "$ac_try_echo") >&5
20282   (eval "$ac_link") 2>conftest.er1
20283   ac_status=$?
20284   grep -v '^ *+' conftest.er1 >conftest.err
20285   rm -f conftest.er1
20286   cat conftest.err >&5
20287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } && {
20289          test -z "$ac_c_werror_flag" ||
20290          test ! -s conftest.err
20291        } && test -s conftest$ac_exeext && {
20292          test "$cross_compiling" = yes ||
20293          $as_test_x conftest$ac_exeext
20294        }; then
20295   pgac_cv_var_int_opterr=yes
20296 else
20297   $as_echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         pgac_cv_var_int_opterr=no
20301 fi
20302
20303 rm -rf conftest.dSYM
20304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20305       conftest$ac_exeext conftest.$ac_ext
20306 fi
20307 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
20308 $as_echo "$pgac_cv_var_int_opterr" >&6; }
20309 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
20310
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_INT_OPTERR 1
20313 _ACEOF
20314
20315 fi
20316
20317 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
20318 $as_echo_n "checking for optreset... " >&6; }
20319 if test "${pgac_cv_var_int_optreset+set}" = set; then
20320   $as_echo_n "(cached) " >&6
20321 else
20322   cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328 #include <unistd.h>
20329 int
20330 main ()
20331 {
20332 extern int optreset; optreset = 1;
20333   ;
20334   return 0;
20335 }
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20344 $as_echo "$ac_try_echo") >&5
20345   (eval "$ac_link") 2>conftest.er1
20346   ac_status=$?
20347   grep -v '^ *+' conftest.er1 >conftest.err
20348   rm -f conftest.er1
20349   cat conftest.err >&5
20350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); } && {
20352          test -z "$ac_c_werror_flag" ||
20353          test ! -s conftest.err
20354        } && test -s conftest$ac_exeext && {
20355          test "$cross_compiling" = yes ||
20356          $as_test_x conftest$ac_exeext
20357        }; then
20358   pgac_cv_var_int_optreset=yes
20359 else
20360   $as_echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363         pgac_cv_var_int_optreset=no
20364 fi
20365
20366 rm -rf conftest.dSYM
20367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20368       conftest$ac_exeext conftest.$ac_ext
20369 fi
20370 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
20371 $as_echo "$pgac_cv_var_int_optreset" >&6; }
20372 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
20373
20374 cat >>confdefs.h <<\_ACEOF
20375 #define HAVE_INT_OPTRESET 1
20376 _ACEOF
20377
20378 fi
20379
20380
20381
20382 for ac_func in strtoll strtoq
20383 do
20384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20386 $as_echo_n "checking for $ac_func... " >&6; }
20387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20388   $as_echo_n "(cached) " >&6
20389 else
20390   cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20398 #define $ac_func innocuous_$ac_func
20399
20400 /* System header to define __stub macros and hopefully few prototypes,
20401     which can conflict with char $ac_func (); below.
20402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20403     <limits.h> exists even on freestanding compilers.  */
20404
20405 #ifdef __STDC__
20406 # include <limits.h>
20407 #else
20408 # include <assert.h>
20409 #endif
20410
20411 #undef $ac_func
20412
20413 /* Override any GCC internal prototype to avoid an error.
20414    Use char because int might match the return type of a GCC
20415    builtin and then its argument prototype would still apply.  */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char $ac_func ();
20420 /* The GNU C library defines this for functions which it implements
20421     to always fail with ENOSYS.  Some functions are actually named
20422     something starting with __ and the normal name is an alias.  */
20423 #if defined __stub_$ac_func || defined __stub___$ac_func
20424 choke me
20425 #endif
20426
20427 int
20428 main ()
20429 {
20430 return $ac_func ();
20431   ;
20432   return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext conftest$ac_exeext
20436 if { (ac_try="$ac_link"
20437 case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20442 $as_echo "$ac_try_echo") >&5
20443   (eval "$ac_link") 2>conftest.er1
20444   ac_status=$?
20445   grep -v '^ *+' conftest.er1 >conftest.err
20446   rm -f conftest.er1
20447   cat conftest.err >&5
20448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); } && {
20450          test -z "$ac_c_werror_flag" ||
20451          test ! -s conftest.err
20452        } && test -s conftest$ac_exeext && {
20453          test "$cross_compiling" = yes ||
20454          $as_test_x conftest$ac_exeext
20455        }; then
20456   eval "$as_ac_var=yes"
20457 else
20458   $as_echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461         eval "$as_ac_var=no"
20462 fi
20463
20464 rm -rf conftest.dSYM
20465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20466       conftest$ac_exeext conftest.$ac_ext
20467 fi
20468 ac_res=`eval 'as_val=${'$as_ac_var'}
20469                  $as_echo "$as_val"'`
20470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20471 $as_echo "$ac_res" >&6; }
20472 as_val=`eval 'as_val=${'$as_ac_var'}
20473                  $as_echo "$as_val"'`
20474    if test "x$as_val" = x""yes; then
20475   cat >>confdefs.h <<_ACEOF
20476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20477 _ACEOF
20478  break
20479 fi
20480 done
20481
20482
20483
20484 for ac_func in strtoull strtouq
20485 do
20486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20487 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20488 $as_echo_n "checking for $ac_func... " >&6; }
20489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20490   $as_echo_n "(cached) " >&6
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20500 #define $ac_func innocuous_$ac_func
20501
20502 /* System header to define __stub macros and hopefully few prototypes,
20503     which can conflict with char $ac_func (); below.
20504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20505     <limits.h> exists even on freestanding compilers.  */
20506
20507 #ifdef __STDC__
20508 # include <limits.h>
20509 #else
20510 # include <assert.h>
20511 #endif
20512
20513 #undef $ac_func
20514
20515 /* Override any GCC internal prototype to avoid an error.
20516    Use char because int might match the return type of a GCC
20517    builtin and then its argument prototype would still apply.  */
20518 #ifdef __cplusplus
20519 extern "C"
20520 #endif
20521 char $ac_func ();
20522 /* The GNU C library defines this for functions which it implements
20523     to always fail with ENOSYS.  Some functions are actually named
20524     something starting with __ and the normal name is an alias.  */
20525 #if defined __stub_$ac_func || defined __stub___$ac_func
20526 choke me
20527 #endif
20528
20529 int
20530 main ()
20531 {
20532 return $ac_func ();
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20544 $as_echo "$ac_try_echo") >&5
20545   (eval "$ac_link") 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } && {
20552          test -z "$ac_c_werror_flag" ||
20553          test ! -s conftest.err
20554        } && test -s conftest$ac_exeext && {
20555          test "$cross_compiling" = yes ||
20556          $as_test_x conftest$ac_exeext
20557        }; then
20558   eval "$as_ac_var=yes"
20559 else
20560   $as_echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563         eval "$as_ac_var=no"
20564 fi
20565
20566 rm -rf conftest.dSYM
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568       conftest$ac_exeext conftest.$ac_ext
20569 fi
20570 ac_res=`eval 'as_val=${'$as_ac_var'}
20571                  $as_echo "$as_val"'`
20572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20573 $as_echo "$ac_res" >&6; }
20574 as_val=`eval 'as_val=${'$as_ac_var'}
20575                  $as_echo "$as_val"'`
20576    if test "x$as_val" = x""yes; then
20577   cat >>confdefs.h <<_ACEOF
20578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20579 _ACEOF
20580  break
20581 fi
20582 done
20583
20584
20585 # Check for one of atexit() or on_exit()
20586
20587 for ac_func in atexit
20588 do
20589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20590 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20591 $as_echo_n "checking for $ac_func... " >&6; }
20592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20593   $as_echo_n "(cached) " >&6
20594 else
20595   cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20603 #define $ac_func innocuous_$ac_func
20604
20605 /* System header to define __stub macros and hopefully few prototypes,
20606     which can conflict with char $ac_func (); below.
20607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20608     <limits.h> exists even on freestanding compilers.  */
20609
20610 #ifdef __STDC__
20611 # include <limits.h>
20612 #else
20613 # include <assert.h>
20614 #endif
20615
20616 #undef $ac_func
20617
20618 /* Override any GCC internal prototype to avoid an error.
20619    Use char because int might match the return type of a GCC
20620    builtin and then its argument prototype would still apply.  */
20621 #ifdef __cplusplus
20622 extern "C"
20623 #endif
20624 char $ac_func ();
20625 /* The GNU C library defines this for functions which it implements
20626     to always fail with ENOSYS.  Some functions are actually named
20627     something starting with __ and the normal name is an alias.  */
20628 #if defined __stub_$ac_func || defined __stub___$ac_func
20629 choke me
20630 #endif
20631
20632 int
20633 main ()
20634 {
20635 return $ac_func ();
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext conftest$ac_exeext
20641 if { (ac_try="$ac_link"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647 $as_echo "$ac_try_echo") >&5
20648   (eval "$ac_link") 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } && {
20655          test -z "$ac_c_werror_flag" ||
20656          test ! -s conftest.err
20657        } && test -s conftest$ac_exeext && {
20658          test "$cross_compiling" = yes ||
20659          $as_test_x conftest$ac_exeext
20660        }; then
20661   eval "$as_ac_var=yes"
20662 else
20663   $as_echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20665
20666         eval "$as_ac_var=no"
20667 fi
20668
20669 rm -rf conftest.dSYM
20670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20671       conftest$ac_exeext conftest.$ac_ext
20672 fi
20673 ac_res=`eval 'as_val=${'$as_ac_var'}
20674                  $as_echo "$as_val"'`
20675                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20676 $as_echo "$ac_res" >&6; }
20677 as_val=`eval 'as_val=${'$as_ac_var'}
20678                  $as_echo "$as_val"'`
20679    if test "x$as_val" = x""yes; then
20680   cat >>confdefs.h <<_ACEOF
20681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20682 _ACEOF
20683
20684 else
20685
20686 for ac_func in on_exit
20687 do
20688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20690 $as_echo_n "checking for $ac_func... " >&6; }
20691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20692   $as_echo_n "(cached) " >&6
20693 else
20694   cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20702 #define $ac_func innocuous_$ac_func
20703
20704 /* System header to define __stub macros and hopefully few prototypes,
20705     which can conflict with char $ac_func (); below.
20706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20707     <limits.h> exists even on freestanding compilers.  */
20708
20709 #ifdef __STDC__
20710 # include <limits.h>
20711 #else
20712 # include <assert.h>
20713 #endif
20714
20715 #undef $ac_func
20716
20717 /* Override any GCC internal prototype to avoid an error.
20718    Use char because int might match the return type of a GCC
20719    builtin and then its argument prototype would still apply.  */
20720 #ifdef __cplusplus
20721 extern "C"
20722 #endif
20723 char $ac_func ();
20724 /* The GNU C library defines this for functions which it implements
20725     to always fail with ENOSYS.  Some functions are actually named
20726     something starting with __ and the normal name is an alias.  */
20727 #if defined __stub_$ac_func || defined __stub___$ac_func
20728 choke me
20729 #endif
20730
20731 int
20732 main ()
20733 {
20734 return $ac_func ();
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20746 $as_echo "$ac_try_echo") >&5
20747   (eval "$ac_link") 2>conftest.er1
20748   ac_status=$?
20749   grep -v '^ *+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); } && {
20754          test -z "$ac_c_werror_flag" ||
20755          test ! -s conftest.err
20756        } && test -s conftest$ac_exeext && {
20757          test "$cross_compiling" = yes ||
20758          $as_test_x conftest$ac_exeext
20759        }; then
20760   eval "$as_ac_var=yes"
20761 else
20762   $as_echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765         eval "$as_ac_var=no"
20766 fi
20767
20768 rm -rf conftest.dSYM
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770       conftest$ac_exeext conftest.$ac_ext
20771 fi
20772 ac_res=`eval 'as_val=${'$as_ac_var'}
20773                  $as_echo "$as_val"'`
20774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20775 $as_echo "$ac_res" >&6; }
20776 as_val=`eval 'as_val=${'$as_ac_var'}
20777                  $as_echo "$as_val"'`
20778    if test "x$as_val" = x""yes; then
20779   cat >>confdefs.h <<_ACEOF
20780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20781 _ACEOF
20782
20783 else
20784   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20785 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20786    { (exit 1); exit 1; }; }
20787 fi
20788 done
20789
20790 fi
20791 done
20792
20793
20794
20795 for ac_func in fseeko
20796 do
20797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20798 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20799 $as_echo_n "checking for $ac_func... " >&6; }
20800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20801   $as_echo_n "(cached) " >&6
20802 else
20803   cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h.  */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h.  */
20809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20811 #define $ac_func innocuous_$ac_func
20812
20813 /* System header to define __stub macros and hopefully few prototypes,
20814     which can conflict with char $ac_func (); below.
20815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20816     <limits.h> exists even on freestanding compilers.  */
20817
20818 #ifdef __STDC__
20819 # include <limits.h>
20820 #else
20821 # include <assert.h>
20822 #endif
20823
20824 #undef $ac_func
20825
20826 /* Override any GCC internal prototype to avoid an error.
20827    Use char because int might match the return type of a GCC
20828    builtin and then its argument prototype would still apply.  */
20829 #ifdef __cplusplus
20830 extern "C"
20831 #endif
20832 char $ac_func ();
20833 /* The GNU C library defines this for functions which it implements
20834     to always fail with ENOSYS.  Some functions are actually named
20835     something starting with __ and the normal name is an alias.  */
20836 #if defined __stub_$ac_func || defined __stub___$ac_func
20837 choke me
20838 #endif
20839
20840 int
20841 main ()
20842 {
20843 return $ac_func ();
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20855 $as_echo "$ac_try_echo") >&5
20856   (eval "$ac_link") 2>conftest.er1
20857   ac_status=$?
20858   grep -v '^ *+' conftest.er1 >conftest.err
20859   rm -f conftest.er1
20860   cat conftest.err >&5
20861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } && {
20863          test -z "$ac_c_werror_flag" ||
20864          test ! -s conftest.err
20865        } && test -s conftest$ac_exeext && {
20866          test "$cross_compiling" = yes ||
20867          $as_test_x conftest$ac_exeext
20868        }; then
20869   eval "$as_ac_var=yes"
20870 else
20871   $as_echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874         eval "$as_ac_var=no"
20875 fi
20876
20877 rm -rf conftest.dSYM
20878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20879       conftest$ac_exeext conftest.$ac_ext
20880 fi
20881 ac_res=`eval 'as_val=${'$as_ac_var'}
20882                  $as_echo "$as_val"'`
20883                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20884 $as_echo "$ac_res" >&6; }
20885 as_val=`eval 'as_val=${'$as_ac_var'}
20886                  $as_echo "$as_val"'`
20887    if test "x$as_val" = x""yes; then
20888   cat >>confdefs.h <<_ACEOF
20889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20890 _ACEOF
20891
20892 else
20893   case " $LIBOBJS " in
20894   *" $ac_func.$ac_objext "* ) ;;
20895   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20896  ;;
20897 esac
20898
20899 fi
20900 done
20901
20902
20903 case $host_os in
20904         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20905         # Mingw uses macros to access Win32 API calls
20906         bsdi*|netbsd*|mingw*)
20907
20908 cat >>confdefs.h <<\_ACEOF
20909 #define HAVE_FSEEKO 1
20910 _ACEOF
20911
20912                 ac_cv_func_fseeko=yes;;
20913         *)
20914                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20915 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20916 if test "${ac_cv_sys_largefile_source+set}" = set; then
20917   $as_echo_n "(cached) " >&6
20918 else
20919   while :; do
20920   cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 #include <sys/types.h> /* for off_t */
20927      #include <stdio.h>
20928 int
20929 main ()
20930 {
20931 int (*fp) (FILE *, off_t, int) = fseeko;
20932      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (ac_try="$ac_link"
20939 case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20944 $as_echo "$ac_try_echo") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest$ac_exeext && {
20955          test "$cross_compiling" = yes ||
20956          $as_test_x conftest$ac_exeext
20957        }; then
20958   ac_cv_sys_largefile_source=no; break
20959 else
20960   $as_echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963
20964 fi
20965
20966 rm -rf conftest.dSYM
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968       conftest$ac_exeext conftest.$ac_ext
20969   cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 #define _LARGEFILE_SOURCE 1
20976 #include <sys/types.h> /* for off_t */
20977      #include <stdio.h>
20978 int
20979 main ()
20980 {
20981 int (*fp) (FILE *, off_t, int) = fseeko;
20982      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20983   ;
20984   return 0;
20985 }
20986 _ACEOF
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995   (eval "$ac_link") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && {
21002          test -z "$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        } && test -s conftest$ac_exeext && {
21005          test "$cross_compiling" = yes ||
21006          $as_test_x conftest$ac_exeext
21007        }; then
21008   ac_cv_sys_largefile_source=1; break
21009 else
21010   $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013
21014 fi
21015
21016 rm -rf conftest.dSYM
21017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21018       conftest$ac_exeext conftest.$ac_ext
21019   ac_cv_sys_largefile_source=unknown
21020   break
21021 done
21022 fi
21023 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21024 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21025 case $ac_cv_sys_largefile_source in #(
21026   no | unknown) ;;
21027   *)
21028 cat >>confdefs.h <<_ACEOF
21029 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21030 _ACEOF
21031 ;;
21032 esac
21033 rm -rf conftest*
21034
21035 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21036 # in glibc 2.1.3, but that breaks too many other things.
21037 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21038 if test $ac_cv_sys_largefile_source != unknown; then
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_FSEEKO 1
21042 _ACEOF
21043
21044 fi
21045 ;;
21046 esac
21047
21048
21049 #
21050 # Pthreads
21051 #
21052 # For each platform, we need to know about any special compile and link
21053 # libraries, and whether the normal C function names are thread-safe.
21054 # See the comment at the top of src/port/thread.c for more information.
21055 # WIN32 doesn't need the pthread tests;  it always uses threads
21056 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
21057
21058
21059
21060 ac_ext=c
21061 ac_cpp='$CPP $CPPFLAGS'
21062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21065
21066 acx_pthread_ok=no
21067
21068 # We used to check for pthread.h first, but this fails if pthread.h
21069 # requires special compiler flags (e.g. on True64 or Sequent).
21070 # It gets checked for in the link test anyway.
21071
21072 # First of all, check if the user has set any of the PTHREAD_LIBS,
21073 # etcetera environment variables, and if threads linking works using
21074 # them:
21075 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21076         save_CFLAGS="$CFLAGS"
21077         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21078         save_LIBS="$LIBS"
21079         LIBS="$PTHREAD_LIBS $LIBS"
21080         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21081 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21082         cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088
21089 /* Override any GCC internal prototype to avoid an error.
21090    Use char because int might match the return type of a GCC
21091    builtin and then its argument prototype would still apply.  */
21092 #ifdef __cplusplus
21093 extern "C"
21094 #endif
21095 char pthread_join ();
21096 int
21097 main ()
21098 {
21099 return pthread_join ();
21100   ;
21101   return 0;
21102 }
21103 _ACEOF
21104 rm -f conftest.$ac_objext conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21111 $as_echo "$ac_try_echo") >&5
21112   (eval "$ac_link") 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } && {
21119          test -z "$ac_c_werror_flag" ||
21120          test ! -s conftest.err
21121        } && test -s conftest$ac_exeext && {
21122          test "$cross_compiling" = yes ||
21123          $as_test_x conftest$ac_exeext
21124        }; then
21125   acx_pthread_ok=yes
21126 else
21127   $as_echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130
21131 fi
21132
21133 rm -rf conftest.dSYM
21134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21135       conftest$ac_exeext conftest.$ac_ext
21136         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21137 $as_echo "$acx_pthread_ok" >&6; }
21138         if test x"$acx_pthread_ok" = xno; then
21139                 PTHREAD_LIBS=""
21140                 PTHREAD_CFLAGS=""
21141         fi
21142         LIBS="$save_LIBS"
21143         CFLAGS="$save_CFLAGS"
21144 fi
21145
21146 # We must check for the threads library under a number of different
21147 # names; the ordering is very important because some systems
21148 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21149 # libraries is broken (non-POSIX).
21150
21151 # Create a list of thread flags to try.  Items starting with a "-" are
21152 # C compiler flags, and other items are library names, except for "none"
21153 # which indicates that we try without any flags at all, and "pthread-config"
21154 # which is a program returning the flags for the Pth emulation library.
21155
21156 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
21157
21158 # The ordering *is* (sometimes) important.  Some notes on the
21159 # individual items follow:
21160
21161 # pthreads: AIX (must check this before -lpthread)
21162 # none: in case threads are in libc; should be tried before -Kthread and
21163 #       other compiler flags to prevent continual compiler warnings
21164 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21165 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21166 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21167 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21168 # -pthreads: Solaris/gcc
21169 # -mthreads: Mingw32/gcc, Lynx/gcc
21170 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21171 #      doesn't hurt to check since this sometimes defines pthreads too;
21172 #      also defines -D_REENTRANT)
21173 # pthread: Linux, etcetera
21174 # --thread-safe: KAI C++
21175 # pthread-config: use pthread-config program (for GNU Pth library)
21176
21177 case "${host_cpu}-${host_os}" in
21178         *solaris*)
21179
21180         # On Solaris (at least, for some versions), libc contains stubbed
21181         # (non-functional) versions of the pthreads routines, so link-based
21182         # tests will erroneously succeed.  (We need to link with -pthread or
21183         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21184         # a function called by this macro, so we could check for that, but
21185         # who knows whether they'll stub that too in a future libc.)  So,
21186         # we'll just look for -pthreads and -lpthread first:
21187
21188         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21189         ;;
21190 esac
21191
21192 if test x"$acx_pthread_ok" = xno; then
21193 for flag in $acx_pthread_flags; do
21194
21195         tryPTHREAD_CFLAGS=""
21196         tryPTHREAD_LIBS=""
21197         case $flag in
21198                 none)
21199                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21200 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21201                 ;;
21202
21203                 -*)
21204                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21205 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21206                 tryPTHREAD_CFLAGS="$flag"
21207                 ;;
21208
21209                 pthread-config)
21210                 # skip this if we already have flags defined, for PostgreSQL
21211                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
21212                 # Extract the first word of "pthread-config", so it can be a program name with args.
21213 set dummy pthread-config; ac_word=$2
21214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21215 $as_echo_n "checking for $ac_word... " >&6; }
21216 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21217   $as_echo_n "(cached) " >&6
21218 else
21219   if test -n "$acx_pthread_config"; then
21220   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21221 else
21222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21223 for as_dir in $PATH
21224 do
21225   IFS=$as_save_IFS
21226   test -z "$as_dir" && as_dir=.
21227   for ac_exec_ext in '' $ac_executable_extensions; do
21228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21229     ac_cv_prog_acx_pthread_config="yes"
21230     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21231     break 2
21232   fi
21233 done
21234 done
21235 IFS=$as_save_IFS
21236
21237   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21238 fi
21239 fi
21240 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21241 if test -n "$acx_pthread_config"; then
21242   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21243 $as_echo "$acx_pthread_config" >&6; }
21244 else
21245   { $as_echo "$as_me:$LINENO: result: no" >&5
21246 $as_echo "no" >&6; }
21247 fi
21248
21249
21250                 if test x"$acx_pthread_config" = xno; then continue; fi
21251                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
21252                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21253                 ;;
21254
21255                 *)
21256                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21257 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21258                 tryPTHREAD_LIBS="-l$flag"
21259                 ;;
21260         esac
21261
21262         save_LIBS="$LIBS"
21263         save_CFLAGS="$CFLAGS"
21264         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
21265         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21266
21267         # Check for various functions.  We must include pthread.h,
21268         # since some functions may be macros.  (On the Sequent, we
21269         # need a special flag -Kthread to make this header compile.)
21270         # We check for pthread_join because it is in -lpthread on IRIX
21271         # while pthread_create is in libc.  We check for pthread_attr_init
21272         # due to DEC craziness with -lpthreads.  We check for
21273         # pthread_cleanup_push because it is one of the few pthread
21274         # functions on Solaris that doesn't have a non-functional libc stub.
21275         # We try pthread_create on general principles.
21276         cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282 #include <pthread.h>
21283 int
21284 main ()
21285 {
21286 pthread_t th; pthread_join(th, 0);
21287                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
21288                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (ac_try="$ac_link"
21295 case "(($ac_try" in
21296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297   *) ac_try_echo=$ac_try;;
21298 esac
21299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21300 $as_echo "$ac_try_echo") >&5
21301   (eval "$ac_link") 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && {
21308          test -z "$ac_c_werror_flag" ||
21309          test ! -s conftest.err
21310        } && test -s conftest$ac_exeext && {
21311          test "$cross_compiling" = yes ||
21312          $as_test_x conftest$ac_exeext
21313        }; then
21314   acx_pthread_ok=yes
21315 else
21316   $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         acx_pthread_ok=no
21320 fi
21321
21322 rm -rf conftest.dSYM
21323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324       conftest$ac_exeext conftest.$ac_ext
21325
21326         if test "x$acx_pthread_ok" = xyes; then
21327             # Don't use options that are ignored by the compiler.
21328             # We find them by checking stderror.
21329             cat >conftest.$ac_ext <<_ACEOF
21330 int
21331 main (int argc, char **argv)
21332 {
21333   (void) argc;
21334   (void) argv;
21335   return 0;
21336 }
21337 _ACEOF
21338             rm -f conftest.$ac_objext conftest$ac_exeext
21339             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
21340                 # we continue with more flags because Linux needs -lpthread
21341                 # for libpq builds on PostgreSQL.  The test above only
21342                 # tests for building binaries, not shared libraries.
21343                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
21344                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21345             else   acx_pthread_ok=no
21346             fi
21347         fi
21348
21349         LIBS="$save_LIBS"
21350         CFLAGS="$save_CFLAGS"
21351
21352         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21353 $as_echo "$acx_pthread_ok" >&6; }
21354 done
21355 fi
21356
21357 # Various other checks:
21358 if test "x$acx_pthread_ok" = xyes; then
21359         save_LIBS="$LIBS"
21360         LIBS="$PTHREAD_LIBS $LIBS"
21361         save_CFLAGS="$CFLAGS"
21362         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21363
21364         # Detect AIX lossage: threads are created detached by default
21365         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21366         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21367 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21368         cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 #include <pthread.h>
21375 int
21376 main ()
21377 {
21378 int attr=PTHREAD_CREATE_JOINABLE;
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (ac_try="$ac_link"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391   (eval "$ac_link") 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } && {
21398          test -z "$ac_c_werror_flag" ||
21399          test ! -s conftest.err
21400        } && test -s conftest$ac_exeext && {
21401          test "$cross_compiling" = yes ||
21402          $as_test_x conftest$ac_exeext
21403        }; then
21404   ok=PTHREAD_CREATE_JOINABLE
21405 else
21406   $as_echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409         ok=unknown
21410 fi
21411
21412 rm -rf conftest.dSYM
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414       conftest$ac_exeext conftest.$ac_ext
21415         if test x"$ok" = xunknown; then
21416                 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 #include <pthread.h>
21423 int
21424 main ()
21425 {
21426 int attr=PTHREAD_CREATE_UNDETACHED;
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21438 $as_echo "$ac_try_echo") >&5
21439   (eval "$ac_link") 2>conftest.er1
21440   ac_status=$?
21441   grep -v '^ *+' conftest.er1 >conftest.err
21442   rm -f conftest.er1
21443   cat conftest.err >&5
21444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } && {
21446          test -z "$ac_c_werror_flag" ||
21447          test ! -s conftest.err
21448        } && test -s conftest$ac_exeext && {
21449          test "$cross_compiling" = yes ||
21450          $as_test_x conftest$ac_exeext
21451        }; then
21452   ok=PTHREAD_CREATE_UNDETACHED
21453 else
21454   $as_echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457         ok=unknown
21458 fi
21459
21460 rm -rf conftest.dSYM
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462       conftest$ac_exeext conftest.$ac_ext
21463         fi
21464         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21465
21466 cat >>confdefs.h <<\_ACEOF
21467 #define PTHREAD_CREATE_JOINABLE $ok
21468 _ACEOF
21469
21470         fi
21471         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21472 $as_echo "${ok}" >&6; }
21473         if test x"$ok" = xunknown; then
21474                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21475 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21476         fi
21477
21478         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21479 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21480         flag=no
21481 # We always add these in PostgreSQL
21482 #       case "${host_cpu}-${host_os}" in
21483 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21484 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21485 #       esac
21486         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21487 $as_echo "${flag}" >&6; }
21488         if test "x$flag" != xno; then
21489                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21490         fi
21491
21492         LIBS="$save_LIBS"
21493         CFLAGS="$save_CFLAGS"
21494
21495 # Supporting cc_r would require a special CC in all places that
21496 # use libpq, and that is ugly, so we don't do it.  Users can still
21497 # define their compiler as cc_r to do thread builds of everything.
21498         # More AIX lossage: must compile with cc_r
21499         # Extract the first word of "cc_r", so it can be a program name with args.
21500 set dummy cc_r; ac_word=$2
21501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21502 $as_echo_n "checking for $ac_word... " >&6; }
21503 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21504   $as_echo_n "(cached) " >&6
21505 else
21506   if test -n "$PTHREAD_CC"; then
21507   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21508 else
21509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21510 for as_dir in $PATH
21511 do
21512   IFS=$as_save_IFS
21513   test -z "$as_dir" && as_dir=.
21514   for ac_exec_ext in '' $ac_executable_extensions; do
21515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21516     ac_cv_prog_PTHREAD_CC="cc_r"
21517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21518     break 2
21519   fi
21520 done
21521 done
21522 IFS=$as_save_IFS
21523
21524   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21525 fi
21526 fi
21527 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21528 if test -n "$PTHREAD_CC"; then
21529   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21530 $as_echo "$PTHREAD_CC" >&6; }
21531 else
21532   { $as_echo "$as_me:$LINENO: result: no" >&5
21533 $as_echo "no" >&6; }
21534 fi
21535
21536
21537 else
21538         PTHREAD_CC="$CC"
21539 fi
21540
21541
21542
21543
21544
21545 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21546 if test x"$acx_pthread_ok" = xyes; then
21547
21548 cat >>confdefs.h <<\_ACEOF
21549 #define HAVE_PTHREAD 1
21550 _ACEOF
21551
21552         :
21553 else
21554         acx_pthread_ok=no
21555
21556 fi
21557 ac_ext=c
21558 ac_cpp='$CPP $CPPFLAGS'
21559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21562
21563         # set thread flags
21564
21565 # Some platforms use these, so just define them.  They can't hurt if they
21566 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21567 # enables 5-arg getpwuid_r, among other things.
21568 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21569
21570
21571 # At this point, we don't want to muck with the compiler name for threading.
21572 # Let's see who fails, perhaps AIX.  2004-04-23
21573 if test "$PTHREAD_CC" != "$CC"; then
21574 { { $as_echo "$as_me:$LINENO: error:
21575 PostgreSQL does not support platforms that require a special compiler
21576 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
21577 $as_echo "$as_me: error:
21578 PostgreSQL does not support platforms that require a special compiler
21579 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
21580    { (exit 1); exit 1; }; }
21581 fi
21582
21583 # Check for *_r functions
21584 _CFLAGS="$CFLAGS"
21585 _LIBS="$LIBS"
21586 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21587 LIBS="$LIBS $PTHREAD_LIBS"
21588
21589 if test "$PORTNAME" != "win32"; then
21590 if test "${ac_cv_header_pthread_h+set}" = set; then
21591   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21592 $as_echo_n "checking for pthread.h... " >&6; }
21593 if test "${ac_cv_header_pthread_h+set}" = set; then
21594   $as_echo_n "(cached) " >&6
21595 fi
21596 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21597 $as_echo "$ac_cv_header_pthread_h" >&6; }
21598 else
21599   # Is the header compilable?
21600 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21601 $as_echo_n "checking pthread.h usability... " >&6; }
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609 #include <pthread.h>
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21618 $as_echo "$ac_try_echo") >&5
21619   (eval "$ac_compile") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } && {
21626          test -z "$ac_c_werror_flag" ||
21627          test ! -s conftest.err
21628        } && test -s conftest.$ac_objext; then
21629   ac_header_compiler=yes
21630 else
21631   $as_echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634         ac_header_compiler=no
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21639 $as_echo "$ac_header_compiler" >&6; }
21640
21641 # Is the header present?
21642 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21643 $as_echo_n "checking pthread.h presence... " >&6; }
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h.  */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h.  */
21650 #include <pthread.h>
21651 _ACEOF
21652 if { (ac_try="$ac_cpp conftest.$ac_ext"
21653 case "(($ac_try" in
21654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655   *) ac_try_echo=$ac_try;;
21656 esac
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } >/dev/null && {
21666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667          test ! -s conftest.err
21668        }; then
21669   ac_header_preproc=yes
21670 else
21671   $as_echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674   ac_header_preproc=no
21675 fi
21676
21677 rm -f conftest.err conftest.$ac_ext
21678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 $as_echo "$ac_header_preproc" >&6; }
21680
21681 # So?  What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683   yes:no: )
21684     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21685 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21687 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21688     ac_header_preproc=yes
21689     ;;
21690   no:yes:* )
21691     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21692 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21693     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21694 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21695     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21696 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21697     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21698 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21699     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21700 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21701     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21702 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21703     ( cat <<\_ASBOX
21704 ## ---------------------------------------- ##
21705 ## Report this to pgsql-bugs@postgresql.org ##
21706 ## ---------------------------------------- ##
21707 _ASBOX
21708      ) | sed "s/^/$as_me: WARNING:     /" >&2
21709     ;;
21710 esac
21711 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21712 $as_echo_n "checking for pthread.h... " >&6; }
21713 if test "${ac_cv_header_pthread_h+set}" = set; then
21714   $as_echo_n "(cached) " >&6
21715 else
21716   ac_cv_header_pthread_h=$ac_header_preproc
21717 fi
21718 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21719 $as_echo "$ac_cv_header_pthread_h" >&6; }
21720
21721 fi
21722 if test "x$ac_cv_header_pthread_h" = x""yes; then
21723   :
21724 else
21725   { { $as_echo "$as_me:$LINENO: error:
21726 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
21727 $as_echo "$as_me: error:
21728 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
21729    { (exit 1); exit 1; }; }
21730 fi
21731
21732
21733 fi
21734
21735
21736
21737
21738 for ac_func in strerror_r getpwuid_r gethostbyname_r
21739 do
21740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21742 $as_echo_n "checking for $ac_func... " >&6; }
21743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21744   $as_echo_n "(cached) " >&6
21745 else
21746   cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21754 #define $ac_func innocuous_$ac_func
21755
21756 /* System header to define __stub macros and hopefully few prototypes,
21757     which can conflict with char $ac_func (); below.
21758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21759     <limits.h> exists even on freestanding compilers.  */
21760
21761 #ifdef __STDC__
21762 # include <limits.h>
21763 #else
21764 # include <assert.h>
21765 #endif
21766
21767 #undef $ac_func
21768
21769 /* Override any GCC internal prototype to avoid an error.
21770    Use char because int might match the return type of a GCC
21771    builtin and then its argument prototype would still apply.  */
21772 #ifdef __cplusplus
21773 extern "C"
21774 #endif
21775 char $ac_func ();
21776 /* The GNU C library defines this for functions which it implements
21777     to always fail with ENOSYS.  Some functions are actually named
21778     something starting with __ and the normal name is an alias.  */
21779 #if defined __stub_$ac_func || defined __stub___$ac_func
21780 choke me
21781 #endif
21782
21783 int
21784 main ()
21785 {
21786 return $ac_func ();
21787   ;
21788   return 0;
21789 }
21790 _ACEOF
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (ac_try="$ac_link"
21793 case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21798 $as_echo "$ac_try_echo") >&5
21799   (eval "$ac_link") 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } && {
21806          test -z "$ac_c_werror_flag" ||
21807          test ! -s conftest.err
21808        } && test -s conftest$ac_exeext && {
21809          test "$cross_compiling" = yes ||
21810          $as_test_x conftest$ac_exeext
21811        }; then
21812   eval "$as_ac_var=yes"
21813 else
21814   $as_echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817         eval "$as_ac_var=no"
21818 fi
21819
21820 rm -rf conftest.dSYM
21821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21822       conftest$ac_exeext conftest.$ac_ext
21823 fi
21824 ac_res=`eval 'as_val=${'$as_ac_var'}
21825                  $as_echo "$as_val"'`
21826                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21827 $as_echo "$ac_res" >&6; }
21828 as_val=`eval 'as_val=${'$as_ac_var'}
21829                  $as_echo "$as_val"'`
21830    if test "x$as_val" = x""yes; then
21831   cat >>confdefs.h <<_ACEOF
21832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21833 _ACEOF
21834
21835 fi
21836 done
21837
21838
21839 # Do test here with the proper thread flags
21840 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21841 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21842 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21843   $as_echo_n "(cached) " >&6
21844 else
21845   cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 #include <sys/types.h>
21852 #include <pwd.h>
21853 int
21854 main ()
21855 {
21856 uid_t uid;
21857 struct passwd *space;
21858 char *buf;
21859 size_t bufsize;
21860 struct passwd **result;
21861 getpwuid_r(uid, space, buf, bufsize, result);
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21873 $as_echo "$ac_try_echo") >&5
21874   (eval "$ac_compile") 2>conftest.er1
21875   ac_status=$?
21876   grep -v '^ *+' conftest.er1 >conftest.err
21877   rm -f conftest.er1
21878   cat conftest.err >&5
21879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); } && {
21881          test -z "$ac_c_werror_flag" ||
21882          test ! -s conftest.err
21883        } && test -s conftest.$ac_objext; then
21884   pgac_cv_func_getpwuid_r_5arg=yes
21885 else
21886   $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889         pgac_cv_func_getpwuid_r_5arg=no
21890 fi
21891
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 fi
21894 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21895 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21896 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21897
21898 cat >>confdefs.h <<\_ACEOF
21899 #define GETPWUID_R_5ARG /**/
21900 _ACEOF
21901
21902 fi
21903
21904 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21905 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21906 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21907   $as_echo_n "(cached) " >&6
21908 else
21909   cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h.  */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h.  */
21915 #include <string.h>
21916 int
21917 main ()
21918 {
21919 #ifndef _AIX
21920 int strerror_r(int, char *, size_t);
21921 #else
21922 /* Older AIX has 'int' for the third argument so we don't test the args. */
21923 int strerror_r();
21924 #endif
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933   *) ac_try_echo=$ac_try;;
21934 esac
21935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21936 $as_echo "$ac_try_echo") >&5
21937   (eval "$ac_compile") 2>conftest.er1
21938   ac_status=$?
21939   grep -v '^ *+' conftest.er1 >conftest.err
21940   rm -f conftest.er1
21941   cat conftest.err >&5
21942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); } && {
21944          test -z "$ac_c_werror_flag" ||
21945          test ! -s conftest.err
21946        } && test -s conftest.$ac_objext; then
21947   pgac_cv_func_strerror_r_int=yes
21948 else
21949   $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952         pgac_cv_func_strerror_r_int=no
21953 fi
21954
21955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21956 fi
21957 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21958 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21959 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21960
21961 cat >>confdefs.h <<\_ACEOF
21962 #define STRERROR_R_INT /**/
21963 _ACEOF
21964
21965 fi
21966
21967
21968 CFLAGS="$_CFLAGS"
21969 LIBS="$_LIBS"
21970
21971 else
21972 # do not use values from template file
21973 PTHREAD_CFLAGS=
21974 PTHREAD_LIBS=
21975 fi
21976
21977
21978
21979
21980
21981 # We can test for libldap_r only after we know PTHREAD_LIBS
21982 if test "$with_ldap" = yes ; then
21983   _LIBS="$LIBS"
21984   if test "$PORTNAME" != "win32"; then
21985
21986 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21987 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21988 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21989   $as_echo_n "(cached) " >&6
21990 else
21991   ac_check_lib_save_LIBS=$LIBS
21992 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999
22000 /* Override any GCC internal prototype to avoid an error.
22001    Use char because int might match the return type of a GCC
22002    builtin and then its argument prototype would still apply.  */
22003 #ifdef __cplusplus
22004 extern "C"
22005 #endif
22006 char ldap_bind ();
22007 int
22008 main ()
22009 {
22010 return ldap_bind ();
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 rm -f conftest.$ac_objext conftest$ac_exeext
22016 if { (ac_try="$ac_link"
22017 case "(($ac_try" in
22018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019   *) ac_try_echo=$ac_try;;
22020 esac
22021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22022 $as_echo "$ac_try_echo") >&5
22023   (eval "$ac_link") 2>conftest.er1
22024   ac_status=$?
22025   grep -v '^ *+' conftest.er1 >conftest.err
22026   rm -f conftest.er1
22027   cat conftest.err >&5
22028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } && {
22030          test -z "$ac_c_werror_flag" ||
22031          test ! -s conftest.err
22032        } && test -s conftest$ac_exeext && {
22033          test "$cross_compiling" = yes ||
22034          $as_test_x conftest$ac_exeext
22035        }; then
22036   ac_cv_lib_ldap_ldap_bind=yes
22037 else
22038   $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041         ac_cv_lib_ldap_ldap_bind=no
22042 fi
22043
22044 rm -rf conftest.dSYM
22045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22046       conftest$ac_exeext conftest.$ac_ext
22047 LIBS=$ac_check_lib_save_LIBS
22048 fi
22049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
22050 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
22051 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
22052   cat >>confdefs.h <<_ACEOF
22053 #define HAVE_LIBLDAP 1
22054 _ACEOF
22055
22056   LIBS="-lldap $LIBS"
22057
22058 else
22059   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
22060 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
22061    { (exit 1); exit 1; }; }
22062 fi
22063
22064     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
22065     if test "$enable_thread_safety" = yes; then
22066       # on some platforms ldap_r fails to link without PTHREAD_LIBS
22067
22068 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
22069 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
22070 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
22071   $as_echo_n "(cached) " >&6
22072 else
22073   ac_check_lib_save_LIBS=$LIBS
22074 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081
22082 /* Override any GCC internal prototype to avoid an error.
22083    Use char because int might match the return type of a GCC
22084    builtin and then its argument prototype would still apply.  */
22085 #ifdef __cplusplus
22086 extern "C"
22087 #endif
22088 char ldap_simple_bind ();
22089 int
22090 main ()
22091 {
22092 return ldap_simple_bind ();
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (ac_try="$ac_link"
22099 case "(($ac_try" in
22100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101   *) ac_try_echo=$ac_try;;
22102 esac
22103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22104 $as_echo "$ac_try_echo") >&5
22105   (eval "$ac_link") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } && {
22112          test -z "$ac_c_werror_flag" ||
22113          test ! -s conftest.err
22114        } && test -s conftest$ac_exeext && {
22115          test "$cross_compiling" = yes ||
22116          $as_test_x conftest$ac_exeext
22117        }; then
22118   ac_cv_lib_ldap_r_ldap_simple_bind=yes
22119 else
22120   $as_echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123         ac_cv_lib_ldap_r_ldap_simple_bind=no
22124 fi
22125
22126 rm -rf conftest.dSYM
22127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22128       conftest$ac_exeext conftest.$ac_ext
22129 LIBS=$ac_check_lib_save_LIBS
22130 fi
22131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
22132 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
22133 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
22134   cat >>confdefs.h <<_ACEOF
22135 #define HAVE_LIBLDAP_R 1
22136 _ACEOF
22137
22138   LIBS="-lldap_r $LIBS"
22139
22140 else
22141   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
22142 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
22143    { (exit 1); exit 1; }; }
22144 fi
22145
22146       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
22147     else
22148       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
22149     fi
22150   else
22151
22152 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
22153 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
22154 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
22155   $as_echo_n "(cached) " >&6
22156 else
22157   ac_check_lib_save_LIBS=$LIBS
22158 LIBS="-lwldap32  $LIBS"
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165
22166 /* Override any GCC internal prototype to avoid an error.
22167    Use char because int might match the return type of a GCC
22168    builtin and then its argument prototype would still apply.  */
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 char ldap_bind ();
22173 int
22174 main ()
22175 {
22176 return ldap_bind ();
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 rm -f conftest.$ac_objext conftest$ac_exeext
22182 if { (ac_try="$ac_link"
22183 case "(($ac_try" in
22184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185   *) ac_try_echo=$ac_try;;
22186 esac
22187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22188 $as_echo "$ac_try_echo") >&5
22189   (eval "$ac_link") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } && {
22196          test -z "$ac_c_werror_flag" ||
22197          test ! -s conftest.err
22198        } && test -s conftest$ac_exeext && {
22199          test "$cross_compiling" = yes ||
22200          $as_test_x conftest$ac_exeext
22201        }; then
22202   ac_cv_lib_wldap32_ldap_bind=yes
22203 else
22204   $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207         ac_cv_lib_wldap32_ldap_bind=no
22208 fi
22209
22210 rm -rf conftest.dSYM
22211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22212       conftest$ac_exeext conftest.$ac_ext
22213 LIBS=$ac_check_lib_save_LIBS
22214 fi
22215 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
22216 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
22217 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
22218   cat >>confdefs.h <<_ACEOF
22219 #define HAVE_LIBWLDAP32 1
22220 _ACEOF
22221
22222   LIBS="-lwldap32 $LIBS"
22223
22224 else
22225   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
22226 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
22227    { (exit 1); exit 1; }; }
22228 fi
22229
22230     LDAP_LIBS_FE="-lwldap32"
22231     LDAP_LIBS_BE="-lwldap32"
22232   fi
22233   LIBS="$_LIBS"
22234 fi
22235
22236
22237
22238
22239 # This test makes sure that run tests work at all.  Sometimes a shared
22240 # library is found by the linker, but the runtime linker can't find it.
22241 # This check should come after all modifications of compiler or linker
22242 # variables, and before any other run tests.
22243 { $as_echo "$as_me:$LINENO: checking test program" >&5
22244 $as_echo_n "checking test program... " >&6; }
22245 if test "$cross_compiling" = yes; then
22246   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
22247 $as_echo "cross-compiling" >&6; }
22248 else
22249   cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h.  */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h.  */
22255 int main() { return 0; }
22256 _ACEOF
22257 rm -f conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261   *) ac_try_echo=$ac_try;;
22262 esac
22263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22264 $as_echo "$ac_try_echo") >&5
22265   (eval "$ac_link") 2>&5
22266   ac_status=$?
22267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22269   { (case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22274 $as_echo "$ac_try_echo") >&5
22275   (eval "$ac_try") 2>&5
22276   ac_status=$?
22277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); }; }; then
22279   { $as_echo "$as_me:$LINENO: result: ok" >&5
22280 $as_echo "ok" >&6; }
22281 else
22282   $as_echo "$as_me: program exited with status $ac_status" >&5
22283 $as_echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22285
22286 ( exit $ac_status )
22287 { $as_echo "$as_me:$LINENO: result: failed" >&5
22288 $as_echo "failed" >&6; }
22289 { { $as_echo "$as_me:$LINENO: error:
22290 Could not execute a simple test program.  This may be a problem
22291 related to locating shared libraries.  Check the file 'config.log'
22292 for the exact reason." >&5
22293 $as_echo "$as_me: error:
22294 Could not execute a simple test program.  This may be a problem
22295 related to locating shared libraries.  Check the file 'config.log'
22296 for the exact reason." >&2;}
22297    { (exit 1); exit 1; }; }
22298 fi
22299 rm -rf conftest.dSYM
22300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22301 fi
22302
22303
22304
22305 # --------------------
22306 # Run tests below here
22307 # --------------------
22308
22309 # Force use of our snprintf if system's doesn't do arg control
22310 # See comment above at snprintf test for details.
22311 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
22312   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
22313 $as_echo_n "checking whether printf supports argument control... " >&6; }
22314 if test "${pgac_cv_printf_arg_control+set}" = set; then
22315   $as_echo_n "(cached) " >&6
22316 else
22317   if test "$cross_compiling" = yes; then
22318   pgac_cv_printf_arg_control=cross
22319 else
22320   cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 #include <stdio.h>
22327 #include <string.h>
22328
22329 int main()
22330 {
22331   char buf[100];
22332
22333   /* can it swap arguments? */
22334   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
22335   if (strcmp(buf, "4 3") != 0)
22336     return 1;
22337   return 0;
22338 }
22339 _ACEOF
22340 rm -f conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344   *) ac_try_echo=$ac_try;;
22345 esac
22346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22347 $as_echo "$ac_try_echo") >&5
22348   (eval "$ac_link") 2>&5
22349   ac_status=$?
22350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22352   { (case "(($ac_try" in
22353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354   *) ac_try_echo=$ac_try;;
22355 esac
22356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22357 $as_echo "$ac_try_echo") >&5
22358   (eval "$ac_try") 2>&5
22359   ac_status=$?
22360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); }; }; then
22362   pgac_cv_printf_arg_control=yes
22363 else
22364   $as_echo "$as_me: program exited with status $ac_status" >&5
22365 $as_echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368 ( exit $ac_status )
22369 pgac_cv_printf_arg_control=no
22370 fi
22371 rm -rf conftest.dSYM
22372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22373 fi
22374
22375
22376
22377 fi
22378 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22379 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22380
22381   if test $pgac_cv_printf_arg_control != yes ; then
22382     pgac_need_repl_snprintf=yes
22383   fi
22384 fi
22385
22386
22387
22388
22389 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22390 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22391 if test "${pgac_cv_type_long_int_64+set}" = set; then
22392   $as_echo_n "(cached) " >&6
22393 else
22394   if test "$cross_compiling" = yes; then
22395   # If cross-compiling, check the size reported by the compiler and
22396 # trust that the arithmetic works.
22397 cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403
22404 int
22405 main ()
22406 {
22407 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22408 test_array [0] = 0
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421 $as_echo "$ac_try_echo") >&5
22422   (eval "$ac_compile") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest.$ac_objext; then
22432   pgac_cv_type_long_int_64=yes
22433 else
22434   $as_echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437         pgac_cv_type_long_int_64=no
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 typedef long int ac_int64;
22449
22450 /*
22451  * These are globals to discourage the compiler from folding all the
22452  * arithmetic tests down to compile-time constants.
22453  */
22454 ac_int64 a = 20000001;
22455 ac_int64 b = 40000005;
22456
22457 int does_int64_work()
22458 {
22459   ac_int64 c,d;
22460
22461   if (sizeof(ac_int64) != 8)
22462     return 0;                   /* definitely not the right size */
22463
22464   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22465   c = a * b;
22466   d = (c + b) / b;
22467   if (d != a+1)
22468     return 0;
22469   return 1;
22470 }
22471 main() {
22472   exit(! does_int64_work());
22473 }
22474 _ACEOF
22475 rm -f conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22482 $as_echo "$ac_try_echo") >&5
22483   (eval "$ac_link") 2>&5
22484   ac_status=$?
22485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22487   { (case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493   (eval "$ac_try") 2>&5
22494   ac_status=$?
22495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   pgac_cv_type_long_int_64=yes
22498 else
22499   $as_echo "$as_me: program exited with status $ac_status" >&5
22500 $as_echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 ( exit $ac_status )
22504 pgac_cv_type_long_int_64=no
22505 fi
22506 rm -rf conftest.dSYM
22507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22508 fi
22509
22510
22511 fi
22512 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22513 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22514
22515 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22516 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22517
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_LONG_INT_64 1
22520 _ACEOF
22521
22522 fi
22523
22524
22525 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22526   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22527 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22528 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22529   $as_echo_n "(cached) " >&6
22530 else
22531   if test "$cross_compiling" = yes; then
22532   # If cross-compiling, check the size reported by the compiler and
22533 # trust that the arithmetic works.
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
22541 int
22542 main ()
22543 {
22544 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
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   pgac_cv_type_long_long_int_64=yes
22570 else
22571   $as_echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574         pgac_cv_type_long_long_int_64=no
22575 fi
22576
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 typedef long long int ac_int64;
22586
22587 /*
22588  * These are globals to discourage the compiler from folding all the
22589  * arithmetic tests down to compile-time constants.
22590  */
22591 ac_int64 a = 20000001;
22592 ac_int64 b = 40000005;
22593
22594 int does_int64_work()
22595 {
22596   ac_int64 c,d;
22597
22598   if (sizeof(ac_int64) != 8)
22599     return 0;                   /* definitely not the right size */
22600
22601   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22602   c = a * b;
22603   d = (c + b) / b;
22604   if (d != a+1)
22605     return 0;
22606   return 1;
22607 }
22608 main() {
22609   exit(! does_int64_work());
22610 }
22611 _ACEOF
22612 rm -f conftest$ac_exeext
22613 if { (ac_try="$ac_link"
22614 case "(($ac_try" in
22615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616   *) ac_try_echo=$ac_try;;
22617 esac
22618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22619 $as_echo "$ac_try_echo") >&5
22620   (eval "$ac_link") 2>&5
22621   ac_status=$?
22622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22624   { (case "(($ac_try" in
22625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626   *) ac_try_echo=$ac_try;;
22627 esac
22628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22629 $as_echo "$ac_try_echo") >&5
22630   (eval "$ac_try") 2>&5
22631   ac_status=$?
22632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); }; }; then
22634   pgac_cv_type_long_long_int_64=yes
22635 else
22636   $as_echo "$as_me: program exited with status $ac_status" >&5
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 ( exit $ac_status )
22641 pgac_cv_type_long_long_int_64=no
22642 fi
22643 rm -rf conftest.dSYM
22644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22645 fi
22646
22647
22648 fi
22649 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22650 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22651
22652 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22653 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22654
22655 cat >>confdefs.h <<\_ACEOF
22656 #define HAVE_LONG_LONG_INT_64 1
22657 _ACEOF
22658
22659 fi
22660
22661   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
22662     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
22663 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
22664    { (exit 1); exit 1; }; }
22665   fi
22666 fi
22667
22668
22669
22670 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22671   cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677
22678 #define INT64CONST(x)  x##LL
22679 long long int foo = INT64CONST(0x1234567890123456);
22680
22681 int
22682 main ()
22683 {
22684
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693   *) ac_try_echo=$ac_try;;
22694 esac
22695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22696 $as_echo "$ac_try_echo") >&5
22697   (eval "$ac_compile") 2>conftest.er1
22698   ac_status=$?
22699   grep -v '^ *+' conftest.er1 >conftest.err
22700   rm -f conftest.er1
22701   cat conftest.err >&5
22702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } && {
22704          test -z "$ac_c_werror_flag" ||
22705          test ! -s conftest.err
22706        } && test -s conftest.$ac_objext; then
22707
22708 cat >>confdefs.h <<\_ACEOF
22709 #define HAVE_LL_CONSTANTS 1
22710 _ACEOF
22711
22712 else
22713   $as_echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716
22717 fi
22718
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 fi
22721
22722
22723 # If we found "long int" is 64 bits, assume snprintf handles it.  If
22724 # we found we need to use "long long int", better check.  We cope with
22725 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
22726 # work, fall back to our own snprintf emulation (which we know uses %lld).
22727
22728 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22729   if test $pgac_need_repl_snprintf = no; then
22730     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22731 $as_echo_n "checking snprintf format for long long int... " >&6; }
22732 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22733   $as_echo_n "(cached) " >&6
22734 else
22735   for pgac_format in '%lld' '%qd' '%I64d'; do
22736 if test "$cross_compiling" = yes; then
22737   pgac_cv_snprintf_long_long_int_format=cross; break
22738 else
22739   cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745 #include <stdio.h>
22746 typedef long long int ac_int64;
22747 #define INT64_FORMAT "$pgac_format"
22748
22749 ac_int64 a = 20000001;
22750 ac_int64 b = 40000005;
22751
22752 int does_int64_snprintf_work()
22753 {
22754   ac_int64 c;
22755   char buf[100];
22756
22757   if (sizeof(ac_int64) != 8)
22758     return 0;                   /* doesn't look like the right size */
22759
22760   c = a * b;
22761   snprintf(buf, 100, INT64_FORMAT, c);
22762   if (strcmp(buf, "800000140000005") != 0)
22763     return 0;                   /* either multiply or snprintf is busted */
22764   return 1;
22765 }
22766 main() {
22767   exit(! does_int64_snprintf_work());
22768 }
22769 _ACEOF
22770 rm -f conftest$ac_exeext
22771 if { (ac_try="$ac_link"
22772 case "(($ac_try" in
22773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774   *) ac_try_echo=$ac_try;;
22775 esac
22776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22777 $as_echo "$ac_try_echo") >&5
22778   (eval "$ac_link") 2>&5
22779   ac_status=$?
22780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22782   { (case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22787 $as_echo "$ac_try_echo") >&5
22788   (eval "$ac_try") 2>&5
22789   ac_status=$?
22790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22793 else
22794   $as_echo "$as_me: program exited with status $ac_status" >&5
22795 $as_echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 fi
22799 rm -rf conftest.dSYM
22800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22801 fi
22802
22803
22804 done
22805 fi
22806
22807 LONG_LONG_INT_FORMAT=''
22808
22809 case $pgac_cv_snprintf_long_long_int_format in
22810   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22811 $as_echo "cannot test (not on host machine)" >&6; };;
22812   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22813 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22814          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22815   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
22816 $as_echo "none" >&6; };;
22817 esac
22818     if test "$LONG_LONG_INT_FORMAT" = ""; then
22819       # Force usage of our own snprintf, since system snprintf is broken
22820       pgac_need_repl_snprintf=yes
22821       LONG_LONG_INT_FORMAT='%lld'
22822     fi
22823   else
22824     # Here if we previously decided we needed to use our own snprintf
22825     LONG_LONG_INT_FORMAT='%lld'
22826   fi
22827   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22828   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22829   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22830 else
22831   # Here if we are not using 'long long int' at all
22832   INT64_FORMAT='"%ld"'
22833   UINT64_FORMAT='"%lu"'
22834 fi
22835
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define INT64_FORMAT $INT64_FORMAT
22839 _ACEOF
22840
22841
22842
22843 cat >>confdefs.h <<_ACEOF
22844 #define UINT64_FORMAT $UINT64_FORMAT
22845 _ACEOF
22846
22847
22848 # Now we have checked all the reasons to replace snprintf
22849 if test $pgac_need_repl_snprintf = yes; then
22850
22851 cat >>confdefs.h <<\_ACEOF
22852 #define USE_REPL_SNPRINTF 1
22853 _ACEOF
22854
22855   case " $LIBOBJS " in
22856   *" snprintf.$ac_objext "* ) ;;
22857   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22858  ;;
22859 esac
22860
22861 fi
22862
22863 # Check size of void *, size_t (enables tweaks for > 32bit address space)
22864 # The cast to long int works around a bug in the HP C Compiler
22865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22867 # This bug is HP SR number 8606223364.
22868 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22869 $as_echo_n "checking size of void *... " >&6; }
22870 if test "${ac_cv_sizeof_void_p+set}" = set; then
22871   $as_echo_n "(cached) " >&6
22872 else
22873   if test "$cross_compiling" = yes; then
22874   # Depending upon the size, compute the lo and hi bounds.
22875 cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881 $ac_includes_default
22882 int
22883 main ()
22884 {
22885 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22886 test_array [0] = 0
22887
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22899 $as_echo "$ac_try_echo") >&5
22900   (eval "$ac_compile") 2>conftest.er1
22901   ac_status=$?
22902   grep -v '^ *+' conftest.er1 >conftest.err
22903   rm -f conftest.er1
22904   cat conftest.err >&5
22905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } && {
22907          test -z "$ac_c_werror_flag" ||
22908          test ! -s conftest.err
22909        } && test -s conftest.$ac_objext; then
22910   ac_lo=0 ac_mid=0
22911   while :; do
22912     cat >conftest.$ac_ext <<_ACEOF
22913 /* confdefs.h.  */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h.  */
22918 $ac_includes_default
22919 int
22920 main ()
22921 {
22922 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22923 test_array [0] = 0
22924
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext
22930 if { (ac_try="$ac_compile"
22931 case "(($ac_try" in
22932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933   *) ac_try_echo=$ac_try;;
22934 esac
22935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22936 $as_echo "$ac_try_echo") >&5
22937   (eval "$ac_compile") 2>conftest.er1
22938   ac_status=$?
22939   grep -v '^ *+' conftest.er1 >conftest.err
22940   rm -f conftest.er1
22941   cat conftest.err >&5
22942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); } && {
22944          test -z "$ac_c_werror_flag" ||
22945          test ! -s conftest.err
22946        } && test -s conftest.$ac_objext; then
22947   ac_hi=$ac_mid; break
22948 else
22949   $as_echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952         ac_lo=`expr $ac_mid + 1`
22953                         if test $ac_lo -le $ac_mid; then
22954                           ac_lo= ac_hi=
22955                           break
22956                         fi
22957                         ac_mid=`expr 2 '*' $ac_mid + 1`
22958 fi
22959
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961   done
22962 else
22963   $as_echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966         cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h.  */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h.  */
22972 $ac_includes_default
22973 int
22974 main ()
22975 {
22976 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
22977 test_array [0] = 0
22978
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990 $as_echo "$ac_try_echo") >&5
22991   (eval "$ac_compile") 2>conftest.er1
22992   ac_status=$?
22993   grep -v '^ *+' conftest.er1 >conftest.err
22994   rm -f conftest.er1
22995   cat conftest.err >&5
22996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } && {
22998          test -z "$ac_c_werror_flag" ||
22999          test ! -s conftest.err
23000        } && test -s conftest.$ac_objext; then
23001   ac_hi=-1 ac_mid=-1
23002   while :; do
23003     cat >conftest.$ac_ext <<_ACEOF
23004 /* confdefs.h.  */
23005 _ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h.  */
23009 $ac_includes_default
23010 int
23011 main ()
23012 {
23013 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23014 test_array [0] = 0
23015
23016   ;
23017   return 0;
23018 }
23019 _ACEOF
23020 rm -f conftest.$ac_objext
23021 if { (ac_try="$ac_compile"
23022 case "(($ac_try" in
23023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024   *) ac_try_echo=$ac_try;;
23025 esac
23026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027 $as_echo "$ac_try_echo") >&5
23028   (eval "$ac_compile") 2>conftest.er1
23029   ac_status=$?
23030   grep -v '^ *+' conftest.er1 >conftest.err
23031   rm -f conftest.er1
23032   cat conftest.err >&5
23033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); } && {
23035          test -z "$ac_c_werror_flag" ||
23036          test ! -s conftest.err
23037        } && test -s conftest.$ac_objext; then
23038   ac_lo=$ac_mid; break
23039 else
23040   $as_echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23042
23043         ac_hi=`expr '(' $ac_mid ')' - 1`
23044                         if test $ac_mid -le $ac_hi; then
23045                           ac_lo= ac_hi=
23046                           break
23047                         fi
23048                         ac_mid=`expr 2 '*' $ac_mid`
23049 fi
23050
23051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052   done
23053 else
23054   $as_echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057         ac_lo= ac_hi=
23058 fi
23059
23060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23061 fi
23062
23063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 # Binary search between lo and hi bounds.
23065 while test "x$ac_lo" != "x$ac_hi"; do
23066   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23067   cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h.  */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h.  */
23073 $ac_includes_default
23074 int
23075 main ()
23076 {
23077 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23078 test_array [0] = 0
23079
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest.$ac_objext
23085 if { (ac_try="$ac_compile"
23086 case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092   (eval "$ac_compile") 2>conftest.er1
23093   ac_status=$?
23094   grep -v '^ *+' conftest.er1 >conftest.err
23095   rm -f conftest.er1
23096   cat conftest.err >&5
23097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); } && {
23099          test -z "$ac_c_werror_flag" ||
23100          test ! -s conftest.err
23101        } && test -s conftest.$ac_objext; then
23102   ac_hi=$ac_mid
23103 else
23104   $as_echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23106
23107         ac_lo=`expr '(' $ac_mid ')' + 1`
23108 fi
23109
23110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23111 done
23112 case $ac_lo in
23113 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23114 '') if test "$ac_cv_type_void_p" = yes; then
23115      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23117 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23118 See \`config.log' for more details." >&5
23119 $as_echo "$as_me: error: cannot compute sizeof (void *)
23120 See \`config.log' for more details." >&2;}
23121    { (exit 77); exit 77; }; }; }
23122    else
23123      ac_cv_sizeof_void_p=0
23124    fi ;;
23125 esac
23126 else
23127   cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133 $ac_includes_default
23134 static long int longval () { return (long int) (sizeof (void *)); }
23135 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23136 #include <stdio.h>
23137 #include <stdlib.h>
23138 int
23139 main ()
23140 {
23141
23142   FILE *f = fopen ("conftest.val", "w");
23143   if (! f)
23144     return 1;
23145   if (((long int) (sizeof (void *))) < 0)
23146     {
23147       long int i = longval ();
23148       if (i != ((long int) (sizeof (void *))))
23149         return 1;
23150       fprintf (f, "%ld", i);
23151     }
23152   else
23153     {
23154       unsigned long int i = ulongval ();
23155       if (i != ((long int) (sizeof (void *))))
23156         return 1;
23157       fprintf (f, "%lu", i);
23158     }
23159   /* Do not output a trailing newline, as this causes \r\n confusion
23160      on some platforms.  */
23161   return ferror (f) || fclose (f) != 0;
23162
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest$ac_exeext
23168 if { (ac_try="$ac_link"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23174 $as_echo "$ac_try_echo") >&5
23175   (eval "$ac_link") 2>&5
23176   ac_status=$?
23177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23179   { (case "(($ac_try" in
23180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181   *) ac_try_echo=$ac_try;;
23182 esac
23183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23184 $as_echo "$ac_try_echo") >&5
23185   (eval "$ac_try") 2>&5
23186   ac_status=$?
23187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); }; }; then
23189   ac_cv_sizeof_void_p=`cat conftest.val`
23190 else
23191   $as_echo "$as_me: program exited with status $ac_status" >&5
23192 $as_echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23194
23195 ( exit $ac_status )
23196 if test "$ac_cv_type_void_p" = yes; then
23197      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23199 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23200 See \`config.log' for more details." >&5
23201 $as_echo "$as_me: error: cannot compute sizeof (void *)
23202 See \`config.log' for more details." >&2;}
23203    { (exit 77); exit 77; }; }; }
23204    else
23205      ac_cv_sizeof_void_p=0
23206    fi
23207 fi
23208 rm -rf conftest.dSYM
23209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23210 fi
23211 rm -f conftest.val
23212 fi
23213 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23214 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23215
23216
23217
23218 cat >>confdefs.h <<_ACEOF
23219 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23220 _ACEOF
23221
23222
23223 # The cast to long int works around a bug in the HP C Compiler
23224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23226 # This bug is HP SR number 8606223364.
23227 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23228 $as_echo_n "checking size of size_t... " >&6; }
23229 if test "${ac_cv_sizeof_size_t+set}" = set; then
23230   $as_echo_n "(cached) " >&6
23231 else
23232   if test "$cross_compiling" = yes; then
23233   # Depending upon the size, compute the lo and hi bounds.
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240 $ac_includes_default
23241 int
23242 main ()
23243 {
23244 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23245 test_array [0] = 0
23246
23247   ;
23248   return 0;
23249 }
23250 _ACEOF
23251 rm -f conftest.$ac_objext
23252 if { (ac_try="$ac_compile"
23253 case "(($ac_try" in
23254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255   *) ac_try_echo=$ac_try;;
23256 esac
23257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23258 $as_echo "$ac_try_echo") >&5
23259   (eval "$ac_compile") 2>conftest.er1
23260   ac_status=$?
23261   grep -v '^ *+' conftest.er1 >conftest.err
23262   rm -f conftest.er1
23263   cat conftest.err >&5
23264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); } && {
23266          test -z "$ac_c_werror_flag" ||
23267          test ! -s conftest.err
23268        } && test -s conftest.$ac_objext; then
23269   ac_lo=0 ac_mid=0
23270   while :; do
23271     cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h.  */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h.  */
23277 $ac_includes_default
23278 int
23279 main ()
23280 {
23281 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23282 test_array [0] = 0
23283
23284   ;
23285   return 0;
23286 }
23287 _ACEOF
23288 rm -f conftest.$ac_objext
23289 if { (ac_try="$ac_compile"
23290 case "(($ac_try" in
23291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292   *) ac_try_echo=$ac_try;;
23293 esac
23294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23295 $as_echo "$ac_try_echo") >&5
23296   (eval "$ac_compile") 2>conftest.er1
23297   ac_status=$?
23298   grep -v '^ *+' conftest.er1 >conftest.err
23299   rm -f conftest.er1
23300   cat conftest.err >&5
23301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); } && {
23303          test -z "$ac_c_werror_flag" ||
23304          test ! -s conftest.err
23305        } && test -s conftest.$ac_objext; then
23306   ac_hi=$ac_mid; break
23307 else
23308   $as_echo "$as_me: failed program was:" >&5
23309 sed 's/^/| /' conftest.$ac_ext >&5
23310
23311         ac_lo=`expr $ac_mid + 1`
23312                         if test $ac_lo -le $ac_mid; then
23313                           ac_lo= ac_hi=
23314                           break
23315                         fi
23316                         ac_mid=`expr 2 '*' $ac_mid + 1`
23317 fi
23318
23319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320   done
23321 else
23322   $as_echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23324
23325         cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331 $ac_includes_default
23332 int
23333 main ()
23334 {
23335 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23336 test_array [0] = 0
23337
23338   ;
23339   return 0;
23340 }
23341 _ACEOF
23342 rm -f conftest.$ac_objext
23343 if { (ac_try="$ac_compile"
23344 case "(($ac_try" in
23345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346   *) ac_try_echo=$ac_try;;
23347 esac
23348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23349 $as_echo "$ac_try_echo") >&5
23350   (eval "$ac_compile") 2>conftest.er1
23351   ac_status=$?
23352   grep -v '^ *+' conftest.er1 >conftest.err
23353   rm -f conftest.er1
23354   cat conftest.err >&5
23355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); } && {
23357          test -z "$ac_c_werror_flag" ||
23358          test ! -s conftest.err
23359        } && test -s conftest.$ac_objext; then
23360   ac_hi=-1 ac_mid=-1
23361   while :; do
23362     cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h.  */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h.  */
23368 $ac_includes_default
23369 int
23370 main ()
23371 {
23372 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23373 test_array [0] = 0
23374
23375   ;
23376   return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext
23380 if { (ac_try="$ac_compile"
23381 case "(($ac_try" in
23382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383   *) ac_try_echo=$ac_try;;
23384 esac
23385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23386 $as_echo "$ac_try_echo") >&5
23387   (eval "$ac_compile") 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
23391   cat conftest.err >&5
23392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); } && {
23394          test -z "$ac_c_werror_flag" ||
23395          test ! -s conftest.err
23396        } && test -s conftest.$ac_objext; then
23397   ac_lo=$ac_mid; break
23398 else
23399   $as_echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402         ac_hi=`expr '(' $ac_mid ')' - 1`
23403                         if test $ac_mid -le $ac_hi; then
23404                           ac_lo= ac_hi=
23405                           break
23406                         fi
23407                         ac_mid=`expr 2 '*' $ac_mid`
23408 fi
23409
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411   done
23412 else
23413   $as_echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416         ac_lo= ac_hi=
23417 fi
23418
23419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420 fi
23421
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 # Binary search between lo and hi bounds.
23424 while test "x$ac_lo" != "x$ac_hi"; do
23425   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23426   cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h.  */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h.  */
23432 $ac_includes_default
23433 int
23434 main ()
23435 {
23436 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23437 test_array [0] = 0
23438
23439   ;
23440   return 0;
23441 }
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23450 $as_echo "$ac_try_echo") >&5
23451   (eval "$ac_compile") 2>conftest.er1
23452   ac_status=$?
23453   grep -v '^ *+' conftest.er1 >conftest.err
23454   rm -f conftest.er1
23455   cat conftest.err >&5
23456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); } && {
23458          test -z "$ac_c_werror_flag" ||
23459          test ! -s conftest.err
23460        } && test -s conftest.$ac_objext; then
23461   ac_hi=$ac_mid
23462 else
23463   $as_echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466         ac_lo=`expr '(' $ac_mid ')' + 1`
23467 fi
23468
23469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 done
23471 case $ac_lo in
23472 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23473 '') if test "$ac_cv_type_size_t" = yes; then
23474      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23476 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23477 See \`config.log' for more details." >&5
23478 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23479 See \`config.log' for more details." >&2;}
23480    { (exit 77); exit 77; }; }; }
23481    else
23482      ac_cv_sizeof_size_t=0
23483    fi ;;
23484 esac
23485 else
23486   cat >conftest.$ac_ext <<_ACEOF
23487 /* confdefs.h.  */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h.  */
23492 $ac_includes_default
23493 static long int longval () { return (long int) (sizeof (size_t)); }
23494 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23495 #include <stdio.h>
23496 #include <stdlib.h>
23497 int
23498 main ()
23499 {
23500
23501   FILE *f = fopen ("conftest.val", "w");
23502   if (! f)
23503     return 1;
23504   if (((long int) (sizeof (size_t))) < 0)
23505     {
23506       long int i = longval ();
23507       if (i != ((long int) (sizeof (size_t))))
23508         return 1;
23509       fprintf (f, "%ld", i);
23510     }
23511   else
23512     {
23513       unsigned long int i = ulongval ();
23514       if (i != ((long int) (sizeof (size_t))))
23515         return 1;
23516       fprintf (f, "%lu", i);
23517     }
23518   /* Do not output a trailing newline, as this causes \r\n confusion
23519      on some platforms.  */
23520   return ferror (f) || fclose (f) != 0;
23521
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530   *) ac_try_echo=$ac_try;;
23531 esac
23532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23533 $as_echo "$ac_try_echo") >&5
23534   (eval "$ac_link") 2>&5
23535   ac_status=$?
23536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23538   { (case "(($ac_try" in
23539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540   *) ac_try_echo=$ac_try;;
23541 esac
23542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23543 $as_echo "$ac_try_echo") >&5
23544   (eval "$ac_try") 2>&5
23545   ac_status=$?
23546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; }; then
23548   ac_cv_sizeof_size_t=`cat conftest.val`
23549 else
23550   $as_echo "$as_me: program exited with status $ac_status" >&5
23551 $as_echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ( exit $ac_status )
23555 if test "$ac_cv_type_size_t" = yes; then
23556      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23558 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23559 See \`config.log' for more details." >&5
23560 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23561 See \`config.log' for more details." >&2;}
23562    { (exit 77); exit 77; }; }; }
23563    else
23564      ac_cv_sizeof_size_t=0
23565    fi
23566 fi
23567 rm -rf conftest.dSYM
23568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23569 fi
23570 rm -f conftest.val
23571 fi
23572 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23573 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23574
23575
23576
23577 cat >>confdefs.h <<_ACEOF
23578 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23579 _ACEOF
23580
23581
23582 # The cast to long int works around a bug in the HP C Compiler
23583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23585 # This bug is HP SR number 8606223364.
23586 { $as_echo "$as_me:$LINENO: checking size of long" >&5
23587 $as_echo_n "checking size of long... " >&6; }
23588 if test "${ac_cv_sizeof_long+set}" = set; then
23589   $as_echo_n "(cached) " >&6
23590 else
23591   if test "$cross_compiling" = yes; then
23592   # Depending upon the size, compute the lo and hi bounds.
23593 cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h.  */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h.  */
23599 $ac_includes_default
23600 int
23601 main ()
23602 {
23603 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
23604 test_array [0] = 0
23605
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614   *) ac_try_echo=$ac_try;;
23615 esac
23616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23617 $as_echo "$ac_try_echo") >&5
23618   (eval "$ac_compile") 2>conftest.er1
23619   ac_status=$?
23620   grep -v '^ *+' conftest.er1 >conftest.err
23621   rm -f conftest.er1
23622   cat conftest.err >&5
23623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); } && {
23625          test -z "$ac_c_werror_flag" ||
23626          test ! -s conftest.err
23627        } && test -s conftest.$ac_objext; then
23628   ac_lo=0 ac_mid=0
23629   while :; do
23630     cat >conftest.$ac_ext <<_ACEOF
23631 /* confdefs.h.  */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h.  */
23636 $ac_includes_default
23637 int
23638 main ()
23639 {
23640 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
23641 test_array [0] = 0
23642
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext
23648 if { (ac_try="$ac_compile"
23649 case "(($ac_try" in
23650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651   *) ac_try_echo=$ac_try;;
23652 esac
23653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23654 $as_echo "$ac_try_echo") >&5
23655   (eval "$ac_compile") 2>conftest.er1
23656   ac_status=$?
23657   grep -v '^ *+' conftest.er1 >conftest.err
23658   rm -f conftest.er1
23659   cat conftest.err >&5
23660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); } && {
23662          test -z "$ac_c_werror_flag" ||
23663          test ! -s conftest.err
23664        } && test -s conftest.$ac_objext; then
23665   ac_hi=$ac_mid; break
23666 else
23667   $as_echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23669
23670         ac_lo=`expr $ac_mid + 1`
23671                         if test $ac_lo -le $ac_mid; then
23672                           ac_lo= ac_hi=
23673                           break
23674                         fi
23675                         ac_mid=`expr 2 '*' $ac_mid + 1`
23676 fi
23677
23678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679   done
23680 else
23681   $as_echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684         cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 $ac_includes_default
23691 int
23692 main ()
23693 {
23694 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
23695 test_array [0] = 0
23696
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705   *) ac_try_echo=$ac_try;;
23706 esac
23707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709   (eval "$ac_compile") 2>conftest.er1
23710   ac_status=$?
23711   grep -v '^ *+' conftest.er1 >conftest.err
23712   rm -f conftest.er1
23713   cat conftest.err >&5
23714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); } && {
23716          test -z "$ac_c_werror_flag" ||
23717          test ! -s conftest.err
23718        } && test -s conftest.$ac_objext; then
23719   ac_hi=-1 ac_mid=-1
23720   while :; do
23721     cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h.  */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h.  */
23727 $ac_includes_default
23728 int
23729 main ()
23730 {
23731 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
23732 test_array [0] = 0
23733
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext
23739 if { (ac_try="$ac_compile"
23740 case "(($ac_try" in
23741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742   *) ac_try_echo=$ac_try;;
23743 esac
23744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23745 $as_echo "$ac_try_echo") >&5
23746   (eval "$ac_compile") 2>conftest.er1
23747   ac_status=$?
23748   grep -v '^ *+' conftest.er1 >conftest.err
23749   rm -f conftest.er1
23750   cat conftest.err >&5
23751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } && {
23753          test -z "$ac_c_werror_flag" ||
23754          test ! -s conftest.err
23755        } && test -s conftest.$ac_objext; then
23756   ac_lo=$ac_mid; break
23757 else
23758   $as_echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761         ac_hi=`expr '(' $ac_mid ')' - 1`
23762                         if test $ac_mid -le $ac_hi; then
23763                           ac_lo= ac_hi=
23764                           break
23765                         fi
23766                         ac_mid=`expr 2 '*' $ac_mid`
23767 fi
23768
23769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770   done
23771 else
23772   $as_echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23774
23775         ac_lo= ac_hi=
23776 fi
23777
23778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23779 fi
23780
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 # Binary search between lo and hi bounds.
23783 while test "x$ac_lo" != "x$ac_hi"; do
23784   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23785   cat >conftest.$ac_ext <<_ACEOF
23786 /* confdefs.h.  */
23787 _ACEOF
23788 cat confdefs.h >>conftest.$ac_ext
23789 cat >>conftest.$ac_ext <<_ACEOF
23790 /* end confdefs.h.  */
23791 $ac_includes_default
23792 int
23793 main ()
23794 {
23795 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
23796 test_array [0] = 0
23797
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806   *) ac_try_echo=$ac_try;;
23807 esac
23808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23809 $as_echo "$ac_try_echo") >&5
23810   (eval "$ac_compile") 2>conftest.er1
23811   ac_status=$?
23812   grep -v '^ *+' conftest.er1 >conftest.err
23813   rm -f conftest.er1
23814   cat conftest.err >&5
23815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); } && {
23817          test -z "$ac_c_werror_flag" ||
23818          test ! -s conftest.err
23819        } && test -s conftest.$ac_objext; then
23820   ac_hi=$ac_mid
23821 else
23822   $as_echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825         ac_lo=`expr '(' $ac_mid ')' + 1`
23826 fi
23827
23828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 done
23830 case $ac_lo in
23831 ?*) ac_cv_sizeof_long=$ac_lo;;
23832 '') if test "$ac_cv_type_long" = yes; then
23833      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23835 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23836 See \`config.log' for more details." >&5
23837 $as_echo "$as_me: error: cannot compute sizeof (long)
23838 See \`config.log' for more details." >&2;}
23839    { (exit 77); exit 77; }; }; }
23840    else
23841      ac_cv_sizeof_long=0
23842    fi ;;
23843 esac
23844 else
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 static long int longval () { return (long int) (sizeof (long)); }
23853 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
23854 #include <stdio.h>
23855 #include <stdlib.h>
23856 int
23857 main ()
23858 {
23859
23860   FILE *f = fopen ("conftest.val", "w");
23861   if (! f)
23862     return 1;
23863   if (((long int) (sizeof (long))) < 0)
23864     {
23865       long int i = longval ();
23866       if (i != ((long int) (sizeof (long))))
23867         return 1;
23868       fprintf (f, "%ld", i);
23869     }
23870   else
23871     {
23872       unsigned long int i = ulongval ();
23873       if (i != ((long int) (sizeof (long))))
23874         return 1;
23875       fprintf (f, "%lu", i);
23876     }
23877   /* Do not output a trailing newline, as this causes \r\n confusion
23878      on some platforms.  */
23879   return ferror (f) || fclose (f) != 0;
23880
23881   ;
23882   return 0;
23883 }
23884 _ACEOF
23885 rm -f conftest$ac_exeext
23886 if { (ac_try="$ac_link"
23887 case "(($ac_try" in
23888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889   *) ac_try_echo=$ac_try;;
23890 esac
23891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23892 $as_echo "$ac_try_echo") >&5
23893   (eval "$ac_link") 2>&5
23894   ac_status=$?
23895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23897   { (case "(($ac_try" in
23898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899   *) ac_try_echo=$ac_try;;
23900 esac
23901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903   (eval "$ac_try") 2>&5
23904   ac_status=$?
23905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); }; }; then
23907   ac_cv_sizeof_long=`cat conftest.val`
23908 else
23909   $as_echo "$as_me: program exited with status $ac_status" >&5
23910 $as_echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23912
23913 ( exit $ac_status )
23914 if test "$ac_cv_type_long" = yes; then
23915      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23917 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23918 See \`config.log' for more details." >&5
23919 $as_echo "$as_me: error: cannot compute sizeof (long)
23920 See \`config.log' for more details." >&2;}
23921    { (exit 77); exit 77; }; }; }
23922    else
23923      ac_cv_sizeof_long=0
23924    fi
23925 fi
23926 rm -rf conftest.dSYM
23927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23928 fi
23929 rm -f conftest.val
23930 fi
23931 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23932 $as_echo "$ac_cv_sizeof_long" >&6; }
23933
23934
23935
23936 cat >>confdefs.h <<_ACEOF
23937 #define SIZEOF_LONG $ac_cv_sizeof_long
23938 _ACEOF
23939
23940
23941
23942 # Decide whether float4 is passed by value: user-selectable, enabled by default
23943 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23944 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23945
23946
23947 # Check whether --enable-float4-byval was given.
23948 if test "${enable_float4_byval+set}" = set; then
23949   enableval=$enable_float4_byval;
23950   case $enableval in
23951     yes)
23952
23953 cat >>confdefs.h <<\_ACEOF
23954 #define USE_FLOAT4_BYVAL 1
23955 _ACEOF
23956
23957                float4passbyval=true
23958       ;;
23959     no)
23960       float4passbyval=false
23961       ;;
23962     *)
23963       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23964 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23965    { (exit 1); exit 1; }; }
23966       ;;
23967   esac
23968
23969 else
23970   enable_float4_byval=yes
23971
23972 cat >>confdefs.h <<\_ACEOF
23973 #define USE_FLOAT4_BYVAL 1
23974 _ACEOF
23975
23976                float4passbyval=true
23977 fi
23978
23979
23980 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23981 $as_echo "$enable_float4_byval" >&6; }
23982
23983 cat >>confdefs.h <<_ACEOF
23984 #define FLOAT4PASSBYVAL $float4passbyval
23985 _ACEOF
23986
23987
23988 # Decide whether float8 is passed by value.
23989 # Note: this setting also controls int8 and related types such as timestamp.
23990 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23991 # If not, trying to select it is an error.
23992 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23993 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23994 if test $ac_cv_sizeof_void_p -ge 8 ; then
23995
23996
23997 # Check whether --enable-float8-byval was given.
23998 if test "${enable_float8_byval+set}" = set; then
23999   enableval=$enable_float8_byval;
24000   case $enableval in
24001     yes)
24002       :
24003       ;;
24004     no)
24005       :
24006       ;;
24007     *)
24008       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24009 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24010    { (exit 1); exit 1; }; }
24011       ;;
24012   esac
24013
24014 else
24015   enable_float8_byval=yes
24016
24017 fi
24018
24019
24020 else
24021
24022
24023 # Check whether --enable-float8-byval was given.
24024 if test "${enable_float8_byval+set}" = set; then
24025   enableval=$enable_float8_byval;
24026   case $enableval in
24027     yes)
24028       :
24029       ;;
24030     no)
24031       :
24032       ;;
24033     *)
24034       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24035 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24036    { (exit 1); exit 1; }; }
24037       ;;
24038   esac
24039
24040 else
24041   enable_float8_byval=no
24042
24043 fi
24044
24045
24046   if test "$enable_float8_byval" = yes ; then
24047     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
24048 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
24049    { (exit 1); exit 1; }; }
24050   fi
24051 fi
24052 if test "$enable_float8_byval" = yes ; then
24053
24054 cat >>confdefs.h <<\_ACEOF
24055 #define USE_FLOAT8_BYVAL 1
24056 _ACEOF
24057
24058   float8passbyval=true
24059 else
24060   float8passbyval=false
24061 fi
24062 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
24063 $as_echo "$enable_float8_byval" >&6; }
24064
24065 cat >>confdefs.h <<_ACEOF
24066 #define FLOAT8PASSBYVAL $float8passbyval
24067 _ACEOF
24068
24069
24070 # Determine memory alignment requirements for the basic C data types.
24071
24072 # The cast to long int works around a bug in the HP C Compiler,
24073 # see AC_CHECK_SIZEOF for more information.
24074 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
24075 $as_echo_n "checking alignment of short... " >&6; }
24076 if test "${ac_cv_alignof_short+set}" = set; then
24077   $as_echo_n "(cached) " >&6
24078 else
24079   if test "$cross_compiling" = yes; then
24080   # Depending upon the size, compute the lo and hi bounds.
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h.  */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h.  */
24087 $ac_includes_default
24088 #ifndef offsetof
24089 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24090 #endif
24091 typedef struct { char x; short y; } ac__type_alignof_;
24092 int
24093 main ()
24094 {
24095 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24096 test_array [0] = 0
24097
24098   ;
24099   return 0;
24100 }
24101 _ACEOF
24102 rm -f conftest.$ac_objext
24103 if { (ac_try="$ac_compile"
24104 case "(($ac_try" in
24105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106   *) ac_try_echo=$ac_try;;
24107 esac
24108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24109 $as_echo "$ac_try_echo") >&5
24110   (eval "$ac_compile") 2>conftest.er1
24111   ac_status=$?
24112   grep -v '^ *+' conftest.er1 >conftest.err
24113   rm -f conftest.er1
24114   cat conftest.err >&5
24115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); } && {
24117          test -z "$ac_c_werror_flag" ||
24118          test ! -s conftest.err
24119        } && test -s conftest.$ac_objext; then
24120   ac_lo=0 ac_mid=0
24121   while :; do
24122     cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h.  */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h.  */
24128 $ac_includes_default
24129 #ifndef offsetof
24130 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24131 #endif
24132 typedef struct { char x; short y; } ac__type_alignof_;
24133 int
24134 main ()
24135 {
24136 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24137 test_array [0] = 0
24138
24139   ;
24140   return 0;
24141 }
24142 _ACEOF
24143 rm -f conftest.$ac_objext
24144 if { (ac_try="$ac_compile"
24145 case "(($ac_try" in
24146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147   *) ac_try_echo=$ac_try;;
24148 esac
24149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24150 $as_echo "$ac_try_echo") >&5
24151   (eval "$ac_compile") 2>conftest.er1
24152   ac_status=$?
24153   grep -v '^ *+' conftest.er1 >conftest.err
24154   rm -f conftest.er1
24155   cat conftest.err >&5
24156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); } && {
24158          test -z "$ac_c_werror_flag" ||
24159          test ! -s conftest.err
24160        } && test -s conftest.$ac_objext; then
24161   ac_hi=$ac_mid; break
24162 else
24163   $as_echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24165
24166         ac_lo=`expr $ac_mid + 1`
24167                         if test $ac_lo -le $ac_mid; then
24168                           ac_lo= ac_hi=
24169                           break
24170                         fi
24171                         ac_mid=`expr 2 '*' $ac_mid + 1`
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175   done
24176 else
24177   $as_echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24179
24180         cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186 $ac_includes_default
24187 #ifndef offsetof
24188 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24189 #endif
24190 typedef struct { char x; short y; } ac__type_alignof_;
24191 int
24192 main ()
24193 {
24194 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24195 test_array [0] = 0
24196
24197   ;
24198   return 0;
24199 }
24200 _ACEOF
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205   *) ac_try_echo=$ac_try;;
24206 esac
24207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24208 $as_echo "$ac_try_echo") >&5
24209   (eval "$ac_compile") 2>conftest.er1
24210   ac_status=$?
24211   grep -v '^ *+' conftest.er1 >conftest.err
24212   rm -f conftest.er1
24213   cat conftest.err >&5
24214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); } && {
24216          test -z "$ac_c_werror_flag" ||
24217          test ! -s conftest.err
24218        } && test -s conftest.$ac_objext; then
24219   ac_hi=-1 ac_mid=-1
24220   while :; do
24221     cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 $ac_includes_default
24228 #ifndef offsetof
24229 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24230 #endif
24231 typedef struct { char x; short y; } ac__type_alignof_;
24232 int
24233 main ()
24234 {
24235 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24236 test_array [0] = 0
24237
24238   ;
24239   return 0;
24240 }
24241 _ACEOF
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246   *) ac_try_echo=$ac_try;;
24247 esac
24248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24249 $as_echo "$ac_try_echo") >&5
24250   (eval "$ac_compile") 2>conftest.er1
24251   ac_status=$?
24252   grep -v '^ *+' conftest.er1 >conftest.err
24253   rm -f conftest.er1
24254   cat conftest.err >&5
24255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); } && {
24257          test -z "$ac_c_werror_flag" ||
24258          test ! -s conftest.err
24259        } && test -s conftest.$ac_objext; then
24260   ac_lo=$ac_mid; break
24261 else
24262   $as_echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24264
24265         ac_hi=`expr '(' $ac_mid ')' - 1`
24266                         if test $ac_mid -le $ac_hi; then
24267                           ac_lo= ac_hi=
24268                           break
24269                         fi
24270                         ac_mid=`expr 2 '*' $ac_mid`
24271 fi
24272
24273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24274   done
24275 else
24276   $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279         ac_lo= ac_hi=
24280 fi
24281
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283 fi
24284
24285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286 # Binary search between lo and hi bounds.
24287 while test "x$ac_lo" != "x$ac_hi"; do
24288   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24289   cat >conftest.$ac_ext <<_ACEOF
24290 /* confdefs.h.  */
24291 _ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h.  */
24295 $ac_includes_default
24296 #ifndef offsetof
24297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24298 #endif
24299 typedef struct { char x; short y; } ac__type_alignof_;
24300 int
24301 main ()
24302 {
24303 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24304 test_array [0] = 0
24305
24306   ;
24307   return 0;
24308 }
24309 _ACEOF
24310 rm -f conftest.$ac_objext
24311 if { (ac_try="$ac_compile"
24312 case "(($ac_try" in
24313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314   *) ac_try_echo=$ac_try;;
24315 esac
24316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24317 $as_echo "$ac_try_echo") >&5
24318   (eval "$ac_compile") 2>conftest.er1
24319   ac_status=$?
24320   grep -v '^ *+' conftest.er1 >conftest.err
24321   rm -f conftest.er1
24322   cat conftest.err >&5
24323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); } && {
24325          test -z "$ac_c_werror_flag" ||
24326          test ! -s conftest.err
24327        } && test -s conftest.$ac_objext; then
24328   ac_hi=$ac_mid
24329 else
24330   $as_echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333         ac_lo=`expr '(' $ac_mid ')' + 1`
24334 fi
24335
24336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337 done
24338 case $ac_lo in
24339 ?*) ac_cv_alignof_short=$ac_lo;;
24340 '') if test "$ac_cv_type_short" = yes; then
24341      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24343 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24344 See \`config.log' for more details." >&5
24345 $as_echo "$as_me: error: cannot compute alignment of short
24346 See \`config.log' for more details." >&2;}
24347    { (exit 77); exit 77; }; }; }
24348    else
24349      ac_cv_alignof_short=0
24350    fi ;;
24351 esac
24352 else
24353   cat >conftest.$ac_ext <<_ACEOF
24354 /* confdefs.h.  */
24355 _ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h.  */
24359 $ac_includes_default
24360 #ifndef offsetof
24361 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24362 #endif
24363 typedef struct { char x; short y; } ac__type_alignof_;
24364 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24365 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24366 #include <stdio.h>
24367 #include <stdlib.h>
24368 int
24369 main ()
24370 {
24371
24372   FILE *f = fopen ("conftest.val", "w");
24373   if (! f)
24374     return 1;
24375   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24376     {
24377       long int i = longval ();
24378       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24379         return 1;
24380       fprintf (f, "%ld", i);
24381     }
24382   else
24383     {
24384       unsigned long int i = ulongval ();
24385       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24386         return 1;
24387       fprintf (f, "%lu", i);
24388     }
24389   /* Do not output a trailing newline, as this causes \r\n confusion
24390      on some platforms.  */
24391   return ferror (f) || fclose (f) != 0;
24392
24393   ;
24394   return 0;
24395 }
24396 _ACEOF
24397 rm -f conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401   *) ac_try_echo=$ac_try;;
24402 esac
24403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24404 $as_echo "$ac_try_echo") >&5
24405   (eval "$ac_link") 2>&5
24406   ac_status=$?
24407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24409   { (case "(($ac_try" in
24410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411   *) ac_try_echo=$ac_try;;
24412 esac
24413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24414 $as_echo "$ac_try_echo") >&5
24415   (eval "$ac_try") 2>&5
24416   ac_status=$?
24417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); }; }; then
24419   ac_cv_alignof_short=`cat conftest.val`
24420 else
24421   $as_echo "$as_me: program exited with status $ac_status" >&5
24422 $as_echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 ( exit $ac_status )
24426 if test "$ac_cv_type_short" = yes; then
24427      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24429 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24430 See \`config.log' for more details." >&5
24431 $as_echo "$as_me: error: cannot compute alignment of short
24432 See \`config.log' for more details." >&2;}
24433    { (exit 77); exit 77; }; }; }
24434    else
24435      ac_cv_alignof_short=0
24436    fi
24437 fi
24438 rm -rf conftest.dSYM
24439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24440 fi
24441 rm -f conftest.val
24442 fi
24443 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24444 $as_echo "$ac_cv_alignof_short" >&6; }
24445
24446
24447
24448 cat >>confdefs.h <<_ACEOF
24449 #define ALIGNOF_SHORT $ac_cv_alignof_short
24450 _ACEOF
24451
24452
24453 # The cast to long int works around a bug in the HP C Compiler,
24454 # see AC_CHECK_SIZEOF for more information.
24455 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24456 $as_echo_n "checking alignment of int... " >&6; }
24457 if test "${ac_cv_alignof_int+set}" = set; then
24458   $as_echo_n "(cached) " >&6
24459 else
24460   if test "$cross_compiling" = yes; then
24461   # Depending upon the size, compute the lo and hi bounds.
24462 cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468 $ac_includes_default
24469 #ifndef offsetof
24470 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24471 #endif
24472 typedef struct { char x; int y; } ac__type_alignof_;
24473 int
24474 main ()
24475 {
24476 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24477 test_array [0] = 0
24478
24479   ;
24480   return 0;
24481 }
24482 _ACEOF
24483 rm -f conftest.$ac_objext
24484 if { (ac_try="$ac_compile"
24485 case "(($ac_try" in
24486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487   *) ac_try_echo=$ac_try;;
24488 esac
24489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24490 $as_echo "$ac_try_echo") >&5
24491   (eval "$ac_compile") 2>conftest.er1
24492   ac_status=$?
24493   grep -v '^ *+' conftest.er1 >conftest.err
24494   rm -f conftest.er1
24495   cat conftest.err >&5
24496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } && {
24498          test -z "$ac_c_werror_flag" ||
24499          test ! -s conftest.err
24500        } && test -s conftest.$ac_objext; then
24501   ac_lo=0 ac_mid=0
24502   while :; do
24503     cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h.  */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h.  */
24509 $ac_includes_default
24510 #ifndef offsetof
24511 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24512 #endif
24513 typedef struct { char x; int y; } ac__type_alignof_;
24514 int
24515 main ()
24516 {
24517 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24518 test_array [0] = 0
24519
24520   ;
24521   return 0;
24522 }
24523 _ACEOF
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528   *) ac_try_echo=$ac_try;;
24529 esac
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532   (eval "$ac_compile") 2>conftest.er1
24533   ac_status=$?
24534   grep -v '^ *+' conftest.er1 >conftest.err
24535   rm -f conftest.er1
24536   cat conftest.err >&5
24537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); } && {
24539          test -z "$ac_c_werror_flag" ||
24540          test ! -s conftest.err
24541        } && test -s conftest.$ac_objext; then
24542   ac_hi=$ac_mid; break
24543 else
24544   $as_echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24546
24547         ac_lo=`expr $ac_mid + 1`
24548                         if test $ac_lo -le $ac_mid; then
24549                           ac_lo= ac_hi=
24550                           break
24551                         fi
24552                         ac_mid=`expr 2 '*' $ac_mid + 1`
24553 fi
24554
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556   done
24557 else
24558   $as_echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24560
24561         cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 $ac_includes_default
24568 #ifndef offsetof
24569 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24570 #endif
24571 typedef struct { char x; int y; } ac__type_alignof_;
24572 int
24573 main ()
24574 {
24575 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24576 test_array [0] = 0
24577
24578   ;
24579   return 0;
24580 }
24581 _ACEOF
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586   *) ac_try_echo=$ac_try;;
24587 esac
24588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24589 $as_echo "$ac_try_echo") >&5
24590   (eval "$ac_compile") 2>conftest.er1
24591   ac_status=$?
24592   grep -v '^ *+' conftest.er1 >conftest.err
24593   rm -f conftest.er1
24594   cat conftest.err >&5
24595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); } && {
24597          test -z "$ac_c_werror_flag" ||
24598          test ! -s conftest.err
24599        } && test -s conftest.$ac_objext; then
24600   ac_hi=-1 ac_mid=-1
24601   while :; do
24602     cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h.  */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h.  */
24608 $ac_includes_default
24609 #ifndef offsetof
24610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24611 #endif
24612 typedef struct { char x; int y; } ac__type_alignof_;
24613 int
24614 main ()
24615 {
24616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24617 test_array [0] = 0
24618
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest.$ac_objext
24624 if { (ac_try="$ac_compile"
24625 case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24630 $as_echo "$ac_try_echo") >&5
24631   (eval "$ac_compile") 2>conftest.er1
24632   ac_status=$?
24633   grep -v '^ *+' conftest.er1 >conftest.err
24634   rm -f conftest.er1
24635   cat conftest.err >&5
24636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } && {
24638          test -z "$ac_c_werror_flag" ||
24639          test ! -s conftest.err
24640        } && test -s conftest.$ac_objext; then
24641   ac_lo=$ac_mid; break
24642 else
24643   $as_echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646         ac_hi=`expr '(' $ac_mid ')' - 1`
24647                         if test $ac_mid -le $ac_hi; then
24648                           ac_lo= ac_hi=
24649                           break
24650                         fi
24651                         ac_mid=`expr 2 '*' $ac_mid`
24652 fi
24653
24654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24655   done
24656 else
24657   $as_echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         ac_lo= ac_hi=
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 fi
24665
24666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667 # Binary search between lo and hi bounds.
24668 while test "x$ac_lo" != "x$ac_hi"; do
24669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24670   cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h.  */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h.  */
24676 $ac_includes_default
24677 #ifndef offsetof
24678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24679 #endif
24680 typedef struct { char x; int y; } ac__type_alignof_;
24681 int
24682 main ()
24683 {
24684 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24685 test_array [0] = 0
24686
24687   ;
24688   return 0;
24689 }
24690 _ACEOF
24691 rm -f conftest.$ac_objext
24692 if { (ac_try="$ac_compile"
24693 case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24698 $as_echo "$ac_try_echo") >&5
24699   (eval "$ac_compile") 2>conftest.er1
24700   ac_status=$?
24701   grep -v '^ *+' conftest.er1 >conftest.err
24702   rm -f conftest.er1
24703   cat conftest.err >&5
24704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705   (exit $ac_status); } && {
24706          test -z "$ac_c_werror_flag" ||
24707          test ! -s conftest.err
24708        } && test -s conftest.$ac_objext; then
24709   ac_hi=$ac_mid
24710 else
24711   $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24713
24714         ac_lo=`expr '(' $ac_mid ')' + 1`
24715 fi
24716
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718 done
24719 case $ac_lo in
24720 ?*) ac_cv_alignof_int=$ac_lo;;
24721 '') if test "$ac_cv_type_int" = yes; then
24722      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24724 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24725 See \`config.log' for more details." >&5
24726 $as_echo "$as_me: error: cannot compute alignment of int
24727 See \`config.log' for more details." >&2;}
24728    { (exit 77); exit 77; }; }; }
24729    else
24730      ac_cv_alignof_int=0
24731    fi ;;
24732 esac
24733 else
24734   cat >conftest.$ac_ext <<_ACEOF
24735 /* confdefs.h.  */
24736 _ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h.  */
24740 $ac_includes_default
24741 #ifndef offsetof
24742 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24743 #endif
24744 typedef struct { char x; int y; } ac__type_alignof_;
24745 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24746 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24747 #include <stdio.h>
24748 #include <stdlib.h>
24749 int
24750 main ()
24751 {
24752
24753   FILE *f = fopen ("conftest.val", "w");
24754   if (! f)
24755     return 1;
24756   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24757     {
24758       long int i = longval ();
24759       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24760         return 1;
24761       fprintf (f, "%ld", i);
24762     }
24763   else
24764     {
24765       unsigned long int i = ulongval ();
24766       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24767         return 1;
24768       fprintf (f, "%lu", i);
24769     }
24770   /* Do not output a trailing newline, as this causes \r\n confusion
24771      on some platforms.  */
24772   return ferror (f) || fclose (f) != 0;
24773
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 rm -f conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24785 $as_echo "$ac_try_echo") >&5
24786   (eval "$ac_link") 2>&5
24787   ac_status=$?
24788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24790   { (case "(($ac_try" in
24791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792   *) ac_try_echo=$ac_try;;
24793 esac
24794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24795 $as_echo "$ac_try_echo") >&5
24796   (eval "$ac_try") 2>&5
24797   ac_status=$?
24798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); }; }; then
24800   ac_cv_alignof_int=`cat conftest.val`
24801 else
24802   $as_echo "$as_me: program exited with status $ac_status" >&5
24803 $as_echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806 ( exit $ac_status )
24807 if test "$ac_cv_type_int" = yes; then
24808      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24810 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24811 See \`config.log' for more details." >&5
24812 $as_echo "$as_me: error: cannot compute alignment of int
24813 See \`config.log' for more details." >&2;}
24814    { (exit 77); exit 77; }; }; }
24815    else
24816      ac_cv_alignof_int=0
24817    fi
24818 fi
24819 rm -rf conftest.dSYM
24820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24821 fi
24822 rm -f conftest.val
24823 fi
24824 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24825 $as_echo "$ac_cv_alignof_int" >&6; }
24826
24827
24828
24829 cat >>confdefs.h <<_ACEOF
24830 #define ALIGNOF_INT $ac_cv_alignof_int
24831 _ACEOF
24832
24833
24834 # The cast to long int works around a bug in the HP C Compiler,
24835 # see AC_CHECK_SIZEOF for more information.
24836 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24837 $as_echo_n "checking alignment of long... " >&6; }
24838 if test "${ac_cv_alignof_long+set}" = set; then
24839   $as_echo_n "(cached) " >&6
24840 else
24841   if test "$cross_compiling" = yes; then
24842   # Depending upon the size, compute the lo and hi bounds.
24843 cat >conftest.$ac_ext <<_ACEOF
24844 /* confdefs.h.  */
24845 _ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h.  */
24849 $ac_includes_default
24850 #ifndef offsetof
24851 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24852 #endif
24853 typedef struct { char x; long y; } ac__type_alignof_;
24854 int
24855 main ()
24856 {
24857 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24858 test_array [0] = 0
24859
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868   *) ac_try_echo=$ac_try;;
24869 esac
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872   (eval "$ac_compile") 2>conftest.er1
24873   ac_status=$?
24874   grep -v '^ *+' conftest.er1 >conftest.err
24875   rm -f conftest.er1
24876   cat conftest.err >&5
24877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); } && {
24879          test -z "$ac_c_werror_flag" ||
24880          test ! -s conftest.err
24881        } && test -s conftest.$ac_objext; then
24882   ac_lo=0 ac_mid=0
24883   while :; do
24884     cat >conftest.$ac_ext <<_ACEOF
24885 /* confdefs.h.  */
24886 _ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h.  */
24890 $ac_includes_default
24891 #ifndef offsetof
24892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24893 #endif
24894 typedef struct { char x; long y; } ac__type_alignof_;
24895 int
24896 main ()
24897 {
24898 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24899 test_array [0] = 0
24900
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913   (eval "$ac_compile") 2>conftest.er1
24914   ac_status=$?
24915   grep -v '^ *+' conftest.er1 >conftest.err
24916   rm -f conftest.er1
24917   cat conftest.err >&5
24918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } && {
24920          test -z "$ac_c_werror_flag" ||
24921          test ! -s conftest.err
24922        } && test -s conftest.$ac_objext; then
24923   ac_hi=$ac_mid; break
24924 else
24925   $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928         ac_lo=`expr $ac_mid + 1`
24929                         if test $ac_lo -le $ac_mid; then
24930                           ac_lo= ac_hi=
24931                           break
24932                         fi
24933                         ac_mid=`expr 2 '*' $ac_mid + 1`
24934 fi
24935
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937   done
24938 else
24939   $as_echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24941
24942         cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h.  */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h.  */
24948 $ac_includes_default
24949 #ifndef offsetof
24950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24951 #endif
24952 typedef struct { char x; long y; } ac__type_alignof_;
24953 int
24954 main ()
24955 {
24956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24957 test_array [0] = 0
24958
24959   ;
24960   return 0;
24961 }
24962 _ACEOF
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24970 $as_echo "$ac_try_echo") >&5
24971   (eval "$ac_compile") 2>conftest.er1
24972   ac_status=$?
24973   grep -v '^ *+' conftest.er1 >conftest.err
24974   rm -f conftest.er1
24975   cat conftest.err >&5
24976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); } && {
24978          test -z "$ac_c_werror_flag" ||
24979          test ! -s conftest.err
24980        } && test -s conftest.$ac_objext; then
24981   ac_hi=-1 ac_mid=-1
24982   while :; do
24983     cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h.  */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h.  */
24989 $ac_includes_default
24990 #ifndef offsetof
24991 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24992 #endif
24993 typedef struct { char x; long y; } ac__type_alignof_;
24994 int
24995 main ()
24996 {
24997 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24998 test_array [0] = 0
24999
25000   ;
25001   return 0;
25002 }
25003 _ACEOF
25004 rm -f conftest.$ac_objext
25005 if { (ac_try="$ac_compile"
25006 case "(($ac_try" in
25007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008   *) ac_try_echo=$ac_try;;
25009 esac
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012   (eval "$ac_compile") 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } && {
25019          test -z "$ac_c_werror_flag" ||
25020          test ! -s conftest.err
25021        } && test -s conftest.$ac_objext; then
25022   ac_lo=$ac_mid; break
25023 else
25024   $as_echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027         ac_hi=`expr '(' $ac_mid ')' - 1`
25028                         if test $ac_mid -le $ac_hi; then
25029                           ac_lo= ac_hi=
25030                           break
25031                         fi
25032                         ac_mid=`expr 2 '*' $ac_mid`
25033 fi
25034
25035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036   done
25037 else
25038   $as_echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25040
25041         ac_lo= ac_hi=
25042 fi
25043
25044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25045 fi
25046
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25048 # Binary search between lo and hi bounds.
25049 while test "x$ac_lo" != "x$ac_hi"; do
25050   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 $ac_includes_default
25058 #ifndef offsetof
25059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25060 #endif
25061 typedef struct { char x; long y; } ac__type_alignof_;
25062 int
25063 main ()
25064 {
25065 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25066 test_array [0] = 0
25067
25068   ;
25069   return 0;
25070 }
25071 _ACEOF
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076   *) ac_try_echo=$ac_try;;
25077 esac
25078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25079 $as_echo "$ac_try_echo") >&5
25080   (eval "$ac_compile") 2>conftest.er1
25081   ac_status=$?
25082   grep -v '^ *+' conftest.er1 >conftest.err
25083   rm -f conftest.er1
25084   cat conftest.err >&5
25085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); } && {
25087          test -z "$ac_c_werror_flag" ||
25088          test ! -s conftest.err
25089        } && test -s conftest.$ac_objext; then
25090   ac_hi=$ac_mid
25091 else
25092   $as_echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095         ac_lo=`expr '(' $ac_mid ')' + 1`
25096 fi
25097
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25099 done
25100 case $ac_lo in
25101 ?*) ac_cv_alignof_long=$ac_lo;;
25102 '') if test "$ac_cv_type_long" = yes; then
25103      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
25106 See \`config.log' for more details." >&5
25107 $as_echo "$as_me: error: cannot compute alignment of long
25108 See \`config.log' for more details." >&2;}
25109    { (exit 77); exit 77; }; }; }
25110    else
25111      ac_cv_alignof_long=0
25112    fi ;;
25113 esac
25114 else
25115   cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121 $ac_includes_default
25122 #ifndef offsetof
25123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25124 #endif
25125 typedef struct { char x; long y; } ac__type_alignof_;
25126 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25127 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25128 #include <stdio.h>
25129 #include <stdlib.h>
25130 int
25131 main ()
25132 {
25133
25134   FILE *f = fopen ("conftest.val", "w");
25135   if (! f)
25136     return 1;
25137   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25138     {
25139       long int i = longval ();
25140       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25141         return 1;
25142       fprintf (f, "%ld", i);
25143     }
25144   else
25145     {
25146       unsigned long int i = ulongval ();
25147       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25148         return 1;
25149       fprintf (f, "%lu", i);
25150     }
25151   /* Do not output a trailing newline, as this causes \r\n confusion
25152      on some platforms.  */
25153   return ferror (f) || fclose (f) != 0;
25154
25155   ;
25156   return 0;
25157 }
25158 _ACEOF
25159 rm -f conftest$ac_exeext
25160 if { (ac_try="$ac_link"
25161 case "(($ac_try" in
25162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163   *) ac_try_echo=$ac_try;;
25164 esac
25165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25166 $as_echo "$ac_try_echo") >&5
25167   (eval "$ac_link") 2>&5
25168   ac_status=$?
25169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25171   { (case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25176 $as_echo "$ac_try_echo") >&5
25177   (eval "$ac_try") 2>&5
25178   ac_status=$?
25179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); }; }; then
25181   ac_cv_alignof_long=`cat conftest.val`
25182 else
25183   $as_echo "$as_me: program exited with status $ac_status" >&5
25184 $as_echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25186
25187 ( exit $ac_status )
25188 if test "$ac_cv_type_long" = yes; then
25189      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25191 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
25192 See \`config.log' for more details." >&5
25193 $as_echo "$as_me: error: cannot compute alignment of long
25194 See \`config.log' for more details." >&2;}
25195    { (exit 77); exit 77; }; }; }
25196    else
25197      ac_cv_alignof_long=0
25198    fi
25199 fi
25200 rm -rf conftest.dSYM
25201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25202 fi
25203 rm -f conftest.val
25204 fi
25205 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
25206 $as_echo "$ac_cv_alignof_long" >&6; }
25207
25208
25209
25210 cat >>confdefs.h <<_ACEOF
25211 #define ALIGNOF_LONG $ac_cv_alignof_long
25212 _ACEOF
25213
25214
25215 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
25216   # The cast to long int works around a bug in the HP C Compiler,
25217 # see AC_CHECK_SIZEOF for more information.
25218 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
25219 $as_echo_n "checking alignment of long long int... " >&6; }
25220 if test "${ac_cv_alignof_long_long_int+set}" = set; then
25221   $as_echo_n "(cached) " >&6
25222 else
25223   if test "$cross_compiling" = yes; then
25224   # Depending upon the size, compute the lo and hi bounds.
25225 cat >conftest.$ac_ext <<_ACEOF
25226 /* confdefs.h.  */
25227 _ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h.  */
25231 $ac_includes_default
25232 #ifndef offsetof
25233 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25234 #endif
25235 typedef struct { char x; long long int y; } ac__type_alignof_;
25236 int
25237 main ()
25238 {
25239 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25240 test_array [0] = 0
25241
25242   ;
25243   return 0;
25244 }
25245 _ACEOF
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250   *) ac_try_echo=$ac_try;;
25251 esac
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254   (eval "$ac_compile") 2>conftest.er1
25255   ac_status=$?
25256   grep -v '^ *+' conftest.er1 >conftest.err
25257   rm -f conftest.er1
25258   cat conftest.err >&5
25259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); } && {
25261          test -z "$ac_c_werror_flag" ||
25262          test ! -s conftest.err
25263        } && test -s conftest.$ac_objext; then
25264   ac_lo=0 ac_mid=0
25265   while :; do
25266     cat >conftest.$ac_ext <<_ACEOF
25267 /* confdefs.h.  */
25268 _ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h.  */
25272 $ac_includes_default
25273 #ifndef offsetof
25274 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25275 #endif
25276 typedef struct { char x; long long int y; } ac__type_alignof_;
25277 int
25278 main ()
25279 {
25280 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25281 test_array [0] = 0
25282
25283   ;
25284   return 0;
25285 }
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291   *) ac_try_echo=$ac_try;;
25292 esac
25293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25294 $as_echo "$ac_try_echo") >&5
25295   (eval "$ac_compile") 2>conftest.er1
25296   ac_status=$?
25297   grep -v '^ *+' conftest.er1 >conftest.err
25298   rm -f conftest.er1
25299   cat conftest.err >&5
25300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && {
25302          test -z "$ac_c_werror_flag" ||
25303          test ! -s conftest.err
25304        } && test -s conftest.$ac_objext; then
25305   ac_hi=$ac_mid; break
25306 else
25307   $as_echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25309
25310         ac_lo=`expr $ac_mid + 1`
25311                         if test $ac_lo -le $ac_mid; then
25312                           ac_lo= ac_hi=
25313                           break
25314                         fi
25315                         ac_mid=`expr 2 '*' $ac_mid + 1`
25316 fi
25317
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319   done
25320 else
25321   $as_echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324         cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330 $ac_includes_default
25331 #ifndef offsetof
25332 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25333 #endif
25334 typedef struct { char x; long long int y; } ac__type_alignof_;
25335 int
25336 main ()
25337 {
25338 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25339 test_array [0] = 0
25340
25341   ;
25342   return 0;
25343 }
25344 _ACEOF
25345 rm -f conftest.$ac_objext
25346 if { (ac_try="$ac_compile"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25352 $as_echo "$ac_try_echo") >&5
25353   (eval "$ac_compile") 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } && {
25360          test -z "$ac_c_werror_flag" ||
25361          test ! -s conftest.err
25362        } && test -s conftest.$ac_objext; then
25363   ac_hi=-1 ac_mid=-1
25364   while :; do
25365     cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371 $ac_includes_default
25372 #ifndef offsetof
25373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25374 #endif
25375 typedef struct { char x; long long int y; } ac__type_alignof_;
25376 int
25377 main ()
25378 {
25379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25380 test_array [0] = 0
25381
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 rm -f conftest.$ac_objext
25387 if { (ac_try="$ac_compile"
25388 case "(($ac_try" in
25389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390   *) ac_try_echo=$ac_try;;
25391 esac
25392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25393 $as_echo "$ac_try_echo") >&5
25394   (eval "$ac_compile") 2>conftest.er1
25395   ac_status=$?
25396   grep -v '^ *+' conftest.er1 >conftest.err
25397   rm -f conftest.er1
25398   cat conftest.err >&5
25399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); } && {
25401          test -z "$ac_c_werror_flag" ||
25402          test ! -s conftest.err
25403        } && test -s conftest.$ac_objext; then
25404   ac_lo=$ac_mid; break
25405 else
25406   $as_echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25408
25409         ac_hi=`expr '(' $ac_mid ')' - 1`
25410                         if test $ac_mid -le $ac_hi; then
25411                           ac_lo= ac_hi=
25412                           break
25413                         fi
25414                         ac_mid=`expr 2 '*' $ac_mid`
25415 fi
25416
25417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25418   done
25419 else
25420   $as_echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25422
25423         ac_lo= ac_hi=
25424 fi
25425
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 fi
25428
25429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 # Binary search between lo and hi bounds.
25431 while test "x$ac_lo" != "x$ac_hi"; do
25432   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25433   cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439 $ac_includes_default
25440 #ifndef offsetof
25441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25442 #endif
25443 typedef struct { char x; long long int y; } ac__type_alignof_;
25444 int
25445 main ()
25446 {
25447 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25448 test_array [0] = 0
25449
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458   *) ac_try_echo=$ac_try;;
25459 esac
25460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25461 $as_echo "$ac_try_echo") >&5
25462   (eval "$ac_compile") 2>conftest.er1
25463   ac_status=$?
25464   grep -v '^ *+' conftest.er1 >conftest.err
25465   rm -f conftest.er1
25466   cat conftest.err >&5
25467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468   (exit $ac_status); } && {
25469          test -z "$ac_c_werror_flag" ||
25470          test ! -s conftest.err
25471        } && test -s conftest.$ac_objext; then
25472   ac_hi=$ac_mid
25473 else
25474   $as_echo "$as_me: failed program was:" >&5
25475 sed 's/^/| /' conftest.$ac_ext >&5
25476
25477         ac_lo=`expr '(' $ac_mid ')' + 1`
25478 fi
25479
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481 done
25482 case $ac_lo in
25483 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25484 '') if test "$ac_cv_type_long_long_int" = yes; then
25485      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25487 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25488 See \`config.log' for more details." >&5
25489 $as_echo "$as_me: error: cannot compute alignment of long long int
25490 See \`config.log' for more details." >&2;}
25491    { (exit 77); exit 77; }; }; }
25492    else
25493      ac_cv_alignof_long_long_int=0
25494    fi ;;
25495 esac
25496 else
25497   cat >conftest.$ac_ext <<_ACEOF
25498 /* confdefs.h.  */
25499 _ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h.  */
25503 $ac_includes_default
25504 #ifndef offsetof
25505 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25506 #endif
25507 typedef struct { char x; long long int y; } ac__type_alignof_;
25508 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25509 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25510 #include <stdio.h>
25511 #include <stdlib.h>
25512 int
25513 main ()
25514 {
25515
25516   FILE *f = fopen ("conftest.val", "w");
25517   if (! f)
25518     return 1;
25519   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25520     {
25521       long int i = longval ();
25522       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25523         return 1;
25524       fprintf (f, "%ld", i);
25525     }
25526   else
25527     {
25528       unsigned long int i = ulongval ();
25529       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25530         return 1;
25531       fprintf (f, "%lu", i);
25532     }
25533   /* Do not output a trailing newline, as this causes \r\n confusion
25534      on some platforms.  */
25535   return ferror (f) || fclose (f) != 0;
25536
25537   ;
25538   return 0;
25539 }
25540 _ACEOF
25541 rm -f conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25548 $as_echo "$ac_try_echo") >&5
25549   (eval "$ac_link") 2>&5
25550   ac_status=$?
25551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25553   { (case "(($ac_try" in
25554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555   *) ac_try_echo=$ac_try;;
25556 esac
25557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25558 $as_echo "$ac_try_echo") >&5
25559   (eval "$ac_try") 2>&5
25560   ac_status=$?
25561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562   (exit $ac_status); }; }; then
25563   ac_cv_alignof_long_long_int=`cat conftest.val`
25564 else
25565   $as_echo "$as_me: program exited with status $ac_status" >&5
25566 $as_echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569 ( exit $ac_status )
25570 if test "$ac_cv_type_long_long_int" = yes; then
25571      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25573 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25574 See \`config.log' for more details." >&5
25575 $as_echo "$as_me: error: cannot compute alignment of long long int
25576 See \`config.log' for more details." >&2;}
25577    { (exit 77); exit 77; }; }; }
25578    else
25579      ac_cv_alignof_long_long_int=0
25580    fi
25581 fi
25582 rm -rf conftest.dSYM
25583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25584 fi
25585 rm -f conftest.val
25586 fi
25587 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25588 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25589
25590
25591
25592 cat >>confdefs.h <<_ACEOF
25593 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25594 _ACEOF
25595
25596
25597 fi
25598 # The cast to long int works around a bug in the HP C Compiler,
25599 # see AC_CHECK_SIZEOF for more information.
25600 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25601 $as_echo_n "checking alignment of double... " >&6; }
25602 if test "${ac_cv_alignof_double+set}" = set; then
25603   $as_echo_n "(cached) " >&6
25604 else
25605   if test "$cross_compiling" = yes; then
25606   # Depending upon the size, compute the lo and hi bounds.
25607 cat >conftest.$ac_ext <<_ACEOF
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613 $ac_includes_default
25614 #ifndef offsetof
25615 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25616 #endif
25617 typedef struct { char x; double y; } ac__type_alignof_;
25618 int
25619 main ()
25620 {
25621 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25622 test_array [0] = 0
25623
25624   ;
25625   return 0;
25626 }
25627 _ACEOF
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25635 $as_echo "$ac_try_echo") >&5
25636   (eval "$ac_compile") 2>conftest.er1
25637   ac_status=$?
25638   grep -v '^ *+' conftest.er1 >conftest.err
25639   rm -f conftest.er1
25640   cat conftest.err >&5
25641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642   (exit $ac_status); } && {
25643          test -z "$ac_c_werror_flag" ||
25644          test ! -s conftest.err
25645        } && test -s conftest.$ac_objext; then
25646   ac_lo=0 ac_mid=0
25647   while :; do
25648     cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 $ac_includes_default
25655 #ifndef offsetof
25656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25657 #endif
25658 typedef struct { char x; double y; } ac__type_alignof_;
25659 int
25660 main ()
25661 {
25662 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25663 test_array [0] = 0
25664
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext
25670 if { (ac_try="$ac_compile"
25671 case "(($ac_try" in
25672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673   *) ac_try_echo=$ac_try;;
25674 esac
25675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677   (eval "$ac_compile") 2>conftest.er1
25678   ac_status=$?
25679   grep -v '^ *+' conftest.er1 >conftest.err
25680   rm -f conftest.er1
25681   cat conftest.err >&5
25682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); } && {
25684          test -z "$ac_c_werror_flag" ||
25685          test ! -s conftest.err
25686        } && test -s conftest.$ac_objext; then
25687   ac_hi=$ac_mid; break
25688 else
25689   $as_echo "$as_me: failed program was:" >&5
25690 sed 's/^/| /' conftest.$ac_ext >&5
25691
25692         ac_lo=`expr $ac_mid + 1`
25693                         if test $ac_lo -le $ac_mid; then
25694                           ac_lo= ac_hi=
25695                           break
25696                         fi
25697                         ac_mid=`expr 2 '*' $ac_mid + 1`
25698 fi
25699
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25701   done
25702 else
25703   $as_echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25705
25706         cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h.  */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h.  */
25712 $ac_includes_default
25713 #ifndef offsetof
25714 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25715 #endif
25716 typedef struct { char x; double y; } ac__type_alignof_;
25717 int
25718 main ()
25719 {
25720 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25721 test_array [0] = 0
25722
25723   ;
25724   return 0;
25725 }
25726 _ACEOF
25727 rm -f conftest.$ac_objext
25728 if { (ac_try="$ac_compile"
25729 case "(($ac_try" in
25730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25731   *) ac_try_echo=$ac_try;;
25732 esac
25733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25734 $as_echo "$ac_try_echo") >&5
25735   (eval "$ac_compile") 2>conftest.er1
25736   ac_status=$?
25737   grep -v '^ *+' conftest.er1 >conftest.err
25738   rm -f conftest.er1
25739   cat conftest.err >&5
25740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741   (exit $ac_status); } && {
25742          test -z "$ac_c_werror_flag" ||
25743          test ! -s conftest.err
25744        } && test -s conftest.$ac_objext; then
25745   ac_hi=-1 ac_mid=-1
25746   while :; do
25747     cat >conftest.$ac_ext <<_ACEOF
25748 /* confdefs.h.  */
25749 _ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h.  */
25753 $ac_includes_default
25754 #ifndef offsetof
25755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25756 #endif
25757 typedef struct { char x; double y; } ac__type_alignof_;
25758 int
25759 main ()
25760 {
25761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25762 test_array [0] = 0
25763
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 rm -f conftest.$ac_objext
25769 if { (ac_try="$ac_compile"
25770 case "(($ac_try" in
25771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772   *) ac_try_echo=$ac_try;;
25773 esac
25774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25775 $as_echo "$ac_try_echo") >&5
25776   (eval "$ac_compile") 2>conftest.er1
25777   ac_status=$?
25778   grep -v '^ *+' conftest.er1 >conftest.err
25779   rm -f conftest.er1
25780   cat conftest.err >&5
25781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && {
25783          test -z "$ac_c_werror_flag" ||
25784          test ! -s conftest.err
25785        } && test -s conftest.$ac_objext; then
25786   ac_lo=$ac_mid; break
25787 else
25788   $as_echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25790
25791         ac_hi=`expr '(' $ac_mid ')' - 1`
25792                         if test $ac_mid -le $ac_hi; then
25793                           ac_lo= ac_hi=
25794                           break
25795                         fi
25796                         ac_mid=`expr 2 '*' $ac_mid`
25797 fi
25798
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800   done
25801 else
25802   $as_echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805         ac_lo= ac_hi=
25806 fi
25807
25808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25809 fi
25810
25811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25812 # Binary search between lo and hi bounds.
25813 while test "x$ac_lo" != "x$ac_hi"; do
25814   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25815   cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h.  */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h.  */
25821 $ac_includes_default
25822 #ifndef offsetof
25823 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25824 #endif
25825 typedef struct { char x; double y; } ac__type_alignof_;
25826 int
25827 main ()
25828 {
25829 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25830 test_array [0] = 0
25831
25832   ;
25833   return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest.$ac_objext
25837 if { (ac_try="$ac_compile"
25838 case "(($ac_try" in
25839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840   *) ac_try_echo=$ac_try;;
25841 esac
25842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25843 $as_echo "$ac_try_echo") >&5
25844   (eval "$ac_compile") 2>conftest.er1
25845   ac_status=$?
25846   grep -v '^ *+' conftest.er1 >conftest.err
25847   rm -f conftest.er1
25848   cat conftest.err >&5
25849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); } && {
25851          test -z "$ac_c_werror_flag" ||
25852          test ! -s conftest.err
25853        } && test -s conftest.$ac_objext; then
25854   ac_hi=$ac_mid
25855 else
25856   $as_echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25858
25859         ac_lo=`expr '(' $ac_mid ')' + 1`
25860 fi
25861
25862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25863 done
25864 case $ac_lo in
25865 ?*) ac_cv_alignof_double=$ac_lo;;
25866 '') if test "$ac_cv_type_double" = yes; then
25867      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25869 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25870 See \`config.log' for more details." >&5
25871 $as_echo "$as_me: error: cannot compute alignment of double
25872 See \`config.log' for more details." >&2;}
25873    { (exit 77); exit 77; }; }; }
25874    else
25875      ac_cv_alignof_double=0
25876    fi ;;
25877 esac
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 $ac_includes_default
25886 #ifndef offsetof
25887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25888 #endif
25889 typedef struct { char x; double y; } ac__type_alignof_;
25890 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25891 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25892 #include <stdio.h>
25893 #include <stdlib.h>
25894 int
25895 main ()
25896 {
25897
25898   FILE *f = fopen ("conftest.val", "w");
25899   if (! f)
25900     return 1;
25901   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25902     {
25903       long int i = longval ();
25904       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25905         return 1;
25906       fprintf (f, "%ld", i);
25907     }
25908   else
25909     {
25910       unsigned long int i = ulongval ();
25911       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25912         return 1;
25913       fprintf (f, "%lu", i);
25914     }
25915   /* Do not output a trailing newline, as this causes \r\n confusion
25916      on some platforms.  */
25917   return ferror (f) || fclose (f) != 0;
25918
25919   ;
25920   return 0;
25921 }
25922 _ACEOF
25923 rm -f conftest$ac_exeext
25924 if { (ac_try="$ac_link"
25925 case "(($ac_try" in
25926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927   *) ac_try_echo=$ac_try;;
25928 esac
25929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25930 $as_echo "$ac_try_echo") >&5
25931   (eval "$ac_link") 2>&5
25932   ac_status=$?
25933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25935   { (case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25940 $as_echo "$ac_try_echo") >&5
25941   (eval "$ac_try") 2>&5
25942   ac_status=$?
25943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; }; then
25945   ac_cv_alignof_double=`cat conftest.val`
25946 else
25947   $as_echo "$as_me: program exited with status $ac_status" >&5
25948 $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951 ( exit $ac_status )
25952 if test "$ac_cv_type_double" = yes; then
25953      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25955 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25956 See \`config.log' for more details." >&5
25957 $as_echo "$as_me: error: cannot compute alignment of double
25958 See \`config.log' for more details." >&2;}
25959    { (exit 77); exit 77; }; }; }
25960    else
25961      ac_cv_alignof_double=0
25962    fi
25963 fi
25964 rm -rf conftest.dSYM
25965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25966 fi
25967 rm -f conftest.val
25968 fi
25969 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25970 $as_echo "$ac_cv_alignof_double" >&6; }
25971
25972
25973
25974 cat >>confdefs.h <<_ACEOF
25975 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25976 _ACEOF
25977
25978
25979
25980 # Compute maximum alignment of any basic type.
25981 # We assume long's alignment is at least as strong as char, short, or int;
25982 # but we must check long long (if it exists) and double.
25983
25984 MAX_ALIGNOF=$ac_cv_alignof_long
25985 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25986   MAX_ALIGNOF=$ac_cv_alignof_double
25987 fi
25988 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25989   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25990 fi
25991
25992 cat >>confdefs.h <<_ACEOF
25993 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25994 _ACEOF
25995
25996
25997
25998 # Some platforms predefine the types int8, int16, etc.  Only check
25999 # a (hopefully) representative subset.
26000 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26001 $as_echo_n "checking for int8... " >&6; }
26002 if test "${ac_cv_type_int8+set}" = set; then
26003   $as_echo_n "(cached) " >&6
26004 else
26005   ac_cv_type_int8=no
26006 cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012 #include <stdio.h>
26013 #ifdef HAVE_SUPPORTDEFS_H
26014 #include <SupportDefs.h>
26015 #endif
26016
26017 int
26018 main ()
26019 {
26020 if (sizeof (int8))
26021        return 0;
26022   ;
26023   return 0;
26024 }
26025 _ACEOF
26026 rm -f conftest.$ac_objext
26027 if { (ac_try="$ac_compile"
26028 case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034   (eval "$ac_compile") 2>conftest.er1
26035   ac_status=$?
26036   grep -v '^ *+' conftest.er1 >conftest.err
26037   rm -f conftest.er1
26038   cat conftest.err >&5
26039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); } && {
26041          test -z "$ac_c_werror_flag" ||
26042          test ! -s conftest.err
26043        } && test -s conftest.$ac_objext; then
26044   cat >conftest.$ac_ext <<_ACEOF
26045 /* confdefs.h.  */
26046 _ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h.  */
26050 #include <stdio.h>
26051 #ifdef HAVE_SUPPORTDEFS_H
26052 #include <SupportDefs.h>
26053 #endif
26054
26055 int
26056 main ()
26057 {
26058 if (sizeof ((int8)))
26059           return 0;
26060   ;
26061   return 0;
26062 }
26063 _ACEOF
26064 rm -f conftest.$ac_objext
26065 if { (ac_try="$ac_compile"
26066 case "(($ac_try" in
26067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068   *) ac_try_echo=$ac_try;;
26069 esac
26070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26071 $as_echo "$ac_try_echo") >&5
26072   (eval "$ac_compile") 2>conftest.er1
26073   ac_status=$?
26074   grep -v '^ *+' conftest.er1 >conftest.err
26075   rm -f conftest.er1
26076   cat conftest.err >&5
26077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); } && {
26079          test -z "$ac_c_werror_flag" ||
26080          test ! -s conftest.err
26081        } && test -s conftest.$ac_objext; then
26082   :
26083 else
26084   $as_echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26086
26087         ac_cv_type_int8=yes
26088 fi
26089
26090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26091 else
26092   $as_echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095
26096 fi
26097
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26099 fi
26100 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
26101 $as_echo "$ac_cv_type_int8" >&6; }
26102 if test "x$ac_cv_type_int8" = x""yes; then
26103
26104 cat >>confdefs.h <<_ACEOF
26105 #define HAVE_INT8 1
26106 _ACEOF
26107
26108
26109 fi
26110 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
26111 $as_echo_n "checking for uint8... " >&6; }
26112 if test "${ac_cv_type_uint8+set}" = set; then
26113   $as_echo_n "(cached) " >&6
26114 else
26115   ac_cv_type_uint8=no
26116 cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h.  */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h.  */
26122 #include <stdio.h>
26123 #ifdef HAVE_SUPPORTDEFS_H
26124 #include <SupportDefs.h>
26125 #endif
26126
26127 int
26128 main ()
26129 {
26130 if (sizeof (uint8))
26131        return 0;
26132   ;
26133   return 0;
26134 }
26135 _ACEOF
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140   *) ac_try_echo=$ac_try;;
26141 esac
26142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26143 $as_echo "$ac_try_echo") >&5
26144   (eval "$ac_compile") 2>conftest.er1
26145   ac_status=$?
26146   grep -v '^ *+' conftest.er1 >conftest.err
26147   rm -f conftest.er1
26148   cat conftest.err >&5
26149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } && {
26151          test -z "$ac_c_werror_flag" ||
26152          test ! -s conftest.err
26153        } && test -s conftest.$ac_objext; then
26154   cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 #include <stdio.h>
26161 #ifdef HAVE_SUPPORTDEFS_H
26162 #include <SupportDefs.h>
26163 #endif
26164
26165 int
26166 main ()
26167 {
26168 if (sizeof ((uint8)))
26169           return 0;
26170   ;
26171   return 0;
26172 }
26173 _ACEOF
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178   *) ac_try_echo=$ac_try;;
26179 esac
26180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26181 $as_echo "$ac_try_echo") >&5
26182   (eval "$ac_compile") 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } && {
26189          test -z "$ac_c_werror_flag" ||
26190          test ! -s conftest.err
26191        } && test -s conftest.$ac_objext; then
26192   :
26193 else
26194   $as_echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197         ac_cv_type_uint8=yes
26198 fi
26199
26200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26201 else
26202   $as_echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205
26206 fi
26207
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26209 fi
26210 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
26211 $as_echo "$ac_cv_type_uint8" >&6; }
26212 if test "x$ac_cv_type_uint8" = x""yes; then
26213
26214 cat >>confdefs.h <<_ACEOF
26215 #define HAVE_UINT8 1
26216 _ACEOF
26217
26218
26219 fi
26220 { $as_echo "$as_me:$LINENO: checking for int64" >&5
26221 $as_echo_n "checking for int64... " >&6; }
26222 if test "${ac_cv_type_int64+set}" = set; then
26223   $as_echo_n "(cached) " >&6
26224 else
26225   ac_cv_type_int64=no
26226 cat >conftest.$ac_ext <<_ACEOF
26227 /* confdefs.h.  */
26228 _ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h.  */
26232 #include <stdio.h>
26233 #ifdef HAVE_SUPPORTDEFS_H
26234 #include <SupportDefs.h>
26235 #endif
26236
26237 int
26238 main ()
26239 {
26240 if (sizeof (int64))
26241        return 0;
26242   ;
26243   return 0;
26244 }
26245 _ACEOF
26246 rm -f conftest.$ac_objext
26247 if { (ac_try="$ac_compile"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26253 $as_echo "$ac_try_echo") >&5
26254   (eval "$ac_compile") 2>conftest.er1
26255   ac_status=$?
26256   grep -v '^ *+' conftest.er1 >conftest.err
26257   rm -f conftest.er1
26258   cat conftest.err >&5
26259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); } && {
26261          test -z "$ac_c_werror_flag" ||
26262          test ! -s conftest.err
26263        } && test -s conftest.$ac_objext; then
26264   cat >conftest.$ac_ext <<_ACEOF
26265 /* confdefs.h.  */
26266 _ACEOF
26267 cat confdefs.h >>conftest.$ac_ext
26268 cat >>conftest.$ac_ext <<_ACEOF
26269 /* end confdefs.h.  */
26270 #include <stdio.h>
26271 #ifdef HAVE_SUPPORTDEFS_H
26272 #include <SupportDefs.h>
26273 #endif
26274
26275 int
26276 main ()
26277 {
26278 if (sizeof ((int64)))
26279           return 0;
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (ac_try="$ac_compile"
26286 case "(($ac_try" in
26287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288   *) ac_try_echo=$ac_try;;
26289 esac
26290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26291 $as_echo "$ac_try_echo") >&5
26292   (eval "$ac_compile") 2>conftest.er1
26293   ac_status=$?
26294   grep -v '^ *+' conftest.er1 >conftest.err
26295   rm -f conftest.er1
26296   cat conftest.err >&5
26297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); } && {
26299          test -z "$ac_c_werror_flag" ||
26300          test ! -s conftest.err
26301        } && test -s conftest.$ac_objext; then
26302   :
26303 else
26304   $as_echo "$as_me: failed program was:" >&5
26305 sed 's/^/| /' conftest.$ac_ext >&5
26306
26307         ac_cv_type_int64=yes
26308 fi
26309
26310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26311 else
26312   $as_echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315
26316 fi
26317
26318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 fi
26320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
26321 $as_echo "$ac_cv_type_int64" >&6; }
26322 if test "x$ac_cv_type_int64" = x""yes; then
26323
26324 cat >>confdefs.h <<_ACEOF
26325 #define HAVE_INT64 1
26326 _ACEOF
26327
26328
26329 fi
26330 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
26331 $as_echo_n "checking for uint64... " >&6; }
26332 if test "${ac_cv_type_uint64+set}" = set; then
26333   $as_echo_n "(cached) " >&6
26334 else
26335   ac_cv_type_uint64=no
26336 cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 #include <stdio.h>
26343 #ifdef HAVE_SUPPORTDEFS_H
26344 #include <SupportDefs.h>
26345 #endif
26346
26347 int
26348 main ()
26349 {
26350 if (sizeof (uint64))
26351        return 0;
26352   ;
26353   return 0;
26354 }
26355 _ACEOF
26356 rm -f conftest.$ac_objext
26357 if { (ac_try="$ac_compile"
26358 case "(($ac_try" in
26359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360   *) ac_try_echo=$ac_try;;
26361 esac
26362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363 $as_echo "$ac_try_echo") >&5
26364   (eval "$ac_compile") 2>conftest.er1
26365   ac_status=$?
26366   grep -v '^ *+' conftest.er1 >conftest.err
26367   rm -f conftest.er1
26368   cat conftest.err >&5
26369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); } && {
26371          test -z "$ac_c_werror_flag" ||
26372          test ! -s conftest.err
26373        } && test -s conftest.$ac_objext; then
26374   cat >conftest.$ac_ext <<_ACEOF
26375 /* confdefs.h.  */
26376 _ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h.  */
26380 #include <stdio.h>
26381 #ifdef HAVE_SUPPORTDEFS_H
26382 #include <SupportDefs.h>
26383 #endif
26384
26385 int
26386 main ()
26387 {
26388 if (sizeof ((uint64)))
26389           return 0;
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401 $as_echo "$ac_try_echo") >&5
26402   (eval "$ac_compile") 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } && {
26409          test -z "$ac_c_werror_flag" ||
26410          test ! -s conftest.err
26411        } && test -s conftest.$ac_objext; then
26412   :
26413 else
26414   $as_echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417         ac_cv_type_uint64=yes
26418 fi
26419
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421 else
26422   $as_echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425
26426 fi
26427
26428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26429 fi
26430 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26431 $as_echo "$ac_cv_type_uint64" >&6; }
26432 if test "x$ac_cv_type_uint64" = x""yes; then
26433
26434 cat >>confdefs.h <<_ACEOF
26435 #define HAVE_UINT64 1
26436 _ACEOF
26437
26438
26439 fi
26440
26441
26442 # We also check for sig_atomic_t, which *should* be defined per ANSI
26443 # C, but is missing on some old platforms.
26444 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26445 $as_echo_n "checking for sig_atomic_t... " >&6; }
26446 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26447   $as_echo_n "(cached) " >&6
26448 else
26449   ac_cv_type_sig_atomic_t=no
26450 cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456 #include <signal.h>
26457
26458 int
26459 main ()
26460 {
26461 if (sizeof (sig_atomic_t))
26462        return 0;
26463   ;
26464   return 0;
26465 }
26466 _ACEOF
26467 rm -f conftest.$ac_objext
26468 if { (ac_try="$ac_compile"
26469 case "(($ac_try" in
26470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471   *) ac_try_echo=$ac_try;;
26472 esac
26473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26474 $as_echo "$ac_try_echo") >&5
26475   (eval "$ac_compile") 2>conftest.er1
26476   ac_status=$?
26477   grep -v '^ *+' conftest.er1 >conftest.err
26478   rm -f conftest.er1
26479   cat conftest.err >&5
26480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); } && {
26482          test -z "$ac_c_werror_flag" ||
26483          test ! -s conftest.err
26484        } && test -s conftest.$ac_objext; then
26485   cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h.  */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h.  */
26491 #include <signal.h>
26492
26493 int
26494 main ()
26495 {
26496 if (sizeof ((sig_atomic_t)))
26497           return 0;
26498   ;
26499   return 0;
26500 }
26501 _ACEOF
26502 rm -f conftest.$ac_objext
26503 if { (ac_try="$ac_compile"
26504 case "(($ac_try" in
26505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26506   *) ac_try_echo=$ac_try;;
26507 esac
26508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26509 $as_echo "$ac_try_echo") >&5
26510   (eval "$ac_compile") 2>conftest.er1
26511   ac_status=$?
26512   grep -v '^ *+' conftest.er1 >conftest.err
26513   rm -f conftest.er1
26514   cat conftest.err >&5
26515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); } && {
26517          test -z "$ac_c_werror_flag" ||
26518          test ! -s conftest.err
26519        } && test -s conftest.$ac_objext; then
26520   :
26521 else
26522   $as_echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525         ac_cv_type_sig_atomic_t=yes
26526 fi
26527
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 else
26530   $as_echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533
26534 fi
26535
26536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26537 fi
26538 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26539 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26540 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26541
26542 cat >>confdefs.h <<_ACEOF
26543 #define HAVE_SIG_ATOMIC_T 1
26544 _ACEOF
26545
26546
26547 fi
26548
26549
26550
26551 if test "$PORTNAME" != "win32"
26552 then
26553 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26554 $as_echo_n "checking for POSIX signal interface... " >&6; }
26555 if test "${pgac_cv_func_posix_signals+set}" = set; then
26556   $as_echo_n "(cached) " >&6
26557 else
26558   cat >conftest.$ac_ext <<_ACEOF
26559 /* confdefs.h.  */
26560 _ACEOF
26561 cat confdefs.h >>conftest.$ac_ext
26562 cat >>conftest.$ac_ext <<_ACEOF
26563 /* end confdefs.h.  */
26564 #include <signal.h>
26565
26566 int
26567 main ()
26568 {
26569 struct sigaction act, oact;
26570 sigemptyset(&act.sa_mask);
26571 act.sa_flags = SA_RESTART;
26572 sigaction(0, &act, &oact);
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 rm -f conftest.$ac_objext conftest$ac_exeext
26578 if { (ac_try="$ac_link"
26579 case "(($ac_try" in
26580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581   *) ac_try_echo=$ac_try;;
26582 esac
26583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26584 $as_echo "$ac_try_echo") >&5
26585   (eval "$ac_link") 2>conftest.er1
26586   ac_status=$?
26587   grep -v '^ *+' conftest.er1 >conftest.err
26588   rm -f conftest.er1
26589   cat conftest.err >&5
26590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); } && {
26592          test -z "$ac_c_werror_flag" ||
26593          test ! -s conftest.err
26594        } && test -s conftest$ac_exeext && {
26595          test "$cross_compiling" = yes ||
26596          $as_test_x conftest$ac_exeext
26597        }; then
26598   pgac_cv_func_posix_signals=yes
26599 else
26600   $as_echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26602
26603         pgac_cv_func_posix_signals=no
26604 fi
26605
26606 rm -rf conftest.dSYM
26607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26608       conftest$ac_exeext conftest.$ac_ext
26609 fi
26610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26611 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26612 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26613
26614 cat >>confdefs.h <<\_ACEOF
26615 #define HAVE_POSIX_SIGNALS /**/
26616 _ACEOF
26617
26618 fi
26619 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26620
26621 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26622   { { $as_echo "$as_me:$LINENO: error:
26623 Thread-safety requires POSIX signals, which are not supported by this
26624 operating system;  use --disable-thread-safety to disable thread safety." >&5
26625 $as_echo "$as_me: error:
26626 Thread-safety requires POSIX signals, which are not supported by this
26627 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
26628    { (exit 1); exit 1; }; }
26629 fi
26630 fi
26631
26632 if test $ac_cv_func_fseeko = yes; then
26633 # Check whether --enable-largefile was given.
26634 if test "${enable_largefile+set}" = set; then
26635   enableval=$enable_largefile;
26636 fi
26637
26638 if test "$enable_largefile" != no; then
26639
26640   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26641 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26642 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26643   $as_echo_n "(cached) " >&6
26644 else
26645   ac_cv_sys_largefile_CC=no
26646      if test "$GCC" != yes; then
26647        ac_save_CC=$CC
26648        while :; do
26649          # IRIX 6.2 and later do not support large files by default,
26650          # so use the C compiler's -n32 option if that helps.
26651          cat >conftest.$ac_ext <<_ACEOF
26652 /* confdefs.h.  */
26653 _ACEOF
26654 cat confdefs.h >>conftest.$ac_ext
26655 cat >>conftest.$ac_ext <<_ACEOF
26656 /* end confdefs.h.  */
26657 #include <sys/types.h>
26658  /* Check that off_t can represent 2**63 - 1 correctly.
26659     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26660     since some C++ compilers masquerading as C compilers
26661     incorrectly reject 9223372036854775807.  */
26662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26663   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26664                        && LARGE_OFF_T % 2147483647 == 1)
26665                       ? 1 : -1];
26666 int
26667 main ()
26668 {
26669
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674          rm -f conftest.$ac_objext
26675 if { (ac_try="$ac_compile"
26676 case "(($ac_try" in
26677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26678   *) ac_try_echo=$ac_try;;
26679 esac
26680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26681 $as_echo "$ac_try_echo") >&5
26682   (eval "$ac_compile") 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } && {
26689          test -z "$ac_c_werror_flag" ||
26690          test ! -s conftest.err
26691        } && test -s conftest.$ac_objext; then
26692   break
26693 else
26694   $as_echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26696
26697
26698 fi
26699
26700 rm -f core conftest.err conftest.$ac_objext
26701          CC="$CC -n32"
26702          rm -f conftest.$ac_objext
26703 if { (ac_try="$ac_compile"
26704 case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26709 $as_echo "$ac_try_echo") >&5
26710   (eval "$ac_compile") 2>conftest.er1
26711   ac_status=$?
26712   grep -v '^ *+' conftest.er1 >conftest.err
26713   rm -f conftest.er1
26714   cat conftest.err >&5
26715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); } && {
26717          test -z "$ac_c_werror_flag" ||
26718          test ! -s conftest.err
26719        } && test -s conftest.$ac_objext; then
26720   ac_cv_sys_largefile_CC=' -n32'; break
26721 else
26722   $as_echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725
26726 fi
26727
26728 rm -f core conftest.err conftest.$ac_objext
26729          break
26730        done
26731        CC=$ac_save_CC
26732        rm -f conftest.$ac_ext
26733     fi
26734 fi
26735 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26736 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26737   if test "$ac_cv_sys_largefile_CC" != no; then
26738     CC=$CC$ac_cv_sys_largefile_CC
26739   fi
26740
26741   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26742 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26744   $as_echo_n "(cached) " >&6
26745 else
26746   while :; do
26747   cat >conftest.$ac_ext <<_ACEOF
26748 /* confdefs.h.  */
26749 _ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h.  */
26753 #include <sys/types.h>
26754  /* Check that off_t can represent 2**63 - 1 correctly.
26755     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26756     since some C++ compilers masquerading as C compilers
26757     incorrectly reject 9223372036854775807.  */
26758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26759   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26760                        && LARGE_OFF_T % 2147483647 == 1)
26761                       ? 1 : -1];
26762 int
26763 main ()
26764 {
26765
26766   ;
26767   return 0;
26768 }
26769 _ACEOF
26770 rm -f conftest.$ac_objext
26771 if { (ac_try="$ac_compile"
26772 case "(($ac_try" in
26773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774   *) ac_try_echo=$ac_try;;
26775 esac
26776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26777 $as_echo "$ac_try_echo") >&5
26778   (eval "$ac_compile") 2>conftest.er1
26779   ac_status=$?
26780   grep -v '^ *+' conftest.er1 >conftest.err
26781   rm -f conftest.er1
26782   cat conftest.err >&5
26783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784   (exit $ac_status); } && {
26785          test -z "$ac_c_werror_flag" ||
26786          test ! -s conftest.err
26787        } && test -s conftest.$ac_objext; then
26788   ac_cv_sys_file_offset_bits=no; break
26789 else
26790   $as_echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26792
26793
26794 fi
26795
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797   cat >conftest.$ac_ext <<_ACEOF
26798 /* confdefs.h.  */
26799 _ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h.  */
26803 #define _FILE_OFFSET_BITS 64
26804 #include <sys/types.h>
26805  /* Check that off_t can represent 2**63 - 1 correctly.
26806     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26807     since some C++ compilers masquerading as C compilers
26808     incorrectly reject 9223372036854775807.  */
26809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26810   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26811                        && LARGE_OFF_T % 2147483647 == 1)
26812                       ? 1 : -1];
26813 int
26814 main ()
26815 {
26816
26817   ;
26818   return 0;
26819 }
26820 _ACEOF
26821 rm -f conftest.$ac_objext
26822 if { (ac_try="$ac_compile"
26823 case "(($ac_try" in
26824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26825   *) ac_try_echo=$ac_try;;
26826 esac
26827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26828 $as_echo "$ac_try_echo") >&5
26829   (eval "$ac_compile") 2>conftest.er1
26830   ac_status=$?
26831   grep -v '^ *+' conftest.er1 >conftest.err
26832   rm -f conftest.er1
26833   cat conftest.err >&5
26834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835   (exit $ac_status); } && {
26836          test -z "$ac_c_werror_flag" ||
26837          test ! -s conftest.err
26838        } && test -s conftest.$ac_objext; then
26839   ac_cv_sys_file_offset_bits=64; break
26840 else
26841   $as_echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26843
26844
26845 fi
26846
26847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26848   ac_cv_sys_file_offset_bits=unknown
26849   break
26850 done
26851 fi
26852 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26853 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26854 case $ac_cv_sys_file_offset_bits in #(
26855   no | unknown) ;;
26856   *)
26857 cat >>confdefs.h <<_ACEOF
26858 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26859 _ACEOF
26860 ;;
26861 esac
26862 rm -rf conftest*
26863   if test $ac_cv_sys_file_offset_bits = unknown; then
26864     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26865 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26866 if test "${ac_cv_sys_large_files+set}" = set; then
26867   $as_echo_n "(cached) " >&6
26868 else
26869   while :; do
26870   cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h.  */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h.  */
26876 #include <sys/types.h>
26877  /* Check that off_t can represent 2**63 - 1 correctly.
26878     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26879     since some C++ compilers masquerading as C compilers
26880     incorrectly reject 9223372036854775807.  */
26881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26882   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26883                        && LARGE_OFF_T % 2147483647 == 1)
26884                       ? 1 : -1];
26885 int
26886 main ()
26887 {
26888
26889   ;
26890   return 0;
26891 }
26892 _ACEOF
26893 rm -f conftest.$ac_objext
26894 if { (ac_try="$ac_compile"
26895 case "(($ac_try" in
26896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26897   *) ac_try_echo=$ac_try;;
26898 esac
26899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26900 $as_echo "$ac_try_echo") >&5
26901   (eval "$ac_compile") 2>conftest.er1
26902   ac_status=$?
26903   grep -v '^ *+' conftest.er1 >conftest.err
26904   rm -f conftest.er1
26905   cat conftest.err >&5
26906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907   (exit $ac_status); } && {
26908          test -z "$ac_c_werror_flag" ||
26909          test ! -s conftest.err
26910        } && test -s conftest.$ac_objext; then
26911   ac_cv_sys_large_files=no; break
26912 else
26913   $as_echo "$as_me: failed program was:" >&5
26914 sed 's/^/| /' conftest.$ac_ext >&5
26915
26916
26917 fi
26918
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920   cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926 #define _LARGE_FILES 1
26927 #include <sys/types.h>
26928  /* Check that off_t can represent 2**63 - 1 correctly.
26929     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26930     since some C++ compilers masquerading as C compilers
26931     incorrectly reject 9223372036854775807.  */
26932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26933   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26934                        && LARGE_OFF_T % 2147483647 == 1)
26935                       ? 1 : -1];
26936 int
26937 main ()
26938 {
26939
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (ac_try="$ac_compile"
26946 case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26951 $as_echo "$ac_try_echo") >&5
26952   (eval "$ac_compile") 2>conftest.er1
26953   ac_status=$?
26954   grep -v '^ *+' conftest.er1 >conftest.err
26955   rm -f conftest.er1
26956   cat conftest.err >&5
26957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); } && {
26959          test -z "$ac_c_werror_flag" ||
26960          test ! -s conftest.err
26961        } && test -s conftest.$ac_objext; then
26962   ac_cv_sys_large_files=1; break
26963 else
26964   $as_echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967
26968 fi
26969
26970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26971   ac_cv_sys_large_files=unknown
26972   break
26973 done
26974 fi
26975 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26976 $as_echo "$ac_cv_sys_large_files" >&6; }
26977 case $ac_cv_sys_large_files in #(
26978   no | unknown) ;;
26979   *)
26980 cat >>confdefs.h <<_ACEOF
26981 #define _LARGE_FILES $ac_cv_sys_large_files
26982 _ACEOF
26983 ;;
26984 esac
26985 rm -rf conftest*
26986   fi
26987 fi
26988
26989 fi
26990
26991 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26992 # The cast to long int works around a bug in the HP C Compiler
26993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26995 # This bug is HP SR number 8606223364.
26996 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26997 $as_echo_n "checking size of off_t... " >&6; }
26998 if test "${ac_cv_sizeof_off_t+set}" = set; then
26999   $as_echo_n "(cached) " >&6
27000 else
27001   if test "$cross_compiling" = yes; then
27002   # Depending upon the size, compute the lo and hi bounds.
27003 cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h.  */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h.  */
27009 $ac_includes_default
27010 int
27011 main ()
27012 {
27013 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27014 test_array [0] = 0
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028   (eval "$ac_compile") 2>conftest.er1
27029   ac_status=$?
27030   grep -v '^ *+' conftest.er1 >conftest.err
27031   rm -f conftest.er1
27032   cat conftest.err >&5
27033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); } && {
27035          test -z "$ac_c_werror_flag" ||
27036          test ! -s conftest.err
27037        } && test -s conftest.$ac_objext; then
27038   ac_lo=0 ac_mid=0
27039   while :; do
27040     cat >conftest.$ac_ext <<_ACEOF
27041 /* confdefs.h.  */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h.  */
27046 $ac_includes_default
27047 int
27048 main ()
27049 {
27050 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27051 test_array [0] = 0
27052
27053   ;
27054   return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext
27058 if { (ac_try="$ac_compile"
27059 case "(($ac_try" in
27060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061   *) ac_try_echo=$ac_try;;
27062 esac
27063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27064 $as_echo "$ac_try_echo") >&5
27065   (eval "$ac_compile") 2>conftest.er1
27066   ac_status=$?
27067   grep -v '^ *+' conftest.er1 >conftest.err
27068   rm -f conftest.er1
27069   cat conftest.err >&5
27070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } && {
27072          test -z "$ac_c_werror_flag" ||
27073          test ! -s conftest.err
27074        } && test -s conftest.$ac_objext; then
27075   ac_hi=$ac_mid; break
27076 else
27077   $as_echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080         ac_lo=`expr $ac_mid + 1`
27081                         if test $ac_lo -le $ac_mid; then
27082                           ac_lo= ac_hi=
27083                           break
27084                         fi
27085                         ac_mid=`expr 2 '*' $ac_mid + 1`
27086 fi
27087
27088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27089   done
27090 else
27091   $as_echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094         cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h.  */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h.  */
27100 $ac_includes_default
27101 int
27102 main ()
27103 {
27104 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27105 test_array [0] = 0
27106
27107   ;
27108   return 0;
27109 }
27110 _ACEOF
27111 rm -f conftest.$ac_objext
27112 if { (ac_try="$ac_compile"
27113 case "(($ac_try" in
27114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115   *) ac_try_echo=$ac_try;;
27116 esac
27117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27118 $as_echo "$ac_try_echo") >&5
27119   (eval "$ac_compile") 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } && {
27126          test -z "$ac_c_werror_flag" ||
27127          test ! -s conftest.err
27128        } && test -s conftest.$ac_objext; then
27129   ac_hi=-1 ac_mid=-1
27130   while :; do
27131     cat >conftest.$ac_ext <<_ACEOF
27132 /* confdefs.h.  */
27133 _ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h.  */
27137 $ac_includes_default
27138 int
27139 main ()
27140 {
27141 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27142 test_array [0] = 0
27143
27144   ;
27145   return 0;
27146 }
27147 _ACEOF
27148 rm -f conftest.$ac_objext
27149 if { (ac_try="$ac_compile"
27150 case "(($ac_try" in
27151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27152   *) ac_try_echo=$ac_try;;
27153 esac
27154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27155 $as_echo "$ac_try_echo") >&5
27156   (eval "$ac_compile") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } && {
27163          test -z "$ac_c_werror_flag" ||
27164          test ! -s conftest.err
27165        } && test -s conftest.$ac_objext; then
27166   ac_lo=$ac_mid; break
27167 else
27168   $as_echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27170
27171         ac_hi=`expr '(' $ac_mid ')' - 1`
27172                         if test $ac_mid -le $ac_hi; then
27173                           ac_lo= ac_hi=
27174                           break
27175                         fi
27176                         ac_mid=`expr 2 '*' $ac_mid`
27177 fi
27178
27179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27180   done
27181 else
27182   $as_echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27184
27185         ac_lo= ac_hi=
27186 fi
27187
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189 fi
27190
27191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 # Binary search between lo and hi bounds.
27193 while test "x$ac_lo" != "x$ac_hi"; do
27194   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27195   cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h.  */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h.  */
27201 $ac_includes_default
27202 int
27203 main ()
27204 {
27205 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27206 test_array [0] = 0
27207
27208   ;
27209   return 0;
27210 }
27211 _ACEOF
27212 rm -f conftest.$ac_objext
27213 if { (ac_try="$ac_compile"
27214 case "(($ac_try" in
27215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216   *) ac_try_echo=$ac_try;;
27217 esac
27218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27219 $as_echo "$ac_try_echo") >&5
27220   (eval "$ac_compile") 2>conftest.er1
27221   ac_status=$?
27222   grep -v '^ *+' conftest.er1 >conftest.err
27223   rm -f conftest.er1
27224   cat conftest.err >&5
27225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); } && {
27227          test -z "$ac_c_werror_flag" ||
27228          test ! -s conftest.err
27229        } && test -s conftest.$ac_objext; then
27230   ac_hi=$ac_mid
27231 else
27232   $as_echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.$ac_ext >&5
27234
27235         ac_lo=`expr '(' $ac_mid ')' + 1`
27236 fi
27237
27238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27239 done
27240 case $ac_lo in
27241 ?*) ac_cv_sizeof_off_t=$ac_lo;;
27242 '') if test "$ac_cv_type_off_t" = yes; then
27243      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27245 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27246 See \`config.log' for more details." >&5
27247 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27248 See \`config.log' for more details." >&2;}
27249    { (exit 77); exit 77; }; }; }
27250    else
27251      ac_cv_sizeof_off_t=0
27252    fi ;;
27253 esac
27254 else
27255   cat >conftest.$ac_ext <<_ACEOF
27256 /* confdefs.h.  */
27257 _ACEOF
27258 cat confdefs.h >>conftest.$ac_ext
27259 cat >>conftest.$ac_ext <<_ACEOF
27260 /* end confdefs.h.  */
27261 $ac_includes_default
27262 static long int longval () { return (long int) (sizeof (off_t)); }
27263 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27264 #include <stdio.h>
27265 #include <stdlib.h>
27266 int
27267 main ()
27268 {
27269
27270   FILE *f = fopen ("conftest.val", "w");
27271   if (! f)
27272     return 1;
27273   if (((long int) (sizeof (off_t))) < 0)
27274     {
27275       long int i = longval ();
27276       if (i != ((long int) (sizeof (off_t))))
27277         return 1;
27278       fprintf (f, "%ld", i);
27279     }
27280   else
27281     {
27282       unsigned long int i = ulongval ();
27283       if (i != ((long int) (sizeof (off_t))))
27284         return 1;
27285       fprintf (f, "%lu", i);
27286     }
27287   /* Do not output a trailing newline, as this causes \r\n confusion
27288      on some platforms.  */
27289   return ferror (f) || fclose (f) != 0;
27290
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 rm -f conftest$ac_exeext
27296 if { (ac_try="$ac_link"
27297 case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27302 $as_echo "$ac_try_echo") >&5
27303   (eval "$ac_link") 2>&5
27304   ac_status=$?
27305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27307   { (case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27312 $as_echo "$ac_try_echo") >&5
27313   (eval "$ac_try") 2>&5
27314   ac_status=$?
27315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); }; }; then
27317   ac_cv_sizeof_off_t=`cat conftest.val`
27318 else
27319   $as_echo "$as_me: program exited with status $ac_status" >&5
27320 $as_echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 ( exit $ac_status )
27324 if test "$ac_cv_type_off_t" = yes; then
27325      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27327 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27328 See \`config.log' for more details." >&5
27329 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27330 See \`config.log' for more details." >&2;}
27331    { (exit 77); exit 77; }; }; }
27332    else
27333      ac_cv_sizeof_off_t=0
27334    fi
27335 fi
27336 rm -rf conftest.dSYM
27337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27338 fi
27339 rm -f conftest.val
27340 fi
27341 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27342 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27343
27344
27345
27346 cat >>confdefs.h <<_ACEOF
27347 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27348 _ACEOF
27349
27350
27351
27352 # If we don't have largefile support, can't handle segsize >= 2GB.
27353 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
27354    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
27355 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27356    { (exit 1); exit 1; }; }
27357 fi
27358
27359 # SunOS doesn't handle negative byte comparisons properly with +/- return
27360 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27361 $as_echo_n "checking for working memcmp... " >&6; }
27362 if test "${ac_cv_func_memcmp_working+set}" = set; then
27363   $as_echo_n "(cached) " >&6
27364 else
27365   if test "$cross_compiling" = yes; then
27366   ac_cv_func_memcmp_working=no
27367 else
27368   cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374 $ac_includes_default
27375 int
27376 main ()
27377 {
27378
27379   /* Some versions of memcmp are not 8-bit clean.  */
27380   char c0 = '\100', c1 = '\200', c2 = '\201';
27381   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27382     return 1;
27383
27384   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27385      or more and with at least one buffer not starting on a 4-byte boundary.
27386      William Lewis provided this test program.   */
27387   {
27388     char foo[21];
27389     char bar[21];
27390     int i;
27391     for (i = 0; i < 4; i++)
27392       {
27393         char *a = foo + i;
27394         char *b = bar + i;
27395         strcpy (a, "--------01111111");
27396         strcpy (b, "--------10000000");
27397         if (memcmp (a, b, 16) >= 0)
27398           return 1;
27399       }
27400     return 0;
27401   }
27402
27403   ;
27404   return 0;
27405 }
27406 _ACEOF
27407 rm -f conftest$ac_exeext
27408 if { (ac_try="$ac_link"
27409 case "(($ac_try" in
27410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411   *) ac_try_echo=$ac_try;;
27412 esac
27413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27414 $as_echo "$ac_try_echo") >&5
27415   (eval "$ac_link") 2>&5
27416   ac_status=$?
27417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27419   { (case "(($ac_try" in
27420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421   *) ac_try_echo=$ac_try;;
27422 esac
27423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27424 $as_echo "$ac_try_echo") >&5
27425   (eval "$ac_try") 2>&5
27426   ac_status=$?
27427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); }; }; then
27429   ac_cv_func_memcmp_working=yes
27430 else
27431   $as_echo "$as_me: program exited with status $ac_status" >&5
27432 $as_echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435 ( exit $ac_status )
27436 ac_cv_func_memcmp_working=no
27437 fi
27438 rm -rf conftest.dSYM
27439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27440 fi
27441
27442
27443 fi
27444 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27445 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27446 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27447   *" memcmp.$ac_objext "* ) ;;
27448   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27449  ;;
27450 esac
27451
27452
27453
27454
27455 # Select semaphore implementation type.
27456 if test "$PORTNAME" != "win32"; then
27457   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27458
27459 cat >>confdefs.h <<\_ACEOF
27460 #define USE_NAMED_POSIX_SEMAPHORES 1
27461 _ACEOF
27462
27463     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27464   else
27465     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27466
27467 cat >>confdefs.h <<\_ACEOF
27468 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27469 _ACEOF
27470
27471       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27472     else
27473
27474 cat >>confdefs.h <<\_ACEOF
27475 #define USE_SYSV_SEMAPHORES 1
27476 _ACEOF
27477
27478       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27479     fi
27480   fi
27481 else
27482
27483 cat >>confdefs.h <<\_ACEOF
27484 #define USE_WIN32_SEMAPHORES 1
27485 _ACEOF
27486
27487   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27488 fi
27489
27490
27491 # Select shared-memory implementation type.
27492 if test "$PORTNAME" != "win32"; then
27493
27494 cat >>confdefs.h <<\_ACEOF
27495 #define USE_SYSV_SHARED_MEMORY 1
27496 _ACEOF
27497
27498   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27499 else
27500
27501 cat >>confdefs.h <<\_ACEOF
27502 #define USE_WIN32_SHARED_MEMORY 1
27503 _ACEOF
27504
27505   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27506 fi
27507
27508 # If not set in template file, set bytes to use libc memset()
27509 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27510   MEMSET_LOOP_LIMIT=1024
27511 fi
27512
27513 cat >>confdefs.h <<_ACEOF
27514 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27515 _ACEOF
27516
27517
27518
27519 if test "$enable_nls" = yes ; then
27520
27521   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27522 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27523 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27524   $as_echo_n "(cached) " >&6
27525 else
27526   ac_func_search_save_LIBS=$LIBS
27527 cat >conftest.$ac_ext <<_ACEOF
27528 /* confdefs.h.  */
27529 _ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h.  */
27533
27534 /* Override any GCC internal prototype to avoid an error.
27535    Use char because int might match the return type of a GCC
27536    builtin and then its argument prototype would still apply.  */
27537 #ifdef __cplusplus
27538 extern "C"
27539 #endif
27540 char bind_textdomain_codeset ();
27541 int
27542 main ()
27543 {
27544 return bind_textdomain_codeset ();
27545   ;
27546   return 0;
27547 }
27548 _ACEOF
27549 for ac_lib in '' intl; do
27550   if test -z "$ac_lib"; then
27551     ac_res="none required"
27552   else
27553     ac_res=-l$ac_lib
27554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27555   fi
27556   rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27563 $as_echo "$ac_try_echo") >&5
27564   (eval "$ac_link") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } && {
27571          test -z "$ac_c_werror_flag" ||
27572          test ! -s conftest.err
27573        } && test -s conftest$ac_exeext && {
27574          test "$cross_compiling" = yes ||
27575          $as_test_x conftest$ac_exeext
27576        }; then
27577   ac_cv_search_bind_textdomain_codeset=$ac_res
27578 else
27579   $as_echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582
27583 fi
27584
27585 rm -rf conftest.dSYM
27586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27587       conftest$ac_exeext
27588   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27589   break
27590 fi
27591 done
27592 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27593   :
27594 else
27595   ac_cv_search_bind_textdomain_codeset=no
27596 fi
27597 rm conftest.$ac_ext
27598 LIBS=$ac_func_search_save_LIBS
27599 fi
27600 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27601 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27602 ac_res=$ac_cv_search_bind_textdomain_codeset
27603 if test "$ac_res" != no; then
27604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27605
27606 else
27607   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27608 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27609    { (exit 1); exit 1; }; }
27610 fi
27611
27612   if test "${ac_cv_header_libintl_h+set}" = set; then
27613   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27614 $as_echo_n "checking for libintl.h... " >&6; }
27615 if test "${ac_cv_header_libintl_h+set}" = set; then
27616   $as_echo_n "(cached) " >&6
27617 fi
27618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27619 $as_echo "$ac_cv_header_libintl_h" >&6; }
27620 else
27621   # Is the header compilable?
27622 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27623 $as_echo_n "checking libintl.h usability... " >&6; }
27624 cat >conftest.$ac_ext <<_ACEOF
27625 /* confdefs.h.  */
27626 _ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h.  */
27630 $ac_includes_default
27631 #include <libintl.h>
27632 _ACEOF
27633 rm -f conftest.$ac_objext
27634 if { (ac_try="$ac_compile"
27635 case "(($ac_try" in
27636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637   *) ac_try_echo=$ac_try;;
27638 esac
27639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27640 $as_echo "$ac_try_echo") >&5
27641   (eval "$ac_compile") 2>conftest.er1
27642   ac_status=$?
27643   grep -v '^ *+' conftest.er1 >conftest.err
27644   rm -f conftest.er1
27645   cat conftest.err >&5
27646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); } && {
27648          test -z "$ac_c_werror_flag" ||
27649          test ! -s conftest.err
27650        } && test -s conftest.$ac_objext; then
27651   ac_header_compiler=yes
27652 else
27653   $as_echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27655
27656         ac_header_compiler=no
27657 fi
27658
27659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27660 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27661 $as_echo "$ac_header_compiler" >&6; }
27662
27663 # Is the header present?
27664 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27665 $as_echo_n "checking libintl.h presence... " >&6; }
27666 cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672 #include <libintl.h>
27673 _ACEOF
27674 if { (ac_try="$ac_cpp conftest.$ac_ext"
27675 case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27680 $as_echo "$ac_try_echo") >&5
27681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27682   ac_status=$?
27683   grep -v '^ *+' conftest.er1 >conftest.err
27684   rm -f conftest.er1
27685   cat conftest.err >&5
27686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687   (exit $ac_status); } >/dev/null && {
27688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27689          test ! -s conftest.err
27690        }; then
27691   ac_header_preproc=yes
27692 else
27693   $as_echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27695
27696   ac_header_preproc=no
27697 fi
27698
27699 rm -f conftest.err conftest.$ac_ext
27700 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27701 $as_echo "$ac_header_preproc" >&6; }
27702
27703 # So?  What about this header?
27704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27705   yes:no: )
27706     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27707 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27708     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27709 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27710     ac_header_preproc=yes
27711     ;;
27712   no:yes:* )
27713     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27714 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27715     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
27716 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
27717     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27718 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27719     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
27720 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27721     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27722 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27723     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27724 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27725     ( cat <<\_ASBOX
27726 ## ---------------------------------------- ##
27727 ## Report this to pgsql-bugs@postgresql.org ##
27728 ## ---------------------------------------- ##
27729 _ASBOX
27730      ) | sed "s/^/$as_me: WARNING:     /" >&2
27731     ;;
27732 esac
27733 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27734 $as_echo_n "checking for libintl.h... " >&6; }
27735 if test "${ac_cv_header_libintl_h+set}" = set; then
27736   $as_echo_n "(cached) " >&6
27737 else
27738   ac_cv_header_libintl_h=$ac_header_preproc
27739 fi
27740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27741 $as_echo "$ac_cv_header_libintl_h" >&6; }
27742
27743 fi
27744 if test "x$ac_cv_header_libintl_h" = x""yes; then
27745   :
27746 else
27747   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27748 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27749    { (exit 1); exit 1; }; }
27750 fi
27751
27752
27753   for ac_prog in msgfmt
27754 do
27755   # Extract the first word of "$ac_prog", so it can be a program name with args.
27756 set dummy $ac_prog; ac_word=$2
27757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27758 $as_echo_n "checking for $ac_word... " >&6; }
27759 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27760   $as_echo_n "(cached) " >&6
27761 else
27762   if test -n "$MSGFMT"; then
27763   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27764 else
27765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27766 for as_dir in $PATH
27767 do
27768   IFS=$as_save_IFS
27769   test -z "$as_dir" && as_dir=.
27770   for ac_exec_ext in '' $ac_executable_extensions; do
27771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27772     ac_cv_prog_MSGFMT="$ac_prog"
27773     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27774     break 2
27775   fi
27776 done
27777 done
27778 IFS=$as_save_IFS
27779
27780 fi
27781 fi
27782 MSGFMT=$ac_cv_prog_MSGFMT
27783 if test -n "$MSGFMT"; then
27784   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27785 $as_echo "$MSGFMT" >&6; }
27786 else
27787   { $as_echo "$as_me:$LINENO: result: no" >&5
27788 $as_echo "no" >&6; }
27789 fi
27790
27791
27792   test -n "$MSGFMT" && break
27793 done
27794
27795   if test -z "$MSGFMT"; then
27796     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27797 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27798    { (exit 1); exit 1; }; }
27799   fi
27800   for ac_prog in msgmerge
27801 do
27802   # Extract the first word of "$ac_prog", so it can be a program name with args.
27803 set dummy $ac_prog; ac_word=$2
27804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27805 $as_echo_n "checking for $ac_word... " >&6; }
27806 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27807   $as_echo_n "(cached) " >&6
27808 else
27809   if test -n "$MSGMERGE"; then
27810   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27811 else
27812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27813 for as_dir in $PATH
27814 do
27815   IFS=$as_save_IFS
27816   test -z "$as_dir" && as_dir=.
27817   for ac_exec_ext in '' $ac_executable_extensions; do
27818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27819     ac_cv_prog_MSGMERGE="$ac_prog"
27820     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27821     break 2
27822   fi
27823 done
27824 done
27825 IFS=$as_save_IFS
27826
27827 fi
27828 fi
27829 MSGMERGE=$ac_cv_prog_MSGMERGE
27830 if test -n "$MSGMERGE"; then
27831   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27832 $as_echo "$MSGMERGE" >&6; }
27833 else
27834   { $as_echo "$as_me:$LINENO: result: no" >&5
27835 $as_echo "no" >&6; }
27836 fi
27837
27838
27839   test -n "$MSGMERGE" && break
27840 done
27841
27842   for ac_prog in xgettext
27843 do
27844   # Extract the first word of "$ac_prog", so it can be a program name with args.
27845 set dummy $ac_prog; ac_word=$2
27846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27847 $as_echo_n "checking for $ac_word... " >&6; }
27848 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27849   $as_echo_n "(cached) " >&6
27850 else
27851   if test -n "$XGETTEXT"; then
27852   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27853 else
27854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27855 for as_dir in $PATH
27856 do
27857   IFS=$as_save_IFS
27858   test -z "$as_dir" && as_dir=.
27859   for ac_exec_ext in '' $ac_executable_extensions; do
27860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27861     ac_cv_prog_XGETTEXT="$ac_prog"
27862     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27863     break 2
27864   fi
27865 done
27866 done
27867 IFS=$as_save_IFS
27868
27869 fi
27870 fi
27871 XGETTEXT=$ac_cv_prog_XGETTEXT
27872 if test -n "$XGETTEXT"; then
27873   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27874 $as_echo "$XGETTEXT" >&6; }
27875 else
27876   { $as_echo "$as_me:$LINENO: result: no" >&5
27877 $as_echo "no" >&6; }
27878 fi
27879
27880
27881   test -n "$XGETTEXT" && break
27882 done
27883
27884
27885 fi
27886
27887 # Check for Tcl configuration script tclConfig.sh
27888 if test "$with_tcl" = yes; then
27889     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27890 do
27891   # Extract the first word of "$ac_prog", so it can be a program name with args.
27892 set dummy $ac_prog; ac_word=$2
27893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27894 $as_echo_n "checking for $ac_word... " >&6; }
27895 if test "${ac_cv_path_TCLSH+set}" = set; then
27896   $as_echo_n "(cached) " >&6
27897 else
27898   case $TCLSH in
27899   [\\/]* | ?:[\\/]*)
27900   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27901   ;;
27902   *)
27903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27904 for as_dir in $PATH
27905 do
27906   IFS=$as_save_IFS
27907   test -z "$as_dir" && as_dir=.
27908   for ac_exec_ext in '' $ac_executable_extensions; do
27909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27910     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27912     break 2
27913   fi
27914 done
27915 done
27916 IFS=$as_save_IFS
27917
27918   ;;
27919 esac
27920 fi
27921 TCLSH=$ac_cv_path_TCLSH
27922 if test -n "$TCLSH"; then
27923   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27924 $as_echo "$TCLSH" >&6; }
27925 else
27926   { $as_echo "$as_me:$LINENO: result: no" >&5
27927 $as_echo "no" >&6; }
27928 fi
27929
27930
27931   test -n "$TCLSH" && break
27932 done
27933
27934 if test x"$TCLSH" = x""; then
27935   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27936 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27937    { (exit 1); exit 1; }; }
27938 fi
27939
27940 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27941 $as_echo_n "checking for tclConfig.sh... " >&6; }
27942 # Let user override test
27943 if test -z "$TCL_CONFIG_SH"; then
27944     pgac_test_dirs="$with_tclconfig"
27945
27946     set X $pgac_test_dirs; shift
27947     if test $# -eq 0; then
27948         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27949 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27950    { (exit 1); exit 1; }; }
27951         set X `echo 'puts $auto_path' | $TCLSH`; shift
27952     fi
27953
27954     for pgac_dir do
27955         if test -r "$pgac_dir/tclConfig.sh"; then
27956             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27957             break
27958         fi
27959     done
27960 fi
27961
27962 if test -z "$TCL_CONFIG_SH"; then
27963     { $as_echo "$as_me:$LINENO: result: no" >&5
27964 $as_echo "no" >&6; }
27965     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27966 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27967    { (exit 1); exit 1; }; }
27968 else
27969     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27970 $as_echo "$TCL_CONFIG_SH" >&6; }
27971 fi
27972
27973
27974
27975     . "$TCL_CONFIG_SH"
27976 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27977 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27978 eval TCL_LIBS=\"$TCL_LIBS\"
27979 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27980 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27981
27982         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27983     ac_save_CPPFLAGS=$CPPFLAGS
27984     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27985     if test "${ac_cv_header_tcl_h+set}" = set; then
27986   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27987 $as_echo_n "checking for tcl.h... " >&6; }
27988 if test "${ac_cv_header_tcl_h+set}" = set; then
27989   $as_echo_n "(cached) " >&6
27990 fi
27991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27992 $as_echo "$ac_cv_header_tcl_h" >&6; }
27993 else
27994   # Is the header compilable?
27995 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27996 $as_echo_n "checking tcl.h usability... " >&6; }
27997 cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003 $ac_includes_default
28004 #include <tcl.h>
28005 _ACEOF
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010   *) ac_try_echo=$ac_try;;
28011 esac
28012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28013 $as_echo "$ac_try_echo") >&5
28014   (eval "$ac_compile") 2>conftest.er1
28015   ac_status=$?
28016   grep -v '^ *+' conftest.er1 >conftest.err
28017   rm -f conftest.er1
28018   cat conftest.err >&5
28019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); } && {
28021          test -z "$ac_c_werror_flag" ||
28022          test ! -s conftest.err
28023        } && test -s conftest.$ac_objext; then
28024   ac_header_compiler=yes
28025 else
28026   $as_echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28028
28029         ac_header_compiler=no
28030 fi
28031
28032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28034 $as_echo "$ac_header_compiler" >&6; }
28035
28036 # Is the header present?
28037 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28038 $as_echo_n "checking tcl.h presence... " >&6; }
28039 cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 #include <tcl.h>
28046 _ACEOF
28047 if { (ac_try="$ac_cpp conftest.$ac_ext"
28048 case "(($ac_try" in
28049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050   *) ac_try_echo=$ac_try;;
28051 esac
28052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28053 $as_echo "$ac_try_echo") >&5
28054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } >/dev/null && {
28061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28062          test ! -s conftest.err
28063        }; then
28064   ac_header_preproc=yes
28065 else
28066   $as_echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28068
28069   ac_header_preproc=no
28070 fi
28071
28072 rm -f conftest.err conftest.$ac_ext
28073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28074 $as_echo "$ac_header_preproc" >&6; }
28075
28076 # So?  What about this header?
28077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28078   yes:no: )
28079     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28080 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28081     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28082 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28083     ac_header_preproc=yes
28084     ;;
28085   no:yes:* )
28086     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28087 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28088     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28089 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28090     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28091 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28092     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28093 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28094     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28095 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28096     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28097 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28098     ( cat <<\_ASBOX
28099 ## ---------------------------------------- ##
28100 ## Report this to pgsql-bugs@postgresql.org ##
28101 ## ---------------------------------------- ##
28102 _ASBOX
28103      ) | sed "s/^/$as_me: WARNING:     /" >&2
28104     ;;
28105 esac
28106 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28107 $as_echo_n "checking for tcl.h... " >&6; }
28108 if test "${ac_cv_header_tcl_h+set}" = set; then
28109   $as_echo_n "(cached) " >&6
28110 else
28111   ac_cv_header_tcl_h=$ac_header_preproc
28112 fi
28113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28114 $as_echo "$ac_cv_header_tcl_h" >&6; }
28115
28116 fi
28117 if test "x$ac_cv_header_tcl_h" = x""yes; then
28118   :
28119 else
28120   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28121 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28122    { (exit 1); exit 1; }; }
28123 fi
28124
28125
28126     CPPFLAGS=$ac_save_CPPFLAGS
28127 fi
28128
28129 #
28130 # Check for DocBook and tools
28131 #
28132 for ac_prog in onsgmls nsgmls
28133 do
28134   # Extract the first word of "$ac_prog", so it can be a program name with args.
28135 set dummy $ac_prog; ac_word=$2
28136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28137 $as_echo_n "checking for $ac_word... " >&6; }
28138 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28139   $as_echo_n "(cached) " >&6
28140 else
28141   if test -n "$NSGMLS"; then
28142   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28143 else
28144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28145 for as_dir in $PATH
28146 do
28147   IFS=$as_save_IFS
28148   test -z "$as_dir" && as_dir=.
28149   for ac_exec_ext in '' $ac_executable_extensions; do
28150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28151     ac_cv_prog_NSGMLS="$ac_prog"
28152     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28153     break 2
28154   fi
28155 done
28156 done
28157 IFS=$as_save_IFS
28158
28159 fi
28160 fi
28161 NSGMLS=$ac_cv_prog_NSGMLS
28162 if test -n "$NSGMLS"; then
28163   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28164 $as_echo "$NSGMLS" >&6; }
28165 else
28166   { $as_echo "$as_me:$LINENO: result: no" >&5
28167 $as_echo "no" >&6; }
28168 fi
28169
28170
28171   test -n "$NSGMLS" && break
28172 done
28173
28174 for ac_prog in openjade jade
28175 do
28176   # Extract the first word of "$ac_prog", so it can be a program name with args.
28177 set dummy $ac_prog; ac_word=$2
28178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28179 $as_echo_n "checking for $ac_word... " >&6; }
28180 if test "${ac_cv_prog_JADE+set}" = set; then
28181   $as_echo_n "(cached) " >&6
28182 else
28183   if test -n "$JADE"; then
28184   ac_cv_prog_JADE="$JADE" # Let the user override the test.
28185 else
28186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28187 for as_dir in $PATH
28188 do
28189   IFS=$as_save_IFS
28190   test -z "$as_dir" && as_dir=.
28191   for ac_exec_ext in '' $ac_executable_extensions; do
28192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28193     ac_cv_prog_JADE="$ac_prog"
28194     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28195     break 2
28196   fi
28197 done
28198 done
28199 IFS=$as_save_IFS
28200
28201 fi
28202 fi
28203 JADE=$ac_cv_prog_JADE
28204 if test -n "$JADE"; then
28205   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28206 $as_echo "$JADE" >&6; }
28207 else
28208   { $as_echo "$as_me:$LINENO: result: no" >&5
28209 $as_echo "no" >&6; }
28210 fi
28211
28212
28213   test -n "$JADE" && break
28214 done
28215
28216
28217 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28218 $as_echo_n "checking for DocBook V4.2... " >&6; }
28219 if test "${pgac_cv_check_docbook+set}" = set; then
28220   $as_echo_n "(cached) " >&6
28221 else
28222   cat >conftest.sgml <<EOF
28223 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28224 <book>
28225  <title>test</title>
28226  <chapter>
28227   <title>random</title>
28228    <sect1>
28229     <title>testsect</title>
28230     <para>text</para>
28231   </sect1>
28232  </chapter>
28233 </book>
28234 EOF
28235
28236 pgac_cv_check_docbook=no
28237
28238 if test -n "$NSGMLS"; then
28239   $NSGMLS -s conftest.sgml 1>&5 2>&1
28240   if test $? -eq 0; then
28241     pgac_cv_check_docbook=yes
28242   fi
28243 fi
28244 rm -f conftest.sgml
28245 fi
28246 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28247 $as_echo "$pgac_cv_check_docbook" >&6; }
28248
28249 have_docbook=$pgac_cv_check_docbook
28250
28251
28252 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28253 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28254 if test "${pgac_cv_path_stylesheets+set}" = set; then
28255   $as_echo_n "(cached) " >&6
28256 else
28257   if test -n "$DOCBOOKSTYLE"; then
28258   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28259 else
28260   for pgac_prefix in /usr /usr/local /opt /sw; do
28261     for pgac_infix in share lib; do
28262       for pgac_postfix in \
28263         sgml/stylesheets/nwalsh-modular \
28264         sgml/stylesheets/docbook \
28265         sgml/stylesheets/dsssl/docbook \
28266         sgml/docbook-dsssl \
28267         sgml/docbook/dsssl/modular \
28268         sgml/docbook/stylesheet/dsssl/modular \
28269         sgml/docbook/dsssl-stylesheets \
28270         sgml/dsssl/docbook-dsssl-nwalsh
28271       do
28272         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28273         if test -r "$pgac_candidate/html/docbook.dsl" \
28274            && test -r "$pgac_candidate/print/docbook.dsl"
28275         then
28276           pgac_cv_path_stylesheets=$pgac_candidate
28277           break 3
28278         fi
28279       done
28280     done
28281   done
28282 fi
28283 fi
28284
28285 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28286
28287 if test -n "$DOCBOOKSTYLE"; then
28288   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28289 $as_echo "$DOCBOOKSTYLE" >&6; }
28290 else
28291   { $as_echo "$as_me:$LINENO: result: no" >&5
28292 $as_echo "no" >&6; }
28293 fi
28294 if test -n "$DOCBOOKSTYLE"; then
28295   for ac_prog in collateindex.pl
28296 do
28297   # Extract the first word of "$ac_prog", so it can be a program name with args.
28298 set dummy $ac_prog; ac_word=$2
28299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28300 $as_echo_n "checking for $ac_word... " >&6; }
28301 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28302   $as_echo_n "(cached) " >&6
28303 else
28304   case $COLLATEINDEX in
28305   [\\/]* | ?:[\\/]*)
28306   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28307   ;;
28308   *)
28309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28310 for as_dir in $DOCBOOKSTYLE/bin $PATH
28311 do
28312   IFS=$as_save_IFS
28313   test -z "$as_dir" && as_dir=.
28314   for ac_exec_ext in '' $ac_executable_extensions; do
28315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28316     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28317     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28318     break 2
28319   fi
28320 done
28321 done
28322 IFS=$as_save_IFS
28323
28324   ;;
28325 esac
28326 fi
28327 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28328 if test -n "$COLLATEINDEX"; then
28329   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28330 $as_echo "$COLLATEINDEX" >&6; }
28331 else
28332   { $as_echo "$as_me:$LINENO: result: no" >&5
28333 $as_echo "no" >&6; }
28334 fi
28335
28336
28337   test -n "$COLLATEINDEX" && break
28338 done
28339
28340 else
28341   for ac_prog in collateindex.pl
28342 do
28343   # Extract the first word of "$ac_prog", so it can be a program name with args.
28344 set dummy $ac_prog; ac_word=$2
28345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28346 $as_echo_n "checking for $ac_word... " >&6; }
28347 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28348   $as_echo_n "(cached) " >&6
28349 else
28350   case $COLLATEINDEX in
28351   [\\/]* | ?:[\\/]*)
28352   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28353   ;;
28354   *)
28355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28356 for as_dir in $PATH
28357 do
28358   IFS=$as_save_IFS
28359   test -z "$as_dir" && as_dir=.
28360   for ac_exec_ext in '' $ac_executable_extensions; do
28361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28362     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28363     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28364     break 2
28365   fi
28366 done
28367 done
28368 IFS=$as_save_IFS
28369
28370   ;;
28371 esac
28372 fi
28373 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28374 if test -n "$COLLATEINDEX"; then
28375   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28376 $as_echo "$COLLATEINDEX" >&6; }
28377 else
28378   { $as_echo "$as_me:$LINENO: result: no" >&5
28379 $as_echo "no" >&6; }
28380 fi
28381
28382
28383   test -n "$COLLATEINDEX" && break
28384 done
28385
28386 fi
28387 for ac_prog in xsltproc
28388 do
28389   # Extract the first word of "$ac_prog", so it can be a program name with args.
28390 set dummy $ac_prog; ac_word=$2
28391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28392 $as_echo_n "checking for $ac_word... " >&6; }
28393 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28394   $as_echo_n "(cached) " >&6
28395 else
28396   if test -n "$XSLTPROC"; then
28397   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28398 else
28399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28400 for as_dir in $PATH
28401 do
28402   IFS=$as_save_IFS
28403   test -z "$as_dir" && as_dir=.
28404   for ac_exec_ext in '' $ac_executable_extensions; do
28405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28406     ac_cv_prog_XSLTPROC="$ac_prog"
28407     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28408     break 2
28409   fi
28410 done
28411 done
28412 IFS=$as_save_IFS
28413
28414 fi
28415 fi
28416 XSLTPROC=$ac_cv_prog_XSLTPROC
28417 if test -n "$XSLTPROC"; then
28418   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28419 $as_echo "$XSLTPROC" >&6; }
28420 else
28421   { $as_echo "$as_me:$LINENO: result: no" >&5
28422 $as_echo "no" >&6; }
28423 fi
28424
28425
28426   test -n "$XSLTPROC" && break
28427 done
28428
28429 for ac_prog in osx sgml2xml sx
28430 do
28431   # Extract the first word of "$ac_prog", so it can be a program name with args.
28432 set dummy $ac_prog; ac_word=$2
28433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28434 $as_echo_n "checking for $ac_word... " >&6; }
28435 if test "${ac_cv_prog_OSX+set}" = set; then
28436   $as_echo_n "(cached) " >&6
28437 else
28438   if test -n "$OSX"; then
28439   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28440 else
28441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28442 for as_dir in $PATH
28443 do
28444   IFS=$as_save_IFS
28445   test -z "$as_dir" && as_dir=.
28446   for ac_exec_ext in '' $ac_executable_extensions; do
28447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28448     ac_cv_prog_OSX="$ac_prog"
28449     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28450     break 2
28451   fi
28452 done
28453 done
28454 IFS=$as_save_IFS
28455
28456 fi
28457 fi
28458 OSX=$ac_cv_prog_OSX
28459 if test -n "$OSX"; then
28460   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28461 $as_echo "$OSX" >&6; }
28462 else
28463   { $as_echo "$as_me:$LINENO: result: no" >&5
28464 $as_echo "no" >&6; }
28465 fi
28466
28467
28468   test -n "$OSX" && break
28469 done
28470
28471
28472 # Thread testing
28473
28474 # We have to run the thread test near the end so we have all our symbols
28475 # defined.  Cross compiling throws a warning.
28476 #
28477 if test "$enable_thread_safety" = yes; then
28478 if test "$PORTNAME" != "win32"
28479 then
28480 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28481 $as_echo_n "checking thread safety of required library functions... " >&6; }
28482
28483 _CFLAGS="$CFLAGS"
28484 _LIBS="$LIBS"
28485 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28486 LIBS="$LIBS $PTHREAD_LIBS"
28487 if test "$cross_compiling" = yes; then
28488   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28489 $as_echo "maybe" >&6; }
28490   { $as_echo "$as_me:$LINENO: WARNING:
28491 *** Skipping thread test program because of cross-compile build.
28492 *** Run the program in src/test/thread on the target machine.
28493 " >&5
28494 $as_echo "$as_me: WARNING:
28495 *** Skipping thread test program because of cross-compile build.
28496 *** Run the program in src/test/thread on the target machine.
28497 " >&2;}
28498 else
28499   cat >conftest.$ac_ext <<_ACEOF
28500 /* confdefs.h.  */
28501 _ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h.  */
28505 #include "$srcdir/src/test/thread/thread_test.c"
28506 _ACEOF
28507 rm -f conftest$ac_exeext
28508 if { (ac_try="$ac_link"
28509 case "(($ac_try" in
28510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511   *) ac_try_echo=$ac_try;;
28512 esac
28513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28514 $as_echo "$ac_try_echo") >&5
28515   (eval "$ac_link") 2>&5
28516   ac_status=$?
28517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28519   { (case "(($ac_try" in
28520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521   *) ac_try_echo=$ac_try;;
28522 esac
28523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28524 $as_echo "$ac_try_echo") >&5
28525   (eval "$ac_try") 2>&5
28526   ac_status=$?
28527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); }; }; then
28529   { $as_echo "$as_me:$LINENO: result: yes" >&5
28530 $as_echo "yes" >&6; }
28531 else
28532   $as_echo "$as_me: program exited with status $ac_status" >&5
28533 $as_echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28535
28536 ( exit $ac_status )
28537 { $as_echo "$as_me:$LINENO: result: no" >&5
28538 $as_echo "no" >&6; }
28539   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28540 This platform is not thread-safe.  Check the file 'config.log' or compile
28541 and run src/test/thread/thread_test for the exact reason.
28542 Use --disable-thread-safety to disable thread safety." >&5
28543 $as_echo "$as_me: error: thread test program failed
28544 This platform is not thread-safe.  Check the file 'config.log' or compile
28545 and run src/test/thread/thread_test for the exact reason.
28546 Use --disable-thread-safety to disable thread safety." >&2;}
28547    { (exit 1); exit 1; }; }
28548 fi
28549 rm -rf conftest.dSYM
28550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28551 fi
28552
28553
28554 CFLAGS="$_CFLAGS"
28555 LIBS="$_LIBS"
28556 else
28557 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28558 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28559 fi
28560 fi
28561
28562 # If compiler will take -Wl,--as-needed (or various platform-specific
28563 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28564 # trying to filter LIBS to the minimum for each executable.
28565 # (Note that shared library links won't use this switch, though.)
28566 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28567 # libreadline; therefore we postpone testing it until we know what library
28568 # dependencies readline has.  The test code will try to link with $LIBS.
28569 if test "$with_readline" = yes; then
28570   link_test_func=readline
28571 else
28572   link_test_func=exit
28573 fi
28574
28575 if test "$PORTNAME" = "darwin"; then
28576   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28577 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28578 pgac_save_LDFLAGS=$LDFLAGS
28579 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28580 if test "$cross_compiling" = yes; then
28581   LDFLAGS="$pgac_save_LDFLAGS"
28582                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28583 $as_echo "assuming no" >&6; }
28584 else
28585   cat >conftest.$ac_ext <<_ACEOF
28586 /* confdefs.h.  */
28587 _ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h.  */
28591 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28592 int
28593 main ()
28594 {
28595
28596   ;
28597   return 0;
28598 }
28599 _ACEOF
28600 rm -f conftest$ac_exeext
28601 if { (ac_try="$ac_link"
28602 case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28607 $as_echo "$ac_try_echo") >&5
28608   (eval "$ac_link") 2>&5
28609   ac_status=$?
28610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28612   { (case "(($ac_try" in
28613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614   *) ac_try_echo=$ac_try;;
28615 esac
28616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28617 $as_echo "$ac_try_echo") >&5
28618   (eval "$ac_try") 2>&5
28619   ac_status=$?
28620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621   (exit $ac_status); }; }; then
28622   { $as_echo "$as_me:$LINENO: result: yes" >&5
28623 $as_echo "yes" >&6; }
28624 else
28625   $as_echo "$as_me: program exited with status $ac_status" >&5
28626 $as_echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629 ( exit $ac_status )
28630 LDFLAGS="$pgac_save_LDFLAGS"
28631                { $as_echo "$as_me:$LINENO: result: no" >&5
28632 $as_echo "no" >&6; }
28633 fi
28634 rm -rf conftest.dSYM
28635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28636 fi
28637
28638
28639
28640 elif test "$PORTNAME" = "openbsd"; then
28641   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28642 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28643 pgac_save_LDFLAGS=$LDFLAGS
28644 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28645 if test "$cross_compiling" = yes; then
28646   LDFLAGS="$pgac_save_LDFLAGS"
28647                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28648 $as_echo "assuming no" >&6; }
28649 else
28650   cat >conftest.$ac_ext <<_ACEOF
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28657 int
28658 main ()
28659 {
28660
28661   ;
28662   return 0;
28663 }
28664 _ACEOF
28665 rm -f conftest$ac_exeext
28666 if { (ac_try="$ac_link"
28667 case "(($ac_try" in
28668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669   *) ac_try_echo=$ac_try;;
28670 esac
28671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28672 $as_echo "$ac_try_echo") >&5
28673   (eval "$ac_link") 2>&5
28674   ac_status=$?
28675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28677   { (case "(($ac_try" in
28678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679   *) ac_try_echo=$ac_try;;
28680 esac
28681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28682 $as_echo "$ac_try_echo") >&5
28683   (eval "$ac_try") 2>&5
28684   ac_status=$?
28685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); }; }; then
28687   { $as_echo "$as_me:$LINENO: result: yes" >&5
28688 $as_echo "yes" >&6; }
28689 else
28690   $as_echo "$as_me: program exited with status $ac_status" >&5
28691 $as_echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28693
28694 ( exit $ac_status )
28695 LDFLAGS="$pgac_save_LDFLAGS"
28696                { $as_echo "$as_me:$LINENO: result: no" >&5
28697 $as_echo "no" >&6; }
28698 fi
28699 rm -rf conftest.dSYM
28700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28701 fi
28702
28703
28704
28705 else
28706   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28707 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28708 pgac_save_LDFLAGS=$LDFLAGS
28709 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28710 if test "$cross_compiling" = yes; then
28711   LDFLAGS="$pgac_save_LDFLAGS"
28712                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28713 $as_echo "assuming no" >&6; }
28714 else
28715   cat >conftest.$ac_ext <<_ACEOF
28716 /* confdefs.h.  */
28717 _ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h.  */
28721 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28722 int
28723 main ()
28724 {
28725
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 rm -f conftest$ac_exeext
28731 if { (ac_try="$ac_link"
28732 case "(($ac_try" in
28733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734   *) ac_try_echo=$ac_try;;
28735 esac
28736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28737 $as_echo "$ac_try_echo") >&5
28738   (eval "$ac_link") 2>&5
28739   ac_status=$?
28740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28742   { (case "(($ac_try" in
28743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744   *) ac_try_echo=$ac_try;;
28745 esac
28746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28747 $as_echo "$ac_try_echo") >&5
28748   (eval "$ac_try") 2>&5
28749   ac_status=$?
28750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751   (exit $ac_status); }; }; then
28752   { $as_echo "$as_me:$LINENO: result: yes" >&5
28753 $as_echo "yes" >&6; }
28754 else
28755   $as_echo "$as_me: program exited with status $ac_status" >&5
28756 $as_echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28758
28759 ( exit $ac_status )
28760 LDFLAGS="$pgac_save_LDFLAGS"
28761                { $as_echo "$as_me:$LINENO: result: no" >&5
28762 $as_echo "no" >&6; }
28763 fi
28764 rm -rf conftest.dSYM
28765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28766 fi
28767
28768
28769
28770 fi
28771
28772
28773 # Begin output steps
28774
28775 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28776 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28777 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28778 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28779 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28780 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28781
28782 # Create compiler version string
28783 if test x"$GCC" = x"yes" ; then
28784   cc_string="GCC `${CC} --version | sed q`"
28785 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28786   cc_string=`${CC} -V 2>&1 | sed q`
28787 else
28788   cc_string=$CC
28789 fi
28790
28791
28792 cat >>confdefs.h <<_ACEOF
28793 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28794 _ACEOF
28795
28796
28797 # Supply a numeric version string for use by 3rd party add-ons
28798 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28799 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28800 tr '.' '        ' |
28801 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28802
28803 cat >>confdefs.h <<_ACEOF
28804 #define PG_VERSION_NUM $PG_VERSION_NUM
28805 _ACEOF
28806
28807
28808
28809 # prepare build tree if outside source tree
28810 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28811 # Note 2: /bin/pwd might be better than shell's built-in at getting
28812 #         a symlink-free name.
28813 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28814   vpath_build=no
28815 else
28816   vpath_build=yes
28817   if test "$no_create" != yes; then
28818     $as_echo_n "preparing build tree... " >&6
28819     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28820     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28821       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28822 $as_echo "$as_me: error: failed" >&2;}
28823    { (exit 1); exit 1; }; }
28824     { $as_echo "$as_me:$LINENO: result: done" >&5
28825 $as_echo "done" >&6; }
28826   fi
28827 fi
28828
28829
28830
28831 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28832
28833
28834 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}"
28835
28836
28837 if test "$PORTNAME" = "win32"; then
28838 ac_config_commands="$ac_config_commands check_win32_symlinks"
28839
28840 fi
28841
28842 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28843
28844
28845 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28846
28847
28848 cat >confcache <<\_ACEOF
28849 # This file is a shell script that caches the results of configure
28850 # tests run on this system so they can be shared between configure
28851 # scripts and configure runs, see configure's option --config-cache.
28852 # It is not useful on other systems.  If it contains results you don't
28853 # want to keep, you may remove or edit it.
28854 #
28855 # config.status only pays attention to the cache file if you give it
28856 # the --recheck option to rerun configure.
28857 #
28858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28860 # following values.
28861
28862 _ACEOF
28863
28864 # The following way of writing the cache mishandles newlines in values,
28865 # but we know of no workaround that is simple, portable, and efficient.
28866 # So, we kill variables containing newlines.
28867 # Ultrix sh set writes to stderr and can't be redirected directly,
28868 # and sets the high bit in the cache file unless we assign to the vars.
28869 (
28870   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28871     eval ac_val=\$$ac_var
28872     case $ac_val in #(
28873     *${as_nl}*)
28874       case $ac_var in #(
28875       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28876 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28877       esac
28878       case $ac_var in #(
28879       _ | IFS | as_nl) ;; #(
28880       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28881       *) $as_unset $ac_var ;;
28882       esac ;;
28883     esac
28884   done
28885
28886   (set) 2>&1 |
28887     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28888     *${as_nl}ac_space=\ *)
28889       # `set' does not quote correctly, so add quotes (double-quote
28890       # substitution turns \\\\ into \\, and sed turns \\ into \).
28891       sed -n \
28892         "s/'/'\\\\''/g;
28893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28894       ;; #(
28895     *)
28896       # `set' quotes correctly as required by POSIX, so do not add quotes.
28897       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28898       ;;
28899     esac |
28900     sort
28901 ) |
28902   sed '
28903      /^ac_cv_env_/b end
28904      t clear
28905      :clear
28906      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28907      t end
28908      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28909      :end' >>confcache
28910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28911   if test -w "$cache_file"; then
28912     test "x$cache_file" != "x/dev/null" &&
28913       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28914 $as_echo "$as_me: updating cache $cache_file" >&6;}
28915     cat confcache >$cache_file
28916   else
28917     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28918 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28919   fi
28920 fi
28921 rm -f confcache
28922
28923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28924 # Let make expand exec_prefix.
28925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28926
28927 DEFS=-DHAVE_CONFIG_H
28928
28929 ac_libobjs=
28930 ac_ltlibobjs=
28931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28932   # 1. Remove the extension, and $U if already installed.
28933   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28934   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28935   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28936   #    will be set to the directory where LIBOBJS objects are built.
28937   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28938   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28939 done
28940 LIBOBJS=$ac_libobjs
28941
28942 LTLIBOBJS=$ac_ltlibobjs
28943
28944
28945
28946
28947 : ${CONFIG_STATUS=./config.status}
28948 ac_write_fail=0
28949 ac_clean_files_save=$ac_clean_files
28950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28951 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28952 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28953 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28954 #! $SHELL
28955 # Generated by $as_me.
28956 # Run this file to recreate the current configuration.
28957 # Compiler output produced by configure, useful for debugging
28958 # configure, is in config.log if it exists.
28959
28960 debug=false
28961 ac_cs_recheck=false
28962 ac_cs_silent=false
28963 SHELL=\${CONFIG_SHELL-$SHELL}
28964 _ACEOF
28965
28966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28967 ## --------------------- ##
28968 ## M4sh Initialization.  ##
28969 ## --------------------- ##
28970
28971 # Be more Bourne compatible
28972 DUALCASE=1; export DUALCASE # for MKS sh
28973 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28974   emulate sh
28975   NULLCMD=:
28976   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28977   # is contrary to our usage.  Disable this feature.
28978   alias -g '${1+"$@"}'='"$@"'
28979   setopt NO_GLOB_SUBST
28980 else
28981   case `(set -o) 2>/dev/null` in
28982   *posix*) set -o posix ;;
28983 esac
28984
28985 fi
28986
28987
28988
28989
28990 # PATH needs CR
28991 # Avoid depending upon Character Ranges.
28992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28995 as_cr_digits='0123456789'
28996 as_cr_alnum=$as_cr_Letters$as_cr_digits
28997
28998 as_nl='
28999 '
29000 export as_nl
29001 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29002 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29005 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29006   as_echo='printf %s\n'
29007   as_echo_n='printf %s'
29008 else
29009   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29010     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29011     as_echo_n='/usr/ucb/echo -n'
29012   else
29013     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29014     as_echo_n_body='eval
29015       arg=$1;
29016       case $arg in
29017       *"$as_nl"*)
29018         expr "X$arg" : "X\\(.*\\)$as_nl";
29019         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29020       esac;
29021       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29022     '
29023     export as_echo_n_body
29024     as_echo_n='sh -c $as_echo_n_body as_echo'
29025   fi
29026   export as_echo_body
29027   as_echo='sh -c $as_echo_body as_echo'
29028 fi
29029
29030 # The user is always right.
29031 if test "${PATH_SEPARATOR+set}" != set; then
29032   PATH_SEPARATOR=:
29033   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29034     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29035       PATH_SEPARATOR=';'
29036   }
29037 fi
29038
29039 # Support unset when possible.
29040 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29041   as_unset=unset
29042 else
29043   as_unset=false
29044 fi
29045
29046
29047 # IFS
29048 # We need space, tab and new line, in precisely that order.  Quoting is
29049 # there to prevent editors from complaining about space-tab.
29050 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29051 # splitting by setting IFS to empty value.)
29052 IFS=" ""        $as_nl"
29053
29054 # Find who we are.  Look in the path if we contain no directory separator.
29055 case $0 in
29056   *[\\/]* ) as_myself=$0 ;;
29057   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29058 for as_dir in $PATH
29059 do
29060   IFS=$as_save_IFS
29061   test -z "$as_dir" && as_dir=.
29062   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29063 done
29064 IFS=$as_save_IFS
29065
29066      ;;
29067 esac
29068 # We did not find ourselves, most probably we were run as `sh COMMAND'
29069 # in which case we are not to be found in the path.
29070 if test "x$as_myself" = x; then
29071   as_myself=$0
29072 fi
29073 if test ! -f "$as_myself"; then
29074   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29075   { (exit 1); exit 1; }
29076 fi
29077
29078 # Work around bugs in pre-3.0 UWIN ksh.
29079 for as_var in ENV MAIL MAILPATH
29080 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29081 done
29082 PS1='$ '
29083 PS2='> '
29084 PS4='+ '
29085
29086 # NLS nuisances.
29087 LC_ALL=C
29088 export LC_ALL
29089 LANGUAGE=C
29090 export LANGUAGE
29091
29092 # Required to use basename.
29093 if expr a : '\(a\)' >/dev/null 2>&1 &&
29094    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29095   as_expr=expr
29096 else
29097   as_expr=false
29098 fi
29099
29100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29101   as_basename=basename
29102 else
29103   as_basename=false
29104 fi
29105
29106
29107 # Name of the executable.
29108 as_me=`$as_basename -- "$0" ||
29109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29110          X"$0" : 'X\(//\)$' \| \
29111          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29112 $as_echo X/"$0" |
29113     sed '/^.*\/\([^/][^/]*\)\/*$/{
29114             s//\1/
29115             q
29116           }
29117           /^X\/\(\/\/\)$/{
29118             s//\1/
29119             q
29120           }
29121           /^X\/\(\/\).*/{
29122             s//\1/
29123             q
29124           }
29125           s/.*/./; q'`
29126
29127 # CDPATH.
29128 $as_unset CDPATH
29129
29130
29131
29132   as_lineno_1=$LINENO
29133   as_lineno_2=$LINENO
29134   test "x$as_lineno_1" != "x$as_lineno_2" &&
29135   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29136
29137   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29138   # uniformly replaced by the line number.  The first 'sed' inserts a
29139   # line-number line after each line using $LINENO; the second 'sed'
29140   # does the real work.  The second script uses 'N' to pair each
29141   # line-number line with the line containing $LINENO, and appends
29142   # trailing '-' during substitution so that $LINENO is not a special
29143   # case at line end.
29144   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29145   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29146   # E. McMahon (1931-1989) for sed's syntax.  :-)
29147   sed -n '
29148     p
29149     /[$]LINENO/=
29150   ' <$as_myself |
29151     sed '
29152       s/[$]LINENO.*/&-/
29153       t lineno
29154       b
29155       :lineno
29156       N
29157       :loop
29158       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29159       t loop
29160       s/-\n.*//
29161     ' >$as_me.lineno &&
29162   chmod +x "$as_me.lineno" ||
29163     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29164    { (exit 1); exit 1; }; }
29165
29166   # Don't try to exec as it changes $[0], causing all sort of problems
29167   # (the dirname of $[0] is not the place where we might find the
29168   # original and so on.  Autoconf is especially sensitive to this).
29169   . "./$as_me.lineno"
29170   # Exit status is that of the last command.
29171   exit
29172 }
29173
29174
29175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29176   as_dirname=dirname
29177 else
29178   as_dirname=false
29179 fi
29180
29181 ECHO_C= ECHO_N= ECHO_T=
29182 case `echo -n x` in
29183 -n*)
29184   case `echo 'x\c'` in
29185   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29186   *)   ECHO_C='\c';;
29187   esac;;
29188 *)
29189   ECHO_N='-n';;
29190 esac
29191 if expr a : '\(a\)' >/dev/null 2>&1 &&
29192    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29193   as_expr=expr
29194 else
29195   as_expr=false
29196 fi
29197
29198 rm -f conf$$ conf$$.exe conf$$.file
29199 if test -d conf$$.dir; then
29200   rm -f conf$$.dir/conf$$.file
29201 else
29202   rm -f conf$$.dir
29203   mkdir conf$$.dir 2>/dev/null
29204 fi
29205 if (echo >conf$$.file) 2>/dev/null; then
29206   if ln -s conf$$.file conf$$ 2>/dev/null; then
29207     as_ln_s='ln -s'
29208     # ... but there are two gotchas:
29209     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29210     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29211     # In both cases, we have to default to `cp -p'.
29212     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29213       as_ln_s='cp -p'
29214   elif ln conf$$.file conf$$ 2>/dev/null; then
29215     as_ln_s=ln
29216   else
29217     as_ln_s='cp -p'
29218   fi
29219 else
29220   as_ln_s='cp -p'
29221 fi
29222 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29223 rmdir conf$$.dir 2>/dev/null
29224
29225 if mkdir -p . 2>/dev/null; then
29226   as_mkdir_p=:
29227 else
29228   test -d ./-p && rmdir ./-p
29229   as_mkdir_p=false
29230 fi
29231
29232 if test -x / >/dev/null 2>&1; then
29233   as_test_x='test -x'
29234 else
29235   if ls -dL / >/dev/null 2>&1; then
29236     as_ls_L_option=L
29237   else
29238     as_ls_L_option=
29239   fi
29240   as_test_x='
29241     eval sh -c '\''
29242       if test -d "$1"; then
29243         test -d "$1/.";
29244       else
29245         case $1 in
29246         -*)set "./$1";;
29247         esac;
29248         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29249         ???[sx]*):;;*)false;;esac;fi
29250     '\'' sh
29251   '
29252 fi
29253 as_executable_p=$as_test_x
29254
29255 # Sed expression to map a string onto a valid CPP name.
29256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29257
29258 # Sed expression to map a string onto a valid variable name.
29259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29260
29261
29262 exec 6>&1
29263
29264 # Save the log message, to keep $[0] and so on meaningful, and to
29265 # report actual input values of CONFIG_FILES etc. instead of their
29266 # values after options handling.
29267 ac_log="
29268 This file was extended by PostgreSQL $as_me 8.5devel, which was
29269 generated by GNU Autoconf 2.63.  Invocation command line was
29270
29271   CONFIG_FILES    = $CONFIG_FILES
29272   CONFIG_HEADERS  = $CONFIG_HEADERS
29273   CONFIG_LINKS    = $CONFIG_LINKS
29274   CONFIG_COMMANDS = $CONFIG_COMMANDS
29275   $ $0 $@
29276
29277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29278 "
29279
29280 _ACEOF
29281
29282 case $ac_config_files in *"
29283 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29284 esac
29285
29286 case $ac_config_headers in *"
29287 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29288 esac
29289
29290
29291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29292 # Files that config.status was made for.
29293 config_files="$ac_config_files"
29294 config_headers="$ac_config_headers"
29295 config_links="$ac_config_links"
29296 config_commands="$ac_config_commands"
29297
29298 _ACEOF
29299
29300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29301 ac_cs_usage="\
29302 \`$as_me' instantiates files from templates according to the
29303 current configuration.
29304
29305 Usage: $0 [OPTION]... [FILE]...
29306
29307   -h, --help       print this help, then exit
29308   -V, --version    print version number and configuration settings, then exit
29309   -q, --quiet, --silent
29310                    do not print progress messages
29311   -d, --debug      don't remove temporary files
29312       --recheck    update $as_me by reconfiguring in the same conditions
29313       --file=FILE[:TEMPLATE]
29314                    instantiate the configuration file FILE
29315       --header=FILE[:TEMPLATE]
29316                    instantiate the configuration header FILE
29317
29318 Configuration files:
29319 $config_files
29320
29321 Configuration headers:
29322 $config_headers
29323
29324 Configuration links:
29325 $config_links
29326
29327 Configuration commands:
29328 $config_commands
29329
29330 Report bugs to <bug-autoconf@gnu.org>."
29331
29332 _ACEOF
29333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29334 ac_cs_version="\\
29335 PostgreSQL config.status 8.5devel
29336 configured by $0, generated by GNU Autoconf 2.63,
29337   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29338
29339 Copyright (C) 2008 Free Software Foundation, Inc.
29340 This config.status script is free software; the Free Software Foundation
29341 gives unlimited permission to copy, distribute and modify it."
29342
29343 ac_pwd='$ac_pwd'
29344 srcdir='$srcdir'
29345 MKDIR_P='$MKDIR_P'
29346 AWK='$AWK'
29347 test -n "\$AWK" || AWK=awk
29348 _ACEOF
29349
29350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29351 # The default lists apply if the user does not specify any file.
29352 ac_need_defaults=:
29353 while test $# != 0
29354 do
29355   case $1 in
29356   --*=*)
29357     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29358     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29359     ac_shift=:
29360     ;;
29361   *)
29362     ac_option=$1
29363     ac_optarg=$2
29364     ac_shift=shift
29365     ;;
29366   esac
29367
29368   case $ac_option in
29369   # Handling of the options.
29370   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29371     ac_cs_recheck=: ;;
29372   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29373     $as_echo "$ac_cs_version"; exit ;;
29374   --debug | --debu | --deb | --de | --d | -d )
29375     debug=: ;;
29376   --file | --fil | --fi | --f )
29377     $ac_shift
29378     case $ac_optarg in
29379     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29380     esac
29381     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29382     ac_need_defaults=false;;
29383   --header | --heade | --head | --hea )
29384     $ac_shift
29385     case $ac_optarg in
29386     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29387     esac
29388     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29389     ac_need_defaults=false;;
29390   --he | --h)
29391     # Conflict between --help and --header
29392     { $as_echo "$as_me: error: ambiguous option: $1
29393 Try \`$0 --help' for more information." >&2
29394    { (exit 1); exit 1; }; };;
29395   --help | --hel | -h )
29396     $as_echo "$ac_cs_usage"; exit ;;
29397   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29398   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29399     ac_cs_silent=: ;;
29400
29401   # This is an error.
29402   -*) { $as_echo "$as_me: error: unrecognized option: $1
29403 Try \`$0 --help' for more information." >&2
29404    { (exit 1); exit 1; }; } ;;
29405
29406   *) ac_config_targets="$ac_config_targets $1"
29407      ac_need_defaults=false ;;
29408
29409   esac
29410   shift
29411 done
29412
29413 ac_configure_extra_args=
29414
29415 if $ac_cs_silent; then
29416   exec 6>/dev/null
29417   ac_configure_extra_args="$ac_configure_extra_args --silent"
29418 fi
29419
29420 _ACEOF
29421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29422 if \$ac_cs_recheck; then
29423   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29424   shift
29425   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29426   CONFIG_SHELL='$SHELL'
29427   export CONFIG_SHELL
29428   exec "\$@"
29429 fi
29430
29431 _ACEOF
29432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29433 exec 5>>config.log
29434 {
29435   echo
29436   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29437 ## Running $as_me. ##
29438 _ASBOX
29439   $as_echo "$ac_log"
29440 } >&5
29441
29442 _ACEOF
29443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29444 _ACEOF
29445
29446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29447
29448 # Handling of arguments.
29449 for ac_config_target in $ac_config_targets
29450 do
29451   case $ac_config_target in
29452     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29453     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29454     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29455     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29456     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29457     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29458     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29459     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29460     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29461     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29462     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29463     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29464
29465   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29466 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29467    { (exit 1); exit 1; }; };;
29468   esac
29469 done
29470
29471
29472 # If the user did not use the arguments to specify the items to instantiate,
29473 # then the envvar interface is used.  Set only those that are not.
29474 # We use the long form for the default assignment because of an extremely
29475 # bizarre bug on SunOS 4.1.3.
29476 if $ac_need_defaults; then
29477   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29478   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29479   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29480   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29481 fi
29482
29483 # Have a temporary directory for convenience.  Make it in the build tree
29484 # simply because there is no reason against having it here, and in addition,
29485 # creating and moving files from /tmp can sometimes cause problems.
29486 # Hook for its removal unless debugging.
29487 # Note that there is a small window in which the directory will not be cleaned:
29488 # after its creation but before its name has been assigned to `$tmp'.
29489 $debug ||
29490 {
29491   tmp=
29492   trap 'exit_status=$?
29493   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29494 ' 0
29495   trap '{ (exit 1); exit 1; }' 1 2 13 15
29496 }
29497 # Create a (secure) tmp directory for tmp files.
29498
29499 {
29500   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29501   test -n "$tmp" && test -d "$tmp"
29502 }  ||
29503 {
29504   tmp=./conf$$-$RANDOM
29505   (umask 077 && mkdir "$tmp")
29506 } ||
29507 {
29508    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29509    { (exit 1); exit 1; }
29510 }
29511
29512 # Set up the scripts for CONFIG_FILES section.
29513 # No need to generate them if there are no CONFIG_FILES.
29514 # This happens for instance with `./config.status config.h'.
29515 if test -n "$CONFIG_FILES"; then
29516
29517
29518 ac_cr='\r'
29519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29521   ac_cs_awk_cr='\\r'
29522 else
29523   ac_cs_awk_cr=$ac_cr
29524 fi
29525
29526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29527 _ACEOF
29528
29529
29530 {
29531   echo "cat >conf$$subs.awk <<_ACEOF" &&
29532   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29533   echo "_ACEOF"
29534 } >conf$$subs.sh ||
29535   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29536 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29537    { (exit 1); exit 1; }; }
29538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29539 ac_delim='%!_!# '
29540 for ac_last_try in false false false false false :; do
29541   . ./conf$$subs.sh ||
29542     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29543 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29544    { (exit 1); exit 1; }; }
29545
29546   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29547   if test $ac_delim_n = $ac_delim_num; then
29548     break
29549   elif $ac_last_try; then
29550     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29551 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29552    { (exit 1); exit 1; }; }
29553   else
29554     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29555   fi
29556 done
29557 rm -f conf$$subs.sh
29558
29559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29560 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29561 _ACEOF
29562 sed -n '
29563 h
29564 s/^/S["/; s/!.*/"]=/
29565 p
29566 g
29567 s/^[^!]*!//
29568 :repl
29569 t repl
29570 s/'"$ac_delim"'$//
29571 t delim
29572 :nl
29573 h
29574 s/\(.\{148\}\).*/\1/
29575 t more1
29576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29577 p
29578 n
29579 b repl
29580 :more1
29581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29582 p
29583 g
29584 s/.\{148\}//
29585 t nl
29586 :delim
29587 h
29588 s/\(.\{148\}\).*/\1/
29589 t more2
29590 s/["\\]/\\&/g; s/^/"/; s/$/"/
29591 p
29592 b
29593 :more2
29594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29595 p
29596 g
29597 s/.\{148\}//
29598 t delim
29599 ' <conf$$subs.awk | sed '
29600 /^[^""]/{
29601   N
29602   s/\n//
29603 }
29604 ' >>$CONFIG_STATUS || ac_write_fail=1
29605 rm -f conf$$subs.awk
29606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29607 _ACAWK
29608 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29609   for (key in S) S_is_set[key] = 1
29610   FS = "\a"
29611
29612 }
29613 {
29614   line = $ 0
29615   nfields = split(line, field, "@")
29616   substed = 0
29617   len = length(field[1])
29618   for (i = 2; i < nfields; i++) {
29619     key = field[i]
29620     keylen = length(key)
29621     if (S_is_set[key]) {
29622       value = S[key]
29623       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29624       len += length(value) + length(field[++i])
29625       substed = 1
29626     } else
29627       len += 1 + keylen
29628   }
29629
29630   print line
29631 }
29632
29633 _ACAWK
29634 _ACEOF
29635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29637   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29638 else
29639   cat
29640 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29641   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29642 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29643    { (exit 1); exit 1; }; }
29644 _ACEOF
29645
29646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29648 # trailing colons and then remove the whole line if VPATH becomes empty
29649 # (actually we leave an empty line to preserve line numbers).
29650 if test "x$srcdir" = x.; then
29651   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29652 s/:*\$(srcdir):*/:/
29653 s/:*\${srcdir}:*/:/
29654 s/:*@srcdir@:*/:/
29655 s/^\([^=]*=[     ]*\):*/\1/
29656 s/:*$//
29657 s/^[^=]*=[       ]*$//
29658 }'
29659 fi
29660
29661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29662 fi # test -n "$CONFIG_FILES"
29663
29664 # Set up the scripts for CONFIG_HEADERS section.
29665 # No need to generate them if there are no CONFIG_HEADERS.
29666 # This happens for instance with `./config.status Makefile'.
29667 if test -n "$CONFIG_HEADERS"; then
29668 cat >"$tmp/defines.awk" <<\_ACAWK ||
29669 BEGIN {
29670 _ACEOF
29671
29672 # Transform confdefs.h into an awk script `defines.awk', embedded as
29673 # here-document in config.status, that substitutes the proper values into
29674 # config.h.in to produce config.h.
29675
29676 # Create a delimiter string that does not exist in confdefs.h, to ease
29677 # handling of long lines.
29678 ac_delim='%!_!# '
29679 for ac_last_try in false false :; do
29680   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29681   if test -z "$ac_t"; then
29682     break
29683   elif $ac_last_try; then
29684     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29685 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29686    { (exit 1); exit 1; }; }
29687   else
29688     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29689   fi
29690 done
29691
29692 # For the awk script, D is an array of macro values keyed by name,
29693 # likewise P contains macro parameters if any.  Preserve backslash
29694 # newline sequences.
29695
29696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29697 sed -n '
29698 s/.\{148\}/&'"$ac_delim"'/g
29699 t rset
29700 :rset
29701 s/^[     ]*#[    ]*define[       ][      ]*/ /
29702 t def
29703 d
29704 :def
29705 s/\\$//
29706 t bsnl
29707 s/["\\]/\\&/g
29708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29709 D["\1"]=" \3"/p
29710 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29711 d
29712 :bsnl
29713 s/["\\]/\\&/g
29714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29715 D["\1"]=" \3\\\\\\n"\\/p
29716 t cont
29717 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29718 t cont
29719 d
29720 :cont
29721 n
29722 s/.\{148\}/&'"$ac_delim"'/g
29723 t clear
29724 :clear
29725 s/\\$//
29726 t bsnlc
29727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29728 d
29729 :bsnlc
29730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29731 b cont
29732 ' <confdefs.h | sed '
29733 s/'"$ac_delim"'/"\\\
29734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29735
29736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29737   for (key in D) D_is_set[key] = 1
29738   FS = "\a"
29739 }
29740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29741   line = \$ 0
29742   split(line, arg, " ")
29743   if (arg[1] == "#") {
29744     defundef = arg[2]
29745     mac1 = arg[3]
29746   } else {
29747     defundef = substr(arg[1], 2)
29748     mac1 = arg[2]
29749   }
29750   split(mac1, mac2, "(") #)
29751   macro = mac2[1]
29752   prefix = substr(line, 1, index(line, defundef) - 1)
29753   if (D_is_set[macro]) {
29754     # Preserve the white space surrounding the "#".
29755     print prefix "define", macro P[macro] D[macro]
29756     next
29757   } else {
29758     # Replace #undef with comments.  This is necessary, for example,
29759     # in the case of _POSIX_SOURCE, which is predefined and required
29760     # on some systems where configure will not decide to define it.
29761     if (defundef == "undef") {
29762       print "/*", prefix defundef, macro, "*/"
29763       next
29764     }
29765   }
29766 }
29767 { print }
29768 _ACAWK
29769 _ACEOF
29770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29771   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29772 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29773    { (exit 1); exit 1; }; }
29774 fi # test -n "$CONFIG_HEADERS"
29775
29776
29777 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29778 shift
29779 for ac_tag
29780 do
29781   case $ac_tag in
29782   :[FHLC]) ac_mode=$ac_tag; continue;;
29783   esac
29784   case $ac_mode$ac_tag in
29785   :[FHL]*:*);;
29786   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29787 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29788    { (exit 1); exit 1; }; };;
29789   :[FH]-) ac_tag=-:-;;
29790   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29791   esac
29792   ac_save_IFS=$IFS
29793   IFS=:
29794   set x $ac_tag
29795   IFS=$ac_save_IFS
29796   shift
29797   ac_file=$1
29798   shift
29799
29800   case $ac_mode in
29801   :L) ac_source=$1;;
29802   :[FH])
29803     ac_file_inputs=
29804     for ac_f
29805     do
29806       case $ac_f in
29807       -) ac_f="$tmp/stdin";;
29808       *) # Look for the file first in the build tree, then in the source tree
29809          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29810          # because $ac_f cannot contain `:'.
29811          test -f "$ac_f" ||
29812            case $ac_f in
29813            [\\/$]*) false;;
29814            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29815            esac ||
29816            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29817 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29818    { (exit 1); exit 1; }; };;
29819       esac
29820       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29821       ac_file_inputs="$ac_file_inputs '$ac_f'"
29822     done
29823
29824     # Let's still pretend it is `configure' which instantiates (i.e., don't
29825     # use $as_me), people would be surprised to read:
29826     #    /* config.h.  Generated by config.status.  */
29827     configure_input='Generated from '`
29828           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29829         `' by configure.'
29830     if test x"$ac_file" != x-; then
29831       configure_input="$ac_file.  $configure_input"
29832       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29833 $as_echo "$as_me: creating $ac_file" >&6;}
29834     fi
29835     # Neutralize special characters interpreted by sed in replacement strings.
29836     case $configure_input in #(
29837     *\&* | *\|* | *\\* )
29838        ac_sed_conf_input=`$as_echo "$configure_input" |
29839        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29840     *) ac_sed_conf_input=$configure_input;;
29841     esac
29842
29843     case $ac_tag in
29844     *:-:* | *:-) cat >"$tmp/stdin" \
29845       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29846 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29847    { (exit 1); exit 1; }; } ;;
29848     esac
29849     ;;
29850   esac
29851
29852   ac_dir=`$as_dirname -- "$ac_file" ||
29853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29854          X"$ac_file" : 'X\(//\)[^/]' \| \
29855          X"$ac_file" : 'X\(//\)$' \| \
29856          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29857 $as_echo X"$ac_file" |
29858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29859             s//\1/
29860             q
29861           }
29862           /^X\(\/\/\)[^/].*/{
29863             s//\1/
29864             q
29865           }
29866           /^X\(\/\/\)$/{
29867             s//\1/
29868             q
29869           }
29870           /^X\(\/\).*/{
29871             s//\1/
29872             q
29873           }
29874           s/.*/./; q'`
29875   { as_dir="$ac_dir"
29876   case $as_dir in #(
29877   -*) as_dir=./$as_dir;;
29878   esac
29879   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29880     as_dirs=
29881     while :; do
29882       case $as_dir in #(
29883       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29884       *) as_qdir=$as_dir;;
29885       esac
29886       as_dirs="'$as_qdir' $as_dirs"
29887       as_dir=`$as_dirname -- "$as_dir" ||
29888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29889          X"$as_dir" : 'X\(//\)[^/]' \| \
29890          X"$as_dir" : 'X\(//\)$' \| \
29891          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29892 $as_echo X"$as_dir" |
29893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29894             s//\1/
29895             q
29896           }
29897           /^X\(\/\/\)[^/].*/{
29898             s//\1/
29899             q
29900           }
29901           /^X\(\/\/\)$/{
29902             s//\1/
29903             q
29904           }
29905           /^X\(\/\).*/{
29906             s//\1/
29907             q
29908           }
29909           s/.*/./; q'`
29910       test -d "$as_dir" && break
29911     done
29912     test -z "$as_dirs" || eval "mkdir $as_dirs"
29913   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29914 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29915    { (exit 1); exit 1; }; }; }
29916   ac_builddir=.
29917
29918 case "$ac_dir" in
29919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29920 *)
29921   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29922   # A ".." for each directory in $ac_dir_suffix.
29923   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29924   case $ac_top_builddir_sub in
29925   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29926   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29927   esac ;;
29928 esac
29929 ac_abs_top_builddir=$ac_pwd
29930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29931 # for backward compatibility:
29932 ac_top_builddir=$ac_top_build_prefix
29933
29934 case $srcdir in
29935   .)  # We are building in place.
29936     ac_srcdir=.
29937     ac_top_srcdir=$ac_top_builddir_sub
29938     ac_abs_top_srcdir=$ac_pwd ;;
29939   [\\/]* | ?:[\\/]* )  # Absolute name.
29940     ac_srcdir=$srcdir$ac_dir_suffix;
29941     ac_top_srcdir=$srcdir
29942     ac_abs_top_srcdir=$srcdir ;;
29943   *) # Relative name.
29944     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29945     ac_top_srcdir=$ac_top_build_prefix$srcdir
29946     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29947 esac
29948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29949
29950
29951   case $ac_mode in
29952   :F)
29953   #
29954   # CONFIG_FILE
29955   #
29956
29957   ac_MKDIR_P=$MKDIR_P
29958   case $MKDIR_P in
29959   [\\/$]* | ?:[\\/]* ) ;;
29960   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29961   esac
29962 _ACEOF
29963
29964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29965 # If the template does not know about datarootdir, expand it.
29966 # FIXME: This hack should be removed a few years after 2.60.
29967 ac_datarootdir_hack=; ac_datarootdir_seen=
29968
29969 ac_sed_dataroot='
29970 /datarootdir/ {
29971   p
29972   q
29973 }
29974 /@datadir@/p
29975 /@docdir@/p
29976 /@infodir@/p
29977 /@localedir@/p
29978 /@mandir@/p
29979 '
29980 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29981 *datarootdir*) ac_datarootdir_seen=yes;;
29982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29983   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29984 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29985 _ACEOF
29986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29987   ac_datarootdir_hack='
29988   s&@datadir@&$datadir&g
29989   s&@docdir@&$docdir&g
29990   s&@infodir@&$infodir&g
29991   s&@localedir@&$localedir&g
29992   s&@mandir@&$mandir&g
29993     s&\\\${datarootdir}&$datarootdir&g' ;;
29994 esac
29995 _ACEOF
29996
29997 # Neutralize VPATH when `$srcdir' = `.'.
29998 # Shell code in configure.ac might set extrasub.
29999 # FIXME: do we really want to maintain this feature?
30000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30001 ac_sed_extra="$ac_vpsub
30002 $extrasub
30003 _ACEOF
30004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30005 :t
30006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30007 s|@configure_input@|$ac_sed_conf_input|;t t
30008 s&@top_builddir@&$ac_top_builddir_sub&;t t
30009 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30010 s&@srcdir@&$ac_srcdir&;t t
30011 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30012 s&@top_srcdir@&$ac_top_srcdir&;t t
30013 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30014 s&@builddir@&$ac_builddir&;t t
30015 s&@abs_builddir@&$ac_abs_builddir&;t t
30016 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30018 $ac_datarootdir_hack
30019 "
30020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30021   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30022 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30023    { (exit 1); exit 1; }; }
30024
30025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30026   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30027   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30028   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30029 which seems to be undefined.  Please make sure it is defined." >&5
30030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30031 which seems to be undefined.  Please make sure it is defined." >&2;}
30032
30033   rm -f "$tmp/stdin"
30034   case $ac_file in
30035   -) cat "$tmp/out" && rm -f "$tmp/out";;
30036   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30037   esac \
30038   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30039 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30040    { (exit 1); exit 1; }; }
30041  ;;
30042   :H)
30043   #
30044   # CONFIG_HEADER
30045   #
30046   if test x"$ac_file" != x-; then
30047     {
30048       $as_echo "/* $configure_input  */" \
30049       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30050     } >"$tmp/config.h" \
30051       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30053    { (exit 1); exit 1; }; }
30054     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30055       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30057     else
30058       rm -f "$ac_file"
30059       mv "$tmp/config.h" "$ac_file" \
30060         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30061 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30062    { (exit 1); exit 1; }; }
30063     fi
30064   else
30065     $as_echo "/* $configure_input  */" \
30066       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30067       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30068 $as_echo "$as_me: error: could not create -" >&2;}
30069    { (exit 1); exit 1; }; }
30070   fi
30071  ;;
30072   :L)
30073   #
30074   # CONFIG_LINK
30075   #
30076
30077   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30078     :
30079   else
30080     # Prefer the file from the source tree if names are identical.
30081     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30082       ac_source=$srcdir/$ac_source
30083     fi
30084
30085     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30086 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30087
30088     if test ! -r "$ac_source"; then
30089       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30090 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30091    { (exit 1); exit 1; }; }
30092     fi
30093     rm -f "$ac_file"
30094
30095     # Try a relative symlink, then a hard link, then a copy.
30096     case $srcdir in
30097     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30098         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30099     esac
30100     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30101       ln "$ac_source" "$ac_file" 2>/dev/null ||
30102       cp -p "$ac_source" "$ac_file" ||
30103       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30104 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30105    { (exit 1); exit 1; }; }
30106   fi
30107  ;;
30108   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30109 $as_echo "$as_me: executing $ac_file commands" >&6;}
30110  ;;
30111   esac
30112
30113
30114   case $ac_file$ac_mode in
30115     "check_win32_symlinks":C)
30116 # Links sometimes fail undetected on Mingw -
30117 # so here we detect it and warn the user
30118 for FILE in $CONFIG_LINKS
30119  do
30120         # test -e works for symlinks in the MinGW console
30121         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30122 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30123  done
30124  ;;
30125     "src/include/pg_config.h":H)
30126 # Update timestamp for pg_config.h (see Makefile.global)
30127 echo >src/include/stamp-h
30128  ;;
30129     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30130
30131   esac
30132 done # for ac_tag
30133
30134
30135 { (exit 0); exit 0; }
30136 _ACEOF
30137 chmod +x $CONFIG_STATUS
30138 ac_clean_files=$ac_clean_files_save
30139
30140 test $ac_write_fail = 0 ||
30141   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30142 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30143    { (exit 1); exit 1; }; }
30144
30145
30146 # configure is writing to config.log, and then calls config.status.
30147 # config.status does its own redirection, appending to config.log.
30148 # Unfortunately, on DOS this fails, as config.log is still kept open
30149 # by configure, so config.status won't be able to write to it; its
30150 # output is simply discarded.  So we exec the FD to /dev/null,
30151 # effectively closing config.log, so it can be properly (re)opened and
30152 # appended to by config.status.  When coming back to configure, we
30153 # need to make the FD available again.
30154 if test "$no_create" != yes; then
30155   ac_cs_success=:
30156   ac_config_status_args=
30157   test "$silent" = yes &&
30158     ac_config_status_args="$ac_config_status_args --quiet"
30159   exec 5>/dev/null
30160   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30161   exec 5>>config.log
30162   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30163   # would make configure fail if this is the last instruction.
30164   $ac_cs_success || { (exit 1); exit 1; }
30165 fi
30166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30167   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30169 fi
30170