OSDN Git Service

Stamp HEAD as 9.1devel.
[pg-rex/syncrep.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2010, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.1devel'
602 PACKAGE_STRING='PostgreSQL 9.1devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 HAVE_IPV6
671 LIBOBJS
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 python_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
692 AWK
693 LN_S
694 TAR
695 WINDRES
696 DLLWRAP
697 DLLTOOL
698 AR
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
705 LD
706 LDFLAGS_SL
707 LDFLAGS_EX
708 ELF_SYS
709 EGREP
710 GREP
711 with_zlib
712 with_system_tzdata
713 with_libxslt
714 with_libxml
715 XML2_CONFIG
716 with_ossp_uuid
717 with_openssl
718 with_bonjour
719 with_ldap
720 with_pam
721 krb_srvtab
722 with_krb5
723 with_gssapi
724 with_python
725 with_perl
726 with_tcl
727 enable_thread_safety
728 INCLUDES
729 autodepend
730 TAS
731 GCC
732 CPP
733 SUN_STUDIO_CC
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 enable_dtrace
742 DTRACEFLAGS
743 DTRACE
744 enable_coverage
745 GENHTML
746 LCOV
747 GCOV
748 enable_profiling
749 enable_debug
750 enable_rpath
751 enable_shared
752 default_port
753 WANTED_LANGUAGES
754 enable_nls
755 PORTNAME
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 PG_MAJORVERSION
765 configure_args
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 with_template
807 with_includes
808 with_libraries
809 with_libs
810 enable_integer_datetimes
811 enable_nls
812 with_pgport
813 enable_shared
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_readline
840 with_libedit_preferred
841 with_ossp_uuid
842 with_libxml
843 with_libxslt
844 with_system_tzdata
845 with_zlib
846 with_gnu_ld
847 enable_largefile
848 enable_float4_byval
849 enable_float8_byval
850 '
851       ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 LDFLAGS_EX
861 LDFLAGS_SL
862 DOCBOOKSTYLE'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917   # If the previous option needs an argument, assign it.
918   if test -n "$ac_prev"; then
919     eval $ac_prev=\$ac_option
920     ac_prev=
921     continue
922   fi
923
924   case $ac_option in
925   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926   *)    ac_optarg=yes ;;
927   esac
928
929   # Accept the important Cygnus configure options, so we can diagnose typos.
930
931   case $ac_dashdash$ac_option in
932   --)
933     ac_dashdash=yes ;;
934
935   -bindir | --bindir | --bindi | --bind | --bin | --bi)
936     ac_prev=bindir ;;
937   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938     bindir=$ac_optarg ;;
939
940   -build | --build | --buil | --bui | --bu)
941     ac_prev=build_alias ;;
942   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943     build_alias=$ac_optarg ;;
944
945   -cache-file | --cache-file | --cache-fil | --cache-fi \
946   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947     ac_prev=cache_file ;;
948   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950     cache_file=$ac_optarg ;;
951
952   --config-cache | -C)
953     cache_file=config.cache ;;
954
955   -datadir | --datadir | --datadi | --datad)
956     ac_prev=datadir ;;
957   -datadir=* | --datadir=* | --datadi=* | --datad=*)
958     datadir=$ac_optarg ;;
959
960   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961   | --dataroo | --dataro | --datar)
962     ac_prev=datarootdir ;;
963   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965     datarootdir=$ac_optarg ;;
966
967   -disable-* | --disable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972    { (exit 1); exit 1; }; }
973     ac_useropt_orig=$ac_useropt
974     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975     case $ac_user_opts in
976       *"
977 "enable_$ac_useropt"
978 "*) ;;
979       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980          ac_unrecognized_sep=', ';;
981     esac
982     eval enable_$ac_useropt=no ;;
983
984   -docdir | --docdir | --docdi | --doc | --do)
985     ac_prev=docdir ;;
986   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987     docdir=$ac_optarg ;;
988
989   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990     ac_prev=dvidir ;;
991   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992     dvidir=$ac_optarg ;;
993
994   -enable-* | --enable-*)
995     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999    { (exit 1); exit 1; }; }
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval with_$ac_useropt=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283   case $enable_option_checking in
1284     no) ;;
1285     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286    { (exit 1); exit 1; }; } ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310    { (exit 1); exit 1; }; }
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322   if test "x$build_alias" = x; then
1323     cross_compiling=maybe
1324     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325     If a cross compiler is detected then cross compile mode will be used." >&2
1326   elif test "x$build_alias" != "x$host_alias"; then
1327     cross_compiling=yes
1328   fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341    { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344    { (exit 1); exit 1; }; }
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389    { (exit 1); exit 1; }; }
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR            user executables [EPREFIX/bin]
1450   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR        program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of PostgreSQL 9.1devel:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --disable-integer-datetimes
1489                           disable 64-bit integer date/time support
1490   --enable-nls[=LANGUAGES]
1491                           enable Native Language Support
1492   --disable-shared        do not build shared libraries
1493   --disable-rpath         do not embed shared library search path in
1494                           executables
1495   --disable-spinlocks     do not use spinlocks
1496   --enable-debug          build with debugging symbols (-g)
1497   --enable-profiling      build with profiling enabled
1498   --enable-coverage       build with coverage testing instrumentation
1499   --enable-dtrace         build with DTrace support
1500   --enable-depend         turn on automatic dependency tracking
1501   --enable-cassert        enable assertion checks (for debugging)
1502   --disable-thread-safety disable thread-safety in client libraries
1503   --disable-largefile     omit support for large files
1504   --disable-float4-byval  disable float4 passed by value
1505   --disable-float8-byval  disable float8 passed by value
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-template=NAME    override operating system template
1511   --with-includes=DIRS    look for additional header files in DIRS
1512   --with-libraries=DIRS   look for additional libraries in DIRS
1513   --with-libs=DIRS        alternative spelling of --with-libraries
1514   --with-pgport=PORTNUM   set default port number [5432]
1515   --with-blocksize=BLOCKSIZE
1516                           set table block size in kB [8]
1517   --with-segsize=SEGSIZE  set table segment size in GB [1]
1518   --with-wal-blocksize=BLOCKSIZE
1519                           set WAL block size in kB [8]
1520   --with-wal-segsize=SEGSIZE
1521                           set WAL segment size in MB [16]
1522   --with-CC=CMD           set compiler (deprecated)
1523   --with-tcl              build Tcl modules (PL/Tcl)
1524   --with-tclconfig=DIR    tclConfig.sh is in DIR
1525   --with-perl             build Perl modules (PL/Perl)
1526   --with-python           build Python modules (PL/Python)
1527   --with-gssapi           build with GSSAPI support
1528   --with-krb5             build with Kerberos 5 support
1529   --with-krb-srvnam=NAME  default service principal name in Kerberos
1530                           [postgres]
1531   --with-pam              build with PAM support
1532   --with-ldap             build with LDAP support
1533   --with-bonjour          build with Bonjour support
1534   --with-openssl          build with OpenSSL support
1535   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1536   --with-libedit-preferred
1537                           prefer BSD Libedit over GNU Readline
1538   --with-ossp-uuid        use OSSP UUID library when building
1539                           contrib/uuid-ossp
1540   --with-libxml           build with XML support
1541   --with-libxslt          use XSLT support when building contrib/xml2
1542   --with-system-tzdata=DIR
1543                           use system time zone data in DIR
1544   --without-zlib          do not use Zlib
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   LDFLAGS_EX  extra linker flags for linking executables only
1557   LDFLAGS_SL  extra linker flags for linking shared libraries only
1558   DOCBOOKSTYLE
1559               location of DocBook stylesheets
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 PostgreSQL configure 9.1devel
1628 generated by GNU Autoconf 2.63
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1636 _ACEOF
1637   exit
1638 fi
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1642
1643 It was created by PostgreSQL $as_me 9.1devel, which was
1644 generated by GNU Autoconf 2.63.  Invocation command line was
1645
1646   $ $0 $@
1647
1648 _ACEOF
1649 exec 5>>config.log
1650 {
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1655
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1664
1665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1672
1673 _ASUNAME
1674
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   $as_echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707   for ac_arg
1708   do
1709     case $ac_arg in
1710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712     | -silent | --silent | --silen | --sile | --sil)
1713       continue ;;
1714     *\'*)
1715       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716     esac
1717     case $ac_pass in
1718     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719     2)
1720       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721       if test $ac_must_keep_next = true; then
1722         ac_must_keep_next=false # Got value, back to normal.
1723       else
1724         case $ac_arg in
1725           *=* | --config-cache | -C | -disable-* | --disable-* \
1726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728           | -with-* | --with-* | -without-* | --without-* | --x)
1729             case "$ac_configure_args0 " in
1730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731             esac
1732             ;;
1733           -* ) ac_must_keep_next=true ;;
1734         esac
1735       fi
1736       ac_configure_args="$ac_configure_args '$ac_arg'"
1737       ;;
1738     esac
1739   done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log.  We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750   # Save into config.log some information that might help in debugging.
1751   {
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759     echo
1760     # The following way of writing the cache mishandles newlines in values,
1761 (
1762   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763     eval ac_val=\$$ac_var
1764     case $ac_val in #(
1765     *${as_nl}*)
1766       case $ac_var in #(
1767       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769       esac
1770       case $ac_var in #(
1771       _ | IFS | as_nl) ;; #(
1772       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773       *) $as_unset $ac_var ;;
1774       esac ;;
1775     esac
1776   done
1777   (set) 2>&1 |
1778     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779     *${as_nl}ac_space=\ *)
1780       sed -n \
1781         "s/'\''/'\''\\\\'\'''\''/g;
1782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783       ;; #(
1784     *)
1785       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786       ;;
1787     esac |
1788     sort
1789 )
1790     echo
1791
1792     cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797     echo
1798     for ac_var in $ac_subst_vars
1799     do
1800       eval ac_val=\$$ac_var
1801       case $ac_val in
1802       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803       esac
1804       $as_echo "$ac_var='\''$ac_val'\''"
1805     done | sort
1806     echo
1807
1808     if test -n "$ac_subst_files"; then
1809       cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814       echo
1815       for ac_var in $ac_subst_files
1816       do
1817         eval ac_val=\$$ac_var
1818         case $ac_val in
1819         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820         esac
1821         $as_echo "$ac_var='\''$ac_val'\''"
1822       done | sort
1823       echo
1824     fi
1825
1826     if test -s confdefs.h; then
1827       cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832       echo
1833       cat confdefs.h
1834       echo
1835     fi
1836     test "$ac_signal" != 0 &&
1837       $as_echo "$as_me: caught signal $ac_signal"
1838     $as_echo "$as_me: exit $exit_status"
1839   } >&5
1840   rm -f core *.core core.conftest.* &&
1841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842     exit $exit_status
1843 ' 0
1844 for ac_signal in 1 2 13 15; do
1845   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1848
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1851
1852 # Predefined preprocessor variables.
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1877
1878
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file1=NONE
1882 ac_site_file2=NONE
1883 if test -n "$CONFIG_SITE"; then
1884   ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886   ac_site_file1=$prefix/share/config.site
1887   ac_site_file2=$prefix/etc/config.site
1888 else
1889   ac_site_file1=$ac_default_prefix/share/config.site
1890   ac_site_file2=$ac_default_prefix/etc/config.site
1891 fi
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 do
1894   test "x$ac_site_file" = xNONE && continue
1895   if test -r "$ac_site_file"; then
1896     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898     sed 's/^/| /' "$ac_site_file" >&5
1899     . "$ac_site_file"
1900   fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904   # Some versions of bash will fail to source /dev/null (special
1905   # files actually), so we avoid doing that.
1906   if test -f "$cache_file"; then
1907     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909     case $cache_file in
1910       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911       *)                      . "./$cache_file";;
1912     esac
1913   fi
1914 else
1915   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917   >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925   eval ac_new_set=\$ac_env_${ac_var}_set
1926   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927   eval ac_new_val=\$ac_env_${ac_var}_value
1928   case $ac_old_set,$ac_new_set in
1929     set,)
1930       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,set)
1934       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,);;
1938     *)
1939       if test "x$ac_old_val" != "x$ac_new_val"; then
1940         # differences in whitespace do not lead to failure.
1941         ac_old_val_w=`echo x $ac_old_val`
1942         ac_new_val_w=`echo x $ac_new_val`
1943         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946           ac_cache_corrupted=:
1947         else
1948           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950           eval $ac_var=\$ac_old_val
1951         fi
1952         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1953 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1954         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011
2012
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in config "$srcdir"/config; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 configure_args=$ac_configure_args
2048
2049
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 _ACEOF
2061
2062
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067    { (exit 1); exit 1; }; }
2068
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072   $as_echo_n "(cached) " >&6
2073 else
2074   ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080    { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093    { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107
2108
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112   $as_echo_n "(cached) " >&6
2113 else
2114   if test "x$host_alias" = x; then
2115   ac_cv_host=$ac_cv_build
2116 else
2117   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 fi
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130    { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144
2145
2146
2147 template=
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2150
2151
2152
2153
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156   withval=$with_template;
2157   case $withval in
2158     yes)
2159       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161    { (exit 1); exit 1; }; }
2162       ;;
2163     no)
2164       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166    { (exit 1); exit 1; }; }
2167       ;;
2168     *)
2169
2170   case $withval in
2171     list)   echo; ls "$srcdir/src/template"; exit;;
2172     *)      if test -f "$srcdir/src/template/$with_template" ; then
2173               template=$withval
2174             else
2175               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177    { (exit 1); exit 1; }; }
2178             fi;;
2179   esac
2180
2181       ;;
2182   esac
2183
2184 else
2185
2186 # --with-template not given
2187
2188 case $host_os in
2189      aix*) template=aix ;;
2190     bsdi*) template=bsdi ;;
2191   cygwin*) template=cygwin ;;
2192   darwin*) template=darwin ;;
2193     dgux*) template=dgux ;;
2194  freebsd*) template=freebsd ;;
2195     hpux*) template=hpux ;;
2196     irix*) template=irix ;;
2197  linux*|gnu*|k*bsd*-gnu)
2198            template=linux ;;
2199    mingw*) template=win32 ;;
2200   netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202  openbsd*) template=openbsd ;;
2203      osf*) template=osf ;;
2204      sco*) template=sco ;;
2205  solaris*) template=solaris ;;
2206    sunos*) template=sunos4 ;;
2207  sysv4.2*)
2208         case $host_vendor in
2209           univel) template=univel ;;
2210         esac ;;
2211    sysv4*) template=svr4 ;;
2212    sysv5*) template=unixware ;;
2213   ultrix*) template=ultrix4 ;;
2214 esac
2215
2216   if test x"$template" = x"" ; then
2217     { { $as_echo "$as_me:$LINENO: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2222
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this.  Include the above 'checking host system type...'
2225 line.
2226 *******************************************************************
2227 " >&5
2228 $as_echo "$as_me: error:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration, look into the src/template directory
2232 for a similar platform and use the '--with-template=' option.
2233
2234 Please also contact <pgsql-bugs@postgresql.org> to see about
2235 rectifying this.  Include the above 'checking host system type...'
2236 line.
2237 *******************************************************************
2238 " >&2;}
2239    { (exit 1); exit 1; }; }
2240   fi
2241
2242
2243 fi
2244
2245
2246
2247 { $as_echo "$as_me:$LINENO: result: $template" >&5
2248 $as_echo "$template" >&6; }
2249
2250 PORTNAME=$template
2251
2252
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set).  This can be overridden by the template file
2255 # when it's executed.
2256 need_tas=no
2257 tas_file=dummy.s
2258
2259
2260
2261 ##
2262 ## Command line options
2263 ##
2264
2265 #
2266 # Add non-standard directories to the include path
2267 #
2268
2269
2270
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273   withval=$with_includes;
2274   case $withval in
2275     yes)
2276       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2277 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2278    { (exit 1); exit 1; }; }
2279       ;;
2280     no)
2281       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283    { (exit 1); exit 1; }; }
2284       ;;
2285     *)
2286
2287       ;;
2288   esac
2289
2290 fi
2291
2292
2293
2294
2295 #
2296 # Add non-standard directories to the library search path
2297 #
2298
2299
2300
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303   withval=$with_libraries;
2304   case $withval in
2305     yes)
2306       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2307 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2308    { (exit 1); exit 1; }; }
2309       ;;
2310     no)
2311       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313    { (exit 1); exit 1; }; }
2314       ;;
2315     *)
2316       LIBRARY_DIRS=$withval
2317       ;;
2318   esac
2319
2320 fi
2321
2322
2323
2324
2325
2326
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2329   withval=$with_libs;
2330   case $withval in
2331     yes)
2332       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2333 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2334    { (exit 1); exit 1; }; }
2335       ;;
2336     no)
2337       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339    { (exit 1); exit 1; }; }
2340       ;;
2341     *)
2342       LIBRARY_DIRS=$withval
2343       ;;
2344   esac
2345
2346 fi
2347
2348
2349
2350
2351 #
2352 # 64-bit integer date/time storage: enabled by default.
2353 #
2354 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2355 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2356
2357
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360   enableval=$enable_integer_datetimes;
2361   case $enableval in
2362     yes)
2363
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2366 _ACEOF
2367
2368       ;;
2369     no)
2370       :
2371       ;;
2372     *)
2373       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2374 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2375    { (exit 1); exit 1; }; }
2376       ;;
2377   esac
2378
2379 else
2380   enable_integer_datetimes=yes
2381
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2384 _ACEOF
2385
2386 fi
2387
2388
2389 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2391
2392
2393 #
2394 # NLS
2395 #
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2397 $as_echo_n "checking whether NLS is wanted... " >&6; }
2398
2399
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402   enableval=$enable_nls;
2403   case $enableval in
2404     yes)
2405       :
2406       ;;
2407     no)
2408       :
2409       ;;
2410     *)
2411       enable_nls=yes
2412 WANTED_LANGUAGES=$enableval
2413       ;;
2414   esac
2415
2416 else
2417   enable_nls=no
2418 fi
2419
2420
2421
2422 if test "$enable_nls" = yes; then
2423
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2426 _ACEOF
2427
2428 fi
2429
2430 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2432
2433
2434
2435 #
2436 # Default port number (--with-pgport), default 5432
2437 #
2438 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2439 $as_echo_n "checking for default port number... " >&6; }
2440
2441
2442
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445   withval=$with_pgport;
2446   case $withval in
2447     yes)
2448       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2449 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2450    { (exit 1); exit 1; }; }
2451       ;;
2452     no)
2453       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455    { (exit 1); exit 1; }; }
2456       ;;
2457     *)
2458       default_port=$withval
2459       ;;
2460   esac
2461
2462 else
2463   default_port=5432
2464 fi
2465
2466
2467 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2473 _ACEOF
2474
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2478 _ACEOF
2479
2480
2481
2482 #
2483 # Option to disable shared libraries
2484 #
2485
2486
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489   enableval=$enable_shared;
2490   case $enableval in
2491     yes)
2492       :
2493       ;;
2494     no)
2495       :
2496       ;;
2497     *)
2498       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2499 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2500    { (exit 1); exit 1; }; }
2501       ;;
2502   esac
2503
2504 else
2505   enable_shared=yes
2506
2507 fi
2508
2509
2510
2511
2512 #
2513 # '-rpath'-like feature can be disabled
2514 #
2515
2516
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519   enableval=$enable_rpath;
2520   case $enableval in
2521     yes)
2522       :
2523       ;;
2524     no)
2525       :
2526       ;;
2527     *)
2528       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2529 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2530    { (exit 1); exit 1; }; }
2531       ;;
2532   esac
2533
2534 else
2535   enable_rpath=yes
2536
2537 fi
2538
2539
2540
2541
2542 #
2543 # Spinlocks
2544 #
2545
2546
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549   enableval=$enable_spinlocks;
2550   case $enableval in
2551     yes)
2552       :
2553       ;;
2554     no)
2555       :
2556       ;;
2557     *)
2558       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2559 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2560    { (exit 1); exit 1; }; }
2561       ;;
2562   esac
2563
2564 else
2565   enable_spinlocks=yes
2566
2567 fi
2568
2569
2570
2571 #
2572 # --enable-debug adds -g to compiler flags
2573 #
2574
2575
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578   enableval=$enable_debug;
2579   case $enableval in
2580     yes)
2581       :
2582       ;;
2583     no)
2584       :
2585       ;;
2586     *)
2587       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2588 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2589    { (exit 1); exit 1; }; }
2590       ;;
2591   esac
2592
2593 else
2594   enable_debug=no
2595
2596 fi
2597
2598
2599
2600
2601 #
2602 # --enable-profiling enables gcc profiling
2603 #
2604
2605
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608   enableval=$enable_profiling;
2609   case $enableval in
2610     yes)
2611       :
2612       ;;
2613     no)
2614       :
2615       ;;
2616     *)
2617       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2618 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2619    { (exit 1); exit 1; }; }
2620       ;;
2621   esac
2622
2623 else
2624   enable_profiling=no
2625
2626 fi
2627
2628
2629
2630
2631 #
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2633 #
2634
2635
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638   enableval=$enable_coverage;
2639   case $enableval in
2640     yes)
2641       for ac_prog in gcov
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$GCOV"; then
2651   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_GCOV="$ac_prog"
2661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2674 else
2675   { $as_echo "$as_me:$LINENO: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   test -n "$GCOV" && break
2681 done
2682
2683 if test -z "$GCOV"; then
2684   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2685 $as_echo "$as_me: error: gcov not found" >&2;}
2686    { (exit 1); exit 1; }; }
2687 fi
2688 for ac_prog in lcov
2689 do
2690   # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$LCOV"; then
2698   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705   for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_LCOV="$ac_prog"
2708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2721 else
2722   { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727   test -n "$LCOV" && break
2728 done
2729
2730 if test -z "$LCOV"; then
2731   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2732 $as_echo "$as_me: error: lcov not found" >&2;}
2733    { (exit 1); exit 1; }; }
2734 fi
2735 for ac_prog in genhtml
2736 do
2737   # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742   $as_echo_n "(cached) " >&6
2743 else
2744   if test -n "$GENHTML"; then
2745   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754     ac_cv_prog_GENHTML="$ac_prog"
2755     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2768 else
2769   { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774   test -n "$GENHTML" && break
2775 done
2776
2777 if test -z "$GENHTML"; then
2778   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2779 $as_echo "$as_me: error: genhtml not found" >&2;}
2780    { (exit 1); exit 1; }; }
2781 fi
2782       ;;
2783     no)
2784       :
2785       ;;
2786     *)
2787       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2788 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2789    { (exit 1); exit 1; }; }
2790       ;;
2791   esac
2792
2793 else
2794   enable_coverage=no
2795
2796 fi
2797
2798
2799
2800
2801 #
2802 # DTrace
2803 #
2804
2805
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808   enableval=$enable_dtrace;
2809   case $enableval in
2810     yes)
2811
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2814 _ACEOF
2815
2816 for ac_prog in dtrace
2817 do
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$DTRACE"; then
2826   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_DTRACE="$ac_prog"
2836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2849 else
2850   { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855   test -n "$DTRACE" && break
2856 done
2857
2858 if test -z "$DTRACE"; then
2859   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2860 $as_echo "$as_me: error: dtrace not found" >&2;}
2861    { (exit 1); exit 1; }; }
2862 fi
2863
2864       ;;
2865     no)
2866       :
2867       ;;
2868     *)
2869       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2870 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2871    { (exit 1); exit 1; }; }
2872       ;;
2873   esac
2874
2875 else
2876   enable_dtrace=no
2877
2878 fi
2879
2880
2881
2882
2883 #
2884 # Block size
2885 #
2886 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2887 $as_echo_n "checking for block size... " >&6; }
2888
2889
2890
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893   withval=$with_blocksize;
2894   case $withval in
2895     yes)
2896       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2897 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2898    { (exit 1); exit 1; }; }
2899       ;;
2900     no)
2901       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903    { (exit 1); exit 1; }; }
2904       ;;
2905     *)
2906       blocksize=$withval
2907       ;;
2908   esac
2909
2910 else
2911   blocksize=8
2912 fi
2913
2914
2915 case ${blocksize} in
2916   1) BLCKSZ=1024;;
2917   2) BLCKSZ=2048;;
2918   4) BLCKSZ=4096;;
2919   8) BLCKSZ=8192;;
2920  16) BLCKSZ=16384;;
2921  32) BLCKSZ=32768;;
2922   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2923 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2924    { (exit 1); exit 1; }; }
2925 esac
2926 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2927 $as_echo "${blocksize}kB" >&6; }
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2932 _ACEOF
2933
2934
2935 #
2936 # Relation segment size
2937 #
2938 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2939 $as_echo_n "checking for segment size... " >&6; }
2940
2941
2942
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945   withval=$with_segsize;
2946   case $withval in
2947     yes)
2948       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2950    { (exit 1); exit 1; }; }
2951       ;;
2952     no)
2953       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955    { (exit 1); exit 1; }; }
2956       ;;
2957     *)
2958       segsize=$withval
2959       ;;
2960   esac
2961
2962 else
2963   segsize=1
2964 fi
2965
2966
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2972 $as_echo "${segsize}GB" >&6; }
2973
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2977 _ACEOF
2978
2979
2980 #
2981 # WAL block size
2982 #
2983 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2984 $as_echo_n "checking for WAL block size... " >&6; }
2985
2986
2987
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990   withval=$with_wal_blocksize;
2991   case $withval in
2992     yes)
2993       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2994 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2995    { (exit 1); exit 1; }; }
2996       ;;
2997     no)
2998       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000    { (exit 1); exit 1; }; }
3001       ;;
3002     *)
3003       wal_blocksize=$withval
3004       ;;
3005   esac
3006
3007 else
3008   wal_blocksize=8
3009 fi
3010
3011
3012 case ${wal_blocksize} in
3013   1) XLOG_BLCKSZ=1024;;
3014   2) XLOG_BLCKSZ=2048;;
3015   4) XLOG_BLCKSZ=4096;;
3016   8) XLOG_BLCKSZ=8192;;
3017  16) XLOG_BLCKSZ=16384;;
3018  32) XLOG_BLCKSZ=32768;;
3019  64) XLOG_BLCKSZ=65536;;
3020   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3021 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3022    { (exit 1); exit 1; }; }
3023 esac
3024 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3025 $as_echo "${wal_blocksize}kB" >&6; }
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3030 _ACEOF
3031
3032
3033 #
3034 # WAL segment size
3035 #
3036 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3037 $as_echo_n "checking for WAL segment size... " >&6; }
3038
3039
3040
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043   withval=$with_wal_segsize;
3044   case $withval in
3045     yes)
3046       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3047 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3048    { (exit 1); exit 1; }; }
3049       ;;
3050     no)
3051       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053    { (exit 1); exit 1; }; }
3054       ;;
3055     *)
3056       wal_segsize=$withval
3057       ;;
3058   esac
3059
3060 else
3061   wal_segsize=16
3062 fi
3063
3064
3065 case ${wal_segsize} in
3066   1) ;;
3067   2) ;;
3068   4) ;;
3069   8) ;;
3070  16) ;;
3071  32) ;;
3072  64) ;;
3073   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3074 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3075    { (exit 1); exit 1; }; }
3076 esac
3077 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3078 $as_echo "${wal_segsize}MB" >&6; }
3079
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3083 _ACEOF
3084
3085
3086 #
3087 # C compiler
3088 #
3089
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3092 # variable.
3093
3094
3095
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3098   withval=$with_CC;
3099   case $withval in
3100     yes)
3101       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3102 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3103    { (exit 1); exit 1; }; }
3104       ;;
3105     no)
3106       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108    { (exit 1); exit 1; }; }
3109       ;;
3110     *)
3111       CC=$with_CC
3112       ;;
3113   esac
3114
3115 fi
3116
3117
3118
3119 case $template in
3120   aix) pgac_cc_list="gcc xlc";;
3121  irix) pgac_cc_list="cc";; # no gcc
3122     *) pgac_cc_list="gcc cc";;
3123 esac
3124
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131   for ac_prog in $pgac_cc_list
3132   do
3133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165   { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170     test -n "$CC" && break
3171   done
3172 fi
3173 if test -z "$CC"; then
3174   ac_ct_CC=$CC
3175   for ac_prog in $pgac_cc_list
3176 do
3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$ac_ct_CC"; then
3185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_ac_ct_CC="$ac_prog"
3195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209   { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214   test -n "$ac_ct_CC" && break
3215 done
3216
3217   if test "x$ac_ct_CC" = x; then
3218     CC=""
3219   else
3220     case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226     CC=$ac_ct_CC
3227   fi
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237    { (exit 1); exit 1; }; }; }
3238
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 set X $ac_compile
3242 ac_compiler=$2
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250   (eval "$ac_compiler --version >&5") 2>&5
3251   ac_status=$?
3252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compiler -v >&5") 2>&5
3262   ac_status=$?
3263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272   (eval "$ac_compiler -V >&5") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3306 do
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310   esac
3311 done
3312 rm -f $ac_rmfiles
3313
3314 if { (ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321   (eval "$ac_link_default") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; then
3325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335         ;;
3336     [ab].out )
3337         # We found the default executable, but exeext='' is most
3338         # certainly right.
3339         break;;
3340     *.* )
3341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342         then :; else
3343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344         fi
3345         # We set ac_cv_exeext here because the later test for it is not
3346         # safe: cross compilers may not add the suffix if given an `-o'
3347         # argument, so we may need to know it at that point already.
3348         # Even if this section looks crufty: it has the advantage of
3349         # actually working.
3350         break;;
3351     * )
3352         break;;
3353   esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358   ac_file=''
3359 fi
3360
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364   $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373    { (exit 77); exit 77; }; }; }
3374 fi
3375
3376 ac_exeext=$ac_cv_exeext
3377
3378 # Check that the compiler produces executables we can run.  If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385   if { ac_try='./$ac_file'
3386   { (case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409    { (exit 1); exit 1; }; }; }
3410     fi
3411   fi
3412 fi
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run.  If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3424
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458    { (exit 1); exit 1; }; }; }
3459 fi
3460
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3464
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3467 ac_exeext=$EXEEXT
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471   $as_echo_n "(cached) " >&6
3472 else
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496   (eval "$ac_compile") 2>&5
3497   ac_status=$?
3498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; then
3500   for ac_file in conftest.o conftest.obj conftest.*; do
3501   test -f "$ac_file" || continue;
3502   case $ac_file in
3503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505        break;;
3506   esac
3507 done
3508 else
3509   $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518    { (exit 1); exit 1; }; }; }
3519 fi
3520
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 fi
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530   $as_echo_n "(cached) " >&6
3531 else
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543        choke me
3544 #endif
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558   (eval "$ac_compile") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } && {
3565          test -z "$ac_c_werror_flag" ||
3566          test ! -s conftest.err
3567        } && test -s conftest.$ac_objext; then
3568   ac_compiler_gnu=yes
3569 else
3570   $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573         ac_compiler_gnu=no
3574 fi
3575
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578
3579 fi
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583   GCC=yes
3584 else
3585   GCC=
3586 fi
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_save_c_werror_flag=$ac_c_werror_flag
3595    ac_c_werror_flag=yes
3596    ac_cv_prog_cc_g=no
3597    CFLAGS="-g"
3598    cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   ac_cv_prog_cc_g=yes
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636         CFLAGS=""
3637       cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660   (eval "$ac_compile") 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } && {
3667          test -z "$ac_c_werror_flag" ||
3668          test ! -s conftest.err
3669        } && test -s conftest.$ac_objext; then
3670   :
3671 else
3672   $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675         ac_c_werror_flag=$ac_save_c_werror_flag
3676          CFLAGS="-g"
3677          cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700   (eval "$ac_compile") 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } && {
3707          test -z "$ac_c_werror_flag" ||
3708          test ! -s conftest.err
3709        } && test -s conftest.$ac_objext; then
3710   ac_cv_prog_cc_g=yes
3711 else
3712   $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725    ac_c_werror_flag=$ac_save_c_werror_flag
3726 fi
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730   CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732   if test "$GCC" = yes; then
3733     CFLAGS="-g -O2"
3734   else
3735     CFLAGS="-g"
3736   fi
3737 else
3738   if test "$GCC" = yes; then
3739     CFLAGS="-O2"
3740   else
3741     CFLAGS=
3742   fi
3743 fi
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747   $as_echo_n "(cached) " >&6
3748 else
3749   ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765      char **p;
3766      int i;
3767 {
3768   return p[i];
3769 }
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3771 {
3772   char *s;
3773   va_list v;
3774   va_start (v,p);
3775   s = g (p, va_arg (v,int));
3776   va_end (v);
3777   return s;
3778 }
3779
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3781    function prototypes and stuff, but not '\xHH' hex character constants.
3782    These don't provoke an error unfortunately, instead are silently treated
3783    as 'x'.  The following induces an error, until -std is added to get
3784    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3785    array size at least.  It's necessary to write '\x00'==0 to get something
3786    that's true only with -std.  */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790    inside strings and character constants.  */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 do
3811   CC="$ac_save_CC $ac_arg"
3812   rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820   (eval "$ac_compile") 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } && {
3827          test -z "$ac_c_werror_flag" ||
3828          test ! -s conftest.err
3829        } && test -s conftest.$ac_objext; then
3830   ac_cv_prog_cc_c89=$ac_arg
3831 else
3832   $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835
3836 fi
3837
3838 rm -f core conftest.err conftest.$ac_objext
3839   test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3843
3844 fi
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3847   x)
3848     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850   xno)
3851     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3853   *)
3854     CC="$CC $ac_cv_prog_cc_c89"
3855     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3858
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own.  We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3870
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __INTEL_COMPILER
3882 choke me
3883 #endif
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   ICC=yes
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         ICC=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924
3925 int
3926 main ()
3927 {
3928 #ifndef __SUNPRO_C
3929 choke me
3930 #endif
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3937 case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943   (eval "$ac_compile") 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } && {
3950          test -z "$ac_c_werror_flag" ||
3951          test ! -s conftest.err
3952        } && test -s conftest.$ac_objext; then
3953   SUN_STUDIO_CC=yes
3954 else
3955   $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958         SUN_STUDIO_CC=no
3959 fi
3960
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962
3963
3964
3965 unset CFLAGS
3966
3967 #
3968 # Read the template
3969 #
3970 . "$srcdir/src/template/$template" || exit
3971
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else:  If the template file set something, that is used.
3975 # else:  If coverage was enabled, don't set anything.
3976 # else:  If the compiler is GCC, then we use -O2.
3977 # else:  If the compiler is something else, then we use -O, unless debugging.
3978
3979 if test "$ac_env_CFLAGS_set" = set; then
3980   CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982   : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984   : # no optimization by default
3985 elif test "$GCC" = yes; then
3986   CFLAGS="-O2"
3987 else
3988   # if the user selected debug mode, don't use -O
3989   if test "$enable_debug" != yes; then
3990     CFLAGS="-O"
3991   fi
3992 fi
3993
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own.  Also check other compiler-specific flags here.
3998
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001   # These work in some but not all gcc versions
4002   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4004 pgac_save_CFLAGS=$CFLAGS
4005 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029   (eval "$ac_compile") 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } && {
4036          test -z "$ac_c_werror_flag" ||
4037          test ! -s conftest.err
4038        } && test -s conftest.$ac_objext; then
4039   { $as_echo "$as_me:$LINENO: result: yes" >&5
4040 $as_echo "yes" >&6; }
4041 else
4042   $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045         CFLAGS="$pgac_save_CFLAGS"
4046                     { $as_echo "$as_me:$LINENO: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051
4052   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4053 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4054 pgac_save_CFLAGS=$CFLAGS
4055 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } && {
4086          test -z "$ac_c_werror_flag" ||
4087          test ! -s conftest.err
4088        } && test -s conftest.$ac_objext; then
4089   { $as_echo "$as_me:$LINENO: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092   $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095         CFLAGS="$pgac_save_CFLAGS"
4096                     { $as_echo "$as_me:$LINENO: result: no" >&5
4097 $as_echo "no" >&6; }
4098 fi
4099
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102   # Disable strict-aliasing rules; needed for gcc 3.3+
4103   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4104 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4105 pgac_save_CFLAGS=$CFLAGS
4106 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4124 case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4129 $as_echo "$ac_try_echo") >&5
4130   (eval "$ac_compile") 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } && {
4137          test -z "$ac_c_werror_flag" ||
4138          test ! -s conftest.err
4139        } && test -s conftest.$ac_objext; then
4140   { $as_echo "$as_me:$LINENO: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 else
4143   $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146         CFLAGS="$pgac_save_CFLAGS"
4147                     { $as_echo "$as_me:$LINENO: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152
4153   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4154   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4155 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4156 pgac_save_CFLAGS=$CFLAGS
4157 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164
4165 int
4166 main ()
4167 {
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181   (eval "$ac_compile") 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } && {
4188          test -z "$ac_c_werror_flag" ||
4189          test ! -s conftest.err
4190        } && test -s conftest.$ac_objext; then
4191   { $as_echo "$as_me:$LINENO: result: yes" >&5
4192 $as_echo "yes" >&6; }
4193 else
4194   $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197         CFLAGS="$pgac_save_CFLAGS"
4198                     { $as_echo "$as_me:$LINENO: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203
4204 elif test "$ICC" = yes; then
4205   # Intel's compiler has a bug/misoptimization in checking for
4206   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4207   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4208 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4209 pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -mp1"
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217
4218 int
4219 main ()
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234   (eval "$ac_compile") 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } && {
4241          test -z "$ac_c_werror_flag" ||
4242          test ! -s conftest.err
4243        } && test -s conftest.$ac_objext; then
4244   { $as_echo "$as_me:$LINENO: result: yes" >&5
4245 $as_echo "yes" >&6; }
4246 else
4247   $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250         CFLAGS="$pgac_save_CFLAGS"
4251                     { $as_echo "$as_me:$LINENO: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256
4257   # Make sure strict aliasing is off (though this is said to be the default)
4258   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4259 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4260 pgac_save_CFLAGS=$CFLAGS
4261 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h.  */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285   (eval "$ac_compile") 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } && {
4292          test -z "$ac_c_werror_flag" ||
4293          test ! -s conftest.err
4294        } && test -s conftest.$ac_objext; then
4295   { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4297 else
4298   $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301         CFLAGS="$pgac_save_CFLAGS"
4302                     { $as_echo "$as_me:$LINENO: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307
4308 elif test "$PORTNAME" = "aix"; then
4309   # AIX's xlc has to have strict aliasing turned off too
4310   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4311 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4312 pgac_save_CFLAGS=$CFLAGS
4313 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320
4321 int
4322 main ()
4323 {
4324
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337   (eval "$ac_compile") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && {
4344          test -z "$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        } && test -s conftest.$ac_objext; then
4347   { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350   $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353         CFLAGS="$pgac_save_CFLAGS"
4354                     { $as_echo "$as_me:$LINENO: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359
4360 fi
4361
4362 # supply -g if --enable-debug
4363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4364   CFLAGS="$CFLAGS -g"
4365 fi
4366
4367 # enable code coverage if --enable-coverage
4368 if test "$enable_coverage" = yes; then
4369   if test "$GCC" = yes; then
4370     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4371   else
4372     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4373 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4374    { (exit 1); exit 1; }; }
4375   fi
4376 fi
4377
4378 # enable profiling if --enable-profiling
4379 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4380   if test "$GCC" = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define PROFILE_PID_DIR 1
4384 _ACEOF
4385
4386     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4387   else
4388     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4389 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4390    { (exit 1); exit 1; }; }
4391   fi
4392 fi
4393
4394 # We already have this in Makefile.win32, but configure needs it too
4395 if test "$PORTNAME" = "win32"; then
4396   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4397 fi
4398
4399 # Check if the compiler still works with the template settings
4400 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4401 $as_echo_n "checking whether the C compiler still works... " >&6; }
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408
4409 int
4410 main ()
4411 {
4412 return 0;
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425   (eval "$ac_link") 2>conftest.er1
4426   ac_status=$?
4427   grep -v '^ *+' conftest.er1 >conftest.err
4428   rm -f conftest.er1
4429   cat conftest.err >&5
4430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); } && {
4432          test -z "$ac_c_werror_flag" ||
4433          test ! -s conftest.err
4434        } && test -s conftest$ac_exeext && {
4435          test "$cross_compiling" = yes ||
4436          $as_test_x conftest$ac_exeext
4437        }; then
4438   { $as_echo "$as_me:$LINENO: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 else
4441   $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444         { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4446    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4447 $as_echo "$as_me: error: cannot proceed" >&2;}
4448    { (exit 1); exit 1; }; }
4449 fi
4450
4451 rm -rf conftest.dSYM
4452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4453       conftest$ac_exeext conftest.$ac_ext
4454
4455 # Defend against gcc -ffast-math
4456 if test "$GCC" = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463
4464 int
4465 main ()
4466 {
4467 #ifdef __FAST_MATH__
4468 choke me
4469 #endif
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4481 $as_echo "$ac_try_echo") >&5
4482   (eval "$ac_compile") 2>conftest.er1
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
4486   cat conftest.err >&5
4487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); } && {
4489          test -z "$ac_c_werror_flag" ||
4490          test ! -s conftest.err
4491        } && test -s conftest.$ac_objext; then
4492   :
4493 else
4494   $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4498 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4499    { (exit 1); exit 1; }; }
4500 fi
4501
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 fi
4504
4505 ac_ext=c
4506 ac_cpp='$CPP $CPPFLAGS'
4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4512 # On Suns, sometimes $CPP names a directory.
4513 if test -n "$CPP" && test -d "$CPP"; then
4514   CPP=
4515 fi
4516 if test -z "$CPP"; then
4517   if test "${ac_cv_prog_CPP+set}" = set; then
4518   $as_echo_n "(cached) " >&6
4519 else
4520       # Double quotes because CPP needs to be expanded
4521     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4522     do
4523       ac_preproc_ok=false
4524 for ac_c_preproc_warn_flag in '' yes
4525 do
4526   # Use a header file that comes with gcc, so configuring glibc
4527   # with a fresh cross-compiler works.
4528   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529   # <limits.h> exists even on freestanding compilers.
4530   # On the NeXT, cc -E runs the code through the compiler's parser,
4531   # not just through cpp. "Syntax error" is here to catch this case.
4532   cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 #ifdef __STDC__
4539 # include <limits.h>
4540 #else
4541 # include <assert.h>
4542 #endif
4543                      Syntax error
4544 _ACEOF
4545 if { (ac_try="$ac_cpp conftest.$ac_ext"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553   ac_status=$?
4554   grep -v '^ *+' conftest.er1 >conftest.err
4555   rm -f conftest.er1
4556   cat conftest.err >&5
4557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } >/dev/null && {
4559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560          test ! -s conftest.err
4561        }; then
4562   :
4563 else
4564   $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567   # Broken: fails on valid input.
4568 continue
4569 fi
4570
4571 rm -f conftest.err conftest.$ac_ext
4572
4573   # OK, works on sane cases.  Now check whether nonexistent headers
4574   # can be detected and how.
4575   cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 #include <ac_nonexistent.h>
4582 _ACEOF
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4584 case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591   ac_status=$?
4592   grep -v '^ *+' conftest.er1 >conftest.err
4593   rm -f conftest.er1
4594   cat conftest.err >&5
4595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } >/dev/null && {
4597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598          test ! -s conftest.err
4599        }; then
4600   # Broken: success on invalid input.
4601 continue
4602 else
4603   $as_echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606   # Passes both tests.
4607 ac_preproc_ok=:
4608 break
4609 fi
4610
4611 rm -f conftest.err conftest.$ac_ext
4612
4613 done
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.$ac_ext
4616 if $ac_preproc_ok; then
4617   break
4618 fi
4619
4620     done
4621     ac_cv_prog_CPP=$CPP
4622
4623 fi
4624   CPP=$ac_cv_prog_CPP
4625 else
4626   ac_cv_prog_CPP=$CPP
4627 fi
4628 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4629 $as_echo "$CPP" >&6; }
4630 ac_preproc_ok=false
4631 for ac_c_preproc_warn_flag in '' yes
4632 do
4633   # Use a header file that comes with gcc, so configuring glibc
4634   # with a fresh cross-compiler works.
4635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636   # <limits.h> exists even on freestanding compilers.
4637   # On the NeXT, cc -E runs the code through the compiler's parser,
4638   # not just through cpp. "Syntax error" is here to catch this case.
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650                      Syntax error
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } >/dev/null && {
4666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667          test ! -s conftest.err
4668        }; then
4669   :
4670 else
4671   $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674   # Broken: fails on valid input.
4675 continue
4676 fi
4677
4678 rm -f conftest.err conftest.$ac_ext
4679
4680   # OK, works on sane cases.  Now check whether nonexistent headers
4681   # can be detected and how.
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 #include <ac_nonexistent.h>
4689 _ACEOF
4690 if { (ac_try="$ac_cpp conftest.$ac_ext"
4691 case "(($ac_try" in
4692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693   *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } >/dev/null && {
4704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705          test ! -s conftest.err
4706        }; then
4707   # Broken: success on invalid input.
4708 continue
4709 else
4710   $as_echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713   # Passes both tests.
4714 ac_preproc_ok=:
4715 break
4716 fi
4717
4718 rm -f conftest.err conftest.$ac_ext
4719
4720 done
4721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722 rm -f conftest.err conftest.$ac_ext
4723 if $ac_preproc_ok; then
4724   :
4725 else
4726   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4728 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&5
4730 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&2;}
4732    { (exit 1); exit 1; }; }; }
4733 fi
4734
4735 ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740
4741
4742
4743
4744 #
4745 # Set up TAS assembly code if needed; the template file has now had its
4746 # chance to request this.
4747 #
4748 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4749
4750
4751 if test "$need_tas" = yes ; then
4752   TAS=tas.o
4753 else
4754   TAS=""
4755 fi
4756
4757
4758
4759 #
4760 # Automatic dependency tracking
4761 #
4762
4763
4764 # Check whether --enable-depend was given.
4765 if test "${enable_depend+set}" = set; then
4766   enableval=$enable_depend;
4767   case $enableval in
4768     yes)
4769       autodepend=yes
4770       ;;
4771     no)
4772       :
4773       ;;
4774     *)
4775       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4776 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4777    { (exit 1); exit 1; }; }
4778       ;;
4779   esac
4780
4781 else
4782   enable_depend=no
4783
4784 fi
4785
4786
4787
4788
4789
4790 #
4791 # Enable assert checks
4792 #
4793
4794
4795 # Check whether --enable-cassert was given.
4796 if test "${enable_cassert+set}" = set; then
4797   enableval=$enable_cassert;
4798   case $enableval in
4799     yes)
4800
4801 cat >>confdefs.h <<\_ACEOF
4802 #define USE_ASSERT_CHECKING 1
4803 _ACEOF
4804
4805       ;;
4806     no)
4807       :
4808       ;;
4809     *)
4810       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4811 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4812    { (exit 1); exit 1; }; }
4813       ;;
4814   esac
4815
4816 else
4817   enable_cassert=no
4818
4819 fi
4820
4821
4822
4823
4824 #
4825 # Include directories
4826 #
4827 ac_save_IFS=$IFS
4828 IFS="${IFS}${PATH_SEPARATOR}"
4829 # SRCH_INC comes from the template file
4830 for dir in $with_includes $SRCH_INC; do
4831   if test -d "$dir"; then
4832     INCLUDES="$INCLUDES -I$dir"
4833   else
4834     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4835 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4836   fi
4837 done
4838 IFS=$ac_save_IFS
4839
4840
4841
4842 #
4843 # Library directories
4844 #
4845 ac_save_IFS=$IFS
4846 IFS="${IFS}${PATH_SEPARATOR}"
4847 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4848 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4849   if test -d "$dir"; then
4850     LIBDIRS="$LIBDIRS -L$dir"
4851   else
4852     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4853 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4854   fi
4855 done
4856 IFS=$ac_save_IFS
4857
4858 #
4859 # Enable thread-safe client libraries
4860 #
4861 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4862 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4863
4864
4865 # Check whether --enable-thread-safety was given.
4866 if test "${enable_thread_safety+set}" = set; then
4867   enableval=$enable_thread_safety;
4868   case $enableval in
4869     yes)
4870       :
4871       ;;
4872     no)
4873       :
4874       ;;
4875     *)
4876       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4877 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4878    { (exit 1); exit 1; }; }
4879       ;;
4880   esac
4881
4882 else
4883   enable_thread_safety=yes
4884
4885 fi
4886
4887
4888 if test "$enable_thread_safety" = yes; then
4889
4890 cat >>confdefs.h <<\_ACEOF
4891 #define ENABLE_THREAD_SAFETY 1
4892 _ACEOF
4893
4894 fi
4895 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4896 $as_echo "$enable_thread_safety" >&6; }
4897
4898
4899 #
4900 # Optionally build Tcl modules (PL/Tcl)
4901 #
4902 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4903 $as_echo_n "checking whether to build with Tcl... " >&6; }
4904
4905
4906
4907 # Check whether --with-tcl was given.
4908 if test "${with_tcl+set}" = set; then
4909   withval=$with_tcl;
4910   case $withval in
4911     yes)
4912       :
4913       ;;
4914     no)
4915       :
4916       ;;
4917     *)
4918       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4919 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4920    { (exit 1); exit 1; }; }
4921       ;;
4922   esac
4923
4924 else
4925   with_tcl=no
4926
4927 fi
4928
4929
4930 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4931 $as_echo "$with_tcl" >&6; }
4932
4933
4934 # We see if the path to the Tcl/Tk configuration scripts is specified.
4935 # This will override the use of tclsh to find the paths to search.
4936
4937
4938
4939
4940 # Check whether --with-tclconfig was given.
4941 if test "${with_tclconfig+set}" = set; then
4942   withval=$with_tclconfig;
4943   case $withval in
4944     yes)
4945       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4946 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4947    { (exit 1); exit 1; }; }
4948       ;;
4949     no)
4950       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4951 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4952    { (exit 1); exit 1; }; }
4953       ;;
4954     *)
4955
4956       ;;
4957   esac
4958
4959 fi
4960
4961
4962
4963 #
4964 # Optionally build Perl modules (PL/Perl)
4965 #
4966 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4967 $as_echo_n "checking whether to build Perl modules... " >&6; }
4968
4969
4970
4971 # Check whether --with-perl was given.
4972 if test "${with_perl+set}" = set; then
4973   withval=$with_perl;
4974   case $withval in
4975     yes)
4976       :
4977       ;;
4978     no)
4979       :
4980       ;;
4981     *)
4982       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4983 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4984    { (exit 1); exit 1; }; }
4985       ;;
4986   esac
4987
4988 else
4989   with_perl=no
4990
4991 fi
4992
4993
4994 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4995 $as_echo "$with_perl" >&6; }
4996
4997
4998 #
4999 # Optionally build Python modules (PL/Python)
5000 #
5001 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5002 $as_echo_n "checking whether to build Python modules... " >&6; }
5003
5004
5005
5006 # Check whether --with-python was given.
5007 if test "${with_python+set}" = set; then
5008   withval=$with_python;
5009   case $withval in
5010     yes)
5011       :
5012       ;;
5013     no)
5014       :
5015       ;;
5016     *)
5017       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5018 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5019    { (exit 1); exit 1; }; }
5020       ;;
5021   esac
5022
5023 else
5024   with_python=no
5025
5026 fi
5027
5028
5029 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5030 $as_echo "$with_python" >&6; }
5031
5032
5033 #
5034 # GSSAPI
5035 #
5036 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5037 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5038
5039
5040
5041 # Check whether --with-gssapi was given.
5042 if test "${with_gssapi+set}" = set; then
5043   withval=$with_gssapi;
5044   case $withval in
5045     yes)
5046
5047
5048 cat >>confdefs.h <<\_ACEOF
5049 #define ENABLE_GSS 1
5050 _ACEOF
5051
5052   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5053
5054       ;;
5055     no)
5056       :
5057       ;;
5058     *)
5059       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5060 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5061    { (exit 1); exit 1; }; }
5062       ;;
5063   esac
5064
5065 else
5066   with_gssapi=no
5067
5068 fi
5069
5070
5071 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5072 $as_echo "$with_gssapi" >&6; }
5073
5074
5075 #
5076 # Kerberos 5
5077 #
5078 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5079 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5080
5081
5082
5083 # Check whether --with-krb5 was given.
5084 if test "${with_krb5+set}" = set; then
5085   withval=$with_krb5;
5086   case $withval in
5087     yes)
5088
5089
5090 cat >>confdefs.h <<\_ACEOF
5091 #define KRB5 1
5092 _ACEOF
5093
5094   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5095
5096       ;;
5097     no)
5098       :
5099       ;;
5100     *)
5101       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5102 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5103    { (exit 1); exit 1; }; }
5104       ;;
5105   esac
5106
5107 else
5108   with_krb5=no
5109
5110 fi
5111
5112
5113 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5114 $as_echo "$with_krb5" >&6; }
5115
5116
5117
5118
5119
5120
5121 #
5122 # Kerberos configuration parameters
5123 #
5124
5125
5126
5127 # Check whether --with-krb-srvnam was given.
5128 if test "${with_krb_srvnam+set}" = set; then
5129   withval=$with_krb_srvnam;
5130   case $withval in
5131     yes)
5132       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5133 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5134    { (exit 1); exit 1; }; }
5135       ;;
5136     no)
5137       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5138 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5139    { (exit 1); exit 1; }; }
5140       ;;
5141     *)
5142
5143       ;;
5144   esac
5145
5146 else
5147   with_krb_srvnam="postgres"
5148 fi
5149
5150
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5154 _ACEOF
5155
5156
5157
5158 #
5159 # PAM
5160 #
5161 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5162 $as_echo_n "checking whether to build with PAM support... " >&6; }
5163
5164
5165
5166 # Check whether --with-pam was given.
5167 if test "${with_pam+set}" = set; then
5168   withval=$with_pam;
5169   case $withval in
5170     yes)
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define USE_PAM 1
5174 _ACEOF
5175
5176       ;;
5177     no)
5178       :
5179       ;;
5180     *)
5181       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5182 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5183    { (exit 1); exit 1; }; }
5184       ;;
5185   esac
5186
5187 else
5188   with_pam=no
5189
5190 fi
5191
5192
5193 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5194 $as_echo "$with_pam" >&6; }
5195
5196
5197
5198 #
5199 # LDAP
5200 #
5201 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5202 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5203
5204
5205
5206 # Check whether --with-ldap was given.
5207 if test "${with_ldap+set}" = set; then
5208   withval=$with_ldap;
5209   case $withval in
5210     yes)
5211
5212 cat >>confdefs.h <<\_ACEOF
5213 #define USE_LDAP 1
5214 _ACEOF
5215
5216       ;;
5217     no)
5218       :
5219       ;;
5220     *)
5221       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5222 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5223    { (exit 1); exit 1; }; }
5224       ;;
5225   esac
5226
5227 else
5228   with_ldap=no
5229
5230 fi
5231
5232
5233 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5234 $as_echo "$with_ldap" >&6; }
5235
5236
5237
5238 #
5239 # Bonjour
5240 #
5241 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5242 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5243
5244
5245
5246 # Check whether --with-bonjour was given.
5247 if test "${with_bonjour+set}" = set; then
5248   withval=$with_bonjour;
5249   case $withval in
5250     yes)
5251
5252 cat >>confdefs.h <<\_ACEOF
5253 #define USE_BONJOUR 1
5254 _ACEOF
5255
5256       ;;
5257     no)
5258       :
5259       ;;
5260     *)
5261       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5262 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5263    { (exit 1); exit 1; }; }
5264       ;;
5265   esac
5266
5267 else
5268   with_bonjour=no
5269
5270 fi
5271
5272
5273 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5274 $as_echo "$with_bonjour" >&6; }
5275
5276
5277
5278 #
5279 # OpenSSL
5280 #
5281 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5282 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5283
5284
5285
5286 # Check whether --with-openssl was given.
5287 if test "${with_openssl+set}" = set; then
5288   withval=$with_openssl;
5289   case $withval in
5290     yes)
5291
5292 cat >>confdefs.h <<\_ACEOF
5293 #define USE_SSL 1
5294 _ACEOF
5295
5296       ;;
5297     no)
5298       :
5299       ;;
5300     *)
5301       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5303    { (exit 1); exit 1; }; }
5304       ;;
5305   esac
5306
5307 else
5308   with_openssl=no
5309
5310 fi
5311
5312
5313 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5314 $as_echo "$with_openssl" >&6; }
5315
5316
5317
5318 #
5319 # Readline
5320 #
5321
5322
5323
5324 # Check whether --with-readline was given.
5325 if test "${with_readline+set}" = set; then
5326   withval=$with_readline;
5327   case $withval in
5328     yes)
5329       :
5330       ;;
5331     no)
5332       :
5333       ;;
5334     *)
5335       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5336 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5337    { (exit 1); exit 1; }; }
5338       ;;
5339   esac
5340
5341 else
5342   with_readline=yes
5343
5344 fi
5345
5346
5347 # readline on MinGW has problems with backslashes in psql and other bugs.
5348 # This is particularly a problem with non-US code pages.
5349 # Therefore disable its use until we understand the cause. 2004-07-20
5350 if test "$PORTNAME" = "win32"; then
5351   if test "$with_readline" = yes; then
5352     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5353 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5354     with_readline=no
5355   fi
5356 fi
5357
5358
5359 #
5360 # Prefer libedit
5361 #
5362
5363
5364
5365 # Check whether --with-libedit-preferred was given.
5366 if test "${with_libedit_preferred+set}" = set; then
5367   withval=$with_libedit_preferred;
5368   case $withval in
5369     yes)
5370       :
5371       ;;
5372     no)
5373       :
5374       ;;
5375     *)
5376       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5377 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5378    { (exit 1); exit 1; }; }
5379       ;;
5380   esac
5381
5382 else
5383   with_libedit_preferred=no
5384
5385 fi
5386
5387
5388
5389
5390 #
5391 # OSSP UUID library
5392 #
5393
5394
5395
5396 # Check whether --with-ossp-uuid was given.
5397 if test "${with_ossp_uuid+set}" = set; then
5398   withval=$with_ossp_uuid;
5399   case $withval in
5400     yes)
5401       :
5402       ;;
5403     no)
5404       :
5405       ;;
5406     *)
5407       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5408 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5409    { (exit 1); exit 1; }; }
5410       ;;
5411   esac
5412
5413 else
5414   with_ossp_uuid=no
5415
5416 fi
5417
5418
5419
5420
5421
5422 #
5423 # XML
5424 #
5425
5426
5427
5428 # Check whether --with-libxml was given.
5429 if test "${with_libxml+set}" = set; then
5430   withval=$with_libxml;
5431   case $withval in
5432     yes)
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define USE_LIBXML 1
5436 _ACEOF
5437
5438       ;;
5439     no)
5440       :
5441       ;;
5442     *)
5443       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5444 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5445    { (exit 1); exit 1; }; }
5446       ;;
5447   esac
5448
5449 else
5450   with_libxml=no
5451
5452 fi
5453
5454
5455
5456 if test "$with_libxml" = yes ; then
5457   for ac_prog in xml2-config
5458 do
5459   # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$XML2_CONFIG"; then
5467   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476     ac_cv_prog_XML2_CONFIG="$ac_prog"
5477     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5487 if test -n "$XML2_CONFIG"; then
5488   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5489 $as_echo "$XML2_CONFIG" >&6; }
5490 else
5491   { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496   test -n "$XML2_CONFIG" && break
5497 done
5498
5499   if test -n "$XML2_CONFIG"; then
5500     for pgac_option in `$XML2_CONFIG --cflags`; do
5501       case $pgac_option in
5502         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5503       esac
5504     done
5505     for pgac_option in `$XML2_CONFIG --libs`; do
5506       case $pgac_option in
5507         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5508       esac
5509     done
5510   fi
5511 fi
5512
5513
5514
5515 #
5516 # XSLT
5517 #
5518
5519
5520
5521 # Check whether --with-libxslt was given.
5522 if test "${with_libxslt+set}" = set; then
5523   withval=$with_libxslt;
5524   case $withval in
5525     yes)
5526
5527 cat >>confdefs.h <<\_ACEOF
5528 #define USE_LIBXSLT 1
5529 _ACEOF
5530
5531       ;;
5532     no)
5533       :
5534       ;;
5535     *)
5536       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5537 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5538    { (exit 1); exit 1; }; }
5539       ;;
5540   esac
5541
5542 else
5543   with_libxslt=no
5544
5545 fi
5546
5547
5548
5549
5550
5551
5552 #
5553 # tzdata
5554 #
5555
5556
5557
5558 # Check whether --with-system-tzdata was given.
5559 if test "${with_system_tzdata+set}" = set; then
5560   withval=$with_system_tzdata;
5561   case $withval in
5562     yes)
5563       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5564 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5565    { (exit 1); exit 1; }; }
5566       ;;
5567     no)
5568       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5569 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5570    { (exit 1); exit 1; }; }
5571       ;;
5572     *)
5573
5574       ;;
5575   esac
5576
5577 fi
5578
5579
5580
5581
5582 #
5583 # Zlib
5584 #
5585
5586
5587
5588 # Check whether --with-zlib was given.
5589 if test "${with_zlib+set}" = set; then
5590   withval=$with_zlib;
5591   case $withval in
5592     yes)
5593       :
5594       ;;
5595     no)
5596       :
5597       ;;
5598     *)
5599       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5601    { (exit 1); exit 1; }; }
5602       ;;
5603   esac
5604
5605 else
5606   with_zlib=yes
5607
5608 fi
5609
5610
5611
5612
5613 #
5614 # Elf
5615 #
5616
5617 # Assume system is ELF if it predefines __ELF__ as 1,
5618 # otherwise believe host_os based default.
5619 case $host_os in
5620     freebsd1*|freebsd2*) elf=no;;
5621     freebsd3*|freebsd4*) elf=yes;;
5622 esac
5623
5624
5625 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -z "$GREP"; then
5631   ac_path_GREP_found=false
5632   # Loop through the user's path and test for each of PROGNAME-LIST
5633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638   for ac_prog in grep ggrep; do
5639     for ac_exec_ext in '' $ac_executable_extensions; do
5640       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5641       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5642 # Check for GNU ac_path_GREP and select it if it is found.
5643   # Check for GNU $ac_path_GREP
5644 case `"$ac_path_GREP" --version 2>&1` in
5645 *GNU*)
5646   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5647 *)
5648   ac_count=0
5649   $as_echo_n 0123456789 >"conftest.in"
5650   while :
5651   do
5652     cat "conftest.in" "conftest.in" >"conftest.tmp"
5653     mv "conftest.tmp" "conftest.in"
5654     cp "conftest.in" "conftest.nl"
5655     $as_echo 'GREP' >> "conftest.nl"
5656     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658     ac_count=`expr $ac_count + 1`
5659     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5660       # Best one so far, save it but keep looking for a better one
5661       ac_cv_path_GREP="$ac_path_GREP"
5662       ac_path_GREP_max=$ac_count
5663     fi
5664     # 10*(2^10) chars as input seems more than enough
5665     test $ac_count -gt 10 && break
5666   done
5667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5669
5670       $ac_path_GREP_found && break 3
5671     done
5672   done
5673 done
5674 IFS=$as_save_IFS
5675   if test -z "$ac_cv_path_GREP"; then
5676     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5677 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5678    { (exit 1); exit 1; }; }
5679   fi
5680 else
5681   ac_cv_path_GREP=$GREP
5682 fi
5683
5684 fi
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5686 $as_echo "$ac_cv_path_GREP" >&6; }
5687  GREP="$ac_cv_path_GREP"
5688
5689
5690 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5691 $as_echo_n "checking for egrep... " >&6; }
5692 if test "${ac_cv_path_EGREP+set}" = set; then
5693   $as_echo_n "(cached) " >&6
5694 else
5695   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5696    then ac_cv_path_EGREP="$GREP -E"
5697    else
5698      if test -z "$EGREP"; then
5699   ac_path_EGREP_found=false
5700   # Loop through the user's path and test for each of PROGNAME-LIST
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_prog in egrep; do
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5709       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5710 # Check for GNU ac_path_EGREP and select it if it is found.
5711   # Check for GNU $ac_path_EGREP
5712 case `"$ac_path_EGREP" --version 2>&1` in
5713 *GNU*)
5714   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5715 *)
5716   ac_count=0
5717   $as_echo_n 0123456789 >"conftest.in"
5718   while :
5719   do
5720     cat "conftest.in" "conftest.in" >"conftest.tmp"
5721     mv "conftest.tmp" "conftest.in"
5722     cp "conftest.in" "conftest.nl"
5723     $as_echo 'EGREP' >> "conftest.nl"
5724     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726     ac_count=`expr $ac_count + 1`
5727     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5728       # Best one so far, save it but keep looking for a better one
5729       ac_cv_path_EGREP="$ac_path_EGREP"
5730       ac_path_EGREP_max=$ac_count
5731     fi
5732     # 10*(2^10) chars as input seems more than enough
5733     test $ac_count -gt 10 && break
5734   done
5735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5737
5738       $ac_path_EGREP_found && break 3
5739     done
5740   done
5741 done
5742 IFS=$as_save_IFS
5743   if test -z "$ac_cv_path_EGREP"; then
5744     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5745 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5746    { (exit 1); exit 1; }; }
5747   fi
5748 else
5749   ac_cv_path_EGREP=$EGREP
5750 fi
5751
5752    fi
5753 fi
5754 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5755 $as_echo "$ac_cv_path_EGREP" >&6; }
5756  EGREP="$ac_cv_path_EGREP"
5757
5758
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 #if __ELF__
5766   yes
5767 #endif
5768
5769 _ACEOF
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771   $EGREP "yes" >/dev/null 2>&1; then
5772   ELF_SYS=true
5773 else
5774   if test "X$elf" = "Xyes" ; then
5775   ELF_SYS=true
5776 else
5777   ELF_SYS=
5778 fi
5779 fi
5780 rm -f conftest*
5781
5782
5783
5784 #
5785 # Assignments
5786 #
5787
5788 CPPFLAGS="$CPPFLAGS $INCLUDES"
5789 LDFLAGS="$LDFLAGS $LIBDIRS"
5790
5791
5792
5793
5794
5795 # Check whether --with-gnu-ld was given.
5796 if test "${with_gnu_ld+set}" = set; then
5797   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5798 else
5799   with_gnu_ld=no
5800 fi
5801
5802 ac_prog=ld
5803 if test "$GCC" = yes; then
5804   # Check if gcc -print-prog-name=ld gives a path.
5805   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5806 $as_echo_n "checking for ld used by GCC... " >&6; }
5807   case $host in
5808   *-*-mingw*)
5809     # gcc leaves a trailing carriage return which upsets mingw
5810     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5811   *)
5812     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5813   esac
5814   case "$ac_prog" in
5815     # Accept absolute paths.
5816     [\\/]* | [A-Za-z]:[\\/]*)
5817       re_direlt='/[^/][^/]*/\.\./'
5818       # Canonicalize the path of ld
5819       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5820       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5821         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5822       done
5823       test -z "$LD" && LD="$ac_prog"
5824       ;;
5825   "")
5826     # If it fails, then pretend we aren't using GCC.
5827     ac_prog=ld
5828     ;;
5829   *)
5830     # If it is relative, then search for the first ld in PATH.
5831     with_gnu_ld=unknown
5832     ;;
5833   esac
5834 elif test "$with_gnu_ld" = yes; then
5835   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5836 $as_echo_n "checking for GNU ld... " >&6; }
5837 else
5838   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5839 $as_echo_n "checking for non-GNU ld... " >&6; }
5840 fi
5841 if test "${ac_cv_path_LD+set}" = set; then
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if test -z "$LD"; then
5845   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5846   for ac_dir in $PATH; do
5847     test -z "$ac_dir" && ac_dir=.
5848     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5849       ac_cv_path_LD="$ac_dir/$ac_prog"
5850       # Check to see if the program is GNU ld.  I'd rather use --version,
5851       # but apparently some GNU ld's only accept -v.
5852       # Break only if it was the GNU/non-GNU ld that we prefer.
5853       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5854         test "$with_gnu_ld" != no && break
5855       else
5856         test "$with_gnu_ld" != yes && break
5857       fi
5858     fi
5859   done
5860   IFS="$ac_save_ifs"
5861 else
5862   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5863 fi
5864 fi
5865
5866 LD="$ac_cv_path_LD"
5867 if test -n "$LD"; then
5868   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5869 $as_echo "$LD" >&6; }
5870 else
5871   { $as_echo "$as_me:$LINENO: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5875 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5876    { (exit 1); exit 1; }; }
5877 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5879 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5880   $as_echo_n "(cached) " >&6
5881 else
5882   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5883 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5884   ac_cv_prog_gnu_ld=yes
5885 else
5886   ac_cv_prog_gnu_ld=no
5887 fi
5888 fi
5889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5890 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5891 with_gnu_ld=$ac_cv_prog_gnu_ld
5892
5893
5894
5895
5896 case $host_os in sysv5*)
5897   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5898 $as_echo_n "checking whether ld -R works... " >&6; }
5899 if test "${pgac_cv_prog_ld_R+set}" = set; then
5900   $as_echo_n "(cached) " >&6
5901 else
5902
5903     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5904     cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 int
5912 main ()
5913 {
5914
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927   (eval "$ac_link") 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } && {
5934          test -z "$ac_c_werror_flag" ||
5935          test ! -s conftest.err
5936        } && test -s conftest$ac_exeext && {
5937          test "$cross_compiling" = yes ||
5938          $as_test_x conftest$ac_exeext
5939        }; then
5940   pgac_cv_prog_ld_R=yes
5941 else
5942   $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945         pgac_cv_prog_ld_R=no
5946 fi
5947
5948 rm -rf conftest.dSYM
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950       conftest$ac_exeext conftest.$ac_ext
5951     LDFLAGS=$pgac_save_LDFLAGS
5952
5953 fi
5954 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5955 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5956   ld_R_works=$pgac_cv_prog_ld_R
5957
5958 esac
5959 if test -n "$ac_tool_prefix"; then
5960   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$RANLIB"; then
5968   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975   for ac_exec_ext in '' $ac_executable_extensions; do
5976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5991 else
5992   { $as_echo "$as_me:$LINENO: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997 fi
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999   ac_ct_RANLIB=$RANLIB
6000   # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if test -n "$ac_ct_RANLIB"; then
6008   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015   for ac_exec_ext in '' $ac_executable_extensions; do
6016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017     ac_cv_prog_ac_ct_RANLIB="ranlib"
6018     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6031 else
6032   { $as_echo "$as_me:$LINENO: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036   if test "x$ac_ct_RANLIB" = x; then
6037     RANLIB=":"
6038   else
6039     case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045     RANLIB=$ac_ct_RANLIB
6046   fi
6047 else
6048   RANLIB="$ac_cv_prog_RANLIB"
6049 fi
6050
6051
6052   if test -n "$ac_tool_prefix"; then
6053   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}strip; ac_word=$2
6055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_STRIP+set}" = set; then
6058   $as_echo_n "(cached) " >&6
6059 else
6060   if test -n "$STRIP"; then
6061   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068   for ac_exec_ext in '' $ac_executable_extensions; do
6069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6071     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 STRIP=$ac_cv_prog_STRIP
6081 if test -n "$STRIP"; then
6082   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6083 $as_echo "$STRIP" >&6; }
6084 else
6085   { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090 fi
6091 if test -z "$ac_cv_prog_STRIP"; then
6092   ac_ct_STRIP=$STRIP
6093   # Extract the first word of "strip", so it can be a program name with args.
6094 set dummy strip; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6098   $as_echo_n "(cached) " >&6
6099 else
6100   if test -n "$ac_ct_STRIP"; then
6101   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110     ac_cv_prog_ac_ct_STRIP="strip"
6111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6121 if test -n "$ac_ct_STRIP"; then
6122   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6123 $as_echo "$ac_ct_STRIP" >&6; }
6124 else
6125   { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129   if test "x$ac_ct_STRIP" = x; then
6130     STRIP=":"
6131   else
6132     case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138     STRIP=$ac_ct_STRIP
6139   fi
6140 else
6141   STRIP="$ac_cv_prog_STRIP"
6142 fi
6143
6144
6145   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6146 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6147   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6148     STRIP_STATIC_LIB="$STRIP -x"
6149     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6150     { $as_echo "$as_me:$LINENO: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152   else
6153     STRIP_STATIC_LIB=:
6154     STRIP_SHARED_LIB=:
6155     { $as_echo "$as_me:$LINENO: result: no" >&5
6156 $as_echo "no" >&6; }
6157   fi
6158
6159
6160
6161 if test -n "$ac_tool_prefix"; then
6162   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167   $as_echo_n "(cached) " >&6
6168 else
6169   if test -n "$AR"; then
6170   ac_cv_prog_AR="$AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175   IFS=$as_save_IFS
6176   test -z "$as_dir" && as_dir=.
6177   for ac_exec_ext in '' $ac_executable_extensions; do
6178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179     ac_cv_prog_AR="${ac_tool_prefix}ar"
6180     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181     break 2
6182   fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 AR=$ac_cv_prog_AR
6190 if test -n "$AR"; then
6191   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6193 else
6194   { $as_echo "$as_me:$LINENO: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_AR"; then
6201   ac_ct_AR=$AR
6202   # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207   $as_echo_n "(cached) " >&6
6208 else
6209   if test -n "$ac_ct_AR"; then
6210   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217   for ac_exec_ext in '' $ac_executable_extensions; do
6218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219     ac_cv_prog_ac_ct_AR="ar"
6220     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6233 else
6234   { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238   if test "x$ac_ct_AR" = x; then
6239     AR="ar"
6240   else
6241     case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247     AR=$ac_ct_AR
6248   fi
6249 else
6250   AR="$ac_cv_prog_AR"
6251 fi
6252
6253 if test "$PORTNAME" = "win32"; then
6254   if test -n "$ac_tool_prefix"; then
6255   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6260   $as_echo_n "(cached) " >&6
6261 else
6262   if test -n "$DLLTOOL"; then
6263   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285 $as_echo "$DLLTOOL" >&6; }
6286 else
6287   { $as_echo "$as_me:$LINENO: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292 fi
6293 if test -z "$ac_cv_prog_DLLTOOL"; then
6294   ac_ct_DLLTOOL=$DLLTOOL
6295   # Extract the first word of "dlltool", so it can be a program name with args.
6296 set dummy dlltool; ac_word=$2
6297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$ac_ct_DLLTOOL"; then
6303   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310   for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6313     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6323 if test -n "$ac_ct_DLLTOOL"; then
6324   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6325 $as_echo "$ac_ct_DLLTOOL" >&6; }
6326 else
6327   { $as_echo "$as_me:$LINENO: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331   if test "x$ac_ct_DLLTOOL" = x; then
6332     DLLTOOL="dlltool"
6333   else
6334     case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340     DLLTOOL=$ac_ct_DLLTOOL
6341   fi
6342 else
6343   DLLTOOL="$ac_cv_prog_DLLTOOL"
6344 fi
6345
6346   if test -n "$ac_tool_prefix"; then
6347   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$DLLWRAP"; then
6355   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362   for ac_exec_ext in '' $ac_executable_extensions; do
6363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 DLLWRAP=$ac_cv_prog_DLLWRAP
6375 if test -n "$DLLWRAP"; then
6376   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6377 $as_echo "$DLLWRAP" >&6; }
6378 else
6379   { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383
6384 fi
6385 if test -z "$ac_cv_prog_DLLWRAP"; then
6386   ac_ct_DLLWRAP=$DLLWRAP
6387   # Extract the first word of "dllwrap", so it can be a program name with args.
6388 set dummy dllwrap; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$ac_ct_DLLWRAP"; then
6395   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402   for ac_exec_ext in '' $ac_executable_extensions; do
6403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6415 if test -n "$ac_ct_DLLWRAP"; then
6416   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6417 $as_echo "$ac_ct_DLLWRAP" >&6; }
6418 else
6419   { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423   if test "x$ac_ct_DLLWRAP" = x; then
6424     DLLWRAP="dllwrap"
6425   else
6426     case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432     DLLWRAP=$ac_ct_DLLWRAP
6433   fi
6434 else
6435   DLLWRAP="$ac_cv_prog_DLLWRAP"
6436 fi
6437
6438   if test -n "$ac_tool_prefix"; then
6439   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}windres; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_WINDRES+set}" = set; then
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$WINDRES"; then
6447   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454   for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6457     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 WINDRES=$ac_cv_prog_WINDRES
6467 if test -n "$WINDRES"; then
6468   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6469 $as_echo "$WINDRES" >&6; }
6470 else
6471   { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 fi
6477 if test -z "$ac_cv_prog_WINDRES"; then
6478   ac_ct_WINDRES=$WINDRES
6479   # Extract the first word of "windres", so it can be a program name with args.
6480 set dummy windres; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$ac_ct_WINDRES"; then
6487   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_ac_ct_WINDRES="windres"
6497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6507 if test -n "$ac_ct_WINDRES"; then
6508   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6509 $as_echo "$ac_ct_WINDRES" >&6; }
6510 else
6511   { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515   if test "x$ac_ct_WINDRES" = x; then
6516     WINDRES="windres"
6517   else
6518     case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524     WINDRES=$ac_ct_WINDRES
6525   fi
6526 else
6527   WINDRES="$ac_cv_prog_WINDRES"
6528 fi
6529
6530 fi
6531
6532 # Extract the first word of "tar", so it can be a program name with args.
6533 set dummy tar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_path_TAR+set}" = set; then
6537   $as_echo_n "(cached) " >&6
6538 else
6539   case $TAR in
6540   [\\/]* | ?:[\\/]*)
6541   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6542   ;;
6543   *)
6544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549   for ac_exec_ext in '' $ac_executable_extensions; do
6550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6552     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559   ;;
6560 esac
6561 fi
6562 TAR=$ac_cv_path_TAR
6563 if test -n "$TAR"; then
6564   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6565 $as_echo "$TAR" >&6; }
6566 else
6567   { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6573 $as_echo_n "checking whether ln -s works... " >&6; }
6574 LN_S=$as_ln_s
6575 if test "$LN_S" = "ln -s"; then
6576   { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578 else
6579   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6580 $as_echo "no, using $LN_S" >&6; }
6581 fi
6582
6583 for ac_prog in gawk mawk nawk awk
6584 do
6585   # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_AWK+set}" = set; then
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$AWK"; then
6593   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_AWK="$ac_prog"
6603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 AWK=$ac_cv_prog_AWK
6613 if test -n "$AWK"; then
6614   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6615 $as_echo "$AWK" >&6; }
6616 else
6617   { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622   test -n "$AWK" && break
6623 done
6624
6625 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6627 if test -z "$MKDIR_P"; then
6628   if test "${ac_cv_path_mkdir+set}" = set; then
6629   $as_echo_n "(cached) " >&6
6630 else
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_prog in mkdir gmkdir; do
6637          for ac_exec_ext in '' $ac_executable_extensions; do
6638            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6639            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6640              'mkdir (GNU coreutils) '* | \
6641              'mkdir (coreutils) '* | \
6642              'mkdir (fileutils) '4.1*)
6643                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6644                break 3;;
6645            esac
6646          done
6647        done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652
6653   if test "${ac_cv_path_mkdir+set}" = set; then
6654     MKDIR_P="$ac_cv_path_mkdir -p"
6655   else
6656     # As a last resort, use the slow shell script.  Don't cache a
6657     # value for MKDIR_P within a source directory, because that will
6658     # break other packages using the cache if that directory is
6659     # removed, or if the value is a relative name.
6660     test -d ./--version && rmdir ./--version
6661     MKDIR_P="$ac_install_sh -d"
6662   fi
6663 fi
6664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6665 $as_echo "$MKDIR_P" >&6; }
6666
6667 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6668 # a relative path to it in each makefile where it subsitutes it. This clashes
6669 # with our Makefile.global concept. This workaround helps.
6670 case $MKDIR_P in
6671   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6672 esac
6673
6674 # Let the user override the search
6675 if test -z "$BISON"; then
6676   for ac_prog in bison
6677 do
6678   # Extract the first word of "$ac_prog", so it can be a program name with args.
6679 set dummy $ac_prog; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_path_BISON+set}" = set; then
6683   $as_echo_n "(cached) " >&6
6684 else
6685   case $BISON in
6686   [\\/]* | ?:[\\/]*)
6687   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6688   ;;
6689   *)
6690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705   ;;
6706 esac
6707 fi
6708 BISON=$ac_cv_path_BISON
6709 if test -n "$BISON"; then
6710   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6711 $as_echo "$BISON" >&6; }
6712 else
6713   { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718   test -n "$BISON" && break
6719 done
6720
6721 fi
6722
6723 if test "$BISON"; then
6724   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6725   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6726 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6727   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6728   then
6729     { $as_echo "$as_me:$LINENO: WARNING:
6730 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6731 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6732 $as_echo "$as_me: WARNING:
6733 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6734 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6735     BISON=""
6736   fi
6737 fi
6738
6739 if test -z "$BISON"; then
6740   { $as_echo "$as_me:$LINENO: WARNING:
6741 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6742 *** change any of the parser definition files.  You can obtain Bison from
6743 *** a GNU mirror site.  (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this, because the Bison
6745 *** output is pre-generated.)" >&5
6746 $as_echo "$as_me: WARNING:
6747 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6748 *** change any of the parser definition files.  You can obtain Bison from
6749 *** a GNU mirror site.  (If you are using the official distribution of
6750 *** PostgreSQL then you do not need to worry about this, because the Bison
6751 *** output is pre-generated.)" >&2;}
6752 fi
6753 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6754
6755
6756 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6757 $as_echo_n "checking for flex... " >&6; }
6758 if test "${pgac_cv_path_flex+set}" = set; then
6759   $as_echo_n "(cached) " >&6
6760 else
6761   # Let the user override the test
6762 if test -n "$FLEX"; then
6763   pgac_cv_path_flex=$FLEX
6764 else
6765   pgac_save_IFS=$IFS
6766   IFS=$PATH_SEPARATOR
6767   for pgac_dir in $PATH; do
6768     IFS=$pgac_save_IFS
6769     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6770       pgac_dir=`pwd`
6771     fi
6772     for pgac_prog in flex lex; do
6773       pgac_candidate="$pgac_dir/$pgac_prog"
6774       if test -f "$pgac_candidate" \
6775         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6776       then
6777         echo '%%'  > conftest.l
6778         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6779           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6780           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6781           then
6782             pgac_cv_path_flex=$pgac_candidate
6783             break 2
6784           else
6785             { $as_echo "$as_me:$LINENO: WARNING:
6786 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6787 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6788 $as_echo "$as_me: WARNING:
6789 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6790 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6791           fi
6792         fi
6793       fi
6794     done
6795   done
6796   rm -f conftest.l lex.yy.c
6797   : ${pgac_cv_path_flex=no}
6798 fi
6799
6800 fi
6801 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6802 $as_echo "$pgac_cv_path_flex" >&6; }
6803 if test x"$pgac_cv_path_flex" = x"no"; then
6804   { $as_echo "$as_me:$LINENO: WARNING:
6805 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6806 *** change any of the scanner definition files.  You can obtain Flex from
6807 *** a GNU mirror site.  (If you are using the official distribution of
6808 *** PostgreSQL then you do not need to worry about this because the Flex
6809 *** output is pre-generated.)" >&5
6810 $as_echo "$as_me: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6812 *** change any of the scanner definition files.  You can obtain Flex from
6813 *** a GNU mirror site.  (If you are using the official distribution of
6814 *** PostgreSQL then you do not need to worry about this because the Flex
6815 *** output is pre-generated.)" >&2;}
6816
6817   FLEX=
6818 else
6819   FLEX=$pgac_cv_path_flex
6820   pgac_flex_version=`$FLEX --version 2>/dev/null`
6821   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6822 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6823 fi
6824
6825
6826
6827
6828
6829 # Let the user override the search
6830 if test -z "$PERL"; then
6831   # Extract the first word of "perl", so it can be a program name with args.
6832 set dummy perl; ac_word=$2
6833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_path_PERL+set}" = set; then
6836   $as_echo_n "(cached) " >&6
6837 else
6838   case $PERL in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858   ;;
6859 esac
6860 fi
6861 PERL=$ac_cv_path_PERL
6862 if test -n "$PERL"; then
6863   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6864 $as_echo "$PERL" >&6; }
6865 else
6866   { $as_echo "$as_me:$LINENO: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872
6873 if test "$PERL"; then
6874   pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
6875   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6876 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6877   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6878     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6879   then
6880     { $as_echo "$as_me:$LINENO: WARNING:
6881 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6882 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6883 $as_echo "$as_me: WARNING:
6884 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6885 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6886     PERL=""
6887   fi
6888 fi
6889
6890 if test -z "$PERL"; then
6891   { $as_echo "$as_me:$LINENO: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from CVS.
6893 *** You can obtain Perl from any CPAN mirror site.
6894 *** (If you are using the official distribution of PostgreSQL then you do not
6895 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6896 $as_echo "$as_me: WARNING:
6897 *** Without Perl you will not be able to build PostgreSQL from CVS.
6898 *** You can obtain Perl from any CPAN mirror site.
6899 *** (If you are using the official distribution of PostgreSQL then you do not
6900 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6901 fi
6902
6903 if test "$with_perl" = yes; then
6904   if test -z "$PERL"; then
6905     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6906 $as_echo "$as_me: error: Perl not found" >&2;}
6907    { (exit 1); exit 1; }; }
6908   fi
6909
6910 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6911 $as_echo_n "checking for Perl archlibexp... " >&6; }
6912 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6914 $as_echo "$perl_archlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6916 $as_echo_n "checking for Perl privlibexp... " >&6; }
6917 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6919 $as_echo "$perl_privlibexp" >&6; }
6920 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6921 $as_echo_n "checking for Perl useshrplib... " >&6; }
6922 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6923 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6924 $as_echo "$perl_useshrplib" >&6; }
6925
6926 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6927 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6928 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6929 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6930 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6931 if test -z "$perl_embed_ldflags" ; then
6932         { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6935 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6936 installed." >&5
6937 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6938 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6939 installed." >&2;}
6940    { (exit 1); exit 1; }; }
6941 else
6942         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6943 $as_echo "$perl_embed_ldflags" >&6; }
6944 fi
6945
6946 fi
6947
6948 if test "$with_python" = yes; then
6949   # Extract the first word of "python", so it can be a program name with args.
6950 set dummy python; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_path_PYTHON+set}" = set; then
6954   $as_echo_n "(cached) " >&6
6955 else
6956   case $PYTHON in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6969     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   ;;
6977 esac
6978 fi
6979 PYTHON=$ac_cv_path_PYTHON
6980 if test -n "$PYTHON"; then
6981   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6982 $as_echo "$PYTHON" >&6; }
6983 else
6984   { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988
6989 if test x"$PYTHON" = x""; then
6990   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6991 $as_echo "$as_me: error: Python not found" >&2;}
6992    { (exit 1); exit 1; }; }
6993 fi
6994
6995
6996 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6997 $as_echo_n "checking for Python distutils module... " >&6; }
6998 if "${PYTHON}" -c 'import distutils' 2>&5
6999 then
7000     { $as_echo "$as_me:$LINENO: result: yes" >&5
7001 $as_echo "yes" >&6; }
7002 else
7003     { $as_echo "$as_me:$LINENO: result: no" >&5
7004 $as_echo "no" >&6; }
7005     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7006 $as_echo "$as_me: error: distutils module not found" >&2;}
7007    { (exit 1); exit 1; }; }
7008 fi
7009 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7010 $as_echo_n "checking Python configuration directory... " >&6; }
7011 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7012 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7013 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7014 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7015
7016 # This should be enough of a message.
7017 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7018 $as_echo "$python_configdir" >&6; }
7019
7020
7021 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7022 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7023
7024 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7025 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7026 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7027 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7028
7029 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7030 then
7031         # New way: use the official shared library
7032         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7033         python_libspec="-L${python_libdir} -l${ldlibrary}"
7034 else
7035         # Old way: use libpython from python_configdir
7036         python_libdir="${python_configdir}"
7037         python_libspec="-L${python_libdir} -lpython${python_version}"
7038 fi
7039
7040 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7041
7042 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7043 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7044
7045
7046 # threaded python is not supported on bsd's
7047 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7048 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7049 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7050 if test "$pythreads" = "1"; then
7051   { $as_echo "$as_me:$LINENO: result: yes" >&5
7052 $as_echo "yes" >&6; }
7053   case $host_os in
7054   openbsd*|freebsd*)
7055     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7056 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7057    { (exit 1); exit 1; }; }
7058     ;;
7059   esac
7060 else
7061   { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066 fi
7067
7068 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7069   # Extract the first word of "zic", so it can be a program name with args.
7070 set dummy zic; ac_word=$2
7071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_path_ZIC+set}" = set; then
7074   $as_echo_n "(cached) " >&6
7075 else
7076   case $ZIC in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   ;;
7097 esac
7098 fi
7099 ZIC=$ac_cv_path_ZIC
7100 if test -n "$ZIC"; then
7101   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7102 $as_echo "$ZIC" >&6; }
7103 else
7104   { $as_echo "$as_me:$LINENO: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108
7109   if test -z "$ZIC"; then
7110     { { $as_echo "$as_me:$LINENO: error:
7111 When cross-compiling, either use the option --with-system-tzdata to use
7112 existing time-zone data, or set the environment variable ZIC to a zic
7113 program to use during the build." >&5
7114 $as_echo "$as_me: error:
7115 When cross-compiling, either use the option --with-system-tzdata to use
7116 existing time-zone data, or set the environment variable ZIC to a zic
7117 program to use during the build." >&2;}
7118    { (exit 1); exit 1; }; }
7119   fi
7120 fi
7121
7122
7123 ##
7124 ## Libraries
7125 ##
7126 ## Most libraries are included only if they demonstrably provide a function
7127 ## we need, but libm is an exception: always include it, because there are
7128 ## too many compilers that play cute optimization games that will break
7129 ## probes for standard functions such as pow().
7130 ##
7131
7132
7133 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7134 $as_echo_n "checking for main in -lm... " >&6; }
7135 if test "${ac_cv_lib_m_main+set}" = set; then
7136   $as_echo_n "(cached) " >&6
7137 else
7138   ac_check_lib_save_LIBS=$LIBS
7139 LIBS="-lm  $LIBS"
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146
7147
7148 int
7149 main ()
7150 {
7151 return main ();
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7158 case "(($ac_try" in
7159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160   *) ac_try_echo=$ac_try;;
7161 esac
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164   (eval "$ac_link") 2>conftest.er1
7165   ac_status=$?
7166   grep -v '^ *+' conftest.er1 >conftest.err
7167   rm -f conftest.er1
7168   cat conftest.err >&5
7169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); } && {
7171          test -z "$ac_c_werror_flag" ||
7172          test ! -s conftest.err
7173        } && test -s conftest$ac_exeext && {
7174          test "$cross_compiling" = yes ||
7175          $as_test_x conftest$ac_exeext
7176        }; then
7177   ac_cv_lib_m_main=yes
7178 else
7179   $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182         ac_cv_lib_m_main=no
7183 fi
7184
7185 rm -rf conftest.dSYM
7186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7187       conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7189 fi
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7191 $as_echo "$ac_cv_lib_m_main" >&6; }
7192 if test "x$ac_cv_lib_m_main" = x""yes; then
7193   cat >>confdefs.h <<_ACEOF
7194 #define HAVE_LIBM 1
7195 _ACEOF
7196
7197   LIBS="-lm $LIBS"
7198
7199 fi
7200
7201 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7202 $as_echo_n "checking for library containing setproctitle... " >&6; }
7203 if test "${ac_cv_search_setproctitle+set}" = set; then
7204   $as_echo_n "(cached) " >&6
7205 else
7206   ac_func_search_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213
7214 /* Override any GCC internal prototype to avoid an error.
7215    Use char because int might match the return type of a GCC
7216    builtin and then its argument prototype would still apply.  */
7217 #ifdef __cplusplus
7218 extern "C"
7219 #endif
7220 char setproctitle ();
7221 int
7222 main ()
7223 {
7224 return setproctitle ();
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 for ac_lib in '' util; do
7230   if test -z "$ac_lib"; then
7231     ac_res="none required"
7232   else
7233     ac_res=-l$ac_lib
7234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7235   fi
7236   rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7238 case "(($ac_try" in
7239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240   *) ac_try_echo=$ac_try;;
7241 esac
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244   (eval "$ac_link") 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } && {
7251          test -z "$ac_c_werror_flag" ||
7252          test ! -s conftest.err
7253        } && test -s conftest$ac_exeext && {
7254          test "$cross_compiling" = yes ||
7255          $as_test_x conftest$ac_exeext
7256        }; then
7257   ac_cv_search_setproctitle=$ac_res
7258 else
7259   $as_echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262
7263 fi
7264
7265 rm -rf conftest.dSYM
7266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7267       conftest$ac_exeext
7268   if test "${ac_cv_search_setproctitle+set}" = set; then
7269   break
7270 fi
7271 done
7272 if test "${ac_cv_search_setproctitle+set}" = set; then
7273   :
7274 else
7275   ac_cv_search_setproctitle=no
7276 fi
7277 rm conftest.$ac_ext
7278 LIBS=$ac_func_search_save_LIBS
7279 fi
7280 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7281 $as_echo "$ac_cv_search_setproctitle" >&6; }
7282 ac_res=$ac_cv_search_setproctitle
7283 if test "$ac_res" != no; then
7284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7285
7286 fi
7287
7288 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7289 $as_echo_n "checking for library containing dlopen... " >&6; }
7290 if test "${ac_cv_search_dlopen+set}" = set; then
7291   $as_echo_n "(cached) " >&6
7292 else
7293   ac_func_search_save_LIBS=$LIBS
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300
7301 /* Override any GCC internal prototype to avoid an error.
7302    Use char because int might match the return type of a GCC
7303    builtin and then its argument prototype would still apply.  */
7304 #ifdef __cplusplus
7305 extern "C"
7306 #endif
7307 char dlopen ();
7308 int
7309 main ()
7310 {
7311 return dlopen ();
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 for ac_lib in '' dl; do
7317   if test -z "$ac_lib"; then
7318     ac_res="none required"
7319   else
7320     ac_res=-l$ac_lib
7321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7322   fi
7323   rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (ac_try="$ac_link"
7325 case "(($ac_try" in
7326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327   *) ac_try_echo=$ac_try;;
7328 esac
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331   (eval "$ac_link") 2>conftest.er1
7332   ac_status=$?
7333   grep -v '^ *+' conftest.er1 >conftest.err
7334   rm -f conftest.er1
7335   cat conftest.err >&5
7336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } && {
7338          test -z "$ac_c_werror_flag" ||
7339          test ! -s conftest.err
7340        } && test -s conftest$ac_exeext && {
7341          test "$cross_compiling" = yes ||
7342          $as_test_x conftest$ac_exeext
7343        }; then
7344   ac_cv_search_dlopen=$ac_res
7345 else
7346   $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349
7350 fi
7351
7352 rm -rf conftest.dSYM
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7354       conftest$ac_exeext
7355   if test "${ac_cv_search_dlopen+set}" = set; then
7356   break
7357 fi
7358 done
7359 if test "${ac_cv_search_dlopen+set}" = set; then
7360   :
7361 else
7362   ac_cv_search_dlopen=no
7363 fi
7364 rm conftest.$ac_ext
7365 LIBS=$ac_func_search_save_LIBS
7366 fi
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res=$ac_cv_search_dlopen
7370 if test "$ac_res" != no; then
7371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7372
7373 fi
7374
7375 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7376 $as_echo_n "checking for library containing socket... " >&6; }
7377 if test "${ac_cv_search_socket+set}" = set; then
7378   $as_echo_n "(cached) " >&6
7379 else
7380   ac_func_search_save_LIBS=$LIBS
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387
7388 /* Override any GCC internal prototype to avoid an error.
7389    Use char because int might match the return type of a GCC
7390    builtin and then its argument prototype would still apply.  */
7391 #ifdef __cplusplus
7392 extern "C"
7393 #endif
7394 char socket ();
7395 int
7396 main ()
7397 {
7398 return socket ();
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 for ac_lib in '' socket wsock32; do
7404   if test -z "$ac_lib"; then
7405     ac_res="none required"
7406   else
7407     ac_res=-l$ac_lib
7408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7409   fi
7410   rm -f conftest.$ac_objext conftest$ac_exeext
7411 if { (ac_try="$ac_link"
7412 case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418   (eval "$ac_link") 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } && {
7425          test -z "$ac_c_werror_flag" ||
7426          test ! -s conftest.err
7427        } && test -s conftest$ac_exeext && {
7428          test "$cross_compiling" = yes ||
7429          $as_test_x conftest$ac_exeext
7430        }; then
7431   ac_cv_search_socket=$ac_res
7432 else
7433   $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436
7437 fi
7438
7439 rm -rf conftest.dSYM
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441       conftest$ac_exeext
7442   if test "${ac_cv_search_socket+set}" = set; then
7443   break
7444 fi
7445 done
7446 if test "${ac_cv_search_socket+set}" = set; then
7447   :
7448 else
7449   ac_cv_search_socket=no
7450 fi
7451 rm conftest.$ac_ext
7452 LIBS=$ac_func_search_save_LIBS
7453 fi
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7455 $as_echo "$ac_cv_search_socket" >&6; }
7456 ac_res=$ac_cv_search_socket
7457 if test "$ac_res" != no; then
7458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7459
7460 fi
7461
7462 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7463 $as_echo_n "checking for library containing shl_load... " >&6; }
7464 if test "${ac_cv_search_shl_load+set}" = set; then
7465   $as_echo_n "(cached) " >&6
7466 else
7467   ac_func_search_save_LIBS=$LIBS
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474
7475 /* Override any GCC internal prototype to avoid an error.
7476    Use char because int might match the return type of a GCC
7477    builtin and then its argument prototype would still apply.  */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char shl_load ();
7482 int
7483 main ()
7484 {
7485 return shl_load ();
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 for ac_lib in '' dld; do
7491   if test -z "$ac_lib"; then
7492     ac_res="none required"
7493   else
7494     ac_res=-l$ac_lib
7495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7496   fi
7497   rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7499 case "(($ac_try" in
7500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501   *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505   (eval "$ac_link") 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
7509   cat conftest.err >&5
7510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } && {
7512          test -z "$ac_c_werror_flag" ||
7513          test ! -s conftest.err
7514        } && test -s conftest$ac_exeext && {
7515          test "$cross_compiling" = yes ||
7516          $as_test_x conftest$ac_exeext
7517        }; then
7518   ac_cv_search_shl_load=$ac_res
7519 else
7520   $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523
7524 fi
7525
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7528       conftest$ac_exeext
7529   if test "${ac_cv_search_shl_load+set}" = set; then
7530   break
7531 fi
7532 done
7533 if test "${ac_cv_search_shl_load+set}" = set; then
7534   :
7535 else
7536   ac_cv_search_shl_load=no
7537 fi
7538 rm conftest.$ac_ext
7539 LIBS=$ac_func_search_save_LIBS
7540 fi
7541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7542 $as_echo "$ac_cv_search_shl_load" >&6; }
7543 ac_res=$ac_cv_search_shl_load
7544 if test "$ac_res" != no; then
7545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7546
7547 fi
7548
7549 # We only use libld in port/dynloader/aix.c
7550 case $host_os in
7551      aix*)
7552         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7553 $as_echo_n "checking for library containing ldopen... " >&6; }
7554 if test "${ac_cv_search_ldopen+set}" = set; then
7555   $as_echo_n "(cached) " >&6
7556 else
7557   ac_func_search_save_LIBS=$LIBS
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564
7565 /* Override any GCC internal prototype to avoid an error.
7566    Use char because int might match the return type of a GCC
7567    builtin and then its argument prototype would still apply.  */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 char ldopen ();
7572 int
7573 main ()
7574 {
7575 return ldopen ();
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 for ac_lib in '' ld; do
7581   if test -z "$ac_lib"; then
7582     ac_res="none required"
7583   else
7584     ac_res=-l$ac_lib
7585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7586   fi
7587   rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7589 case "(($ac_try" in
7590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591   *) ac_try_echo=$ac_try;;
7592 esac
7593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7594 $as_echo "$ac_try_echo") >&5
7595   (eval "$ac_link") 2>conftest.er1
7596   ac_status=$?
7597   grep -v '^ *+' conftest.er1 >conftest.err
7598   rm -f conftest.er1
7599   cat conftest.err >&5
7600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } && {
7602          test -z "$ac_c_werror_flag" ||
7603          test ! -s conftest.err
7604        } && test -s conftest$ac_exeext && {
7605          test "$cross_compiling" = yes ||
7606          $as_test_x conftest$ac_exeext
7607        }; then
7608   ac_cv_search_ldopen=$ac_res
7609 else
7610   $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7612
7613
7614 fi
7615
7616 rm -rf conftest.dSYM
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618       conftest$ac_exeext
7619   if test "${ac_cv_search_ldopen+set}" = set; then
7620   break
7621 fi
7622 done
7623 if test "${ac_cv_search_ldopen+set}" = set; then
7624   :
7625 else
7626   ac_cv_search_ldopen=no
7627 fi
7628 rm conftest.$ac_ext
7629 LIBS=$ac_func_search_save_LIBS
7630 fi
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7632 $as_echo "$ac_cv_search_ldopen" >&6; }
7633 ac_res=$ac_cv_search_ldopen
7634 if test "$ac_res" != no; then
7635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7636
7637 fi
7638
7639         ;;
7640 esac
7641 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7642 $as_echo_n "checking for library containing getopt_long... " >&6; }
7643 if test "${ac_cv_search_getopt_long+set}" = set; then
7644   $as_echo_n "(cached) " >&6
7645 else
7646   ac_func_search_save_LIBS=$LIBS
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653
7654 /* Override any GCC internal prototype to avoid an error.
7655    Use char because int might match the return type of a GCC
7656    builtin and then its argument prototype would still apply.  */
7657 #ifdef __cplusplus
7658 extern "C"
7659 #endif
7660 char getopt_long ();
7661 int
7662 main ()
7663 {
7664 return getopt_long ();
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 for ac_lib in '' getopt gnugetopt; do
7670   if test -z "$ac_lib"; then
7671     ac_res="none required"
7672   else
7673     ac_res=-l$ac_lib
7674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7675   fi
7676   rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7678 case "(($ac_try" in
7679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680   *) ac_try_echo=$ac_try;;
7681 esac
7682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7683 $as_echo "$ac_try_echo") >&5
7684   (eval "$ac_link") 2>conftest.er1
7685   ac_status=$?
7686   grep -v '^ *+' conftest.er1 >conftest.err
7687   rm -f conftest.er1
7688   cat conftest.err >&5
7689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } && {
7691          test -z "$ac_c_werror_flag" ||
7692          test ! -s conftest.err
7693        } && test -s conftest$ac_exeext && {
7694          test "$cross_compiling" = yes ||
7695          $as_test_x conftest$ac_exeext
7696        }; then
7697   ac_cv_search_getopt_long=$ac_res
7698 else
7699   $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7701
7702
7703 fi
7704
7705 rm -rf conftest.dSYM
7706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7707       conftest$ac_exeext
7708   if test "${ac_cv_search_getopt_long+set}" = set; then
7709   break
7710 fi
7711 done
7712 if test "${ac_cv_search_getopt_long+set}" = set; then
7713   :
7714 else
7715   ac_cv_search_getopt_long=no
7716 fi
7717 rm conftest.$ac_ext
7718 LIBS=$ac_func_search_save_LIBS
7719 fi
7720 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7721 $as_echo "$ac_cv_search_getopt_long" >&6; }
7722 ac_res=$ac_cv_search_getopt_long
7723 if test "$ac_res" != no; then
7724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7725
7726 fi
7727
7728 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7729 $as_echo_n "checking for library containing crypt... " >&6; }
7730 if test "${ac_cv_search_crypt+set}" = set; then
7731   $as_echo_n "(cached) " >&6
7732 else
7733   ac_func_search_save_LIBS=$LIBS
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740
7741 /* Override any GCC internal prototype to avoid an error.
7742    Use char because int might match the return type of a GCC
7743    builtin and then its argument prototype would still apply.  */
7744 #ifdef __cplusplus
7745 extern "C"
7746 #endif
7747 char crypt ();
7748 int
7749 main ()
7750 {
7751 return crypt ();
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 for ac_lib in '' crypt; do
7757   if test -z "$ac_lib"; then
7758     ac_res="none required"
7759   else
7760     ac_res=-l$ac_lib
7761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7762   fi
7763   rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7765 case "(($ac_try" in
7766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767   *) ac_try_echo=$ac_try;;
7768 esac
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771   (eval "$ac_link") 2>conftest.er1
7772   ac_status=$?
7773   grep -v '^ *+' conftest.er1 >conftest.err
7774   rm -f conftest.er1
7775   cat conftest.err >&5
7776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } && {
7778          test -z "$ac_c_werror_flag" ||
7779          test ! -s conftest.err
7780        } && test -s conftest$ac_exeext && {
7781          test "$cross_compiling" = yes ||
7782          $as_test_x conftest$ac_exeext
7783        }; then
7784   ac_cv_search_crypt=$ac_res
7785 else
7786   $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789
7790 fi
7791
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7794       conftest$ac_exeext
7795   if test "${ac_cv_search_crypt+set}" = set; then
7796   break
7797 fi
7798 done
7799 if test "${ac_cv_search_crypt+set}" = set; then
7800   :
7801 else
7802   ac_cv_search_crypt=no
7803 fi
7804 rm conftest.$ac_ext
7805 LIBS=$ac_func_search_save_LIBS
7806 fi
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7808 $as_echo "$ac_cv_search_crypt" >&6; }
7809 ac_res=$ac_cv_search_crypt
7810 if test "$ac_res" != no; then
7811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7812
7813 fi
7814
7815 # Solaris:
7816 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7817 $as_echo_n "checking for library containing fdatasync... " >&6; }
7818 if test "${ac_cv_search_fdatasync+set}" = set; then
7819   $as_echo_n "(cached) " >&6
7820 else
7821   ac_func_search_save_LIBS=$LIBS
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828
7829 /* Override any GCC internal prototype to avoid an error.
7830    Use char because int might match the return type of a GCC
7831    builtin and then its argument prototype would still apply.  */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 char fdatasync ();
7836 int
7837 main ()
7838 {
7839 return fdatasync ();
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 for ac_lib in '' rt posix4; do
7845   if test -z "$ac_lib"; then
7846     ac_res="none required"
7847   else
7848     ac_res=-l$ac_lib
7849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7850   fi
7851   rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858 $as_echo "$ac_try_echo") >&5
7859   (eval "$ac_link") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } && {
7866          test -z "$ac_c_werror_flag" ||
7867          test ! -s conftest.err
7868        } && test -s conftest$ac_exeext && {
7869          test "$cross_compiling" = yes ||
7870          $as_test_x conftest$ac_exeext
7871        }; then
7872   ac_cv_search_fdatasync=$ac_res
7873 else
7874   $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877
7878 fi
7879
7880 rm -rf conftest.dSYM
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882       conftest$ac_exeext
7883   if test "${ac_cv_search_fdatasync+set}" = set; then
7884   break
7885 fi
7886 done
7887 if test "${ac_cv_search_fdatasync+set}" = set; then
7888   :
7889 else
7890   ac_cv_search_fdatasync=no
7891 fi
7892 rm conftest.$ac_ext
7893 LIBS=$ac_func_search_save_LIBS
7894 fi
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7896 $as_echo "$ac_cv_search_fdatasync" >&6; }
7897 ac_res=$ac_cv_search_fdatasync
7898 if test "$ac_res" != no; then
7899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7900
7901 fi
7902
7903 # Required for thread_test.c on Solaris 2.5:
7904 # Other ports use it too (HP-UX) so test unconditionally
7905 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7906 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7907 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7908   $as_echo_n "(cached) " >&6
7909 else
7910   ac_func_search_save_LIBS=$LIBS
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917
7918 /* Override any GCC internal prototype to avoid an error.
7919    Use char because int might match the return type of a GCC
7920    builtin and then its argument prototype would still apply.  */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 char gethostbyname_r ();
7925 int
7926 main ()
7927 {
7928 return gethostbyname_r ();
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 for ac_lib in '' nsl; do
7934   if test -z "$ac_lib"; then
7935     ac_res="none required"
7936   else
7937     ac_res=-l$ac_lib
7938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7939   fi
7940   rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948   (eval "$ac_link") 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && {
7955          test -z "$ac_c_werror_flag" ||
7956          test ! -s conftest.err
7957        } && test -s conftest$ac_exeext && {
7958          test "$cross_compiling" = yes ||
7959          $as_test_x conftest$ac_exeext
7960        }; then
7961   ac_cv_search_gethostbyname_r=$ac_res
7962 else
7963   $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966
7967 fi
7968
7969 rm -rf conftest.dSYM
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7971       conftest$ac_exeext
7972   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7973   break
7974 fi
7975 done
7976 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7977   :
7978 else
7979   ac_cv_search_gethostbyname_r=no
7980 fi
7981 rm conftest.$ac_ext
7982 LIBS=$ac_func_search_save_LIBS
7983 fi
7984 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7985 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7986 ac_res=$ac_cv_search_gethostbyname_r
7987 if test "$ac_res" != no; then
7988   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7989
7990 fi
7991
7992 # Cygwin:
7993 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7994 $as_echo_n "checking for library containing shmget... " >&6; }
7995 if test "${ac_cv_search_shmget+set}" = set; then
7996   $as_echo_n "(cached) " >&6
7997 else
7998   ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006 /* Override any GCC internal prototype to avoid an error.
8007    Use char because int might match the return type of a GCC
8008    builtin and then its argument prototype would still apply.  */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char shmget ();
8013 int
8014 main ()
8015 {
8016 return shmget ();
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 for ac_lib in '' cygipc; do
8022   if test -z "$ac_lib"; then
8023     ac_res="none required"
8024   else
8025     ac_res=-l$ac_lib
8026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8027   fi
8028   rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032   *) ac_try_echo=$ac_try;;
8033 esac
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036   (eval "$ac_link") 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } && {
8043          test -z "$ac_c_werror_flag" ||
8044          test ! -s conftest.err
8045        } && test -s conftest$ac_exeext && {
8046          test "$cross_compiling" = yes ||
8047          $as_test_x conftest$ac_exeext
8048        }; then
8049   ac_cv_search_shmget=$ac_res
8050 else
8051   $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054
8055 fi
8056
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059       conftest$ac_exeext
8060   if test "${ac_cv_search_shmget+set}" = set; then
8061   break
8062 fi
8063 done
8064 if test "${ac_cv_search_shmget+set}" = set; then
8065   :
8066 else
8067   ac_cv_search_shmget=no
8068 fi
8069 rm conftest.$ac_ext
8070 LIBS=$ac_func_search_save_LIBS
8071 fi
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8073 $as_echo "$ac_cv_search_shmget" >&6; }
8074 ac_res=$ac_cv_search_shmget
8075 if test "$ac_res" != no; then
8076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8077
8078 fi
8079
8080
8081 if test "$with_readline" = yes; then
8082
8083
8084 if test "${pgac_cv_check_readline+set}" = set; then
8085   $as_echo_n "(cached) " >&6
8086 else
8087   pgac_cv_check_readline=no
8088 pgac_save_LIBS=$LIBS
8089 if test x"$with_libedit_preferred" != x"yes"
8090 then    READLINE_ORDER="-lreadline -ledit"
8091 else    READLINE_ORDER="-ledit -lreadline"
8092 fi
8093 for pgac_rllib in $READLINE_ORDER ; do
8094   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8095 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8096   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8097     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8098     cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104
8105 /* Override any GCC internal prototype to avoid an error.
8106    Use char because int might match the return type of a GCC
8107    builtin and then its argument prototype would still apply.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 char readline ();
8112 int
8113 main ()
8114 {
8115 return readline ();
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8122 case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128   (eval "$ac_link") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_c_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest$ac_exeext && {
8138          test "$cross_compiling" = yes ||
8139          $as_test_x conftest$ac_exeext
8140        }; then
8141
8142       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8143       # recognize dependent libraries; assume curses is needed if we didn't
8144       # find any dependency.
8145       case $host_os in
8146         netbsd* | openbsd* | irix*)
8147           if test x"$pgac_lib" = x"" ; then
8148             pgac_lib=" -lcurses"
8149           fi ;;
8150       esac
8151
8152       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8153       break
8154
8155 else
8156   $as_echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159
8160 fi
8161
8162 rm -rf conftest.dSYM
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164       conftest$ac_exeext conftest.$ac_ext
8165   done
8166   if test "$pgac_cv_check_readline" != no ; then
8167     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8168 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8169     break
8170   else
8171     { $as_echo "$as_me:$LINENO: result: no" >&5
8172 $as_echo "no" >&6; }
8173   fi
8174 done
8175 LIBS=$pgac_save_LIBS
8176
8177 fi
8178
8179 if test "$pgac_cv_check_readline" != no ; then
8180   LIBS="$pgac_cv_check_readline $LIBS"
8181
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_LIBREADLINE 1
8184 _ACEOF
8185
8186 fi
8187
8188
8189   if test x"$pgac_cv_check_readline" = x"no"; then
8190     { { $as_echo "$as_me:$LINENO: error: readline library not found
8191 If you have readline already installed, see config.log for details on the
8192 failure.  It is possible the compiler isn't looking in the proper directory.
8193 Use --without-readline to disable readline support." >&5
8194 $as_echo "$as_me: error: readline library not found
8195 If you have readline already installed, see config.log for details on the
8196 failure.  It is possible the compiler isn't looking in the proper directory.
8197 Use --without-readline to disable readline support." >&2;}
8198    { (exit 1); exit 1; }; }
8199   fi
8200 fi
8201
8202 if test "$with_zlib" = yes; then
8203
8204 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8205 $as_echo_n "checking for inflate in -lz... " >&6; }
8206 if test "${ac_cv_lib_z_inflate+set}" = set; then
8207   $as_echo_n "(cached) " >&6
8208 else
8209   ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-lz  $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 /* Override any GCC internal prototype to avoid an error.
8219    Use char because int might match the return type of a GCC
8220    builtin and then its argument prototype would still apply.  */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char inflate ();
8225 int
8226 main ()
8227 {
8228 return inflate ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8240 $as_echo "$ac_try_echo") >&5
8241   (eval "$ac_link") 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } && {
8248          test -z "$ac_c_werror_flag" ||
8249          test ! -s conftest.err
8250        } && test -s conftest$ac_exeext && {
8251          test "$cross_compiling" = yes ||
8252          $as_test_x conftest$ac_exeext
8253        }; then
8254   ac_cv_lib_z_inflate=yes
8255 else
8256   $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259         ac_cv_lib_z_inflate=no
8260 fi
8261
8262 rm -rf conftest.dSYM
8263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8264       conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8268 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8269 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8270   cat >>confdefs.h <<_ACEOF
8271 #define HAVE_LIBZ 1
8272 _ACEOF
8273
8274   LIBS="-lz $LIBS"
8275
8276 else
8277   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure.  It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&5
8281 $as_echo "$as_me: error: zlib library not found
8282 If you have zlib already installed, see config.log for details on the
8283 failure.  It is possible the compiler isn't looking in the proper directory.
8284 Use --without-zlib to disable zlib support." >&2;}
8285    { (exit 1); exit 1; }; }
8286 fi
8287
8288 fi
8289
8290 if test "$enable_spinlocks" = yes; then
8291
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_SPINLOCKS 1
8294 _ACEOF
8295
8296 else
8297   { $as_echo "$as_me:$LINENO: WARNING:
8298 *** Not using spinlocks will cause poor performance." >&5
8299 $as_echo "$as_me: WARNING:
8300 *** Not using spinlocks will cause poor performance." >&2;}
8301 fi
8302
8303 if test "$with_gssapi" = yes ; then
8304   if test "$PORTNAME" != "win32"; then
8305     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8306 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8307 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8308   $as_echo_n "(cached) " >&6
8309 else
8310   ac_func_search_save_LIBS=$LIBS
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317
8318 /* Override any GCC internal prototype to avoid an error.
8319    Use char because int might match the return type of a GCC
8320    builtin and then its argument prototype would still apply.  */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 char gss_init_sec_context ();
8325 int
8326 main ()
8327 {
8328 return gss_init_sec_context ();
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8334   if test -z "$ac_lib"; then
8335     ac_res="none required"
8336   else
8337     ac_res=-l$ac_lib
8338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8339   fi
8340   rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8342 case "(($ac_try" in
8343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344   *) ac_try_echo=$ac_try;;
8345 esac
8346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347 $as_echo "$ac_try_echo") >&5
8348   (eval "$ac_link") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } && {
8355          test -z "$ac_c_werror_flag" ||
8356          test ! -s conftest.err
8357        } && test -s conftest$ac_exeext && {
8358          test "$cross_compiling" = yes ||
8359          $as_test_x conftest$ac_exeext
8360        }; then
8361   ac_cv_search_gss_init_sec_context=$ac_res
8362 else
8363   $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366
8367 fi
8368
8369 rm -rf conftest.dSYM
8370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8371       conftest$ac_exeext
8372   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8373   break
8374 fi
8375 done
8376 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8377   :
8378 else
8379   ac_cv_search_gss_init_sec_context=no
8380 fi
8381 rm conftest.$ac_ext
8382 LIBS=$ac_func_search_save_LIBS
8383 fi
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8385 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8386 ac_res=$ac_cv_search_gss_init_sec_context
8387 if test "$ac_res" != no; then
8388   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8389
8390 else
8391   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8392 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8393    { (exit 1); exit 1; }; }
8394 fi
8395
8396   else
8397     LIBS="$LIBS -lgssapi32"
8398   fi
8399 fi
8400
8401 if test "$with_krb5" = yes ; then
8402   if test "$PORTNAME" != "win32"; then
8403      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 $as_echo_n "checking for library containing com_err... " >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406   $as_echo_n "(cached) " >&6
8407 else
8408   ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415
8416 /* Override any GCC internal prototype to avoid an error.
8417    Use char because int might match the return type of a GCC
8418    builtin and then its argument prototype would still apply.  */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char com_err ();
8423 int
8424 main ()
8425 {
8426 return com_err ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8432   if test -z "$ac_lib"; then
8433     ac_res="none required"
8434   else
8435     ac_res=-l$ac_lib
8436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8437   fi
8438   rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442   *) ac_try_echo=$ac_try;;
8443 esac
8444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445 $as_echo "$ac_try_echo") >&5
8446   (eval "$ac_link") 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } && {
8453          test -z "$ac_c_werror_flag" ||
8454          test ! -s conftest.err
8455        } && test -s conftest$ac_exeext && {
8456          test "$cross_compiling" = yes ||
8457          $as_test_x conftest$ac_exeext
8458        }; then
8459   ac_cv_search_com_err=$ac_res
8460 else
8461   $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464
8465 fi
8466
8467 rm -rf conftest.dSYM
8468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8469       conftest$ac_exeext
8470   if test "${ac_cv_search_com_err+set}" = set; then
8471   break
8472 fi
8473 done
8474 if test "${ac_cv_search_com_err+set}" = set; then
8475   :
8476 else
8477   ac_cv_search_com_err=no
8478 fi
8479 rm conftest.$ac_ext
8480 LIBS=$ac_func_search_save_LIBS
8481 fi
8482 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8483 $as_echo "$ac_cv_search_com_err" >&6; }
8484 ac_res=$ac_cv_search_com_err
8485 if test "$ac_res" != no; then
8486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8487
8488 else
8489   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8490 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8491    { (exit 1); exit 1; }; }
8492 fi
8493
8494      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8495 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8496 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8497   $as_echo_n "(cached) " >&6
8498 else
8499   ac_func_search_save_LIBS=$LIBS
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 /* Override any GCC internal prototype to avoid an error.
8508    Use char because int might match the return type of a GCC
8509    builtin and then its argument prototype would still apply.  */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 char krb5_sendauth ();
8514 int
8515 main ()
8516 {
8517 return krb5_sendauth ();
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8523   if test -z "$ac_lib"; then
8524     ac_res="none required"
8525   else
8526     ac_res=-l$ac_lib
8527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8528   fi
8529   rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (ac_try="$ac_link"
8531 case "(($ac_try" in
8532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533   *) ac_try_echo=$ac_try;;
8534 esac
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537   (eval "$ac_link") 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } && {
8544          test -z "$ac_c_werror_flag" ||
8545          test ! -s conftest.err
8546        } && test -s conftest$ac_exeext && {
8547          test "$cross_compiling" = yes ||
8548          $as_test_x conftest$ac_exeext
8549        }; then
8550   ac_cv_search_krb5_sendauth=$ac_res
8551 else
8552   $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555
8556 fi
8557
8558 rm -rf conftest.dSYM
8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8560       conftest$ac_exeext
8561   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8562   break
8563 fi
8564 done
8565 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8566   :
8567 else
8568   ac_cv_search_krb5_sendauth=no
8569 fi
8570 rm conftest.$ac_ext
8571 LIBS=$ac_func_search_save_LIBS
8572 fi
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8574 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8575 ac_res=$ac_cv_search_krb5_sendauth
8576 if test "$ac_res" != no; then
8577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8578
8579 else
8580   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8581 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8582    { (exit 1); exit 1; }; }
8583 fi
8584
8585   else
8586      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8587 $as_echo_n "checking for library containing com_err... " >&6; }
8588 if test "${ac_cv_search_com_err+set}" = set; then
8589   $as_echo_n "(cached) " >&6
8590 else
8591   ac_func_search_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598
8599 /* Override any GCC internal prototype to avoid an error.
8600    Use char because int might match the return type of a GCC
8601    builtin and then its argument prototype would still apply.  */
8602 #ifdef __cplusplus
8603 extern "C"
8604 #endif
8605 char com_err ();
8606 int
8607 main ()
8608 {
8609 return com_err ();
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8615   if test -z "$ac_lib"; then
8616     ac_res="none required"
8617   else
8618     ac_res=-l$ac_lib
8619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8620   fi
8621   rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8623 case "(($ac_try" in
8624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625   *) ac_try_echo=$ac_try;;
8626 esac
8627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629   (eval "$ac_link") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } && {
8636          test -z "$ac_c_werror_flag" ||
8637          test ! -s conftest.err
8638        } && test -s conftest$ac_exeext && {
8639          test "$cross_compiling" = yes ||
8640          $as_test_x conftest$ac_exeext
8641        }; then
8642   ac_cv_search_com_err=$ac_res
8643 else
8644   $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
8648 fi
8649
8650 rm -rf conftest.dSYM
8651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8652       conftest$ac_exeext
8653   if test "${ac_cv_search_com_err+set}" = set; then
8654   break
8655 fi
8656 done
8657 if test "${ac_cv_search_com_err+set}" = set; then
8658   :
8659 else
8660   ac_cv_search_com_err=no
8661 fi
8662 rm conftest.$ac_ext
8663 LIBS=$ac_func_search_save_LIBS
8664 fi
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8666 $as_echo "$ac_cv_search_com_err" >&6; }
8667 ac_res=$ac_cv_search_com_err
8668 if test "$ac_res" != no; then
8669   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8670
8671 else
8672   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8673 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8674    { (exit 1); exit 1; }; }
8675 fi
8676
8677   fi
8678 fi
8679
8680 if test "$with_openssl" = yes ; then
8681     if test "$PORTNAME" != "win32"; then
8682
8683 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8684 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8685 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8686   $as_echo_n "(cached) " >&6
8687 else
8688   ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lcrypto  $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any GCC internal prototype to avoid an error.
8698    Use char because int might match the return type of a GCC
8699    builtin and then its argument prototype would still apply.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char CRYPTO_new_ex_data ();
8704 int
8705 main ()
8706 {
8707 return CRYPTO_new_ex_data ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8714 case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720   (eval "$ac_link") 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
8724   cat conftest.err >&5
8725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } && {
8727          test -z "$ac_c_werror_flag" ||
8728          test ! -s conftest.err
8729        } && test -s conftest$ac_exeext && {
8730          test "$cross_compiling" = yes ||
8731          $as_test_x conftest$ac_exeext
8732        }; then
8733   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8734 else
8735   $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8739 fi
8740
8741 rm -rf conftest.dSYM
8742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743       conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8745 fi
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8747 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8748 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8749   cat >>confdefs.h <<_ACEOF
8750 #define HAVE_LIBCRYPTO 1
8751 _ACEOF
8752
8753   LIBS="-lcrypto $LIBS"
8754
8755 else
8756   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8757 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8758    { (exit 1); exit 1; }; }
8759 fi
8760
8761
8762 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8763 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8764 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8765   $as_echo_n "(cached) " >&6
8766 else
8767   ac_check_lib_save_LIBS=$LIBS
8768 LIBS="-lssl  $LIBS"
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775
8776 /* Override any GCC internal prototype to avoid an error.
8777    Use char because int might match the return type of a GCC
8778    builtin and then its argument prototype would still apply.  */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 char SSL_library_init ();
8783 int
8784 main ()
8785 {
8786 return SSL_library_init ();
8787   ;
8788   return 0;
8789 }
8790 _ACEOF
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8793 case "(($ac_try" in
8794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795   *) ac_try_echo=$ac_try;;
8796 esac
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799   (eval "$ac_link") 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } && {
8806          test -z "$ac_c_werror_flag" ||
8807          test ! -s conftest.err
8808        } && test -s conftest$ac_exeext && {
8809          test "$cross_compiling" = yes ||
8810          $as_test_x conftest$ac_exeext
8811        }; then
8812   ac_cv_lib_ssl_SSL_library_init=yes
8813 else
8814   $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8816
8817         ac_cv_lib_ssl_SSL_library_init=no
8818 fi
8819
8820 rm -rf conftest.dSYM
8821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8822       conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8824 fi
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8826 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8827 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8828   cat >>confdefs.h <<_ACEOF
8829 #define HAVE_LIBSSL 1
8830 _ACEOF
8831
8832   LIBS="-lssl $LIBS"
8833
8834 else
8835   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8836 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8837    { (exit 1); exit 1; }; }
8838 fi
8839
8840   else
8841
8842 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8843 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8844 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8845   $as_echo_n "(cached) " >&6
8846 else
8847   ac_check_lib_save_LIBS=$LIBS
8848 LIBS="-leay32  $LIBS"
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h.  */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h.  */
8855
8856 /* Override any GCC internal prototype to avoid an error.
8857    Use char because int might match the return type of a GCC
8858    builtin and then its argument prototype would still apply.  */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char CRYPTO_new_ex_data ();
8863 int
8864 main ()
8865 {
8866 return CRYPTO_new_ex_data ();
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875   *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879   (eval "$ac_link") 2>conftest.er1
8880   ac_status=$?
8881   grep -v '^ *+' conftest.er1 >conftest.err
8882   rm -f conftest.er1
8883   cat conftest.err >&5
8884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } && {
8886          test -z "$ac_c_werror_flag" ||
8887          test ! -s conftest.err
8888        } && test -s conftest$ac_exeext && {
8889          test "$cross_compiling" = yes ||
8890          $as_test_x conftest$ac_exeext
8891        }; then
8892   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8893 else
8894   $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8898 fi
8899
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902       conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8904 fi
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8906 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8907 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8908   cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBEAY32 1
8910 _ACEOF
8911
8912   LIBS="-leay32 $LIBS"
8913
8914 else
8915   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8916 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8917    { (exit 1); exit 1; }; }
8918 fi
8919
8920
8921 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8922 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8923 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8924   $as_echo_n "(cached) " >&6
8925 else
8926   ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lssleay32  $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934
8935 /* Override any GCC internal prototype to avoid an error.
8936    Use char because int might match the return type of a GCC
8937    builtin and then its argument prototype would still apply.  */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 char SSL_library_init ();
8942 int
8943 main ()
8944 {
8945 return SSL_library_init ();
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8952 case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958   (eval "$ac_link") 2>conftest.er1
8959   ac_status=$?
8960   grep -v '^ *+' conftest.er1 >conftest.err
8961   rm -f conftest.er1
8962   cat conftest.err >&5
8963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } && {
8965          test -z "$ac_c_werror_flag" ||
8966          test ! -s conftest.err
8967        } && test -s conftest$ac_exeext && {
8968          test "$cross_compiling" = yes ||
8969          $as_test_x conftest$ac_exeext
8970        }; then
8971   ac_cv_lib_ssleay32_SSL_library_init=yes
8972 else
8973   $as_echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8975
8976         ac_cv_lib_ssleay32_SSL_library_init=no
8977 fi
8978
8979 rm -rf conftest.dSYM
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981       conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8983 fi
8984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8985 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8986 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8987   cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBSSLEAY32 1
8989 _ACEOF
8990
8991   LIBS="-lssleay32 $LIBS"
8992
8993 else
8994   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8995 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8996    { (exit 1); exit 1; }; }
8997 fi
8998
8999   fi
9000 fi
9001
9002 if test "$with_pam" = yes ; then
9003
9004 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9005 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9006 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9007   $as_echo_n "(cached) " >&6
9008 else
9009   ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lpam  $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017
9018 /* Override any GCC internal prototype to avoid an error.
9019    Use char because int might match the return type of a GCC
9020    builtin and then its argument prototype would still apply.  */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char pam_start ();
9025 int
9026 main ()
9027 {
9028 return pam_start ();
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9035 case "(($ac_try" in
9036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037   *) ac_try_echo=$ac_try;;
9038 esac
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041   (eval "$ac_link") 2>conftest.er1
9042   ac_status=$?
9043   grep -v '^ *+' conftest.er1 >conftest.err
9044   rm -f conftest.er1
9045   cat conftest.err >&5
9046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } && {
9048          test -z "$ac_c_werror_flag" ||
9049          test ! -s conftest.err
9050        } && test -s conftest$ac_exeext && {
9051          test "$cross_compiling" = yes ||
9052          $as_test_x conftest$ac_exeext
9053        }; then
9054   ac_cv_lib_pam_pam_start=yes
9055 else
9056   $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059         ac_cv_lib_pam_pam_start=no
9060 fi
9061
9062 rm -rf conftest.dSYM
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064       conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9066 fi
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9068 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9069 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9070   cat >>confdefs.h <<_ACEOF
9071 #define HAVE_LIBPAM 1
9072 _ACEOF
9073
9074   LIBS="-lpam $LIBS"
9075
9076 else
9077   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9078 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9079    { (exit 1); exit 1; }; }
9080 fi
9081
9082 fi
9083
9084 if test "$with_libxml" = yes ; then
9085
9086 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9087 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9088 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9089   $as_echo_n "(cached) " >&6
9090 else
9091   ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lxml2  $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any GCC internal prototype to avoid an error.
9101    Use char because int might match the return type of a GCC
9102    builtin and then its argument prototype would still apply.  */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char xmlSaveToBuffer ();
9107 int
9108 main ()
9109 {
9110 return xmlSaveToBuffer ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119   *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123   (eval "$ac_link") 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } && {
9130          test -z "$ac_c_werror_flag" ||
9131          test ! -s conftest.err
9132        } && test -s conftest$ac_exeext && {
9133          test "$cross_compiling" = yes ||
9134          $as_test_x conftest$ac_exeext
9135        }; then
9136   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9137 else
9138   $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141         ac_cv_lib_xml2_xmlSaveToBuffer=no
9142 fi
9143
9144 rm -rf conftest.dSYM
9145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9146       conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9148 fi
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9150 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9151 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9152   cat >>confdefs.h <<_ACEOF
9153 #define HAVE_LIBXML2 1
9154 _ACEOF
9155
9156   LIBS="-lxml2 $LIBS"
9157
9158 else
9159   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9160 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9161    { (exit 1); exit 1; }; }
9162 fi
9163
9164 fi
9165
9166 if test "$with_libxslt" = yes ; then
9167
9168 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9169 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9170 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9171   $as_echo_n "(cached) " >&6
9172 else
9173   ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-lxslt  $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181
9182 /* Override any GCC internal prototype to avoid an error.
9183    Use char because int might match the return type of a GCC
9184    builtin and then its argument prototype would still apply.  */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char xsltCleanupGlobals ();
9189 int
9190 main ()
9191 {
9192 return xsltCleanupGlobals ();
9193   ;
9194   return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9199 case "(($ac_try" in
9200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201   *) ac_try_echo=$ac_try;;
9202 esac
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205   (eval "$ac_link") 2>conftest.er1
9206   ac_status=$?
9207   grep -v '^ *+' conftest.er1 >conftest.err
9208   rm -f conftest.er1
9209   cat conftest.err >&5
9210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); } && {
9212          test -z "$ac_c_werror_flag" ||
9213          test ! -s conftest.err
9214        } && test -s conftest$ac_exeext && {
9215          test "$cross_compiling" = yes ||
9216          $as_test_x conftest$ac_exeext
9217        }; then
9218   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9219 else
9220   $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223         ac_cv_lib_xslt_xsltCleanupGlobals=no
9224 fi
9225
9226 rm -rf conftest.dSYM
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228       conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9230 fi
9231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9232 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9233 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9234   cat >>confdefs.h <<_ACEOF
9235 #define HAVE_LIBXSLT 1
9236 _ACEOF
9237
9238   LIBS="-lxslt $LIBS"
9239
9240 else
9241   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9242 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9243    { (exit 1); exit 1; }; }
9244 fi
9245
9246 fi
9247
9248 # for contrib/uuid-ossp
9249 if test "$with_ossp_uuid" = yes ; then
9250   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9251 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9252 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9253   $as_echo_n "(cached) " >&6
9254 else
9255   ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lossp-uuid  $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263
9264 /* Override any GCC internal prototype to avoid an error.
9265    Use char because int might match the return type of a GCC
9266    builtin and then its argument prototype would still apply.  */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char uuid_export ();
9271 int
9272 main ()
9273 {
9274 return uuid_export ();
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9286 $as_echo "$ac_try_echo") >&5
9287   (eval "$ac_link") 2>conftest.er1
9288   ac_status=$?
9289   grep -v '^ *+' conftest.er1 >conftest.err
9290   rm -f conftest.er1
9291   cat conftest.err >&5
9292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); } && {
9294          test -z "$ac_c_werror_flag" ||
9295          test ! -s conftest.err
9296        } && test -s conftest$ac_exeext && {
9297          test "$cross_compiling" = yes ||
9298          $as_test_x conftest$ac_exeext
9299        }; then
9300   ac_cv_lib_ossp_uuid_uuid_export=yes
9301 else
9302   $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305         ac_cv_lib_ossp_uuid_uuid_export=no
9306 fi
9307
9308 rm -rf conftest.dSYM
9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9310       conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9314 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9315 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9316   OSSP_UUID_LIBS="-lossp-uuid"
9317 else
9318   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9319 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9320 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9321   $as_echo_n "(cached) " >&6
9322 else
9323   ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-luuid  $LIBS"
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 /* Override any GCC internal prototype to avoid an error.
9333    Use char because int might match the return type of a GCC
9334    builtin and then its argument prototype would still apply.  */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 char uuid_export ();
9339 int
9340 main ()
9341 {
9342 return uuid_export ();
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (ac_try="$ac_link"
9349 case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355   (eval "$ac_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_c_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest$ac_exeext && {
9365          test "$cross_compiling" = yes ||
9366          $as_test_x conftest$ac_exeext
9367        }; then
9368   ac_cv_lib_uuid_uuid_export=yes
9369 else
9370   $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373         ac_cv_lib_uuid_uuid_export=no
9374 fi
9375
9376 rm -rf conftest.dSYM
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378       conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9380 fi
9381 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9382 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9383 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9384   OSSP_UUID_LIBS="-luuid"
9385 else
9386   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9387 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9388    { (exit 1); exit 1; }; }
9389 fi
9390
9391 fi
9392
9393 fi
9394
9395
9396
9397 ##
9398 ## Header files
9399 ##
9400
9401 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9402 $as_echo_n "checking for ANSI C header files... " >&6; }
9403 if test "${ac_cv_header_stdc+set}" = set; then
9404   $as_echo_n "(cached) " >&6
9405 else
9406   cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <stdlib.h>
9413 #include <stdarg.h>
9414 #include <string.h>
9415 #include <float.h>
9416
9417 int
9418 main ()
9419 {
9420
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext
9426 if { (ac_try="$ac_compile"
9427 case "(($ac_try" in
9428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429   *) ac_try_echo=$ac_try;;
9430 esac
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433   (eval "$ac_compile") 2>conftest.er1
9434   ac_status=$?
9435   grep -v '^ *+' conftest.er1 >conftest.err
9436   rm -f conftest.er1
9437   cat conftest.err >&5
9438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && {
9440          test -z "$ac_c_werror_flag" ||
9441          test ! -s conftest.err
9442        } && test -s conftest.$ac_objext; then
9443   ac_cv_header_stdc=yes
9444 else
9445   $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448         ac_cv_header_stdc=no
9449 fi
9450
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452
9453 if test $ac_cv_header_stdc = yes; then
9454   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9455   cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461 #include <string.h>
9462
9463 _ACEOF
9464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465   $EGREP "memchr" >/dev/null 2>&1; then
9466   :
9467 else
9468   ac_cv_header_stdc=no
9469 fi
9470 rm -f conftest*
9471
9472 fi
9473
9474 if test $ac_cv_header_stdc = yes; then
9475   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9476   cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 #include <stdlib.h>
9483
9484 _ACEOF
9485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9486   $EGREP "free" >/dev/null 2>&1; then
9487   :
9488 else
9489   ac_cv_header_stdc=no
9490 fi
9491 rm -f conftest*
9492
9493 fi
9494
9495 if test $ac_cv_header_stdc = yes; then
9496   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9497   if test "$cross_compiling" = yes; then
9498   :
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506 #include <ctype.h>
9507 #include <stdlib.h>
9508 #if ((' ' & 0x0FF) == 0x020)
9509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9511 #else
9512 # define ISLOWER(c) \
9513                    (('a' <= (c) && (c) <= 'i') \
9514                      || ('j' <= (c) && (c) <= 'r') \
9515                      || ('s' <= (c) && (c) <= 'z'))
9516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9517 #endif
9518
9519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9520 int
9521 main ()
9522 {
9523   int i;
9524   for (i = 0; i < 256; i++)
9525     if (XOR (islower (i), ISLOWER (i))
9526         || toupper (i) != TOUPPER (i))
9527       return 2;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9533 case "(($ac_try" in
9534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535   *) ac_try_echo=$ac_try;;
9536 esac
9537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539   (eval "$ac_link") 2>&5
9540   ac_status=$?
9541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9543   { (case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549   (eval "$ac_try") 2>&5
9550   ac_status=$?
9551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; }; then
9553   :
9554 else
9555   $as_echo "$as_me: program exited with status $ac_status" >&5
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ( exit $ac_status )
9560 ac_cv_header_stdc=no
9561 fi
9562 rm -rf conftest.dSYM
9563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9564 fi
9565
9566
9567 fi
9568 fi
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9570 $as_echo "$ac_cv_header_stdc" >&6; }
9571 if test $ac_cv_header_stdc = yes; then
9572
9573 cat >>confdefs.h <<\_ACEOF
9574 #define STDC_HEADERS 1
9575 _ACEOF
9576
9577 fi
9578
9579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9590                   inttypes.h stdint.h unistd.h
9591 do
9592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 $as_echo_n "checking for $ac_header... " >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596   $as_echo_n "(cached) " >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 $ac_includes_default
9605
9606 #include <$ac_header>
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (ac_try="$ac_compile"
9610 case "(($ac_try" in
9611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612   *) ac_try_echo=$ac_try;;
9613 esac
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616   (eval "$ac_compile") 2>conftest.er1
9617   ac_status=$?
9618   grep -v '^ *+' conftest.er1 >conftest.err
9619   rm -f conftest.er1
9620   cat conftest.err >&5
9621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } && {
9623          test -z "$ac_c_werror_flag" ||
9624          test ! -s conftest.err
9625        } && test -s conftest.$ac_objext; then
9626   eval "$as_ac_Header=yes"
9627 else
9628   $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631         eval "$as_ac_Header=no"
9632 fi
9633
9634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635 fi
9636 ac_res=`eval 'as_val=${'$as_ac_Header'}
9637                  $as_echo "$as_val"'`
9638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9639 $as_echo "$ac_res" >&6; }
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641                  $as_echo "$as_val"'`
9642    if test "x$as_val" = x""yes; then
9643   cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9645 _ACEOF
9646
9647 fi
9648
9649 done
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9683 do
9684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689   $as_echo_n "(cached) " >&6
9690 fi
9691 ac_res=`eval 'as_val=${'$as_ac_Header'}
9692                  $as_echo "$as_val"'`
9693                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9695 else
9696   # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 $ac_includes_default
9706 #include <$ac_header>
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (ac_try="$ac_compile"
9710 case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716   (eval "$ac_compile") 2>conftest.er1
9717   ac_status=$?
9718   grep -v '^ *+' conftest.er1 >conftest.err
9719   rm -f conftest.er1
9720   cat conftest.err >&5
9721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } && {
9723          test -z "$ac_c_werror_flag" ||
9724          test ! -s conftest.err
9725        } && test -s conftest.$ac_objext; then
9726   ac_header_compiler=yes
9727 else
9728   $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         ac_header_compiler=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9737
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h.  */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h.  */
9747 #include <$ac_header>
9748 _ACEOF
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9750 case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } >/dev/null && {
9763          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764          test ! -s conftest.err
9765        }; then
9766   ac_header_preproc=yes
9767 else
9768   $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771   ac_header_preproc=no
9772 fi
9773
9774 rm -f conftest.err conftest.$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9777
9778 # So?  What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780   yes:no: )
9781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785     ac_header_preproc=yes
9786     ;;
9787   no:yes:* )
9788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9800     ( cat <<\_ASBOX
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9804 _ASBOX
9805      ) | sed "s/^/$as_me: WARNING:     /" >&2
9806     ;;
9807 esac
9808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 $as_echo_n "checking for $ac_header... " >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811   $as_echo_n "(cached) " >&6
9812 else
9813   eval "$as_ac_Header=\$ac_header_preproc"
9814 fi
9815 ac_res=`eval 'as_val=${'$as_ac_Header'}
9816                  $as_echo "$as_val"'`
9817                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9818 $as_echo "$ac_res" >&6; }
9819
9820 fi
9821 as_val=`eval 'as_val=${'$as_ac_Header'}
9822                  $as_echo "$as_val"'`
9823    if test "x$as_val" = x""yes; then
9824   cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9827
9828 fi
9829
9830 done
9831
9832
9833 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9834 # is included first.
9835
9836 for ac_header in net/if.h
9837 do
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 $as_echo_n "checking for $ac_header... " >&6; }
9841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9842   $as_echo_n "(cached) " >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850 $ac_includes_default
9851 #ifdef HAVE_SYS_SOCKET_H
9852 #include <sys/socket.h>
9853 #endif
9854
9855
9856 #include <$ac_header>
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9860 case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866   (eval "$ac_compile") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } && {
9873          test -z "$ac_c_werror_flag" ||
9874          test ! -s conftest.err
9875        } && test -s conftest.$ac_objext; then
9876   eval "$as_ac_Header=yes"
9877 else
9878   $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881         eval "$as_ac_Header=no"
9882 fi
9883
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 fi
9886 ac_res=`eval 'as_val=${'$as_ac_Header'}
9887                  $as_echo "$as_val"'`
9888                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889 $as_echo "$ac_res" >&6; }
9890 as_val=`eval 'as_val=${'$as_ac_Header'}
9891                  $as_echo "$as_val"'`
9892    if test "x$as_val" = x""yes; then
9893   cat >>confdefs.h <<_ACEOF
9894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895 _ACEOF
9896
9897 fi
9898
9899 done
9900
9901
9902 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9903 # netinet/in.h is included first.
9904
9905 for ac_header in netinet/in.h
9906 do
9907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9909   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 $as_echo_n "checking for $ac_header... " >&6; }
9911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912   $as_echo_n "(cached) " >&6
9913 fi
9914 ac_res=`eval 'as_val=${'$as_ac_Header'}
9915                  $as_echo "$as_val"'`
9916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9917 $as_echo "$ac_res" >&6; }
9918 else
9919   # Is the header compilable?
9920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9921 $as_echo_n "checking $ac_header usability... " >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 $ac_includes_default
9929 #include <$ac_header>
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9933 case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9938 $as_echo "$ac_try_echo") >&5
9939   (eval "$ac_compile") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } && {
9946          test -z "$ac_c_werror_flag" ||
9947          test ! -s conftest.err
9948        } && test -s conftest.$ac_objext; then
9949   ac_header_compiler=yes
9950 else
9951   $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954         ac_header_compiler=no
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9959 $as_echo "$ac_header_compiler" >&6; }
9960
9961 # Is the header present?
9962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9963 $as_echo_n "checking $ac_header presence... " >&6; }
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 #include <$ac_header>
9971 _ACEOF
9972 if { (ac_try="$ac_cpp conftest.$ac_ext"
9973 case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9980   ac_status=$?
9981   grep -v '^ *+' conftest.er1 >conftest.err
9982   rm -f conftest.er1
9983   cat conftest.err >&5
9984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); } >/dev/null && {
9986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9987          test ! -s conftest.err
9988        }; then
9989   ac_header_preproc=yes
9990 else
9991   $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994   ac_header_preproc=no
9995 fi
9996
9997 rm -f conftest.err conftest.$ac_ext
9998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 $as_echo "$ac_header_preproc" >&6; }
10000
10001 # So?  What about this header?
10002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10003   yes:no: )
10004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10008     ac_header_preproc=yes
10009     ;;
10010   no:yes:* )
10011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10014 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10018 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10023     ( cat <<\_ASBOX
10024 ## ---------------------------------------- ##
10025 ## Report this to pgsql-bugs@postgresql.org ##
10026 ## ---------------------------------------- ##
10027 _ASBOX
10028      ) | sed "s/^/$as_me: WARNING:     /" >&2
10029     ;;
10030 esac
10031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034   $as_echo_n "(cached) " >&6
10035 else
10036   eval "$as_ac_Header=\$ac_header_preproc"
10037 fi
10038 ac_res=`eval 'as_val=${'$as_ac_Header'}
10039                  $as_echo "$as_val"'`
10040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10041 $as_echo "$ac_res" >&6; }
10042
10043 fi
10044 as_val=`eval 'as_val=${'$as_ac_Header'}
10045                  $as_echo "$as_val"'`
10046    if test "x$as_val" = x""yes; then
10047   cat >>confdefs.h <<_ACEOF
10048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 _ACEOF
10050
10051 fi
10052
10053 done
10054
10055
10056 for ac_header in netinet/tcp.h
10057 do
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10060 $as_echo_n "checking for $ac_header... " >&6; }
10061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10062   $as_echo_n "(cached) " >&6
10063 else
10064   cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 $ac_includes_default
10071 #ifdef HAVE_NETINET_IN_H
10072 #include <netinet/in.h>
10073 #endif
10074
10075
10076 #include <$ac_header>
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082   *) ac_try_echo=$ac_try;;
10083 esac
10084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10085 $as_echo "$ac_try_echo") >&5
10086   (eval "$ac_compile") 2>conftest.er1
10087   ac_status=$?
10088   grep -v '^ *+' conftest.er1 >conftest.err
10089   rm -f conftest.er1
10090   cat conftest.err >&5
10091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); } && {
10093          test -z "$ac_c_werror_flag" ||
10094          test ! -s conftest.err
10095        } && test -s conftest.$ac_objext; then
10096   eval "$as_ac_Header=yes"
10097 else
10098   $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101         eval "$as_ac_Header=no"
10102 fi
10103
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 fi
10106 ac_res=`eval 'as_val=${'$as_ac_Header'}
10107                  $as_echo "$as_val"'`
10108                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10109 $as_echo "$ac_res" >&6; }
10110 as_val=`eval 'as_val=${'$as_ac_Header'}
10111                  $as_echo "$as_val"'`
10112    if test "x$as_val" = x""yes; then
10113   cat >>confdefs.h <<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115 _ACEOF
10116
10117 fi
10118
10119 done
10120
10121
10122 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10123
10124 for ac_header in readline/readline.h
10125 do
10126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10128   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 $as_echo_n "checking for $ac_header... " >&6; }
10130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131   $as_echo_n "(cached) " >&6
10132 fi
10133 ac_res=`eval 'as_val=${'$as_ac_Header'}
10134                  $as_echo "$as_val"'`
10135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10136 $as_echo "$ac_res" >&6; }
10137 else
10138   # Is the header compilable?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 $as_echo_n "checking $ac_header usability... " >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147 $ac_includes_default
10148 #include <$ac_header>
10149 _ACEOF
10150 rm -f conftest.$ac_objext
10151 if { (ac_try="$ac_compile"
10152 case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158   (eval "$ac_compile") 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } && {
10165          test -z "$ac_c_werror_flag" ||
10166          test ! -s conftest.err
10167        } && test -s conftest.$ac_objext; then
10168   ac_header_compiler=yes
10169 else
10170   $as_echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173         ac_header_compiler=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178 $as_echo "$ac_header_compiler" >&6; }
10179
10180 # Is the header present?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182 $as_echo_n "checking $ac_header presence... " >&6; }
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189 #include <$ac_header>
10190 _ACEOF
10191 if { (ac_try="$ac_cpp conftest.$ac_ext"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } >/dev/null && {
10205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10206          test ! -s conftest.err
10207        }; then
10208   ac_header_preproc=yes
10209 else
10210   $as_echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213   ac_header_preproc=no
10214 fi
10215
10216 rm -f conftest.err conftest.$ac_ext
10217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10218 $as_echo "$ac_header_preproc" >&6; }
10219
10220 # So?  What about this header?
10221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10222   yes:no: )
10223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10227     ac_header_preproc=yes
10228     ;;
10229   no:yes:* )
10230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10233 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10237 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10242     ( cat <<\_ASBOX
10243 ## ---------------------------------------- ##
10244 ## Report this to pgsql-bugs@postgresql.org ##
10245 ## ---------------------------------------- ##
10246 _ASBOX
10247      ) | sed "s/^/$as_me: WARNING:     /" >&2
10248     ;;
10249 esac
10250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 $as_echo_n "checking for $ac_header... " >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253   $as_echo_n "(cached) " >&6
10254 else
10255   eval "$as_ac_Header=\$ac_header_preproc"
10256 fi
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258                  $as_echo "$as_val"'`
10259                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10261
10262 fi
10263 as_val=`eval 'as_val=${'$as_ac_Header'}
10264                  $as_echo "$as_val"'`
10265    if test "x$as_val" = x""yes; then
10266   cat >>confdefs.h <<_ACEOF
10267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268 _ACEOF
10269
10270 else
10271
10272 for ac_header in readline.h
10273 do
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 $as_echo_n "checking for $ac_header... " >&6; }
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279   $as_echo_n "(cached) " >&6
10280 fi
10281 ac_res=`eval 'as_val=${'$as_ac_Header'}
10282                  $as_echo "$as_val"'`
10283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10284 $as_echo "$ac_res" >&6; }
10285 else
10286   # Is the header compilable?
10287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288 $as_echo_n "checking $ac_header usability... " >&6; }
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295 $ac_includes_default
10296 #include <$ac_header>
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305 $as_echo "$ac_try_echo") >&5
10306   (eval "$ac_compile") 2>conftest.er1
10307   ac_status=$?
10308   grep -v '^ *+' conftest.er1 >conftest.err
10309   rm -f conftest.er1
10310   cat conftest.err >&5
10311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); } && {
10313          test -z "$ac_c_werror_flag" ||
10314          test ! -s conftest.err
10315        } && test -s conftest.$ac_objext; then
10316   ac_header_compiler=yes
10317 else
10318   $as_echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321         ac_header_compiler=no
10322 fi
10323
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 $as_echo "$ac_header_compiler" >&6; }
10327
10328 # Is the header present?
10329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 $as_echo_n "checking $ac_header presence... " >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 #include <$ac_header>
10338 _ACEOF
10339 if { (ac_try="$ac_cpp conftest.$ac_ext"
10340 case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10345 $as_echo "$ac_try_echo") >&5
10346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10347   ac_status=$?
10348   grep -v '^ *+' conftest.er1 >conftest.err
10349   rm -f conftest.er1
10350   cat conftest.err >&5
10351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } >/dev/null && {
10353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354          test ! -s conftest.err
10355        }; then
10356   ac_header_preproc=yes
10357 else
10358   $as_echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361   ac_header_preproc=no
10362 fi
10363
10364 rm -f conftest.err conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 $as_echo "$ac_header_preproc" >&6; }
10367
10368 # So?  What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370   yes:no: )
10371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375     ac_header_preproc=yes
10376     ;;
10377   no:yes:* )
10378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10381 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10385 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10390     ( cat <<\_ASBOX
10391 ## ---------------------------------------- ##
10392 ## Report this to pgsql-bugs@postgresql.org ##
10393 ## ---------------------------------------- ##
10394 _ASBOX
10395      ) | sed "s/^/$as_me: WARNING:     /" >&2
10396     ;;
10397 esac
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401   $as_echo_n "(cached) " >&6
10402 else
10403   eval "$as_ac_Header=\$ac_header_preproc"
10404 fi
10405 ac_res=`eval 'as_val=${'$as_ac_Header'}
10406                  $as_echo "$as_val"'`
10407                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10409
10410 fi
10411 as_val=`eval 'as_val=${'$as_ac_Header'}
10412                  $as_echo "$as_val"'`
10413    if test "x$as_val" = x""yes; then
10414   cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10416 _ACEOF
10417
10418 else
10419   { { $as_echo "$as_me:$LINENO: error: readline header not found
10420 If you have readline already installed, see config.log for details on the
10421 failure.  It is possible the compiler isn't looking in the proper directory.
10422 Use --without-readline to disable readline support." >&5
10423 $as_echo "$as_me: error: readline header not found
10424 If you have readline already installed, see config.log for details on the
10425 failure.  It is possible the compiler isn't looking in the proper directory.
10426 Use --without-readline to disable readline support." >&2;}
10427    { (exit 1); exit 1; }; }
10428 fi
10429
10430 done
10431
10432 fi
10433
10434 done
10435
10436
10437 for ac_header in readline/history.h
10438 do
10439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444   $as_echo_n "(cached) " >&6
10445 fi
10446 ac_res=`eval 'as_val=${'$as_ac_Header'}
10447                  $as_echo "$as_val"'`
10448                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10449 $as_echo "$ac_res" >&6; }
10450 else
10451   # Is the header compilable?
10452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10453 $as_echo_n "checking $ac_header usability... " >&6; }
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 $ac_includes_default
10461 #include <$ac_header>
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471   (eval "$ac_compile") 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } && {
10478          test -z "$ac_c_werror_flag" ||
10479          test ! -s conftest.err
10480        } && test -s conftest.$ac_objext; then
10481   ac_header_compiler=yes
10482 else
10483   $as_echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486         ac_header_compiler=no
10487 fi
10488
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 $as_echo "$ac_header_compiler" >&6; }
10492
10493 # Is the header present?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 $as_echo_n "checking $ac_header presence... " >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 #include <$ac_header>
10503 _ACEOF
10504 if { (ac_try="$ac_cpp conftest.$ac_ext"
10505 case "(($ac_try" in
10506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507   *) ac_try_echo=$ac_try;;
10508 esac
10509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10510 $as_echo "$ac_try_echo") >&5
10511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } >/dev/null && {
10518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10519          test ! -s conftest.err
10520        }; then
10521   ac_header_preproc=yes
10522 else
10523   $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526   ac_header_preproc=no
10527 fi
10528
10529 rm -f conftest.err conftest.$ac_ext
10530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 $as_echo "$ac_header_preproc" >&6; }
10532
10533 # So?  What about this header?
10534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10535   yes:no: )
10536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10540     ac_header_preproc=yes
10541     ;;
10542   no:yes:* )
10543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10546 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10550 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10555     ( cat <<\_ASBOX
10556 ## ---------------------------------------- ##
10557 ## Report this to pgsql-bugs@postgresql.org ##
10558 ## ---------------------------------------- ##
10559 _ASBOX
10560      ) | sed "s/^/$as_me: WARNING:     /" >&2
10561     ;;
10562 esac
10563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 $as_echo_n "checking for $ac_header... " >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566   $as_echo_n "(cached) " >&6
10567 else
10568   eval "$as_ac_Header=\$ac_header_preproc"
10569 fi
10570 ac_res=`eval 'as_val=${'$as_ac_Header'}
10571                  $as_echo "$as_val"'`
10572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10573 $as_echo "$ac_res" >&6; }
10574
10575 fi
10576 as_val=`eval 'as_val=${'$as_ac_Header'}
10577                  $as_echo "$as_val"'`
10578    if test "x$as_val" = x""yes; then
10579   cat >>confdefs.h <<_ACEOF
10580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10581 _ACEOF
10582
10583 else
10584
10585 for ac_header in history.h
10586 do
10587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 $as_echo_n "checking for $ac_header... " >&6; }
10591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10592   $as_echo_n "(cached) " >&6
10593 fi
10594 ac_res=`eval 'as_val=${'$as_ac_Header'}
10595                  $as_echo "$as_val"'`
10596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10597 $as_echo "$ac_res" >&6; }
10598 else
10599   # Is the header compilable?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10601 $as_echo_n "checking $ac_header usability... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 $ac_includes_default
10609 #include <$ac_header>
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615   *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619   (eval "$ac_compile") 2>conftest.er1
10620   ac_status=$?
10621   grep -v '^ *+' conftest.er1 >conftest.err
10622   rm -f conftest.er1
10623   cat conftest.err >&5
10624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } && {
10626          test -z "$ac_c_werror_flag" ||
10627          test ! -s conftest.err
10628        } && test -s conftest.$ac_objext; then
10629   ac_header_compiler=yes
10630 else
10631   $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634         ac_header_compiler=no
10635 fi
10636
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 $as_echo "$ac_header_compiler" >&6; }
10640
10641 # Is the header present?
10642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643 $as_echo_n "checking $ac_header presence... " >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650 #include <$ac_header>
10651 _ACEOF
10652 if { (ac_try="$ac_cpp conftest.$ac_ext"
10653 case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10660   ac_status=$?
10661   grep -v '^ *+' conftest.er1 >conftest.err
10662   rm -f conftest.er1
10663   cat conftest.err >&5
10664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } >/dev/null && {
10666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10667          test ! -s conftest.err
10668        }; then
10669   ac_header_preproc=yes
10670 else
10671   $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674   ac_header_preproc=no
10675 fi
10676
10677 rm -f conftest.err conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10679 $as_echo "$ac_header_preproc" >&6; }
10680
10681 # So?  What about this header?
10682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10683   yes:no: )
10684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10688     ac_header_preproc=yes
10689     ;;
10690   no:yes:* )
10691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10694 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10698 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10703     ( cat <<\_ASBOX
10704 ## ---------------------------------------- ##
10705 ## Report this to pgsql-bugs@postgresql.org ##
10706 ## ---------------------------------------- ##
10707 _ASBOX
10708      ) | sed "s/^/$as_me: WARNING:     /" >&2
10709     ;;
10710 esac
10711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10712 $as_echo_n "checking for $ac_header... " >&6; }
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714   $as_echo_n "(cached) " >&6
10715 else
10716   eval "$as_ac_Header=\$ac_header_preproc"
10717 fi
10718 ac_res=`eval 'as_val=${'$as_ac_Header'}
10719                  $as_echo "$as_val"'`
10720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10721 $as_echo "$ac_res" >&6; }
10722
10723 fi
10724 as_val=`eval 'as_val=${'$as_ac_Header'}
10725                  $as_echo "$as_val"'`
10726    if test "x$as_val" = x""yes; then
10727   cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 _ACEOF
10730
10731 else
10732   { { $as_echo "$as_me:$LINENO: error: history header not found
10733 If you have readline already installed, see config.log for details on the
10734 failure.  It is possible the compiler isn't looking in the proper directory.
10735 Use --without-readline to disable readline support." >&5
10736 $as_echo "$as_me: error: history header not found
10737 If you have readline already installed, see config.log for details on the
10738 failure.  It is possible the compiler isn't looking in the proper directory.
10739 Use --without-readline to disable readline support." >&2;}
10740    { (exit 1); exit 1; }; }
10741 fi
10742
10743 done
10744
10745 fi
10746
10747 done
10748
10749 fi
10750
10751 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10752 # Some installations of libedit usurp /usr/include/readline/, which seems
10753 # bad practice, since in combined installations readline will have its headers
10754 # there.  We might have to resort to AC_EGREP checks to make sure we found
10755 # the proper header...
10756
10757 for ac_header in editline/readline.h
10758 do
10759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 $as_echo_n "checking for $ac_header... " >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764   $as_echo_n "(cached) " >&6
10765 fi
10766 ac_res=`eval 'as_val=${'$as_ac_Header'}
10767                  $as_echo "$as_val"'`
10768                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10769 $as_echo "$ac_res" >&6; }
10770 else
10771   # Is the header compilable?
10772 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10773 $as_echo_n "checking $ac_header usability... " >&6; }
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 $ac_includes_default
10781 #include <$ac_header>
10782 _ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (ac_try="$ac_compile"
10785 case "(($ac_try" in
10786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787   *) ac_try_echo=$ac_try;;
10788 esac
10789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10790 $as_echo "$ac_try_echo") >&5
10791   (eval "$ac_compile") 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } && {
10798          test -z "$ac_c_werror_flag" ||
10799          test ! -s conftest.err
10800        } && test -s conftest.$ac_objext; then
10801   ac_header_compiler=yes
10802 else
10803   $as_echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806         ac_header_compiler=no
10807 fi
10808
10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811 $as_echo "$ac_header_compiler" >&6; }
10812
10813 # Is the header present?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10815 $as_echo_n "checking $ac_header presence... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 #include <$ac_header>
10823 _ACEOF
10824 if { (ac_try="$ac_cpp conftest.$ac_ext"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830 $as_echo "$ac_try_echo") >&5
10831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } >/dev/null && {
10838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10839          test ! -s conftest.err
10840        }; then
10841   ac_header_preproc=yes
10842 else
10843   $as_echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846   ac_header_preproc=no
10847 fi
10848
10849 rm -f conftest.err conftest.$ac_ext
10850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10851 $as_echo "$ac_header_preproc" >&6; }
10852
10853 # So?  What about this header?
10854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10855   yes:no: )
10856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10857 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10860     ac_header_preproc=yes
10861     ;;
10862   no:yes:* )
10863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10866 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10868 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10870 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10874 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10875     ( cat <<\_ASBOX
10876 ## ---------------------------------------- ##
10877 ## Report this to pgsql-bugs@postgresql.org ##
10878 ## ---------------------------------------- ##
10879 _ASBOX
10880      ) | sed "s/^/$as_me: WARNING:     /" >&2
10881     ;;
10882 esac
10883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 $as_echo_n "checking for $ac_header... " >&6; }
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886   $as_echo_n "(cached) " >&6
10887 else
10888   eval "$as_ac_Header=\$ac_header_preproc"
10889 fi
10890 ac_res=`eval 'as_val=${'$as_ac_Header'}
10891                  $as_echo "$as_val"'`
10892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10893 $as_echo "$ac_res" >&6; }
10894
10895 fi
10896 as_val=`eval 'as_val=${'$as_ac_Header'}
10897                  $as_echo "$as_val"'`
10898    if test "x$as_val" = x""yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 else
10904
10905 for ac_header in readline.h
10906 do
10907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 $as_echo_n "checking for $ac_header... " >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912   $as_echo_n "(cached) " >&6
10913 fi
10914 ac_res=`eval 'as_val=${'$as_ac_Header'}
10915                  $as_echo "$as_val"'`
10916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10917 $as_echo "$ac_res" >&6; }
10918 else
10919   # Is the header compilable?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 $as_echo_n "checking $ac_header usability... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 $ac_includes_default
10929 #include <$ac_header>
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939   (eval "$ac_compile") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } && {
10946          test -z "$ac_c_werror_flag" ||
10947          test ! -s conftest.err
10948        } && test -s conftest.$ac_objext; then
10949   ac_header_compiler=yes
10950 else
10951   $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10953
10954         ac_header_compiler=no
10955 fi
10956
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10959 $as_echo "$ac_header_compiler" >&6; }
10960
10961 # Is the header present?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10963 $as_echo_n "checking $ac_header presence... " >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 #include <$ac_header>
10971 _ACEOF
10972 if { (ac_try="$ac_cpp conftest.$ac_ext"
10973 case "(($ac_try" in
10974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975   *) ac_try_echo=$ac_try;;
10976 esac
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } >/dev/null && {
10986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10987          test ! -s conftest.err
10988        }; then
10989   ac_header_preproc=yes
10990 else
10991   $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994   ac_header_preproc=no
10995 fi
10996
10997 rm -f conftest.err conftest.$ac_ext
10998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999 $as_echo "$ac_header_preproc" >&6; }
11000
11001 # So?  What about this header?
11002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11003   yes:no: )
11004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11008     ac_header_preproc=yes
11009     ;;
11010   no:yes:* )
11011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11014 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11018 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11023     ( cat <<\_ASBOX
11024 ## ---------------------------------------- ##
11025 ## Report this to pgsql-bugs@postgresql.org ##
11026 ## ---------------------------------------- ##
11027 _ASBOX
11028      ) | sed "s/^/$as_me: WARNING:     /" >&2
11029     ;;
11030 esac
11031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11032 $as_echo_n "checking for $ac_header... " >&6; }
11033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034   $as_echo_n "(cached) " >&6
11035 else
11036   eval "$as_ac_Header=\$ac_header_preproc"
11037 fi
11038 ac_res=`eval 'as_val=${'$as_ac_Header'}
11039                  $as_echo "$as_val"'`
11040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11041 $as_echo "$ac_res" >&6; }
11042
11043 fi
11044 as_val=`eval 'as_val=${'$as_ac_Header'}
11045                  $as_echo "$as_val"'`
11046    if test "x$as_val" = x""yes; then
11047   cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11049 _ACEOF
11050
11051 else
11052
11053 for ac_header in readline/readline.h
11054 do
11055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 $as_echo_n "checking for $ac_header... " >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060   $as_echo_n "(cached) " >&6
11061 fi
11062 ac_res=`eval 'as_val=${'$as_ac_Header'}
11063                  $as_echo "$as_val"'`
11064                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11065 $as_echo "$ac_res" >&6; }
11066 else
11067   # Is the header compilable?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 $as_echo_n "checking $ac_header usability... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 $ac_includes_default
11077 #include <$ac_header>
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && {
11094          test -z "$ac_c_werror_flag" ||
11095          test ! -s conftest.err
11096        } && test -s conftest.$ac_objext; then
11097   ac_header_compiler=yes
11098 else
11099   $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102         ac_header_compiler=no
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 $as_echo "$ac_header_compiler" >&6; }
11108
11109 # Is the header present?
11110 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 $as_echo_n "checking $ac_header presence... " >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <$ac_header>
11119 _ACEOF
11120 if { (ac_try="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } >/dev/null && {
11134          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11135          test ! -s conftest.err
11136        }; then
11137   ac_header_preproc=yes
11138 else
11139   $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142   ac_header_preproc=no
11143 fi
11144
11145 rm -f conftest.err conftest.$ac_ext
11146 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11147 $as_echo "$ac_header_preproc" >&6; }
11148
11149 # So?  What about this header?
11150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11151   yes:no: )
11152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11156     ac_header_preproc=yes
11157     ;;
11158   no:yes:* )
11159     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11160 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11161     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11162 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11164 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11166 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11171     ( cat <<\_ASBOX
11172 ## ---------------------------------------- ##
11173 ## Report this to pgsql-bugs@postgresql.org ##
11174 ## ---------------------------------------- ##
11175 _ASBOX
11176      ) | sed "s/^/$as_me: WARNING:     /" >&2
11177     ;;
11178 esac
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182   $as_echo_n "(cached) " >&6
11183 else
11184   eval "$as_ac_Header=\$ac_header_preproc"
11185 fi
11186 ac_res=`eval 'as_val=${'$as_ac_Header'}
11187                  $as_echo "$as_val"'`
11188                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11190
11191 fi
11192 as_val=`eval 'as_val=${'$as_ac_Header'}
11193                  $as_echo "$as_val"'`
11194    if test "x$as_val" = x""yes; then
11195   cat >>confdefs.h <<_ACEOF
11196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 _ACEOF
11198
11199 else
11200   { { $as_echo "$as_me:$LINENO: error: readline header not found
11201 If you have libedit already installed, see config.log for details on the
11202 failure.  It is possible the compiler isn't looking in the proper directory.
11203 Use --without-readline to disable libedit support." >&5
11204 $as_echo "$as_me: error: readline header not found
11205 If you have libedit already installed, see config.log for details on the
11206 failure.  It is possible the compiler isn't looking in the proper directory.
11207 Use --without-readline to disable libedit support." >&2;}
11208    { (exit 1); exit 1; }; }
11209 fi
11210
11211 done
11212
11213 fi
11214
11215 done
11216
11217 fi
11218
11219 done
11220
11221 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11222 # not be there at all.  Hence, don't complain if not found.  We must check
11223 # though, since in yet other versions it is an independent header.
11224
11225 for ac_header in editline/history.h
11226 do
11227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 $as_echo_n "checking for $ac_header... " >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232   $as_echo_n "(cached) " >&6
11233 fi
11234 ac_res=`eval 'as_val=${'$as_ac_Header'}
11235                  $as_echo "$as_val"'`
11236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11237 $as_echo "$ac_res" >&6; }
11238 else
11239   # Is the header compilable?
11240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 $as_echo_n "checking $ac_header usability... " >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11258 $as_echo "$ac_try_echo") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } && {
11266          test -z "$ac_c_werror_flag" ||
11267          test ! -s conftest.err
11268        } && test -s conftest.$ac_objext; then
11269   ac_header_compiler=yes
11270 else
11271   $as_echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274         ac_header_compiler=no
11275 fi
11276
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 $as_echo "$ac_header_compiler" >&6; }
11280
11281 # Is the header present?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11283 $as_echo_n "checking $ac_header presence... " >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 #include <$ac_header>
11291 _ACEOF
11292 if { (ac_try="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298 $as_echo "$ac_try_echo") >&5
11299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } >/dev/null && {
11306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307          test ! -s conftest.err
11308        }; then
11309   ac_header_preproc=yes
11310 else
11311   $as_echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314   ac_header_preproc=no
11315 fi
11316
11317 rm -f conftest.err conftest.$ac_ext
11318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 $as_echo "$ac_header_preproc" >&6; }
11320
11321 # So?  What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323   yes:no: )
11324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328     ac_header_preproc=yes
11329     ;;
11330   no:yes:* )
11331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11334 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11338 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11343     ( cat <<\_ASBOX
11344 ## ---------------------------------------- ##
11345 ## Report this to pgsql-bugs@postgresql.org ##
11346 ## ---------------------------------------- ##
11347 _ASBOX
11348      ) | sed "s/^/$as_me: WARNING:     /" >&2
11349     ;;
11350 esac
11351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 $as_echo_n "checking for $ac_header... " >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354   $as_echo_n "(cached) " >&6
11355 else
11356   eval "$as_ac_Header=\$ac_header_preproc"
11357 fi
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359                  $as_echo "$as_val"'`
11360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11362
11363 fi
11364 as_val=`eval 'as_val=${'$as_ac_Header'}
11365                  $as_echo "$as_val"'`
11366    if test "x$as_val" = x""yes; then
11367   cat >>confdefs.h <<_ACEOF
11368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 _ACEOF
11370
11371 else
11372
11373 for ac_header in history.h
11374 do
11375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 $as_echo_n "checking for $ac_header... " >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   $as_echo_n "(cached) " >&6
11381 fi
11382 ac_res=`eval 'as_val=${'$as_ac_Header'}
11383                  $as_echo "$as_val"'`
11384                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11385 $as_echo "$ac_res" >&6; }
11386 else
11387   # Is the header compilable?
11388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11389 $as_echo_n "checking $ac_header usability... " >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 $ac_includes_default
11397 #include <$ac_header>
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407   (eval "$ac_compile") 2>conftest.er1
11408   ac_status=$?
11409   grep -v '^ *+' conftest.er1 >conftest.err
11410   rm -f conftest.er1
11411   cat conftest.err >&5
11412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } && {
11414          test -z "$ac_c_werror_flag" ||
11415          test ! -s conftest.err
11416        } && test -s conftest.$ac_objext; then
11417   ac_header_compiler=yes
11418 else
11419   $as_echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422         ac_header_compiler=no
11423 fi
11424
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 $as_echo "$ac_header_compiler" >&6; }
11428
11429 # Is the header present?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 $as_echo_n "checking $ac_header presence... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 #include <$ac_header>
11439 _ACEOF
11440 if { (ac_try="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446 $as_echo "$ac_try_echo") >&5
11447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } >/dev/null && {
11454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11455          test ! -s conftest.err
11456        }; then
11457   ac_header_preproc=yes
11458 else
11459   $as_echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462   ac_header_preproc=no
11463 fi
11464
11465 rm -f conftest.err conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11467 $as_echo "$ac_header_preproc" >&6; }
11468
11469 # So?  What about this header?
11470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11471   yes:no: )
11472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11476     ac_header_preproc=yes
11477     ;;
11478   no:yes:* )
11479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11482 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11486 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11489     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11491     ( cat <<\_ASBOX
11492 ## ---------------------------------------- ##
11493 ## Report this to pgsql-bugs@postgresql.org ##
11494 ## ---------------------------------------- ##
11495 _ASBOX
11496      ) | sed "s/^/$as_me: WARNING:     /" >&2
11497     ;;
11498 esac
11499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 $as_echo_n "checking for $ac_header... " >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502   $as_echo_n "(cached) " >&6
11503 else
11504   eval "$as_ac_Header=\$ac_header_preproc"
11505 fi
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507                  $as_echo "$as_val"'`
11508                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11510
11511 fi
11512 as_val=`eval 'as_val=${'$as_ac_Header'}
11513                  $as_echo "$as_val"'`
11514    if test "x$as_val" = x""yes; then
11515   cat >>confdefs.h <<_ACEOF
11516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517 _ACEOF
11518
11519 else
11520
11521 for ac_header in readline/history.h
11522 do
11523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11526 $as_echo_n "checking for $ac_header... " >&6; }
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528   $as_echo_n "(cached) " >&6
11529 fi
11530 ac_res=`eval 'as_val=${'$as_ac_Header'}
11531                  $as_echo "$as_val"'`
11532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533 $as_echo "$ac_res" >&6; }
11534 else
11535   # Is the header compilable?
11536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11537 $as_echo_n "checking $ac_header usability... " >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544 $ac_includes_default
11545 #include <$ac_header>
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (ac_try="$ac_compile"
11549 case "(($ac_try" in
11550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551   *) ac_try_echo=$ac_try;;
11552 esac
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555   (eval "$ac_compile") 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } && {
11562          test -z "$ac_c_werror_flag" ||
11563          test ! -s conftest.err
11564        } && test -s conftest.$ac_objext; then
11565   ac_header_compiler=yes
11566 else
11567   $as_echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570         ac_header_compiler=no
11571 fi
11572
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 $as_echo "$ac_header_compiler" >&6; }
11576
11577 # Is the header present?
11578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 $as_echo_n "checking $ac_header presence... " >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } >/dev/null && {
11602          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11603          test ! -s conftest.err
11604        }; then
11605   ac_header_preproc=yes
11606 else
11607   $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610   ac_header_preproc=no
11611 fi
11612
11613 rm -f conftest.err conftest.$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 $as_echo "$ac_header_preproc" >&6; }
11616
11617 # So?  What about this header?
11618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11619   yes:no: )
11620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11624     ac_header_preproc=yes
11625     ;;
11626   no:yes:* )
11627     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11630 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11631     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11634 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11639     ( cat <<\_ASBOX
11640 ## ---------------------------------------- ##
11641 ## Report this to pgsql-bugs@postgresql.org ##
11642 ## ---------------------------------------- ##
11643 _ASBOX
11644      ) | sed "s/^/$as_me: WARNING:     /" >&2
11645     ;;
11646 esac
11647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 $as_echo_n "checking for $ac_header... " >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650   $as_echo_n "(cached) " >&6
11651 else
11652   eval "$as_ac_Header=\$ac_header_preproc"
11653 fi
11654 ac_res=`eval 'as_val=${'$as_ac_Header'}
11655                  $as_echo "$as_val"'`
11656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11658
11659 fi
11660 as_val=`eval 'as_val=${'$as_ac_Header'}
11661                  $as_echo "$as_val"'`
11662    if test "x$as_val" = x""yes; then
11663   cat >>confdefs.h <<_ACEOF
11664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11665 _ACEOF
11666
11667 fi
11668
11669 done
11670
11671 fi
11672
11673 done
11674
11675 fi
11676
11677 done
11678
11679 fi
11680
11681 if test "$with_zlib" = yes; then
11682   if test "${ac_cv_header_zlib_h+set}" = set; then
11683   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11684 $as_echo_n "checking for zlib.h... " >&6; }
11685 if test "${ac_cv_header_zlib_h+set}" = set; then
11686   $as_echo_n "(cached) " >&6
11687 fi
11688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11689 $as_echo "$ac_cv_header_zlib_h" >&6; }
11690 else
11691   # Is the header compilable?
11692 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11693 $as_echo_n "checking zlib.h usability... " >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700 $ac_includes_default
11701 #include <zlib.h>
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711   (eval "$ac_compile") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } && {
11718          test -z "$ac_c_werror_flag" ||
11719          test ! -s conftest.err
11720        } && test -s conftest.$ac_objext; then
11721   ac_header_compiler=yes
11722 else
11723   $as_echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726         ac_header_compiler=no
11727 fi
11728
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11731 $as_echo "$ac_header_compiler" >&6; }
11732
11733 # Is the header present?
11734 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11735 $as_echo_n "checking zlib.h presence... " >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <zlib.h>
11743 _ACEOF
11744 if { (ac_try="$ac_cpp conftest.$ac_ext"
11745 case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } >/dev/null && {
11758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11759          test ! -s conftest.err
11760        }; then
11761   ac_header_preproc=yes
11762 else
11763   $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766   ac_header_preproc=no
11767 fi
11768
11769 rm -f conftest.err conftest.$ac_ext
11770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11771 $as_echo "$ac_header_preproc" >&6; }
11772
11773 # So?  What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11775   yes:no: )
11776     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11777 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11778     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11780     ac_header_preproc=yes
11781     ;;
11782   no:yes:* )
11783     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11784 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11785     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11786 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11787     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11788 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11789     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11790 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11791     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11792 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11793     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11794 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11795     ( cat <<\_ASBOX
11796 ## ---------------------------------------- ##
11797 ## Report this to pgsql-bugs@postgresql.org ##
11798 ## ---------------------------------------- ##
11799 _ASBOX
11800      ) | sed "s/^/$as_me: WARNING:     /" >&2
11801     ;;
11802 esac
11803 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11804 $as_echo_n "checking for zlib.h... " >&6; }
11805 if test "${ac_cv_header_zlib_h+set}" = set; then
11806   $as_echo_n "(cached) " >&6
11807 else
11808   ac_cv_header_zlib_h=$ac_header_preproc
11809 fi
11810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11811 $as_echo "$ac_cv_header_zlib_h" >&6; }
11812
11813 fi
11814 if test "x$ac_cv_header_zlib_h" = x""yes; then
11815   :
11816 else
11817   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11818 If you have zlib already installed, see config.log for details on the
11819 failure.  It is possible the compiler isn't looking in the proper directory.
11820 Use --without-zlib to disable zlib support." >&5
11821 $as_echo "$as_me: error: zlib header not found
11822 If you have zlib already installed, see config.log for details on the
11823 failure.  It is possible the compiler isn't looking in the proper directory.
11824 Use --without-zlib to disable zlib support." >&2;}
11825    { (exit 1); exit 1; }; }
11826 fi
11827
11828
11829 fi
11830
11831 if test "$with_gssapi" = yes ; then
11832
11833 for ac_header in gssapi/gssapi.h
11834 do
11835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840   $as_echo_n "(cached) " >&6
11841 fi
11842 ac_res=`eval 'as_val=${'$as_ac_Header'}
11843                  $as_echo "$as_val"'`
11844                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845 $as_echo "$ac_res" >&6; }
11846 else
11847   # Is the header compilable?
11848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849 $as_echo_n "checking $ac_header usability... " >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 $ac_includes_default
11857 #include <$ac_header>
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867   (eval "$ac_compile") 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } && {
11874          test -z "$ac_c_werror_flag" ||
11875          test ! -s conftest.err
11876        } && test -s conftest.$ac_objext; then
11877   ac_header_compiler=yes
11878 else
11879   $as_echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882         ac_header_compiler=no
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 $as_echo "$ac_header_compiler" >&6; }
11888
11889 # Is the header present?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 $as_echo_n "checking $ac_header presence... " >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 #include <$ac_header>
11899 _ACEOF
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11908   ac_status=$?
11909   grep -v '^ *+' conftest.er1 >conftest.err
11910   rm -f conftest.er1
11911   cat conftest.err >&5
11912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } >/dev/null && {
11914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915          test ! -s conftest.err
11916        }; then
11917   ac_header_preproc=yes
11918 else
11919   $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922   ac_header_preproc=no
11923 fi
11924
11925 rm -f conftest.err conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 $as_echo "$ac_header_preproc" >&6; }
11928
11929 # So?  What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931   yes:no: )
11932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936     ac_header_preproc=yes
11937     ;;
11938   no:yes:* )
11939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11942 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11946 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11951     ( cat <<\_ASBOX
11952 ## ---------------------------------------- ##
11953 ## Report this to pgsql-bugs@postgresql.org ##
11954 ## ---------------------------------------- ##
11955 _ASBOX
11956      ) | sed "s/^/$as_me: WARNING:     /" >&2
11957     ;;
11958 esac
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962   $as_echo_n "(cached) " >&6
11963 else
11964   eval "$as_ac_Header=\$ac_header_preproc"
11965 fi
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967                  $as_echo "$as_val"'`
11968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11970
11971 fi
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973                  $as_echo "$as_val"'`
11974    if test "x$as_val" = x""yes; then
11975   cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 _ACEOF
11978
11979 else
11980
11981 for ac_header in gssapi.h
11982 do
11983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 $as_echo_n "checking for $ac_header... " >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988   $as_echo_n "(cached) " >&6
11989 fi
11990 ac_res=`eval 'as_val=${'$as_ac_Header'}
11991                  $as_echo "$as_val"'`
11992                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11993 $as_echo "$ac_res" >&6; }
11994 else
11995   # Is the header compilable?
11996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11997 $as_echo_n "checking $ac_header usability... " >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 $ac_includes_default
12005 #include <$ac_header>
12006 _ACEOF
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015   (eval "$ac_compile") 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } && {
12022          test -z "$ac_c_werror_flag" ||
12023          test ! -s conftest.err
12024        } && test -s conftest.$ac_objext; then
12025   ac_header_compiler=yes
12026 else
12027   $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         ac_header_compiler=no
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 $as_echo "$ac_header_compiler" >&6; }
12036
12037 # Is the header present?
12038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 $as_echo_n "checking $ac_header presence... " >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 #include <$ac_header>
12047 _ACEOF
12048 if { (ac_try="$ac_cpp conftest.$ac_ext"
12049 case "(($ac_try" in
12050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051   *) ac_try_echo=$ac_try;;
12052 esac
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } >/dev/null && {
12062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12063          test ! -s conftest.err
12064        }; then
12065   ac_header_preproc=yes
12066 else
12067   $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070   ac_header_preproc=no
12071 fi
12072
12073 rm -f conftest.err conftest.$ac_ext
12074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 $as_echo "$ac_header_preproc" >&6; }
12076
12077 # So?  What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079   yes:no: )
12080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084     ac_header_preproc=yes
12085     ;;
12086   no:yes:* )
12087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12090 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12094 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12099     ( cat <<\_ASBOX
12100 ## ---------------------------------------- ##
12101 ## Report this to pgsql-bugs@postgresql.org ##
12102 ## ---------------------------------------- ##
12103 _ASBOX
12104      ) | sed "s/^/$as_me: WARNING:     /" >&2
12105     ;;
12106 esac
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 $as_echo_n "checking for $ac_header... " >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110   $as_echo_n "(cached) " >&6
12111 else
12112   eval "$as_ac_Header=\$ac_header_preproc"
12113 fi
12114 ac_res=`eval 'as_val=${'$as_ac_Header'}
12115                  $as_echo "$as_val"'`
12116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117 $as_echo "$ac_res" >&6; }
12118
12119 fi
12120 as_val=`eval 'as_val=${'$as_ac_Header'}
12121                  $as_echo "$as_val"'`
12122    if test "x$as_val" = x""yes; then
12123   cat >>confdefs.h <<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 _ACEOF
12126
12127 else
12128   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12129 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12130    { (exit 1); exit 1; }; }
12131 fi
12132
12133 done
12134
12135 fi
12136
12137 done
12138
12139 fi
12140
12141 if test "$with_krb5" = yes ; then
12142   if test "${ac_cv_header_krb5_h+set}" = set; then
12143   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12144 $as_echo_n "checking for krb5.h... " >&6; }
12145 if test "${ac_cv_header_krb5_h+set}" = set; then
12146   $as_echo_n "(cached) " >&6
12147 fi
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12149 $as_echo "$ac_cv_header_krb5_h" >&6; }
12150 else
12151   # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12153 $as_echo_n "checking krb5.h usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 $ac_includes_default
12161 #include <krb5.h>
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171   (eval "$ac_compile") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest.$ac_objext; then
12181   ac_header_compiler=yes
12182 else
12183   $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186         ac_header_compiler=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12192
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12195 $as_echo_n "checking krb5.h presence... " >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202 #include <krb5.h>
12203 _ACEOF
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } >/dev/null && {
12218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219          test ! -s conftest.err
12220        }; then
12221   ac_header_preproc=yes
12222 else
12223   $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12245     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12247     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12249     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12255     ( cat <<\_ASBOX
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12259 _ASBOX
12260      ) | sed "s/^/$as_me: WARNING:     /" >&2
12261     ;;
12262 esac
12263 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12264 $as_echo_n "checking for krb5.h... " >&6; }
12265 if test "${ac_cv_header_krb5_h+set}" = set; then
12266   $as_echo_n "(cached) " >&6
12267 else
12268   ac_cv_header_krb5_h=$ac_header_preproc
12269 fi
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12271 $as_echo "$ac_cv_header_krb5_h" >&6; }
12272
12273 fi
12274 if test "x$ac_cv_header_krb5_h" = x""yes; then
12275   :
12276 else
12277   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12278 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12279    { (exit 1); exit 1; }; }
12280 fi
12281
12282
12283 fi
12284
12285 if test "$with_openssl" = yes ; then
12286   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12287   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12288 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12289 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12290   $as_echo_n "(cached) " >&6
12291 fi
12292 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12293 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12294 else
12295   # Is the header compilable?
12296 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12297 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 $ac_includes_default
12305 #include <openssl/ssl.h>
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311   *) ac_try_echo=$ac_try;;
12312 esac
12313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12314 $as_echo "$ac_try_echo") >&5
12315   (eval "$ac_compile") 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } && {
12322          test -z "$ac_c_werror_flag" ||
12323          test ! -s conftest.err
12324        } && test -s conftest.$ac_objext; then
12325   ac_header_compiler=yes
12326 else
12327   $as_echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330         ac_header_compiler=no
12331 fi
12332
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 $as_echo "$ac_header_compiler" >&6; }
12336
12337 # Is the header present?
12338 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12339 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #include <openssl/ssl.h>
12347 _ACEOF
12348 if { (ac_try="$ac_cpp conftest.$ac_ext"
12349 case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } >/dev/null && {
12362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12363          test ! -s conftest.err
12364        }; then
12365   ac_header_preproc=yes
12366 else
12367   $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370   ac_header_preproc=no
12371 fi
12372
12373 rm -f conftest.err conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375 $as_echo "$ac_header_preproc" >&6; }
12376
12377 # So?  What about this header?
12378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12379   yes:no: )
12380     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12381 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12384     ac_header_preproc=yes
12385     ;;
12386   no:yes:* )
12387     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12388 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12389     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12390 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12391     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12392 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12393     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12394 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12395     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12396 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12397     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12398 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12399     ( cat <<\_ASBOX
12400 ## ---------------------------------------- ##
12401 ## Report this to pgsql-bugs@postgresql.org ##
12402 ## ---------------------------------------- ##
12403 _ASBOX
12404      ) | sed "s/^/$as_me: WARNING:     /" >&2
12405     ;;
12406 esac
12407 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12408 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12409 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12410   $as_echo_n "(cached) " >&6
12411 else
12412   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12413 fi
12414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12415 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12416
12417 fi
12418 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12419   :
12420 else
12421   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12422 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12423    { (exit 1); exit 1; }; }
12424 fi
12425
12426
12427   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12428   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12429 $as_echo_n "checking for openssl/err.h... " >&6; }
12430 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12431   $as_echo_n "(cached) " >&6
12432 fi
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12434 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12435 else
12436   # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12438 $as_echo_n "checking openssl/err.h usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445 $ac_includes_default
12446 #include <openssl/err.h>
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456   (eval "$ac_compile") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } && {
12463          test -z "$ac_c_werror_flag" ||
12464          test ! -s conftest.err
12465        } && test -s conftest.$ac_objext; then
12466   ac_header_compiler=yes
12467 else
12468   $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471         ac_header_compiler=no
12472 fi
12473
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12477
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12480 $as_echo_n "checking openssl/err.h presence... " >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 #include <openssl/err.h>
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } >/dev/null && {
12503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        }; then
12506   ac_header_preproc=yes
12507 else
12508   $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511   ac_header_preproc=no
12512 fi
12513
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12517
12518 # So?  What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520   yes:no: )
12521     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12525     ac_header_preproc=yes
12526     ;;
12527   no:yes:* )
12528     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12530     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12532     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12534     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12536     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12538     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12540     ( cat <<\_ASBOX
12541 ## ---------------------------------------- ##
12542 ## Report this to pgsql-bugs@postgresql.org ##
12543 ## ---------------------------------------- ##
12544 _ASBOX
12545      ) | sed "s/^/$as_me: WARNING:     /" >&2
12546     ;;
12547 esac
12548 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12549 $as_echo_n "checking for openssl/err.h... " >&6; }
12550 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12551   $as_echo_n "(cached) " >&6
12552 else
12553   ac_cv_header_openssl_err_h=$ac_header_preproc
12554 fi
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12556 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12557
12558 fi
12559 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12560   :
12561 else
12562   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12563 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12564    { (exit 1); exit 1; }; }
12565 fi
12566
12567
12568
12569 for ac_func in ERR_set_mark
12570 do
12571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12573 $as_echo_n "checking for $ac_func... " >&6; }
12574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12575   $as_echo_n "(cached) " >&6
12576 else
12577   cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12585 #define $ac_func innocuous_$ac_func
12586
12587 /* System header to define __stub macros and hopefully few prototypes,
12588     which can conflict with char $ac_func (); below.
12589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590     <limits.h> exists even on freestanding compilers.  */
12591
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12597
12598 #undef $ac_func
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601    Use char because int might match the return type of a GCC
12602    builtin and then its argument prototype would still apply.  */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char $ac_func ();
12607 /* The GNU C library defines this for functions which it implements
12608     to always fail with ENOSYS.  Some functions are actually named
12609     something starting with __ and the normal name is an alias.  */
12610 #if defined __stub_$ac_func || defined __stub___$ac_func
12611 choke me
12612 #endif
12613
12614 int
12615 main ()
12616 {
12617 return $ac_func ();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630   (eval "$ac_link") 2>conftest.er1
12631   ac_status=$?
12632   grep -v '^ *+' conftest.er1 >conftest.err
12633   rm -f conftest.er1
12634   cat conftest.err >&5
12635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } && {
12637          test -z "$ac_c_werror_flag" ||
12638          test ! -s conftest.err
12639        } && test -s conftest$ac_exeext && {
12640          test "$cross_compiling" = yes ||
12641          $as_test_x conftest$ac_exeext
12642        }; then
12643   eval "$as_ac_var=yes"
12644 else
12645   $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648         eval "$as_ac_var=no"
12649 fi
12650
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653       conftest$ac_exeext conftest.$ac_ext
12654 fi
12655 ac_res=`eval 'as_val=${'$as_ac_var'}
12656                  $as_echo "$as_val"'`
12657                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12659 as_val=`eval 'as_val=${'$as_ac_var'}
12660                  $as_echo "$as_val"'`
12661    if test "x$as_val" = x""yes; then
12662   cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12665
12666 fi
12667 done
12668
12669 fi
12670
12671 if test "$with_pam" = yes ; then
12672
12673 for ac_header in security/pam_appl.h
12674 do
12675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680   $as_echo_n "(cached) " >&6
12681 fi
12682 ac_res=`eval 'as_val=${'$as_ac_Header'}
12683                  $as_echo "$as_val"'`
12684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12686 else
12687   # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696 $ac_includes_default
12697 #include <$ac_header>
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (ac_try="$ac_compile"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707   (eval "$ac_compile") 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } && {
12714          test -z "$ac_c_werror_flag" ||
12715          test ! -s conftest.err
12716        } && test -s conftest.$ac_objext; then
12717   ac_header_compiler=yes
12718 else
12719   $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722         ac_header_compiler=no
12723 fi
12724
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12728
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738 #include <$ac_header>
12739 _ACEOF
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } >/dev/null && {
12754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755          test ! -s conftest.err
12756        }; then
12757   ac_header_preproc=yes
12758 else
12759   $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762   ac_header_preproc=no
12763 fi
12764
12765 rm -f conftest.err conftest.$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12768
12769 # So?  What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12771   yes:no: )
12772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776     ac_header_preproc=yes
12777     ;;
12778   no:yes:* )
12779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12791     ( cat <<\_ASBOX
12792 ## ---------------------------------------- ##
12793 ## Report this to pgsql-bugs@postgresql.org ##
12794 ## ---------------------------------------- ##
12795 _ASBOX
12796      ) | sed "s/^/$as_me: WARNING:     /" >&2
12797     ;;
12798 esac
12799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 $as_echo_n "checking for $ac_header... " >&6; }
12801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802   $as_echo_n "(cached) " >&6
12803 else
12804   eval "$as_ac_Header=\$ac_header_preproc"
12805 fi
12806 ac_res=`eval 'as_val=${'$as_ac_Header'}
12807                  $as_echo "$as_val"'`
12808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12809 $as_echo "$ac_res" >&6; }
12810
12811 fi
12812 as_val=`eval 'as_val=${'$as_ac_Header'}
12813                  $as_echo "$as_val"'`
12814    if test "x$as_val" = x""yes; then
12815   cat >>confdefs.h <<_ACEOF
12816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 _ACEOF
12818
12819 else
12820
12821 for ac_header in pam/pam_appl.h
12822 do
12823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 $as_echo_n "checking for $ac_header... " >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828   $as_echo_n "(cached) " >&6
12829 fi
12830 ac_res=`eval 'as_val=${'$as_ac_Header'}
12831                  $as_echo "$as_val"'`
12832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12834 else
12835   # Is the header compilable?
12836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12837 $as_echo_n "checking $ac_header usability... " >&6; }
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844 $ac_includes_default
12845 #include <$ac_header>
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855   (eval "$ac_compile") 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } && {
12862          test -z "$ac_c_werror_flag" ||
12863          test ! -s conftest.err
12864        } && test -s conftest.$ac_objext; then
12865   ac_header_compiler=yes
12866 else
12867   $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870         ac_header_compiler=no
12871 fi
12872
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12875 $as_echo "$ac_header_compiler" >&6; }
12876
12877 # Is the header present?
12878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12879 $as_echo_n "checking $ac_header presence... " >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h.  */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h.  */
12886 #include <$ac_header>
12887 _ACEOF
12888 if { (ac_try="$ac_cpp conftest.$ac_ext"
12889 case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } >/dev/null && {
12902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903          test ! -s conftest.err
12904        }; then
12905   ac_header_preproc=yes
12906 else
12907   $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910   ac_header_preproc=no
12911 fi
12912
12913 rm -f conftest.err conftest.$ac_ext
12914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 $as_echo "$ac_header_preproc" >&6; }
12916
12917 # So?  What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919   yes:no: )
12920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12924     ac_header_preproc=yes
12925     ;;
12926   no:yes:* )
12927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12930 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12934 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12939     ( cat <<\_ASBOX
12940 ## ---------------------------------------- ##
12941 ## Report this to pgsql-bugs@postgresql.org ##
12942 ## ---------------------------------------- ##
12943 _ASBOX
12944      ) | sed "s/^/$as_me: WARNING:     /" >&2
12945     ;;
12946 esac
12947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 $as_echo_n "checking for $ac_header... " >&6; }
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950   $as_echo_n "(cached) " >&6
12951 else
12952   eval "$as_ac_Header=\$ac_header_preproc"
12953 fi
12954 ac_res=`eval 'as_val=${'$as_ac_Header'}
12955                  $as_echo "$as_val"'`
12956                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12958
12959 fi
12960 as_val=`eval 'as_val=${'$as_ac_Header'}
12961                  $as_echo "$as_val"'`
12962    if test "x$as_val" = x""yes; then
12963   cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12965 _ACEOF
12966
12967 else
12968   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12969 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12970    { (exit 1); exit 1; }; }
12971 fi
12972
12973 done
12974
12975 fi
12976
12977 done
12978
12979 fi
12980
12981 if test "$with_libxml" = yes ; then
12982   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12983   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12984 $as_echo_n "checking for libxml/parser.h... " >&6; }
12985 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12986   $as_echo_n "(cached) " >&6
12987 fi
12988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12989 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12990 else
12991   # Is the header compilable?
12992 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12993 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 $ac_includes_default
13001 #include <libxml/parser.h>
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (ac_try="$ac_compile"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011   (eval "$ac_compile") 2>conftest.er1
13012   ac_status=$?
13013   grep -v '^ *+' conftest.er1 >conftest.err
13014   rm -f conftest.er1
13015   cat conftest.err >&5
13016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } && {
13018          test -z "$ac_c_werror_flag" ||
13019          test ! -s conftest.err
13020        } && test -s conftest.$ac_objext; then
13021   ac_header_compiler=yes
13022 else
13023   $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026         ac_header_compiler=no
13027 fi
13028
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 $as_echo "$ac_header_compiler" >&6; }
13032
13033 # Is the header present?
13034 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13035 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 #include <libxml/parser.h>
13043 _ACEOF
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047   *) ac_try_echo=$ac_try;;
13048 esac
13049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } >/dev/null && {
13058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13059          test ! -s conftest.err
13060        }; then
13061   ac_header_preproc=yes
13062 else
13063   $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066   ac_header_preproc=no
13067 fi
13068
13069 rm -f conftest.err conftest.$ac_ext
13070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 $as_echo "$ac_header_preproc" >&6; }
13072
13073 # So?  What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13075   yes:no: )
13076     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13077 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13080     ac_header_preproc=yes
13081     ;;
13082   no:yes:* )
13083     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13084 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13085     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13086 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13087     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13088 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13089     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13090 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13091     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13092 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13093     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13094 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13095     ( cat <<\_ASBOX
13096 ## ---------------------------------------- ##
13097 ## Report this to pgsql-bugs@postgresql.org ##
13098 ## ---------------------------------------- ##
13099 _ASBOX
13100      ) | sed "s/^/$as_me: WARNING:     /" >&2
13101     ;;
13102 esac
13103 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13104 $as_echo_n "checking for libxml/parser.h... " >&6; }
13105 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13106   $as_echo_n "(cached) " >&6
13107 else
13108   ac_cv_header_libxml_parser_h=$ac_header_preproc
13109 fi
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13111 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13112
13113 fi
13114 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13115   :
13116 else
13117   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13118 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13119    { (exit 1); exit 1; }; }
13120 fi
13121
13122
13123 fi
13124
13125 if test "$with_libxslt" = yes ; then
13126   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13127   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13128 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13129 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13130   $as_echo_n "(cached) " >&6
13131 fi
13132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13133 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13134 else
13135   # Is the header compilable?
13136 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13137 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144 $ac_includes_default
13145 #include <libxslt/xslt.h>
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155   (eval "$ac_compile") 2>conftest.er1
13156   ac_status=$?
13157   grep -v '^ *+' conftest.er1 >conftest.err
13158   rm -f conftest.er1
13159   cat conftest.err >&5
13160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } && {
13162          test -z "$ac_c_werror_flag" ||
13163          test ! -s conftest.err
13164        } && test -s conftest.$ac_objext; then
13165   ac_header_compiler=yes
13166 else
13167   $as_echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170         ac_header_compiler=no
13171 fi
13172
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13175 $as_echo "$ac_header_compiler" >&6; }
13176
13177 # Is the header present?
13178 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13179 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h.  */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h.  */
13186 #include <libxslt/xslt.h>
13187 _ACEOF
13188 if { (ac_try="$ac_cpp conftest.$ac_ext"
13189 case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13196   ac_status=$?
13197   grep -v '^ *+' conftest.er1 >conftest.err
13198   rm -f conftest.er1
13199   cat conftest.err >&5
13200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } >/dev/null && {
13202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13203          test ! -s conftest.err
13204        }; then
13205   ac_header_preproc=yes
13206 else
13207   $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210   ac_header_preproc=no
13211 fi
13212
13213 rm -f conftest.err conftest.$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13215 $as_echo "$ac_header_preproc" >&6; }
13216
13217 # So?  What about this header?
13218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13219   yes:no: )
13220     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13221 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13222     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13224     ac_header_preproc=yes
13225     ;;
13226   no:yes:* )
13227     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13228 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13229     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13230 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13231     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13232 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13233     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13234 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13235     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13236 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13237     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13238 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13239     ( cat <<\_ASBOX
13240 ## ---------------------------------------- ##
13241 ## Report this to pgsql-bugs@postgresql.org ##
13242 ## ---------------------------------------- ##
13243 _ASBOX
13244      ) | sed "s/^/$as_me: WARNING:     /" >&2
13245     ;;
13246 esac
13247 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13248 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13249 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13250   $as_echo_n "(cached) " >&6
13251 else
13252   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13253 fi
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13255 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13256
13257 fi
13258 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13259   :
13260 else
13261   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13262 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13263    { (exit 1); exit 1; }; }
13264 fi
13265
13266
13267 fi
13268
13269 if test "$with_ldap" = yes ; then
13270   if test "$PORTNAME" != "win32"; then
13271
13272 for ac_header in ldap.h
13273 do
13274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13276   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13277 $as_echo_n "checking for $ac_header... " >&6; }
13278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13279   $as_echo_n "(cached) " >&6
13280 fi
13281 ac_res=`eval 'as_val=${'$as_ac_Header'}
13282                  $as_echo "$as_val"'`
13283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285 else
13286   # Is the header compilable?
13287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13288 $as_echo_n "checking $ac_header usability... " >&6; }
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 $ac_includes_default
13296 #include <$ac_header>
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306   (eval "$ac_compile") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } && {
13313          test -z "$ac_c_werror_flag" ||
13314          test ! -s conftest.err
13315        } && test -s conftest.$ac_objext; then
13316   ac_header_compiler=yes
13317 else
13318   $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321         ac_header_compiler=no
13322 fi
13323
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 $as_echo "$ac_header_compiler" >&6; }
13327
13328 # Is the header present?
13329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 $as_echo_n "checking $ac_header presence... " >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <$ac_header>
13338 _ACEOF
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } >/dev/null && {
13353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13354          test ! -s conftest.err
13355        }; then
13356   ac_header_preproc=yes
13357 else
13358   $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361   ac_header_preproc=no
13362 fi
13363
13364 rm -f conftest.err conftest.$ac_ext
13365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 $as_echo "$ac_header_preproc" >&6; }
13367
13368 # So?  What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13370   yes:no: )
13371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375     ac_header_preproc=yes
13376     ;;
13377   no:yes:* )
13378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13381 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13385 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13390     ( cat <<\_ASBOX
13391 ## ---------------------------------------- ##
13392 ## Report this to pgsql-bugs@postgresql.org ##
13393 ## ---------------------------------------- ##
13394 _ASBOX
13395      ) | sed "s/^/$as_me: WARNING:     /" >&2
13396     ;;
13397 esac
13398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 $as_echo_n "checking for $ac_header... " >&6; }
13400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13401   $as_echo_n "(cached) " >&6
13402 else
13403   eval "$as_ac_Header=\$ac_header_preproc"
13404 fi
13405 ac_res=`eval 'as_val=${'$as_ac_Header'}
13406                  $as_echo "$as_val"'`
13407                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13409
13410 fi
13411 as_val=`eval 'as_val=${'$as_ac_Header'}
13412                  $as_echo "$as_val"'`
13413    if test "x$as_val" = x""yes; then
13414   cat >>confdefs.h <<_ACEOF
13415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 _ACEOF
13417
13418 else
13419   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13420 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13421    { (exit 1); exit 1; }; }
13422 fi
13423
13424 done
13425
13426   else
13427
13428 for ac_header in winldap.h
13429 do
13430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 $as_echo_n "checking for $ac_header... " >&6; }
13433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13434   $as_echo_n "(cached) " >&6
13435 else
13436   cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 $ac_includes_default
13443 #include <windows.h>
13444
13445
13446 #include <$ac_header>
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (ac_try="$ac_compile"
13450 case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456   (eval "$ac_compile") 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } && {
13463          test -z "$ac_c_werror_flag" ||
13464          test ! -s conftest.err
13465        } && test -s conftest.$ac_objext; then
13466   eval "$as_ac_Header=yes"
13467 else
13468   $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471         eval "$as_ac_Header=no"
13472 fi
13473
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 fi
13476 ac_res=`eval 'as_val=${'$as_ac_Header'}
13477                  $as_echo "$as_val"'`
13478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13479 $as_echo "$ac_res" >&6; }
13480 as_val=`eval 'as_val=${'$as_ac_Header'}
13481                  $as_echo "$as_val"'`
13482    if test "x$as_val" = x""yes; then
13483   cat >>confdefs.h <<_ACEOF
13484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13485 _ACEOF
13486
13487 else
13488   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13489 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13490    { (exit 1); exit 1; }; }
13491 fi
13492
13493 done
13494
13495   fi
13496 fi
13497
13498 if test "$with_bonjour" = yes ; then
13499   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13500   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13501 $as_echo_n "checking for dns_sd.h... " >&6; }
13502 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13503   $as_echo_n "(cached) " >&6
13504 fi
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13506 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13507 else
13508   # Is the header compilable?
13509 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13510 $as_echo_n "checking dns_sd.h usability... " >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 #include <dns_sd.h>
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528   (eval "$ac_compile") 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } && {
13535          test -z "$ac_c_werror_flag" ||
13536          test ! -s conftest.err
13537        } && test -s conftest.$ac_objext; then
13538   ac_header_compiler=yes
13539 else
13540   $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         ac_header_compiler=no
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13548 $as_echo "$ac_header_compiler" >&6; }
13549
13550 # Is the header present?
13551 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13552 $as_echo_n "checking dns_sd.h presence... " >&6; }
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h.  */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h.  */
13559 #include <dns_sd.h>
13560 _ACEOF
13561 if { (ac_try="$ac_cpp conftest.$ac_ext"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } >/dev/null && {
13575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13576          test ! -s conftest.err
13577        }; then
13578   ac_header_preproc=yes
13579 else
13580   $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583   ac_header_preproc=no
13584 fi
13585
13586 rm -f conftest.err conftest.$ac_ext
13587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 $as_echo "$ac_header_preproc" >&6; }
13589
13590 # So?  What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592   yes:no: )
13593     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13597     ac_header_preproc=yes
13598     ;;
13599   no:yes:* )
13600     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13601 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13602     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13603 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13604     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13605 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13606     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13607 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13608     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13609 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13610     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13611 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13612     ( cat <<\_ASBOX
13613 ## ---------------------------------------- ##
13614 ## Report this to pgsql-bugs@postgresql.org ##
13615 ## ---------------------------------------- ##
13616 _ASBOX
13617      ) | sed "s/^/$as_me: WARNING:     /" >&2
13618     ;;
13619 esac
13620 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13621 $as_echo_n "checking for dns_sd.h... " >&6; }
13622 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13623   $as_echo_n "(cached) " >&6
13624 else
13625   ac_cv_header_dns_sd_h=$ac_header_preproc
13626 fi
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13628 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13629
13630 fi
13631 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13632   :
13633 else
13634   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13635 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13636    { (exit 1); exit 1; }; }
13637 fi
13638
13639
13640 fi
13641
13642 # for contrib/uuid-ossp
13643 if test "$with_ossp_uuid" = yes ; then
13644
13645 for ac_header in ossp/uuid.h
13646 do
13647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650 $as_echo_n "checking for $ac_header... " >&6; }
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652   $as_echo_n "(cached) " >&6
13653 fi
13654 ac_res=`eval 'as_val=${'$as_ac_Header'}
13655                  $as_echo "$as_val"'`
13656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657 $as_echo "$ac_res" >&6; }
13658 else
13659   # Is the header compilable?
13660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661 $as_echo_n "checking $ac_header usability... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h.  */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h.  */
13668 $ac_includes_default
13669 #include <$ac_header>
13670 _ACEOF
13671 rm -f conftest.$ac_objext
13672 if { (ac_try="$ac_compile"
13673 case "(($ac_try" in
13674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675   *) ac_try_echo=$ac_try;;
13676 esac
13677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679   (eval "$ac_compile") 2>conftest.er1
13680   ac_status=$?
13681   grep -v '^ *+' conftest.er1 >conftest.err
13682   rm -f conftest.er1
13683   cat conftest.err >&5
13684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); } && {
13686          test -z "$ac_c_werror_flag" ||
13687          test ! -s conftest.err
13688        } && test -s conftest.$ac_objext; then
13689   ac_header_compiler=yes
13690 else
13691   $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694         ac_header_compiler=no
13695 fi
13696
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 $as_echo "$ac_header_compiler" >&6; }
13700
13701 # Is the header present?
13702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 $as_echo_n "checking $ac_header presence... " >&6; }
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 #include <$ac_header>
13711 _ACEOF
13712 if { (ac_try="$ac_cpp conftest.$ac_ext"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } >/dev/null && {
13726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727          test ! -s conftest.err
13728        }; then
13729   ac_header_preproc=yes
13730 else
13731   $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734   ac_header_preproc=no
13735 fi
13736
13737 rm -f conftest.err conftest.$ac_ext
13738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 $as_echo "$ac_header_preproc" >&6; }
13740
13741 # So?  What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743   yes:no: )
13744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748     ac_header_preproc=yes
13749     ;;
13750   no:yes:* )
13751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13754 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13758 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13763     ( cat <<\_ASBOX
13764 ## ---------------------------------------- ##
13765 ## Report this to pgsql-bugs@postgresql.org ##
13766 ## ---------------------------------------- ##
13767 _ASBOX
13768      ) | sed "s/^/$as_me: WARNING:     /" >&2
13769     ;;
13770 esac
13771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 $as_echo_n "checking for $ac_header... " >&6; }
13773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13774   $as_echo_n "(cached) " >&6
13775 else
13776   eval "$as_ac_Header=\$ac_header_preproc"
13777 fi
13778 ac_res=`eval 'as_val=${'$as_ac_Header'}
13779                  $as_echo "$as_val"'`
13780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13782
13783 fi
13784 as_val=`eval 'as_val=${'$as_ac_Header'}
13785                  $as_echo "$as_val"'`
13786    if test "x$as_val" = x""yes; then
13787   cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 _ACEOF
13790
13791 else
13792
13793
13794 for ac_header in uuid.h
13795 do
13796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13798   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 $as_echo_n "checking for $ac_header... " >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801   $as_echo_n "(cached) " >&6
13802 fi
13803 ac_res=`eval 'as_val=${'$as_ac_Header'}
13804                  $as_echo "$as_val"'`
13805                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13806 $as_echo "$ac_res" >&6; }
13807 else
13808   # Is the header compilable?
13809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13810 $as_echo_n "checking $ac_header usability... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817 $ac_includes_default
13818 #include <$ac_header>
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13827 $as_echo "$ac_try_echo") >&5
13828   (eval "$ac_compile") 2>conftest.er1
13829   ac_status=$?
13830   grep -v '^ *+' conftest.er1 >conftest.err
13831   rm -f conftest.er1
13832   cat conftest.err >&5
13833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } && {
13835          test -z "$ac_c_werror_flag" ||
13836          test ! -s conftest.err
13837        } && test -s conftest.$ac_objext; then
13838   ac_header_compiler=yes
13839 else
13840   $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843         ac_header_compiler=no
13844 fi
13845
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13848 $as_echo "$ac_header_compiler" >&6; }
13849
13850 # Is the header present?
13851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13852 $as_echo_n "checking $ac_header presence... " >&6; }
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859 #include <$ac_header>
13860 _ACEOF
13861 if { (ac_try="$ac_cpp conftest.$ac_ext"
13862 case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } >/dev/null && {
13875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13876          test ! -s conftest.err
13877        }; then
13878   ac_header_preproc=yes
13879 else
13880   $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13882
13883   ac_header_preproc=no
13884 fi
13885
13886 rm -f conftest.err conftest.$ac_ext
13887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 $as_echo "$ac_header_preproc" >&6; }
13889
13890 # So?  What about this header?
13891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13892   yes:no: )
13893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897     ac_header_preproc=yes
13898     ;;
13899   no:yes:* )
13900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13903 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13907 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13912     ( cat <<\_ASBOX
13913 ## ---------------------------------------- ##
13914 ## Report this to pgsql-bugs@postgresql.org ##
13915 ## ---------------------------------------- ##
13916 _ASBOX
13917      ) | sed "s/^/$as_me: WARNING:     /" >&2
13918     ;;
13919 esac
13920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13921 $as_echo_n "checking for $ac_header... " >&6; }
13922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13923   $as_echo_n "(cached) " >&6
13924 else
13925   eval "$as_ac_Header=\$ac_header_preproc"
13926 fi
13927 ac_res=`eval 'as_val=${'$as_ac_Header'}
13928                  $as_echo "$as_val"'`
13929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13930 $as_echo "$ac_res" >&6; }
13931
13932 fi
13933 as_val=`eval 'as_val=${'$as_ac_Header'}
13934                  $as_echo "$as_val"'`
13935    if test "x$as_val" = x""yes; then
13936   cat >>confdefs.h <<_ACEOF
13937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13938 _ACEOF
13939
13940 else
13941   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13942 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13943    { (exit 1); exit 1; }; }
13944 fi
13945
13946 done
13947
13948 fi
13949
13950 done
13951
13952 fi
13953
13954
13955 ##
13956 ## Types, structures, compiler characteristics
13957 ##
13958
13959
13960  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13961 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13962 if test "${ac_cv_c_bigendian+set}" = set; then
13963   $as_echo_n "(cached) " >&6
13964 else
13965   ac_cv_c_bigendian=unknown
13966     # See if we're dealing with a universal compiler.
13967     cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #ifndef __APPLE_CC__
13974                not a universal capable compiler
13975              #endif
13976              typedef int dummy;
13977
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987   (eval "$ac_compile") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } && {
13994          test -z "$ac_c_werror_flag" ||
13995          test ! -s conftest.err
13996        } && test -s conftest.$ac_objext; then
13997
13998         # Check for potential -arch flags.  It is not universal unless
13999         # there are some -arch flags.  Note that *ppc* also matches
14000         # ppc64.  This check is also rather less than ideal.
14001         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14002           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14003         esac
14004 else
14005   $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008
14009 fi
14010
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012     if test $ac_cv_c_bigendian = unknown; then
14013       # See if sys/param.h defines the BYTE_ORDER macro.
14014       cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h.  */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h.  */
14020 #include <sys/types.h>
14021              #include <sys/param.h>
14022
14023 int
14024 main ()
14025 {
14026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14027                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14028                      && LITTLE_ENDIAN)
14029               bogus endian macros
14030              #endif
14031
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext
14037 if { (ac_try="$ac_compile"
14038 case "(($ac_try" in
14039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040   *) ac_try_echo=$ac_try;;
14041 esac
14042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14043 $as_echo "$ac_try_echo") >&5
14044   (eval "$ac_compile") 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } && {
14051          test -z "$ac_c_werror_flag" ||
14052          test ! -s conftest.err
14053        } && test -s conftest.$ac_objext; then
14054   # It does; now see whether it defined to BIG_ENDIAN or not.
14055          cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 #include <sys/types.h>
14062                 #include <sys/param.h>
14063
14064 int
14065 main ()
14066 {
14067 #if BYTE_ORDER != BIG_ENDIAN
14068                  not big endian
14069                 #endif
14070
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14082 $as_echo "$ac_try_echo") >&5
14083   (eval "$ac_compile") 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } && {
14090          test -z "$ac_c_werror_flag" ||
14091          test ! -s conftest.err
14092        } && test -s conftest.$ac_objext; then
14093   ac_cv_c_bigendian=yes
14094 else
14095   $as_echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098         ac_cv_c_bigendian=no
14099 fi
14100
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 else
14103   $as_echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106
14107 fi
14108
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110     fi
14111     if test $ac_cv_c_bigendian = unknown; then
14112       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14113       cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h.  */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h.  */
14119 #include <limits.h>
14120
14121 int
14122 main ()
14123 {
14124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14125               bogus endian macros
14126              #endif
14127
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140   (eval "$ac_compile") 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } && {
14147          test -z "$ac_c_werror_flag" ||
14148          test ! -s conftest.err
14149        } && test -s conftest.$ac_objext; then
14150   # It does; now see whether it defined to _BIG_ENDIAN or not.
14151          cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 #include <limits.h>
14158
14159 int
14160 main ()
14161 {
14162 #ifndef _BIG_ENDIAN
14163                  not big endian
14164                 #endif
14165
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178   (eval "$ac_compile") 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } && {
14185          test -z "$ac_c_werror_flag" ||
14186          test ! -s conftest.err
14187        } && test -s conftest.$ac_objext; then
14188   ac_cv_c_bigendian=yes
14189 else
14190   $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193         ac_cv_c_bigendian=no
14194 fi
14195
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 else
14198   $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201
14202 fi
14203
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205     fi
14206     if test $ac_cv_c_bigendian = unknown; then
14207       # Compile a test program.
14208       if test "$cross_compiling" = yes; then
14209   # Try to guess by grepping values from an object file.
14210          cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 short int ascii_mm[] =
14217                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14218                 short int ascii_ii[] =
14219                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14220                 int use_ascii (int i) {
14221                   return ascii_mm[i] + ascii_ii[i];
14222                 }
14223                 short int ebcdic_ii[] =
14224                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14225                 short int ebcdic_mm[] =
14226                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14227                 int use_ebcdic (int i) {
14228                   return ebcdic_mm[i] + ebcdic_ii[i];
14229                 }
14230                 extern int foo;
14231
14232 int
14233 main ()
14234 {
14235 return use_ascii (foo) == use_ebcdic (foo);
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248   (eval "$ac_compile") 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } && {
14255          test -z "$ac_c_werror_flag" ||
14256          test ! -s conftest.err
14257        } && test -s conftest.$ac_objext; then
14258   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14259               ac_cv_c_bigendian=yes
14260             fi
14261             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14262               if test "$ac_cv_c_bigendian" = unknown; then
14263                 ac_cv_c_bigendian=no
14264               else
14265                 # finding both strings is unlikely to happen, but who knows?
14266                 ac_cv_c_bigendian=unknown
14267               fi
14268             fi
14269 else
14270   $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273
14274 fi
14275
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 else
14278   cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 $ac_includes_default
14285 int
14286 main ()
14287 {
14288
14289              /* Are we little or big endian?  From Harbison&Steele.  */
14290              union
14291              {
14292                long int l;
14293                char c[sizeof (long int)];
14294              } u;
14295              u.l = 1;
14296              return u.c[sizeof (long int) - 1] == 1;
14297
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310   (eval "$ac_link") 2>&5
14311   ac_status=$?
14312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14314   { (case "(($ac_try" in
14315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316   *) ac_try_echo=$ac_try;;
14317 esac
14318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_c_bigendian=no
14325 else
14326   $as_echo "$as_me: program exited with status $ac_status" >&5
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ( exit $ac_status )
14331 ac_cv_c_bigendian=yes
14332 fi
14333 rm -rf conftest.dSYM
14334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14335 fi
14336
14337
14338     fi
14339 fi
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14341 $as_echo "$ac_cv_c_bigendian" >&6; }
14342  case $ac_cv_c_bigendian in #(
14343    yes)
14344      cat >>confdefs.h <<\_ACEOF
14345 #define WORDS_BIGENDIAN 1
14346 _ACEOF
14347 ;; #(
14348    no)
14349       ;; #(
14350    universal)
14351
14352 cat >>confdefs.h <<\_ACEOF
14353 #define AC_APPLE_UNIVERSAL_BUILD 1
14354 _ACEOF
14355
14356      ;; #(
14357    *)
14358      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14359  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14360 $as_echo "$as_me: error: unknown endianness
14361  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14362    { (exit 1); exit 1; }; } ;;
14363  esac
14364
14365 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14367 if test "${ac_cv_c_const+set}" = set; then
14368   $as_echo_n "(cached) " >&6
14369 else
14370   cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376
14377 int
14378 main ()
14379 {
14380 /* FIXME: Include the comments suggested by Paul. */
14381 #ifndef __cplusplus
14382   /* Ultrix mips cc rejects this.  */
14383   typedef int charset[2];
14384   const charset cs;
14385   /* SunOS 4.1.1 cc rejects this.  */
14386   char const *const *pcpcc;
14387   char **ppc;
14388   /* NEC SVR4.0.2 mips cc rejects this.  */
14389   struct point {int x, y;};
14390   static struct point const zero = {0,0};
14391   /* AIX XL C 1.02.0.0 rejects this.
14392      It does not let you subtract one const X* pointer from another in
14393      an arm of an if-expression whose if-part is not a constant
14394      expression */
14395   const char *g = "string";
14396   pcpcc = &g + (g ? g-g : 0);
14397   /* HPUX 7.0 cc rejects these. */
14398   ++pcpcc;
14399   ppc = (char**) pcpcc;
14400   pcpcc = (char const *const *) ppc;
14401   { /* SCO 3.2v4 cc rejects this.  */
14402     char *t;
14403     char const *s = 0 ? (char *) 0 : (char const *) 0;
14404
14405     *t++ = 0;
14406     if (s) return 0;
14407   }
14408   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14409     int x[] = {25, 17};
14410     const int *foo = &x[0];
14411     ++foo;
14412   }
14413   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14414     typedef const int *iptr;
14415     iptr p = 0;
14416     ++p;
14417   }
14418   { /* AIX XL C 1.02.0.0 rejects this saying
14419        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14420     struct s { int j; const int *ap[3]; };
14421     struct s *b; b->j = 5;
14422   }
14423   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14424     const int foo = 10;
14425     if (!foo) return 0;
14426   }
14427   return !cs[0] && !zero.x;
14428 #endif
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442   (eval "$ac_compile") 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && {
14449          test -z "$ac_c_werror_flag" ||
14450          test ! -s conftest.err
14451        } && test -s conftest.$ac_objext; then
14452   ac_cv_c_const=yes
14453 else
14454   $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457         ac_cv_c_const=no
14458 fi
14459
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 fi
14462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14463 $as_echo "$ac_cv_c_const" >&6; }
14464 if test $ac_cv_c_const = no; then
14465
14466 cat >>confdefs.h <<\_ACEOF
14467 #define const /**/
14468 _ACEOF
14469
14470 fi
14471
14472 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14473 $as_echo_n "checking for inline... " >&6; }
14474 if test "${ac_cv_c_inline+set}" = set; then
14475   $as_echo_n "(cached) " >&6
14476 else
14477   ac_cv_c_inline=no
14478 for ac_kw in inline __inline__ __inline; do
14479   cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 #ifndef __cplusplus
14486 typedef int foo_t;
14487 static $ac_kw foo_t static_foo () {return 0; }
14488 $ac_kw foo_t foo () {return 0; }
14489 #endif
14490
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (ac_try="$ac_compile"
14494 case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14499 $as_echo "$ac_try_echo") >&5
14500   (eval "$ac_compile") 2>conftest.er1
14501   ac_status=$?
14502   grep -v '^ *+' conftest.er1 >conftest.err
14503   rm -f conftest.er1
14504   cat conftest.err >&5
14505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } && {
14507          test -z "$ac_c_werror_flag" ||
14508          test ! -s conftest.err
14509        } && test -s conftest.$ac_objext; then
14510   ac_cv_c_inline=$ac_kw
14511 else
14512   $as_echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14514
14515
14516 fi
14517
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519   test "$ac_cv_c_inline" != no && break
14520 done
14521
14522 fi
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14524 $as_echo "$ac_cv_c_inline" >&6; }
14525
14526
14527 case $ac_cv_c_inline in
14528   inline | yes) ;;
14529   *)
14530     case $ac_cv_c_inline in
14531       no) ac_val=;;
14532       *) ac_val=$ac_cv_c_inline;;
14533     esac
14534     cat >>confdefs.h <<_ACEOF
14535 #ifndef __cplusplus
14536 #define inline $ac_val
14537 #endif
14538 _ACEOF
14539     ;;
14540 esac
14541
14542 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14543 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14544 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14545   $as_echo_n "(cached) " >&6
14546 else
14547   pgac_cv_c_inline_quietly=no
14548   if test "$ac_cv_c_inline" != no; then
14549     pgac_c_inline_save_werror=$ac_c_werror_flag
14550     ac_c_werror_flag=yes
14551     cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h.  */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h.  */
14557 static inline int fun () {return 0;}
14558 int
14559 main ()
14560 {
14561
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570   *) ac_try_echo=$ac_try;;
14571 esac
14572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14573 $as_echo "$ac_try_echo") >&5
14574   (eval "$ac_link") 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } && {
14581          test -z "$ac_c_werror_flag" ||
14582          test ! -s conftest.err
14583        } && test -s conftest$ac_exeext && {
14584          test "$cross_compiling" = yes ||
14585          $as_test_x conftest$ac_exeext
14586        }; then
14587   pgac_cv_c_inline_quietly=yes
14588 else
14589   $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592
14593 fi
14594
14595 rm -rf conftest.dSYM
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597       conftest$ac_exeext conftest.$ac_ext
14598     ac_c_werror_flag=$pgac_c_inline_save_werror
14599   fi
14600 fi
14601 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14602 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14603 if test "$pgac_cv_c_inline_quietly" != no; then
14604
14605 cat >>confdefs.h <<_ACEOF
14606 #define USE_INLINE 1
14607 _ACEOF
14608
14609 fi
14610
14611 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14612 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14613 if test "${ac_cv_c_stringize+set}" = set; then
14614   $as_echo_n "(cached) " >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 #define x(y) #y
14623
14624 char *s = x(teststring);
14625 _ACEOF
14626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14627   $EGREP "#teststring" >/dev/null 2>&1; then
14628   ac_cv_c_stringize=no
14629 else
14630   ac_cv_c_stringize=yes
14631 fi
14632 rm -f conftest*
14633
14634 fi
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14636 $as_echo "$ac_cv_c_stringize" >&6; }
14637 if test $ac_cv_c_stringize = yes; then
14638
14639 cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_STRINGIZE 1
14641 _ACEOF
14642
14643 fi
14644
14645 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14646 $as_echo_n "checking for signed types... " >&6; }
14647 if test "${pgac_cv_c_signed+set}" = set; then
14648   $as_echo_n "(cached) " >&6
14649 else
14650   cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656
14657 int
14658 main ()
14659 {
14660 signed char c; signed short s; signed int i;
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673   (eval "$ac_compile") 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } && {
14680          test -z "$ac_c_werror_flag" ||
14681          test ! -s conftest.err
14682        } && test -s conftest.$ac_objext; then
14683   pgac_cv_c_signed=yes
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         pgac_cv_c_signed=no
14689 fi
14690
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14694 $as_echo "$pgac_cv_c_signed" >&6; }
14695 if test x"$pgac_cv_c_signed" = xno ; then
14696
14697 cat >>confdefs.h <<\_ACEOF
14698 #define signed /**/
14699 _ACEOF
14700
14701 fi
14702 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14703 $as_echo_n "checking for working volatile... " >&6; }
14704 if test "${ac_cv_c_volatile+set}" = set; then
14705   $as_echo_n "(cached) " >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713
14714 int
14715 main ()
14716 {
14717
14718 volatile int x;
14719 int * volatile y = (int *) 0;
14720 return !x && !y;
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733   (eval "$ac_compile") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } && {
14740          test -z "$ac_c_werror_flag" ||
14741          test ! -s conftest.err
14742        } && test -s conftest.$ac_objext; then
14743   ac_cv_c_volatile=yes
14744 else
14745   $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748         ac_cv_c_volatile=no
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14754 $as_echo "$ac_cv_c_volatile" >&6; }
14755 if test $ac_cv_c_volatile = no; then
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define volatile /**/
14759 _ACEOF
14760
14761 fi
14762
14763 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14764 $as_echo_n "checking for __func__... " >&6; }
14765 if test "${pgac_cv_funcname_func_support+set}" = set; then
14766   $as_echo_n "(cached) " >&6
14767 else
14768   cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774 #include <stdio.h>
14775 int
14776 main ()
14777 {
14778 printf("%s\n", __func__);
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791   (eval "$ac_compile") 2>conftest.er1
14792   ac_status=$?
14793   grep -v '^ *+' conftest.er1 >conftest.err
14794   rm -f conftest.er1
14795   cat conftest.err >&5
14796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && {
14798          test -z "$ac_c_werror_flag" ||
14799          test ! -s conftest.err
14800        } && test -s conftest.$ac_objext; then
14801   pgac_cv_funcname_func_support=yes
14802 else
14803   $as_echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806         pgac_cv_funcname_func_support=no
14807 fi
14808
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 fi
14811 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14812 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14813 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14814
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_FUNCNAME__FUNC 1
14817 _ACEOF
14818
14819 else
14820 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14821 $as_echo_n "checking for __FUNCTION__... " >&6; }
14822 if test "${pgac_cv_funcname_function_support+set}" = set; then
14823   $as_echo_n "(cached) " >&6
14824 else
14825   cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 #include <stdio.h>
14832 int
14833 main ()
14834 {
14835 printf("%s\n", __FUNCTION__);
14836   ;
14837   return 0;
14838 }
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848   (eval "$ac_compile") 2>conftest.er1
14849   ac_status=$?
14850   grep -v '^ *+' conftest.er1 >conftest.err
14851   rm -f conftest.er1
14852   cat conftest.err >&5
14853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } && {
14855          test -z "$ac_c_werror_flag" ||
14856          test ! -s conftest.err
14857        } && test -s conftest.$ac_objext; then
14858   pgac_cv_funcname_function_support=yes
14859 else
14860   $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863         pgac_cv_funcname_function_support=no
14864 fi
14865
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14869 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14870 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14871
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_FUNCNAME__FUNCTION 1
14874 _ACEOF
14875
14876 fi
14877 fi
14878 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14879 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14880 if test "${ac_cv_struct_tm+set}" = set; then
14881   $as_echo_n "(cached) " >&6
14882 else
14883   cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889 #include <sys/types.h>
14890 #include <time.h>
14891
14892 int
14893 main ()
14894 {
14895 struct tm tm;
14896                                      int *p = &tm.tm_sec;
14897                                      return !p;
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910   (eval "$ac_compile") 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } && {
14917          test -z "$ac_c_werror_flag" ||
14918          test ! -s conftest.err
14919        } && test -s conftest.$ac_objext; then
14920   ac_cv_struct_tm=time.h
14921 else
14922   $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925         ac_cv_struct_tm=sys/time.h
14926 fi
14927
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 fi
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14931 $as_echo "$ac_cv_struct_tm" >&6; }
14932 if test $ac_cv_struct_tm = sys/time.h; then
14933
14934 cat >>confdefs.h <<\_ACEOF
14935 #define TM_IN_SYS_TIME 1
14936 _ACEOF
14937
14938 fi
14939
14940 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14941 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14942 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14943   $as_echo_n "(cached) " >&6
14944 else
14945   cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h.  */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h.  */
14951 #include <sys/types.h>
14952 #include <$ac_cv_struct_tm>
14953
14954
14955 int
14956 main ()
14957 {
14958 static struct tm ac_aggr;
14959 if (ac_aggr.tm_zone)
14960 return 0;
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (ac_try="$ac_compile"
14967 case "(($ac_try" in
14968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969   *) ac_try_echo=$ac_try;;
14970 esac
14971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973   (eval "$ac_compile") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } && {
14980          test -z "$ac_c_werror_flag" ||
14981          test ! -s conftest.err
14982        } && test -s conftest.$ac_objext; then
14983   ac_cv_member_struct_tm_tm_zone=yes
14984 else
14985   $as_echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988         cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994 #include <sys/types.h>
14995 #include <$ac_cv_struct_tm>
14996
14997
14998 int
14999 main ()
15000 {
15001 static struct tm ac_aggr;
15002 if (sizeof ac_aggr.tm_zone)
15003 return 0;
15004   ;
15005   return 0;
15006 }
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016   (eval "$ac_compile") 2>conftest.er1
15017   ac_status=$?
15018   grep -v '^ *+' conftest.er1 >conftest.err
15019   rm -f conftest.er1
15020   cat conftest.err >&5
15021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); } && {
15023          test -z "$ac_c_werror_flag" ||
15024          test ! -s conftest.err
15025        } && test -s conftest.$ac_objext; then
15026   ac_cv_member_struct_tm_tm_zone=yes
15027 else
15028   $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031         ac_cv_member_struct_tm_tm_zone=no
15032 fi
15033
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 fi
15036
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15040 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15041 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15042
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_STRUCT_TM_TM_ZONE 1
15045 _ACEOF
15046
15047
15048 fi
15049
15050 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15051
15052 cat >>confdefs.h <<\_ACEOF
15053 #define HAVE_TM_ZONE 1
15054 _ACEOF
15055
15056 fi
15057 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15058 $as_echo_n "checking for tzname... " >&6; }
15059 if test "${ac_cv_var_tzname+set}" = set; then
15060   $as_echo_n "(cached) " >&6
15061 else
15062   cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 #include <time.h>
15069 #ifndef tzname /* For SGI.  */
15070 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15071 #endif
15072
15073 int
15074 main ()
15075 {
15076 atoi(*tzname);
15077   ;
15078   return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089   (eval "$ac_link") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } && {
15096          test -z "$ac_c_werror_flag" ||
15097          test ! -s conftest.err
15098        } && test -s conftest$ac_exeext && {
15099          test "$cross_compiling" = yes ||
15100          $as_test_x conftest$ac_exeext
15101        }; then
15102   ac_cv_var_tzname=yes
15103 else
15104   $as_echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107         ac_cv_var_tzname=no
15108 fi
15109
15110 rm -rf conftest.dSYM
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112       conftest$ac_exeext conftest.$ac_ext
15113 fi
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15115 $as_echo "$ac_cv_var_tzname" >&6; }
15116 if test $ac_cv_var_tzname = yes; then
15117
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_TZNAME 1
15120 _ACEOF
15121
15122 fi
15123
15124 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15125 $as_echo_n "checking for union semun... " >&6; }
15126 if test "${ac_cv_type_union_semun+set}" = set; then
15127   $as_echo_n "(cached) " >&6
15128 else
15129   ac_cv_type_union_semun=no
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 #include <sys/types.h>
15137 #include <sys/ipc.h>
15138 #include <sys/sem.h>
15139
15140 int
15141 main ()
15142 {
15143 if (sizeof (union semun))
15144        return 0;
15145   ;
15146   return 0;
15147 }
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156 $as_echo "$ac_try_echo") >&5
15157   (eval "$ac_compile") 2>conftest.er1
15158   ac_status=$?
15159   grep -v '^ *+' conftest.er1 >conftest.err
15160   rm -f conftest.er1
15161   cat conftest.err >&5
15162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } && {
15164          test -z "$ac_c_werror_flag" ||
15165          test ! -s conftest.err
15166        } && test -s conftest.$ac_objext; then
15167   cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 #include <sys/types.h>
15174 #include <sys/ipc.h>
15175 #include <sys/sem.h>
15176
15177 int
15178 main ()
15179 {
15180 if (sizeof ((union semun)))
15181           return 0;
15182   ;
15183   return 0;
15184 }
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194   (eval "$ac_compile") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } && {
15201          test -z "$ac_c_werror_flag" ||
15202          test ! -s conftest.err
15203        } && test -s conftest.$ac_objext; then
15204   :
15205 else
15206   $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209         ac_cv_type_union_semun=yes
15210 fi
15211
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 else
15214   $as_echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217
15218 fi
15219
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15223 $as_echo "$ac_cv_type_union_semun" >&6; }
15224 if test "x$ac_cv_type_union_semun" = x""yes; then
15225
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_UNION_SEMUN 1
15228 _ACEOF
15229
15230
15231 fi
15232
15233 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15234 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15235 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15236   $as_echo_n "(cached) " >&6
15237 else
15238   ac_cv_type_struct_sockaddr_un=no
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245 #include <sys/types.h>
15246 #ifdef HAVE_SYS_UN_H
15247 #include <sys/un.h>
15248 #endif
15249
15250
15251 int
15252 main ()
15253 {
15254 if (sizeof (struct sockaddr_un))
15255        return 0;
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268   (eval "$ac_compile") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } && {
15275          test -z "$ac_c_werror_flag" ||
15276          test ! -s conftest.err
15277        } && test -s conftest.$ac_objext; then
15278   cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284 #include <sys/types.h>
15285 #ifdef HAVE_SYS_UN_H
15286 #include <sys/un.h>
15287 #endif
15288
15289
15290 int
15291 main ()
15292 {
15293 if (sizeof ((struct sockaddr_un)))
15294           return 0;
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307   (eval "$ac_compile") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } && {
15314          test -z "$ac_c_werror_flag" ||
15315          test ! -s conftest.err
15316        } && test -s conftest.$ac_objext; then
15317   :
15318 else
15319   $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322         ac_cv_type_struct_sockaddr_un=yes
15323 fi
15324
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 else
15327   $as_echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330
15331 fi
15332
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15336 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15337 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15338
15339 cat >>confdefs.h <<_ACEOF
15340 #define HAVE_STRUCT_SOCKADDR_UN 1
15341 _ACEOF
15342
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_UNIX_SOCKETS 1
15346 _ACEOF
15347
15348 fi
15349
15350 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15351 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15352 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15353   $as_echo_n "(cached) " >&6
15354 else
15355   ac_cv_type_struct_sockaddr_storage=no
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h.  */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h.  */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15365 #endif
15366
15367
15368 int
15369 main ()
15370 {
15371 if (sizeof (struct sockaddr_storage))
15372        return 0;
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 rm -f conftest.$ac_objext
15378 if { (ac_try="$ac_compile"
15379 case "(($ac_try" in
15380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381   *) ac_try_echo=$ac_try;;
15382 esac
15383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15384 $as_echo "$ac_try_echo") >&5
15385   (eval "$ac_compile") 2>conftest.er1
15386   ac_status=$?
15387   grep -v '^ *+' conftest.er1 >conftest.err
15388   rm -f conftest.er1
15389   cat conftest.err >&5
15390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } && {
15392          test -z "$ac_c_werror_flag" ||
15393          test ! -s conftest.err
15394        } && test -s conftest.$ac_objext; then
15395   cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 #include <sys/types.h>
15402 #ifdef HAVE_SYS_SOCKET_H
15403 #include <sys/socket.h>
15404 #endif
15405
15406
15407 int
15408 main ()
15409 {
15410 if (sizeof ((struct sockaddr_storage)))
15411           return 0;
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15423 $as_echo "$ac_try_echo") >&5
15424   (eval "$ac_compile") 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } && {
15431          test -z "$ac_c_werror_flag" ||
15432          test ! -s conftest.err
15433        } && test -s conftest.$ac_objext; then
15434   :
15435 else
15436   $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439         ac_cv_type_struct_sockaddr_storage=yes
15440 fi
15441
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 else
15444   $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447
15448 fi
15449
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 fi
15452 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15453 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15454 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15458 _ACEOF
15459
15460
15461 fi
15462
15463 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15464 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15465 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15466   $as_echo_n "(cached) " >&6
15467 else
15468   cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474 #include <sys/types.h>
15475 #ifdef HAVE_SYS_SOCKET_H
15476 #include <sys/socket.h>
15477 #endif
15478
15479
15480 int
15481 main ()
15482 {
15483 static struct sockaddr_storage ac_aggr;
15484 if (ac_aggr.ss_family)
15485 return 0;
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498   (eval "$ac_compile") 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } && {
15505          test -z "$ac_c_werror_flag" ||
15506          test ! -s conftest.err
15507        } && test -s conftest.$ac_objext; then
15508   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15509 else
15510   $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15522 #endif
15523
15524
15525 int
15526 main ()
15527 {
15528 static struct sockaddr_storage ac_aggr;
15529 if (sizeof ac_aggr.ss_family)
15530 return 0;
15531   ;
15532   return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539   *) ac_try_echo=$ac_try;;
15540 esac
15541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543   (eval "$ac_compile") 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } && {
15550          test -z "$ac_c_werror_flag" ||
15551          test ! -s conftest.err
15552        } && test -s conftest.$ac_objext; then
15553   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15554 else
15555   $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558         ac_cv_member_struct_sockaddr_storage_ss_family=no
15559 fi
15560
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 fi
15563
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 fi
15566 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15567 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15568 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15569
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15572 _ACEOF
15573
15574
15575 fi
15576 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15577 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15578 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15579   $as_echo_n "(cached) " >&6
15580 else
15581   cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h.  */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h.  */
15587 #include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 #include <sys/socket.h>
15590 #endif
15591
15592
15593 int
15594 main ()
15595 {
15596 static struct sockaddr_storage ac_aggr;
15597 if (ac_aggr.__ss_family)
15598 return 0;
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest.$ac_objext
15604 if { (ac_try="$ac_compile"
15605 case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611   (eval "$ac_compile") 2>conftest.er1
15612   ac_status=$?
15613   grep -v '^ *+' conftest.er1 >conftest.err
15614   rm -f conftest.er1
15615   cat conftest.err >&5
15616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); } && {
15618          test -z "$ac_c_werror_flag" ||
15619          test ! -s conftest.err
15620        } && test -s conftest.$ac_objext; then
15621   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15622 else
15623   $as_echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626         cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15635 #endif
15636
15637
15638 int
15639 main ()
15640 {
15641 static struct sockaddr_storage ac_aggr;
15642 if (sizeof ac_aggr.__ss_family)
15643 return 0;
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656   (eval "$ac_compile") 2>conftest.er1
15657   ac_status=$?
15658   grep -v '^ *+' conftest.er1 >conftest.err
15659   rm -f conftest.er1
15660   cat conftest.err >&5
15661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } && {
15663          test -z "$ac_c_werror_flag" ||
15664          test ! -s conftest.err
15665        } && test -s conftest.$ac_objext; then
15666   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15667 else
15668   $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671         ac_cv_member_struct_sockaddr_storage___ss_family=no
15672 fi
15673
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 fi
15676
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 fi
15679 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15680 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15681 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15682
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15685 _ACEOF
15686
15687
15688 fi
15689 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15690 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15691 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15692   $as_echo_n "(cached) " >&6
15693 else
15694   cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700 #include <sys/types.h>
15701 #ifdef HAVE_SYS_SOCKET_H
15702 #include <sys/socket.h>
15703 #endif
15704
15705
15706 int
15707 main ()
15708 {
15709 static struct sockaddr_storage ac_aggr;
15710 if (ac_aggr.ss_len)
15711 return 0;
15712   ;
15713   return 0;
15714 }
15715 _ACEOF
15716 rm -f conftest.$ac_objext
15717 if { (ac_try="$ac_compile"
15718 case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724   (eval "$ac_compile") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } && {
15731          test -z "$ac_c_werror_flag" ||
15732          test ! -s conftest.err
15733        } && test -s conftest.$ac_objext; then
15734   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15735 else
15736   $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739         cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15748 #endif
15749
15750
15751 int
15752 main ()
15753 {
15754 static struct sockaddr_storage ac_aggr;
15755 if (sizeof ac_aggr.ss_len)
15756 return 0;
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769   (eval "$ac_compile") 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } && {
15776          test -z "$ac_c_werror_flag" ||
15777          test ! -s conftest.err
15778        } && test -s conftest.$ac_objext; then
15779   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15780 else
15781   $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         ac_cv_member_struct_sockaddr_storage_ss_len=no
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 fi
15789
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 fi
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15793 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15794 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15795
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15798 _ACEOF
15799
15800
15801 fi
15802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15803 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15804 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15805   $as_echo_n "(cached) " >&6
15806 else
15807   cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813 #include <sys/types.h>
15814 #ifdef HAVE_SYS_SOCKET_H
15815 #include <sys/socket.h>
15816 #endif
15817
15818
15819 int
15820 main ()
15821 {
15822 static struct sockaddr_storage ac_aggr;
15823 if (ac_aggr.__ss_len)
15824 return 0;
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (ac_try="$ac_compile"
15831 case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836 $as_echo "$ac_try_echo") >&5
15837   (eval "$ac_compile") 2>conftest.er1
15838   ac_status=$?
15839   grep -v '^ *+' conftest.er1 >conftest.err
15840   rm -f conftest.er1
15841   cat conftest.err >&5
15842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); } && {
15844          test -z "$ac_c_werror_flag" ||
15845          test ! -s conftest.err
15846        } && test -s conftest.$ac_objext; then
15847   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15848 else
15849   $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15861 #endif
15862
15863
15864 int
15865 main ()
15866 {
15867 static struct sockaddr_storage ac_aggr;
15868 if (sizeof ac_aggr.__ss_len)
15869 return 0;
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882   (eval "$ac_compile") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } && {
15889          test -z "$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        } && test -s conftest.$ac_objext; then
15892   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15893 else
15894   $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         ac_cv_member_struct_sockaddr_storage___ss_len=no
15898 fi
15899
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 fi
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15906 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15907 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15908
15909 cat >>confdefs.h <<_ACEOF
15910 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15911 _ACEOF
15912
15913
15914 fi
15915 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15916 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15917 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15918   $as_echo_n "(cached) " >&6
15919 else
15920   cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926 #include <sys/types.h>
15927 #ifdef HAVE_SYS_SOCKET_H
15928 #include <sys/socket.h>
15929 #endif
15930
15931
15932 int
15933 main ()
15934 {
15935 static struct sockaddr ac_aggr;
15936 if (ac_aggr.sa_len)
15937 return 0;
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950   (eval "$ac_compile") 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } && {
15957          test -z "$ac_c_werror_flag" ||
15958          test ! -s conftest.err
15959        } && test -s conftest.$ac_objext; then
15960   ac_cv_member_struct_sockaddr_sa_len=yes
15961 else
15962   $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965         cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15974 #endif
15975
15976
15977 int
15978 main ()
15979 {
15980 static struct sockaddr ac_aggr;
15981 if (sizeof ac_aggr.sa_len)
15982 return 0;
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991   *) ac_try_echo=$ac_try;;
15992 esac
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995   (eval "$ac_compile") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } && {
16002          test -z "$ac_c_werror_flag" ||
16003          test ! -s conftest.err
16004        } && test -s conftest.$ac_objext; then
16005   ac_cv_member_struct_sockaddr_sa_len=yes
16006 else
16007   $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010         ac_cv_member_struct_sockaddr_sa_len=no
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16019 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16020 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16021
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16024 _ACEOF
16025
16026
16027 fi
16028
16029 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16030 $as_echo_n "checking for struct addrinfo... " >&6; }
16031 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16032   $as_echo_n "(cached) " >&6
16033 else
16034   ac_cv_type_struct_addrinfo=no
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041 #include <sys/types.h>
16042 #include <sys/socket.h>
16043 #include <netdb.h>
16044
16045
16046 int
16047 main ()
16048 {
16049 if (sizeof (struct addrinfo))
16050        return 0;
16051   ;
16052   return 0;
16053 }
16054 _ACEOF
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16062 $as_echo "$ac_try_echo") >&5
16063   (eval "$ac_compile") 2>conftest.er1
16064   ac_status=$?
16065   grep -v '^ *+' conftest.er1 >conftest.err
16066   rm -f conftest.er1
16067   cat conftest.err >&5
16068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } && {
16070          test -z "$ac_c_werror_flag" ||
16071          test ! -s conftest.err
16072        } && test -s conftest.$ac_objext; then
16073   cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 #include <sys/types.h>
16080 #include <sys/socket.h>
16081 #include <netdb.h>
16082
16083
16084 int
16085 main ()
16086 {
16087 if (sizeof ((struct addrinfo)))
16088           return 0;
16089   ;
16090   return 0;
16091 }
16092 _ACEOF
16093 rm -f conftest.$ac_objext
16094 if { (ac_try="$ac_compile"
16095 case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16100 $as_echo "$ac_try_echo") >&5
16101   (eval "$ac_compile") 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } && {
16108          test -z "$ac_c_werror_flag" ||
16109          test ! -s conftest.err
16110        } && test -s conftest.$ac_objext; then
16111   :
16112 else
16113   $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116         ac_cv_type_struct_addrinfo=yes
16117 fi
16118
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 else
16121   $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124
16125 fi
16126
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 fi
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16130 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16131 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_ADDRINFO 1
16135 _ACEOF
16136
16137
16138 fi
16139
16140
16141   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16142 $as_echo_n "checking for intptr_t... " >&6; }
16143 if test "${ac_cv_type_intptr_t+set}" = set; then
16144   $as_echo_n "(cached) " >&6
16145 else
16146   ac_cv_type_intptr_t=no
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153 $ac_includes_default
16154 int
16155 main ()
16156 {
16157 if (sizeof (intptr_t))
16158        return 0;
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (ac_try="$ac_compile"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16170 $as_echo "$ac_try_echo") >&5
16171   (eval "$ac_compile") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } && {
16178          test -z "$ac_c_werror_flag" ||
16179          test ! -s conftest.err
16180        } && test -s conftest.$ac_objext; then
16181   cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 $ac_includes_default
16188 int
16189 main ()
16190 {
16191 if (sizeof ((intptr_t)))
16192           return 0;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205   (eval "$ac_compile") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } && {
16212          test -z "$ac_c_werror_flag" ||
16213          test ! -s conftest.err
16214        } && test -s conftest.$ac_objext; then
16215   :
16216 else
16217   $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220         ac_cv_type_intptr_t=yes
16221 fi
16222
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 else
16225   $as_echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16227
16228
16229 fi
16230
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 fi
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16234 $as_echo "$ac_cv_type_intptr_t" >&6; }
16235 if test "x$ac_cv_type_intptr_t" = x""yes; then
16236
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_INTPTR_T 1
16239 _ACEOF
16240
16241 else
16242   for ac_type in 'int' 'long int' 'long long int'; do
16243        cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 $ac_includes_default
16250 int
16251 main ()
16252 {
16253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16254 test_array [0] = 0
16255
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268   (eval "$ac_compile") 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } && {
16275          test -z "$ac_c_werror_flag" ||
16276          test ! -s conftest.err
16277        } && test -s conftest.$ac_objext; then
16278
16279 cat >>confdefs.h <<_ACEOF
16280 #define intptr_t $ac_type
16281 _ACEOF
16282
16283           ac_type=
16284 else
16285   $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288
16289 fi
16290
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292        test -z "$ac_type" && break
16293      done
16294 fi
16295
16296
16297
16298   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16299 $as_echo_n "checking for uintptr_t... " >&6; }
16300 if test "${ac_cv_type_uintptr_t+set}" = set; then
16301   $as_echo_n "(cached) " >&6
16302 else
16303   ac_cv_type_uintptr_t=no
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310 $ac_includes_default
16311 int
16312 main ()
16313 {
16314 if (sizeof (uintptr_t))
16315        return 0;
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328   (eval "$ac_compile") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && {
16335          test -z "$ac_c_werror_flag" ||
16336          test ! -s conftest.err
16337        } && test -s conftest.$ac_objext; then
16338   cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344 $ac_includes_default
16345 int
16346 main ()
16347 {
16348 if (sizeof ((uintptr_t)))
16349           return 0;
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest.$ac_objext
16355 if { (ac_try="$ac_compile"
16356 case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16361 $as_echo "$ac_try_echo") >&5
16362   (eval "$ac_compile") 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } && {
16369          test -z "$ac_c_werror_flag" ||
16370          test ! -s conftest.err
16371        } && test -s conftest.$ac_objext; then
16372   :
16373 else
16374   $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377         ac_cv_type_uintptr_t=yes
16378 fi
16379
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 else
16382   $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 fi
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16391 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16392 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16393
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_UINTPTR_T 1
16396 _ACEOF
16397
16398 else
16399   for ac_type in 'unsigned int' 'unsigned long int' \
16400         'unsigned long long int'; do
16401        cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 $ac_includes_default
16408 int
16409 main ()
16410 {
16411 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16412 test_array [0] = 0
16413
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422   *) ac_try_echo=$ac_try;;
16423 esac
16424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16425 $as_echo "$ac_try_echo") >&5
16426   (eval "$ac_compile") 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } && {
16433          test -z "$ac_c_werror_flag" ||
16434          test ! -s conftest.err
16435        } && test -s conftest.$ac_objext; then
16436
16437 cat >>confdefs.h <<_ACEOF
16438 #define uintptr_t $ac_type
16439 _ACEOF
16440
16441           ac_type=
16442 else
16443   $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450        test -z "$ac_type" && break
16451      done
16452 fi
16453
16454
16455
16456   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16457 $as_echo_n "checking for long long int... " >&6; }
16458 if test "${ac_cv_type_long_long_int+set}" = set; then
16459   $as_echo_n "(cached) " >&6
16460 else
16461   cat >conftest.$ac_ext <<_ACEOF
16462
16463   /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 /* For now, do not test the preprocessor; as of 2007 there are too many
16469          implementations with broken preprocessors.  Perhaps this can
16470          be revisited in 2012.  In the meantime, code should not expect
16471          #if to work with literals wider than 32 bits.  */
16472       /* Test literals.  */
16473       long long int ll = 9223372036854775807ll;
16474       long long int nll = -9223372036854775807LL;
16475       unsigned long long int ull = 18446744073709551615ULL;
16476       /* Test constant expressions.   */
16477       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16478                      ? 1 : -1)];
16479       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16480                      ? 1 : -1)];
16481       int i = 63;
16482 int
16483 main ()
16484 {
16485 /* Test availability of runtime routines for shift and division.  */
16486       long long int llmax = 9223372036854775807ll;
16487       unsigned long long int ullmax = 18446744073709551615ull;
16488       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16489               | (llmax / ll) | (llmax % ll)
16490               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16491               | (ullmax / ull) | (ullmax % ull));
16492   ;
16493   return 0;
16494 }
16495
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16504 $as_echo "$ac_try_echo") >&5
16505   (eval "$ac_link") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } && {
16512          test -z "$ac_c_werror_flag" ||
16513          test ! -s conftest.err
16514        } && test -s conftest$ac_exeext && {
16515          test "$cross_compiling" = yes ||
16516          $as_test_x conftest$ac_exeext
16517        }; then
16518                         if test "$cross_compiling" = yes; then
16519   ac_cv_type_long_long_int=yes
16520 else
16521   cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h.  */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h.  */
16527 #include <limits.h>
16528                #ifndef LLONG_MAX
16529                # define HALF \
16530                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16531                # define LLONG_MAX (HALF - 1 + HALF)
16532                #endif
16533 int
16534 main ()
16535 {
16536 long long int n = 1;
16537                int i;
16538                for (i = 0; ; i++)
16539                  {
16540                    long long int m = n << i;
16541                    if (m >> i != n)
16542                      return 1;
16543                    if (LLONG_MAX / 2 < m)
16544                      break;
16545                  }
16546                return 0;
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559   (eval "$ac_link") 2>&5
16560   ac_status=$?
16561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16563   { (case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16568 $as_echo "$ac_try_echo") >&5
16569   (eval "$ac_try") 2>&5
16570   ac_status=$?
16571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_cv_type_long_long_int=yes
16574 else
16575   $as_echo "$as_me: program exited with status $ac_status" >&5
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ( exit $ac_status )
16580 ac_cv_type_long_long_int=no
16581 fi
16582 rm -rf conftest.dSYM
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16584 fi
16585
16586
16587 else
16588   $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591         ac_cv_type_long_long_int=no
16592 fi
16593
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596       conftest$ac_exeext conftest.$ac_ext
16597 fi
16598 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16599 $as_echo "$ac_cv_type_long_long_int" >&6; }
16600   if test $ac_cv_type_long_long_int = yes; then
16601
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_LONG_LONG_INT 1
16604 _ACEOF
16605
16606   fi
16607
16608
16609 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16610 $as_echo_n "checking for struct cmsgcred... " >&6; }
16611 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16612   $as_echo_n "(cached) " >&6
16613 else
16614   ac_cv_type_struct_cmsgcred=no
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 #include <sys/param.h>
16622 #include <sys/types.h>
16623 #include <sys/socket.h>
16624 #include <sys/ucred.h>
16625
16626 int
16627 main ()
16628 {
16629 if (sizeof (struct cmsgcred))
16630        return 0;
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643   (eval "$ac_compile") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } && {
16650          test -z "$ac_c_werror_flag" ||
16651          test ! -s conftest.err
16652        } && test -s conftest.$ac_objext; then
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 #include <sys/param.h>
16660 #include <sys/types.h>
16661 #include <sys/socket.h>
16662 #include <sys/ucred.h>
16663
16664 int
16665 main ()
16666 {
16667 if (sizeof ((struct cmsgcred)))
16668           return 0;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681   (eval "$ac_compile") 2>conftest.er1
16682   ac_status=$?
16683   grep -v '^ *+' conftest.er1 >conftest.err
16684   rm -f conftest.er1
16685   cat conftest.err >&5
16686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } && {
16688          test -z "$ac_c_werror_flag" ||
16689          test ! -s conftest.err
16690        } && test -s conftest.$ac_objext; then
16691   :
16692 else
16693   $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696         ac_cv_type_struct_cmsgcred=yes
16697 fi
16698
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 else
16701   $as_echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704
16705 fi
16706
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 fi
16709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16710 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16711 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16712
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_STRUCT_CMSGCRED 1
16715 _ACEOF
16716
16717
16718 fi
16719 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16720 $as_echo_n "checking for struct fcred... " >&6; }
16721 if test "${ac_cv_type_struct_fcred+set}" = set; then
16722   $as_echo_n "(cached) " >&6
16723 else
16724   ac_cv_type_struct_fcred=no
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731 #include <sys/param.h>
16732 #include <sys/types.h>
16733 #include <sys/socket.h>
16734 #include <sys/ucred.h>
16735
16736 int
16737 main ()
16738 {
16739 if (sizeof (struct fcred))
16740        return 0;
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753   (eval "$ac_compile") 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } && {
16760          test -z "$ac_c_werror_flag" ||
16761          test ! -s conftest.err
16762        } && test -s conftest.$ac_objext; then
16763   cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 #include <sys/param.h>
16770 #include <sys/types.h>
16771 #include <sys/socket.h>
16772 #include <sys/ucred.h>
16773
16774 int
16775 main ()
16776 {
16777 if (sizeof ((struct fcred)))
16778           return 0;
16779   ;
16780   return 0;
16781 }
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (ac_try="$ac_compile"
16785 case "(($ac_try" in
16786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787   *) ac_try_echo=$ac_try;;
16788 esac
16789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16790 $as_echo "$ac_try_echo") >&5
16791   (eval "$ac_compile") 2>conftest.er1
16792   ac_status=$?
16793   grep -v '^ *+' conftest.er1 >conftest.err
16794   rm -f conftest.er1
16795   cat conftest.err >&5
16796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } && {
16798          test -z "$ac_c_werror_flag" ||
16799          test ! -s conftest.err
16800        } && test -s conftest.$ac_objext; then
16801   :
16802 else
16803   $as_echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806         ac_cv_type_struct_fcred=yes
16807 fi
16808
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 else
16811   $as_echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814
16815 fi
16816
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 fi
16819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16820 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16821 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16822
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_STRUCT_FCRED 1
16825 _ACEOF
16826
16827
16828 fi
16829 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16830 $as_echo_n "checking for struct sockcred... " >&6; }
16831 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16832   $as_echo_n "(cached) " >&6
16833 else
16834   ac_cv_type_struct_sockcred=no
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h.  */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h.  */
16841 #include <sys/param.h>
16842 #include <sys/types.h>
16843 #include <sys/socket.h>
16844 #include <sys/ucred.h>
16845
16846 int
16847 main ()
16848 {
16849 if (sizeof (struct sockcred))
16850        return 0;
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863   (eval "$ac_compile") 2>conftest.er1
16864   ac_status=$?
16865   grep -v '^ *+' conftest.er1 >conftest.err
16866   rm -f conftest.er1
16867   cat conftest.err >&5
16868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } && {
16870          test -z "$ac_c_werror_flag" ||
16871          test ! -s conftest.err
16872        } && test -s conftest.$ac_objext; then
16873   cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879 #include <sys/param.h>
16880 #include <sys/types.h>
16881 #include <sys/socket.h>
16882 #include <sys/ucred.h>
16883
16884 int
16885 main ()
16886 {
16887 if (sizeof ((struct sockcred)))
16888           return 0;
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901   (eval "$ac_compile") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } && {
16908          test -z "$ac_c_werror_flag" ||
16909          test ! -s conftest.err
16910        } && test -s conftest.$ac_objext; then
16911   :
16912 else
16913   $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916         ac_cv_type_struct_sockcred=yes
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 else
16921   $as_echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924
16925 fi
16926
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928 fi
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16930 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16931 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16932
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STRUCT_SOCKCRED 1
16935 _ACEOF
16936
16937
16938 fi
16939
16940
16941 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16942 $as_echo_n "checking for struct option... " >&6; }
16943 if test "${ac_cv_type_struct_option+set}" = set; then
16944   $as_echo_n "(cached) " >&6
16945 else
16946   ac_cv_type_struct_option=no
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953 #ifdef HAVE_GETOPT_H
16954 #include <getopt.h>
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 if (sizeof (struct option))
16961        return 0;
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974   (eval "$ac_compile") 2>conftest.er1
16975   ac_status=$?
16976   grep -v '^ *+' conftest.er1 >conftest.err
16977   rm -f conftest.er1
16978   cat conftest.err >&5
16979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); } && {
16981          test -z "$ac_c_werror_flag" ||
16982          test ! -s conftest.err
16983        } && test -s conftest.$ac_objext; then
16984   cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990 #ifdef HAVE_GETOPT_H
16991 #include <getopt.h>
16992 #endif
16993
16994 int
16995 main ()
16996 {
16997 if (sizeof ((struct option)))
16998           return 0;
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011   (eval "$ac_compile") 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } && {
17018          test -z "$ac_c_werror_flag" ||
17019          test ! -s conftest.err
17020        } && test -s conftest.$ac_objext; then
17021   :
17022 else
17023   $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         ac_cv_type_struct_option=yes
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 else
17031   $as_echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17033
17034
17035 fi
17036
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038 fi
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17040 $as_echo "$ac_cv_type_struct_option" >&6; }
17041 if test "x$ac_cv_type_struct_option" = x""yes; then
17042
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_STRUCT_OPTION 1
17045 _ACEOF
17046
17047
17048 fi
17049
17050
17051 if test "$with_zlib" = yes; then
17052   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17053   # did not).  While we could work around the lack of z_streamp, it
17054   # seems unwise to encourage people to use such old zlib versions...
17055   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17056 $as_echo_n "checking for z_streamp... " >&6; }
17057 if test "${ac_cv_type_z_streamp+set}" = set; then
17058   $as_echo_n "(cached) " >&6
17059 else
17060   ac_cv_type_z_streamp=no
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 #include <zlib.h>
17068
17069 int
17070 main ()
17071 {
17072 if (sizeof (z_streamp))
17073        return 0;
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086   (eval "$ac_compile") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } && {
17093          test -z "$ac_c_werror_flag" ||
17094          test ! -s conftest.err
17095        } && test -s conftest.$ac_objext; then
17096   cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102 #include <zlib.h>
17103
17104 int
17105 main ()
17106 {
17107 if (sizeof ((z_streamp)))
17108           return 0;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121   (eval "$ac_compile") 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } && {
17128          test -z "$ac_c_werror_flag" ||
17129          test ! -s conftest.err
17130        } && test -s conftest.$ac_objext; then
17131   :
17132 else
17133   $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136         ac_cv_type_z_streamp=yes
17137 fi
17138
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 else
17141   $as_echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144
17145 fi
17146
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 fi
17149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17150 $as_echo "$ac_cv_type_z_streamp" >&6; }
17151 if test "x$ac_cv_type_z_streamp" = x""yes; then
17152   :
17153 else
17154   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17155 Use --without-zlib to disable zlib support." >&5
17156 $as_echo "$as_me: error: zlib version is too old
17157 Use --without-zlib to disable zlib support." >&2;}
17158    { (exit 1); exit 1; }; }
17159 fi
17160
17161 fi
17162
17163 if test "$with_krb5" = yes; then
17164 # Check for differences between MIT and Heimdal (KTH) releases
17165   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17166 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17167 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17168   $as_echo_n "(cached) " >&6
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176 #include <krb5.h>
17177
17178 int
17179 main ()
17180 {
17181 static krb5_ticket ac_aggr;
17182 if (ac_aggr.enc_part2)
17183 return 0;
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196   (eval "$ac_compile") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } && {
17203          test -z "$ac_c_werror_flag" ||
17204          test ! -s conftest.err
17205        } && test -s conftest.$ac_objext; then
17206   ac_cv_member_krb5_ticket_enc_part2=yes
17207 else
17208   $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211         cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h.  */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h.  */
17217 #include <krb5.h>
17218
17219 int
17220 main ()
17221 {
17222 static krb5_ticket ac_aggr;
17223 if (sizeof ac_aggr.enc_part2)
17224 return 0;
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237   (eval "$ac_compile") 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } && {
17244          test -z "$ac_c_werror_flag" ||
17245          test ! -s conftest.err
17246        } && test -s conftest.$ac_objext; then
17247   ac_cv_member_krb5_ticket_enc_part2=yes
17248 else
17249   $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252         ac_cv_member_krb5_ticket_enc_part2=no
17253 fi
17254
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 fi
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17261 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17262 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17263
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_KRB5_TICKET_ENC_PART2 1
17266 _ACEOF
17267
17268
17269 else
17270   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17271 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17272 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17273   $as_echo_n "(cached) " >&6
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 #include <krb5.h>
17282
17283 int
17284 main ()
17285 {
17286 static krb5_ticket ac_aggr;
17287 if (ac_aggr.client)
17288 return 0;
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17300 $as_echo "$ac_try_echo") >&5
17301   (eval "$ac_compile") 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } && {
17308          test -z "$ac_c_werror_flag" ||
17309          test ! -s conftest.err
17310        } && test -s conftest.$ac_objext; then
17311   ac_cv_member_krb5_ticket_client=yes
17312 else
17313   $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316         cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322 #include <krb5.h>
17323
17324 int
17325 main ()
17326 {
17327 static krb5_ticket ac_aggr;
17328 if (sizeof ac_aggr.client)
17329 return 0;
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext
17335 if { (ac_try="$ac_compile"
17336 case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17341 $as_echo "$ac_try_echo") >&5
17342   (eval "$ac_compile") 2>conftest.er1
17343   ac_status=$?
17344   grep -v '^ *+' conftest.er1 >conftest.err
17345   rm -f conftest.er1
17346   cat conftest.err >&5
17347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } && {
17349          test -z "$ac_c_werror_flag" ||
17350          test ! -s conftest.err
17351        } && test -s conftest.$ac_objext; then
17352   ac_cv_member_krb5_ticket_client=yes
17353 else
17354   $as_echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357         ac_cv_member_krb5_ticket_client=no
17358 fi
17359
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 fi
17362
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 fi
17365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17366 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17367 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17368
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_KRB5_TICKET_CLIENT 1
17371 _ACEOF
17372
17373
17374 else
17375   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17376 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17377    { (exit 1); exit 1; }; }
17378 fi
17379
17380 fi
17381
17382   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17383 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17384 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17385   $as_echo_n "(cached) " >&6
17386 else
17387   cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h.  */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h.  */
17393 #include <krb5.h>
17394
17395 int
17396 main ()
17397 {
17398 static krb5_error ac_aggr;
17399 if (ac_aggr.text.data)
17400 return 0;
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413   (eval "$ac_compile") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest.$ac_objext; then
17423   ac_cv_member_krb5_error_text_data=yes
17424 else
17425   $as_echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428         cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 #include <krb5.h>
17435
17436 int
17437 main ()
17438 {
17439 static krb5_error ac_aggr;
17440 if (sizeof ac_aggr.text.data)
17441 return 0;
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454   (eval "$ac_compile") 2>conftest.er1
17455   ac_status=$?
17456   grep -v '^ *+' conftest.er1 >conftest.err
17457   rm -f conftest.er1
17458   cat conftest.err >&5
17459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); } && {
17461          test -z "$ac_c_werror_flag" ||
17462          test ! -s conftest.err
17463        } && test -s conftest.$ac_objext; then
17464   ac_cv_member_krb5_error_text_data=yes
17465 else
17466   $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469         ac_cv_member_krb5_error_text_data=no
17470 fi
17471
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476 fi
17477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17478 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17479 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17480
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17483 _ACEOF
17484
17485
17486 else
17487   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17488 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17489 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17490   $as_echo_n "(cached) " >&6
17491 else
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 #include <krb5.h>
17499
17500 int
17501 main ()
17502 {
17503 static krb5_error ac_aggr;
17504 if (ac_aggr.e_data)
17505 return 0;
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518   (eval "$ac_compile") 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } && {
17525          test -z "$ac_c_werror_flag" ||
17526          test ! -s conftest.err
17527        } && test -s conftest.$ac_objext; then
17528   ac_cv_member_krb5_error_e_data=yes
17529 else
17530   $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533         cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 #include <krb5.h>
17540
17541 int
17542 main ()
17543 {
17544 static krb5_error ac_aggr;
17545 if (sizeof ac_aggr.e_data)
17546 return 0;
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext
17552 if { (ac_try="$ac_compile"
17553 case "(($ac_try" in
17554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555   *) ac_try_echo=$ac_try;;
17556 esac
17557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17558 $as_echo "$ac_try_echo") >&5
17559   (eval "$ac_compile") 2>conftest.er1
17560   ac_status=$?
17561   grep -v '^ *+' conftest.er1 >conftest.err
17562   rm -f conftest.er1
17563   cat conftest.err >&5
17564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } && {
17566          test -z "$ac_c_werror_flag" ||
17567          test ! -s conftest.err
17568        } && test -s conftest.$ac_objext; then
17569   ac_cv_member_krb5_error_e_data=yes
17570 else
17571   $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574         ac_cv_member_krb5_error_e_data=no
17575 fi
17576
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 fi
17579
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 fi
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17583 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17584 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17585
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_KRB5_ERROR_E_DATA 1
17588 _ACEOF
17589
17590
17591 else
17592   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17593 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17594    { (exit 1); exit 1; }; }
17595 fi
17596
17597 fi
17598
17599
17600 # Win32 requires headers to be loaded for __stdcall, so can't use
17601 # AC_CHECK_FUNCS here.
17602   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17603 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17604   cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610 #include <krb5.h>
17611 int
17612 main ()
17613 {
17614 krb5_free_unparsed_name(NULL,NULL);
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627   (eval "$ac_link") 2>conftest.er1
17628   ac_status=$?
17629   grep -v '^ *+' conftest.er1 >conftest.err
17630   rm -f conftest.er1
17631   cat conftest.err >&5
17632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); } && {
17634          test -z "$ac_c_werror_flag" ||
17635          test ! -s conftest.err
17636        } && test -s conftest$ac_exeext && {
17637          test "$cross_compiling" = yes ||
17638          $as_test_x conftest$ac_exeext
17639        }; then
17640
17641 cat >>confdefs.h <<\_ACEOF
17642 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17643 _ACEOF
17644
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17647 else
17648   $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651         { $as_echo "$as_me:$LINENO: result: no" >&5
17652 $as_echo "no" >&6; }
17653 fi
17654
17655 rm -rf conftest.dSYM
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657       conftest$ac_exeext conftest.$ac_ext
17658 fi
17659
17660 # Check largefile support.  You might think this is a system service not a
17661 # compiler characteristic, but you'd be wrong.  We must check this before
17662 # probing existence of related functions such as fseeko, since the largefile
17663 # defines can affect what is generated for that.
17664 # Check whether --enable-largefile was given.
17665 if test "${enable_largefile+set}" = set; then
17666   enableval=$enable_largefile;
17667 fi
17668
17669 if test "$enable_largefile" != no; then
17670
17671   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17673 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17674   $as_echo_n "(cached) " >&6
17675 else
17676   ac_cv_sys_largefile_CC=no
17677      if test "$GCC" != yes; then
17678        ac_save_CC=$CC
17679        while :; do
17680          # IRIX 6.2 and later do not support large files by default,
17681          # so use the C compiler's -n32 option if that helps.
17682          cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 #include <sys/types.h>
17689  /* Check that off_t can represent 2**63 - 1 correctly.
17690     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17691     since some C++ compilers masquerading as C compilers
17692     incorrectly reject 9223372036854775807.  */
17693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17694   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17695                        && LARGE_OFF_T % 2147483647 == 1)
17696                       ? 1 : -1];
17697 int
17698 main ()
17699 {
17700
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705          rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713   (eval "$ac_compile") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } && {
17720          test -z "$ac_c_werror_flag" ||
17721          test ! -s conftest.err
17722        } && test -s conftest.$ac_objext; then
17723   break
17724 else
17725   $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728
17729 fi
17730
17731 rm -f core conftest.err conftest.$ac_objext
17732          CC="$CC -n32"
17733          rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741   (eval "$ac_compile") 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } && {
17748          test -z "$ac_c_werror_flag" ||
17749          test ! -s conftest.err
17750        } && test -s conftest.$ac_objext; then
17751   ac_cv_sys_largefile_CC=' -n32'; break
17752 else
17753   $as_echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756
17757 fi
17758
17759 rm -f core conftest.err conftest.$ac_objext
17760          break
17761        done
17762        CC=$ac_save_CC
17763        rm -f conftest.$ac_ext
17764     fi
17765 fi
17766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17767 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17768   if test "$ac_cv_sys_largefile_CC" != no; then
17769     CC=$CC$ac_cv_sys_largefile_CC
17770   fi
17771
17772   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17773 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17774 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17775   $as_echo_n "(cached) " >&6
17776 else
17777   while :; do
17778   cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784 #include <sys/types.h>
17785  /* Check that off_t can represent 2**63 - 1 correctly.
17786     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17787     since some C++ compilers masquerading as C compilers
17788     incorrectly reject 9223372036854775807.  */
17789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17790   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17791                        && LARGE_OFF_T % 2147483647 == 1)
17792                       ? 1 : -1];
17793 int
17794 main ()
17795 {
17796
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809   (eval "$ac_compile") 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } && {
17816          test -z "$ac_c_werror_flag" ||
17817          test ! -s conftest.err
17818        } && test -s conftest.$ac_objext; then
17819   ac_cv_sys_file_offset_bits=no; break
17820 else
17821   $as_echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 #define _FILE_OFFSET_BITS 64
17835 #include <sys/types.h>
17836  /* Check that off_t can represent 2**63 - 1 correctly.
17837     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17838     since some C++ compilers masquerading as C compilers
17839     incorrectly reject 9223372036854775807.  */
17840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17841   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17842                        && LARGE_OFF_T % 2147483647 == 1)
17843                       ? 1 : -1];
17844 int
17845 main ()
17846 {
17847
17848   ;
17849   return 0;
17850 }
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17859 $as_echo "$ac_try_echo") >&5
17860   (eval "$ac_compile") 2>conftest.er1
17861   ac_status=$?
17862   grep -v '^ *+' conftest.er1 >conftest.err
17863   rm -f conftest.er1
17864   cat conftest.err >&5
17865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } && {
17867          test -z "$ac_c_werror_flag" ||
17868          test ! -s conftest.err
17869        } && test -s conftest.$ac_objext; then
17870   ac_cv_sys_file_offset_bits=64; break
17871 else
17872   $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879   ac_cv_sys_file_offset_bits=unknown
17880   break
17881 done
17882 fi
17883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17885 case $ac_cv_sys_file_offset_bits in #(
17886   no | unknown) ;;
17887   *)
17888 cat >>confdefs.h <<_ACEOF
17889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17890 _ACEOF
17891 ;;
17892 esac
17893 rm -rf conftest*
17894   if test $ac_cv_sys_file_offset_bits = unknown; then
17895     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17897 if test "${ac_cv_sys_large_files+set}" = set; then
17898   $as_echo_n "(cached) " >&6
17899 else
17900   while :; do
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 #include <sys/types.h>
17908  /* Check that off_t can represent 2**63 - 1 correctly.
17909     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17910     since some C++ compilers masquerading as C compilers
17911     incorrectly reject 9223372036854775807.  */
17912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17913   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17914                        && LARGE_OFF_T % 2147483647 == 1)
17915                       ? 1 : -1];
17916 int
17917 main ()
17918 {
17919
17920   ;
17921   return 0;
17922 }
17923 _ACEOF
17924 rm -f conftest.$ac_objext
17925 if { (ac_try="$ac_compile"
17926 case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932   (eval "$ac_compile") 2>conftest.er1
17933   ac_status=$?
17934   grep -v '^ *+' conftest.er1 >conftest.err
17935   rm -f conftest.er1
17936   cat conftest.err >&5
17937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); } && {
17939          test -z "$ac_c_werror_flag" ||
17940          test ! -s conftest.err
17941        } && test -s conftest.$ac_objext; then
17942   ac_cv_sys_large_files=no; break
17943 else
17944   $as_echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17946
17947
17948 fi
17949
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 #define _LARGE_FILES 1
17958 #include <sys/types.h>
17959  /* Check that off_t can represent 2**63 - 1 correctly.
17960     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17961     since some C++ compilers masquerading as C compilers
17962     incorrectly reject 9223372036854775807.  */
17963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17964   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17965                        && LARGE_OFF_T % 2147483647 == 1)
17966                       ? 1 : -1];
17967 int
17968 main ()
17969 {
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17982 $as_echo "$ac_try_echo") >&5
17983   (eval "$ac_compile") 2>conftest.er1
17984   ac_status=$?
17985   grep -v '^ *+' conftest.er1 >conftest.err
17986   rm -f conftest.er1
17987   cat conftest.err >&5
17988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); } && {
17990          test -z "$ac_c_werror_flag" ||
17991          test ! -s conftest.err
17992        } && test -s conftest.$ac_objext; then
17993   ac_cv_sys_large_files=1; break
17994 else
17995   $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998
17999 fi
18000
18001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002   ac_cv_sys_large_files=unknown
18003   break
18004 done
18005 fi
18006 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18007 $as_echo "$ac_cv_sys_large_files" >&6; }
18008 case $ac_cv_sys_large_files in #(
18009   no | unknown) ;;
18010   *)
18011 cat >>confdefs.h <<_ACEOF
18012 #define _LARGE_FILES $ac_cv_sys_large_files
18013 _ACEOF
18014 ;;
18015 esac
18016 rm -rf conftest*
18017   fi
18018 fi
18019
18020
18021 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18022 # The cast to long int works around a bug in the HP C Compiler
18023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18025 # This bug is HP SR number 8606223364.
18026 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18027 $as_echo_n "checking size of off_t... " >&6; }
18028 if test "${ac_cv_sizeof_off_t+set}" = set; then
18029   $as_echo_n "(cached) " >&6
18030 else
18031   if test "$cross_compiling" = yes; then
18032   # Depending upon the size, compute the lo and hi bounds.
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 $ac_includes_default
18040 int
18041 main ()
18042 {
18043 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18044 test_array [0] = 0
18045
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054   *) ac_try_echo=$ac_try;;
18055 esac
18056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057 $as_echo "$ac_try_echo") >&5
18058   (eval "$ac_compile") 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } && {
18065          test -z "$ac_c_werror_flag" ||
18066          test ! -s conftest.err
18067        } && test -s conftest.$ac_objext; then
18068   ac_lo=0 ac_mid=0
18069   while :; do
18070     cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076 $ac_includes_default
18077 int
18078 main ()
18079 {
18080 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18081 test_array [0] = 0
18082
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091   *) ac_try_echo=$ac_try;;
18092 esac
18093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18094 $as_echo "$ac_try_echo") >&5
18095   (eval "$ac_compile") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } && {
18102          test -z "$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        } && test -s conftest.$ac_objext; then
18105   ac_hi=$ac_mid; break
18106 else
18107   $as_echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110         ac_lo=`expr $ac_mid + 1`
18111                         if test $ac_lo -le $ac_mid; then
18112                           ac_lo= ac_hi=
18113                           break
18114                         fi
18115                         ac_mid=`expr 2 '*' $ac_mid + 1`
18116 fi
18117
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119   done
18120 else
18121   $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124         cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130 $ac_includes_default
18131 int
18132 main ()
18133 {
18134 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18135 test_array [0] = 0
18136
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148 $as_echo "$ac_try_echo") >&5
18149   (eval "$ac_compile") 2>conftest.er1
18150   ac_status=$?
18151   grep -v '^ *+' conftest.er1 >conftest.err
18152   rm -f conftest.er1
18153   cat conftest.err >&5
18154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); } && {
18156          test -z "$ac_c_werror_flag" ||
18157          test ! -s conftest.err
18158        } && test -s conftest.$ac_objext; then
18159   ac_hi=-1 ac_mid=-1
18160   while :; do
18161     cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167 $ac_includes_default
18168 int
18169 main ()
18170 {
18171 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18172 test_array [0] = 0
18173
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186   (eval "$ac_compile") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && {
18193          test -z "$ac_c_werror_flag" ||
18194          test ! -s conftest.err
18195        } && test -s conftest.$ac_objext; then
18196   ac_lo=$ac_mid; break
18197 else
18198   $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         ac_hi=`expr '(' $ac_mid ')' - 1`
18202                         if test $ac_mid -le $ac_hi; then
18203                           ac_lo= ac_hi=
18204                           break
18205                         fi
18206                         ac_mid=`expr 2 '*' $ac_mid`
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210   done
18211 else
18212   $as_echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215         ac_lo= ac_hi=
18216 fi
18217
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219 fi
18220
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 # Binary search between lo and hi bounds.
18223 while test "x$ac_lo" != "x$ac_hi"; do
18224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18225   cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 $ac_includes_default
18232 int
18233 main ()
18234 {
18235 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18236 test_array [0] = 0
18237
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (ac_try="$ac_compile"
18244 case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18249 $as_echo "$ac_try_echo") >&5
18250   (eval "$ac_compile") 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } && {
18257          test -z "$ac_c_werror_flag" ||
18258          test ! -s conftest.err
18259        } && test -s conftest.$ac_objext; then
18260   ac_hi=$ac_mid
18261 else
18262   $as_echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265         ac_lo=`expr '(' $ac_mid ')' + 1`
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 done
18270 case $ac_lo in
18271 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18272 '') if test "$ac_cv_type_off_t" = yes; then
18273      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18275 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18276 See \`config.log' for more details." >&5
18277 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18278 See \`config.log' for more details." >&2;}
18279    { (exit 77); exit 77; }; }; }
18280    else
18281      ac_cv_sizeof_off_t=0
18282    fi ;;
18283 esac
18284 else
18285   cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291 $ac_includes_default
18292 static long int longval () { return (long int) (sizeof (off_t)); }
18293 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18294 #include <stdio.h>
18295 #include <stdlib.h>
18296 int
18297 main ()
18298 {
18299
18300   FILE *f = fopen ("conftest.val", "w");
18301   if (! f)
18302     return 1;
18303   if (((long int) (sizeof (off_t))) < 0)
18304     {
18305       long int i = longval ();
18306       if (i != ((long int) (sizeof (off_t))))
18307         return 1;
18308       fprintf (f, "%ld", i);
18309     }
18310   else
18311     {
18312       unsigned long int i = ulongval ();
18313       if (i != ((long int) (sizeof (off_t))))
18314         return 1;
18315       fprintf (f, "%lu", i);
18316     }
18317   /* Do not output a trailing newline, as this causes \r\n confusion
18318      on some platforms.  */
18319   return ferror (f) || fclose (f) != 0;
18320
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333   (eval "$ac_link") 2>&5
18334   ac_status=$?
18335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18337   { (case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347   ac_cv_sizeof_off_t=`cat conftest.val`
18348 else
18349   $as_echo "$as_me: program exited with status $ac_status" >&5
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18352
18353 ( exit $ac_status )
18354 if test "$ac_cv_type_off_t" = yes; then
18355      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18358 See \`config.log' for more details." >&5
18359 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18360 See \`config.log' for more details." >&2;}
18361    { (exit 77); exit 77; }; }; }
18362    else
18363      ac_cv_sizeof_off_t=0
18364    fi
18365 fi
18366 rm -rf conftest.dSYM
18367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 rm -f conftest.val
18370 fi
18371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18372 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18373
18374
18375
18376 cat >>confdefs.h <<_ACEOF
18377 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18378 _ACEOF
18379
18380
18381
18382 # If we don't have largefile support, can't handle segsize >= 2GB.
18383 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18384    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18385 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18386    { (exit 1); exit 1; }; }
18387 fi
18388
18389
18390 ##
18391 ## Functions, global variables
18392 ##
18393
18394 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18395 $as_echo_n "checking for int timezone... " >&6; }
18396 if test "${pgac_cv_var_int_timezone+set}" = set; then
18397   $as_echo_n "(cached) " >&6
18398 else
18399   cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405 #include <time.h>
18406 int res;
18407 int
18408 main ()
18409 {
18410 #ifndef __CYGWIN__
18411 res = timezone / 60;
18412 #else
18413 res = _timezone / 60;
18414 #endif
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427   (eval "$ac_link") 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } && {
18434          test -z "$ac_c_werror_flag" ||
18435          test ! -s conftest.err
18436        } && test -s conftest$ac_exeext && {
18437          test "$cross_compiling" = yes ||
18438          $as_test_x conftest$ac_exeext
18439        }; then
18440   pgac_cv_var_int_timezone=yes
18441 else
18442   $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445         pgac_cv_var_int_timezone=no
18446 fi
18447
18448 rm -rf conftest.dSYM
18449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450       conftest$ac_exeext conftest.$ac_ext
18451 fi
18452 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18453 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18454 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18455
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_INT_TIMEZONE /**/
18458 _ACEOF
18459
18460 fi
18461 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18462 $as_echo_n "checking types of arguments for accept()... " >&6; }
18463  if test "${ac_cv_func_accept_return+set}" = set; then
18464   $as_echo_n "(cached) " >&6
18465 else
18466    if test "${ac_cv_func_accept_arg1+set}" = set; then
18467   $as_echo_n "(cached) " >&6
18468 else
18469     if test "${ac_cv_func_accept_arg2+set}" = set; then
18470   $as_echo_n "(cached) " >&6
18471 else
18472      if test "${ac_cv_func_accept_arg3+set}" = set; then
18473   $as_echo_n "(cached) " >&6
18474 else
18475       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18476       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18477        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18478         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18479          cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 #ifdef HAVE_SYS_TYPES_H
18486 #include <sys/types.h>
18487 #endif
18488 #ifdef HAVE_SYS_SOCKET_H
18489 #include <sys/socket.h>
18490 #endif
18491 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18492 int
18493 main ()
18494 {
18495
18496   ;
18497   return 0;
18498 }
18499 _ACEOF
18500 rm -f conftest.$ac_objext
18501 if { (ac_try="$ac_compile"
18502 case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508   (eval "$ac_compile") 2>conftest.er1
18509   ac_status=$?
18510   grep -v '^ *+' conftest.er1 >conftest.err
18511   rm -f conftest.er1
18512   cat conftest.err >&5
18513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); } && {
18515          test -z "$ac_c_werror_flag" ||
18516          test ! -s conftest.err
18517        } && test -s conftest.$ac_objext; then
18518   ac_not_found=no; break 4
18519 else
18520   $as_echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523         ac_not_found=yes
18524 fi
18525
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527        done
18528       done
18529      done
18530     done
18531     if test "$ac_not_found" = yes; then
18532       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18533 $as_echo "$as_me: error: could not determine argument types" >&2;}
18534    { (exit 1); exit 1; }; }
18535     fi
18536     if test "$ac_cv_func_accept_arg3" = "void"; then
18537       ac_cv_func_accept_arg3=int
18538     fi
18539
18540 fi
18541
18542 fi
18543
18544 fi
18545
18546 fi
18547  { $as_echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
18548 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18549
18550 cat >>confdefs.h <<_ACEOF
18551 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18552 _ACEOF
18553
18554
18555 cat >>confdefs.h <<_ACEOF
18556 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18557 _ACEOF
18558
18559
18560 cat >>confdefs.h <<_ACEOF
18561 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18562 _ACEOF
18563
18564
18565 cat >>confdefs.h <<_ACEOF
18566 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18567 _ACEOF
18568
18569
18570 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18571 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18572 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18573   $as_echo_n "(cached) " >&6
18574 else
18575   cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581 #include <sys/time.h>
18582 int
18583 main ()
18584 {
18585 struct timeval *tp;
18586 struct timezone *tzp;
18587 gettimeofday(tp,tzp);
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18599 $as_echo "$ac_try_echo") >&5
18600   (eval "$ac_compile") 2>conftest.er1
18601   ac_status=$?
18602   grep -v '^ *+' conftest.er1 >conftest.err
18603   rm -f conftest.er1
18604   cat conftest.err >&5
18605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } && {
18607          test -z "$ac_c_werror_flag" ||
18608          test ! -s conftest.err
18609        } && test -s conftest.$ac_objext; then
18610   pgac_cv_func_gettimeofday_1arg=no
18611 else
18612   $as_echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615         pgac_cv_func_gettimeofday_1arg=yes
18616 fi
18617
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18619 fi
18620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18621 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18622 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18623
18624 cat >>confdefs.h <<\_ACEOF
18625 #define GETTIMEOFDAY_1ARG /**/
18626 _ACEOF
18627
18628 fi
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18656 do
18657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 $as_echo_n "checking for $ac_func... " >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18661   $as_echo_n "(cached) " >&6
18662 else
18663   cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18671 #define $ac_func innocuous_$ac_func
18672
18673 /* System header to define __stub macros and hopefully few prototypes,
18674     which can conflict with char $ac_func (); below.
18675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676     <limits.h> exists even on freestanding compilers.  */
18677
18678 #ifdef __STDC__
18679 # include <limits.h>
18680 #else
18681 # include <assert.h>
18682 #endif
18683
18684 #undef $ac_func
18685
18686 /* Override any GCC internal prototype to avoid an error.
18687    Use char because int might match the return type of a GCC
18688    builtin and then its argument prototype would still apply.  */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char $ac_func ();
18693 /* The GNU C library defines this for functions which it implements
18694     to always fail with ENOSYS.  Some functions are actually named
18695     something starting with __ and the normal name is an alias.  */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 choke me
18698 #endif
18699
18700 int
18701 main ()
18702 {
18703 return $ac_func ();
18704   ;
18705   return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712   *) ac_try_echo=$ac_try;;
18713 esac
18714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716   (eval "$ac_link") 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } && {
18723          test -z "$ac_c_werror_flag" ||
18724          test ! -s conftest.err
18725        } && test -s conftest$ac_exeext && {
18726          test "$cross_compiling" = yes ||
18727          $as_test_x conftest$ac_exeext
18728        }; then
18729   eval "$as_ac_var=yes"
18730 else
18731   $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         eval "$as_ac_var=no"
18735 fi
18736
18737 rm -rf conftest.dSYM
18738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18739       conftest$ac_exeext conftest.$ac_ext
18740 fi
18741 ac_res=`eval 'as_val=${'$as_ac_var'}
18742                  $as_echo "$as_val"'`
18743                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 as_val=`eval 'as_val=${'$as_ac_var'}
18746                  $as_echo "$as_val"'`
18747    if test "x$as_val" = x""yes; then
18748   cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18750 _ACEOF
18751
18752 fi
18753 done
18754
18755
18756
18757 for ac_func in fseeko
18758 do
18759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 $as_echo_n "checking for $ac_func... " >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763   $as_echo_n "(cached) " >&6
18764 else
18765   cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18773 #define $ac_func innocuous_$ac_func
18774
18775 /* System header to define __stub macros and hopefully few prototypes,
18776     which can conflict with char $ac_func (); below.
18777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778     <limits.h> exists even on freestanding compilers.  */
18779
18780 #ifdef __STDC__
18781 # include <limits.h>
18782 #else
18783 # include <assert.h>
18784 #endif
18785
18786 #undef $ac_func
18787
18788 /* Override any GCC internal prototype to avoid an error.
18789    Use char because int might match the return type of a GCC
18790    builtin and then its argument prototype would still apply.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 char $ac_func ();
18795 /* The GNU C library defines this for functions which it implements
18796     to always fail with ENOSYS.  Some functions are actually named
18797     something starting with __ and the normal name is an alias.  */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18799 choke me
18800 #endif
18801
18802 int
18803 main ()
18804 {
18805 return $ac_func ();
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818   (eval "$ac_link") 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } && {
18825          test -z "$ac_c_werror_flag" ||
18826          test ! -s conftest.err
18827        } && test -s conftest$ac_exeext && {
18828          test "$cross_compiling" = yes ||
18829          $as_test_x conftest$ac_exeext
18830        }; then
18831   eval "$as_ac_var=yes"
18832 else
18833   $as_echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836         eval "$as_ac_var=no"
18837 fi
18838
18839 rm -rf conftest.dSYM
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841       conftest$ac_exeext conftest.$ac_ext
18842 fi
18843 ac_res=`eval 'as_val=${'$as_ac_var'}
18844                  $as_echo "$as_val"'`
18845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18846 $as_echo "$ac_res" >&6; }
18847 as_val=`eval 'as_val=${'$as_ac_var'}
18848                  $as_echo "$as_val"'`
18849    if test "x$as_val" = x""yes; then
18850   cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 _ACEOF
18853
18854 else
18855   case " $LIBOBJS " in
18856   *" $ac_func.$ac_objext "* ) ;;
18857   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18858  ;;
18859 esac
18860
18861 fi
18862 done
18863
18864
18865 case $host_os in
18866         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18867         # Mingw uses macros to access Win32 API calls
18868         bsdi*|netbsd*|mingw*)
18869
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_FSEEKO 1
18872 _ACEOF
18873
18874                 ac_cv_func_fseeko=yes;;
18875         *)
18876                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18877 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18878 if test "${ac_cv_sys_largefile_source+set}" = set; then
18879   $as_echo_n "(cached) " >&6
18880 else
18881   while :; do
18882   cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h.  */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h.  */
18888 #include <sys/types.h> /* for off_t */
18889      #include <stdio.h>
18890 int
18891 main ()
18892 {
18893 int (*fp) (FILE *, off_t, int) = fseeko;
18894      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18906 $as_echo "$ac_try_echo") >&5
18907   (eval "$ac_link") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } && {
18914          test -z "$ac_c_werror_flag" ||
18915          test ! -s conftest.err
18916        } && test -s conftest$ac_exeext && {
18917          test "$cross_compiling" = yes ||
18918          $as_test_x conftest$ac_exeext
18919        }; then
18920   ac_cv_sys_largefile_source=no; break
18921 else
18922   $as_echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925
18926 fi
18927
18928 rm -rf conftest.dSYM
18929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18930       conftest$ac_exeext conftest.$ac_ext
18931   cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937 #define _LARGEFILE_SOURCE 1
18938 #include <sys/types.h> /* for off_t */
18939      #include <stdio.h>
18940 int
18941 main ()
18942 {
18943 int (*fp) (FILE *, off_t, int) = fseeko;
18944      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957   (eval "$ac_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } && {
18964          test -z "$ac_c_werror_flag" ||
18965          test ! -s conftest.err
18966        } && test -s conftest$ac_exeext && {
18967          test "$cross_compiling" = yes ||
18968          $as_test_x conftest$ac_exeext
18969        }; then
18970   ac_cv_sys_largefile_source=1; break
18971 else
18972   $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975
18976 fi
18977
18978 rm -rf conftest.dSYM
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980       conftest$ac_exeext conftest.$ac_ext
18981   ac_cv_sys_largefile_source=unknown
18982   break
18983 done
18984 fi
18985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18986 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18987 case $ac_cv_sys_largefile_source in #(
18988   no | unknown) ;;
18989   *)
18990 cat >>confdefs.h <<_ACEOF
18991 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18992 _ACEOF
18993 ;;
18994 esac
18995 rm -rf conftest*
18996
18997 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18998 # in glibc 2.1.3, but that breaks too many other things.
18999 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19000 if test $ac_cv_sys_largefile_source != unknown; then
19001
19002 cat >>confdefs.h <<\_ACEOF
19003 #define HAVE_FSEEKO 1
19004 _ACEOF
19005
19006 fi
19007 ;;
19008 esac
19009
19010 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19011 # by calling it, 2009-04-02
19012 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19013 if test "$PORTNAME" != "solaris"; then
19014
19015 for ac_func in posix_fadvise
19016 do
19017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19018 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19019 $as_echo_n "checking for $ac_func... " >&6; }
19020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19021   $as_echo_n "(cached) " >&6
19022 else
19023   cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19031 #define $ac_func innocuous_$ac_func
19032
19033 /* System header to define __stub macros and hopefully few prototypes,
19034     which can conflict with char $ac_func (); below.
19035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19036     <limits.h> exists even on freestanding compilers.  */
19037
19038 #ifdef __STDC__
19039 # include <limits.h>
19040 #else
19041 # include <assert.h>
19042 #endif
19043
19044 #undef $ac_func
19045
19046 /* Override any GCC internal prototype to avoid an error.
19047    Use char because int might match the return type of a GCC
19048    builtin and then its argument prototype would still apply.  */
19049 #ifdef __cplusplus
19050 extern "C"
19051 #endif
19052 char $ac_func ();
19053 /* The GNU C library defines this for functions which it implements
19054     to always fail with ENOSYS.  Some functions are actually named
19055     something starting with __ and the normal name is an alias.  */
19056 #if defined __stub_$ac_func || defined __stub___$ac_func
19057 choke me
19058 #endif
19059
19060 int
19061 main ()
19062 {
19063 return $ac_func ();
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19075 $as_echo "$ac_try_echo") >&5
19076   (eval "$ac_link") 2>conftest.er1
19077   ac_status=$?
19078   grep -v '^ *+' conftest.er1 >conftest.err
19079   rm -f conftest.er1
19080   cat conftest.err >&5
19081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); } && {
19083          test -z "$ac_c_werror_flag" ||
19084          test ! -s conftest.err
19085        } && test -s conftest$ac_exeext && {
19086          test "$cross_compiling" = yes ||
19087          $as_test_x conftest$ac_exeext
19088        }; then
19089   eval "$as_ac_var=yes"
19090 else
19091   $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094         eval "$as_ac_var=no"
19095 fi
19096
19097 rm -rf conftest.dSYM
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099       conftest$ac_exeext conftest.$ac_ext
19100 fi
19101 ac_res=`eval 'as_val=${'$as_ac_var'}
19102                  $as_echo "$as_val"'`
19103                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19104 $as_echo "$ac_res" >&6; }
19105 as_val=`eval 'as_val=${'$as_ac_var'}
19106                  $as_echo "$as_val"'`
19107    if test "x$as_val" = x""yes; then
19108   cat >>confdefs.h <<_ACEOF
19109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19110 _ACEOF
19111
19112 fi
19113 done
19114
19115 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19116 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19117 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19118   $as_echo_n "(cached) " >&6
19119 else
19120   cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h.  */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h.  */
19126 #include <fcntl.h>
19127
19128 int
19129 main ()
19130 {
19131 #ifndef posix_fadvise
19132   (void) posix_fadvise;
19133 #endif
19134
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19146 $as_echo "$ac_try_echo") >&5
19147   (eval "$ac_compile") 2>conftest.er1
19148   ac_status=$?
19149   grep -v '^ *+' conftest.er1 >conftest.err
19150   rm -f conftest.er1
19151   cat conftest.err >&5
19152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); } && {
19154          test -z "$ac_c_werror_flag" ||
19155          test ! -s conftest.err
19156        } && test -s conftest.$ac_objext; then
19157   ac_cv_have_decl_posix_fadvise=yes
19158 else
19159   $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162         ac_cv_have_decl_posix_fadvise=no
19163 fi
19164
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 fi
19167 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19168 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19169 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19170
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_DECL_POSIX_FADVISE 1
19173 _ACEOF
19174
19175
19176 else
19177   cat >>confdefs.h <<_ACEOF
19178 #define HAVE_DECL_POSIX_FADVISE 0
19179 _ACEOF
19180
19181
19182 fi
19183
19184
19185 fi
19186
19187 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19188 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19189 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19190   $as_echo_n "(cached) " >&6
19191 else
19192   cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198 #include <unistd.h>
19199
19200 int
19201 main ()
19202 {
19203 #ifndef fdatasync
19204   (void) fdatasync;
19205 #endif
19206
19207   ;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219   (eval "$ac_compile") 2>conftest.er1
19220   ac_status=$?
19221   grep -v '^ *+' conftest.er1 >conftest.err
19222   rm -f conftest.er1
19223   cat conftest.err >&5
19224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } && {
19226          test -z "$ac_c_werror_flag" ||
19227          test ! -s conftest.err
19228        } && test -s conftest.$ac_objext; then
19229   ac_cv_have_decl_fdatasync=yes
19230 else
19231   $as_echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234         ac_cv_have_decl_fdatasync=no
19235 fi
19236
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238 fi
19239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19240 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19241 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19242
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_DECL_FDATASYNC 1
19245 _ACEOF
19246
19247
19248 else
19249   cat >>confdefs.h <<_ACEOF
19250 #define HAVE_DECL_FDATASYNC 0
19251 _ACEOF
19252
19253
19254 fi
19255
19256
19257 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19258 $as_echo_n "checking whether strlcat is declared... " >&6; }
19259 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19260   $as_echo_n "(cached) " >&6
19261 else
19262   cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268 $ac_includes_default
19269 int
19270 main ()
19271 {
19272 #ifndef strlcat
19273   (void) strlcat;
19274 #endif
19275
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288   (eval "$ac_compile") 2>conftest.er1
19289   ac_status=$?
19290   grep -v '^ *+' conftest.er1 >conftest.err
19291   rm -f conftest.er1
19292   cat conftest.err >&5
19293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } && {
19295          test -z "$ac_c_werror_flag" ||
19296          test ! -s conftest.err
19297        } && test -s conftest.$ac_objext; then
19298   ac_cv_have_decl_strlcat=yes
19299 else
19300   $as_echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_have_decl_strlcat=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19309 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19310 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_DECL_STRLCAT 1
19314 _ACEOF
19315
19316
19317 else
19318   cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRLCAT 0
19320 _ACEOF
19321
19322
19323 fi
19324 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19325 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19326 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19327   $as_echo_n "(cached) " >&6
19328 else
19329   cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335 $ac_includes_default
19336 int
19337 main ()
19338 {
19339 #ifndef strlcpy
19340   (void) strlcpy;
19341 #endif
19342
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19354 $as_echo "$ac_try_echo") >&5
19355   (eval "$ac_compile") 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && {
19362          test -z "$ac_c_werror_flag" ||
19363          test ! -s conftest.err
19364        } && test -s conftest.$ac_objext; then
19365   ac_cv_have_decl_strlcpy=yes
19366 else
19367   $as_echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         ac_cv_have_decl_strlcpy=no
19371 fi
19372
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19374 fi
19375 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19376 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19377 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19378
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_DECL_STRLCPY 1
19381 _ACEOF
19382
19383
19384 else
19385   cat >>confdefs.h <<_ACEOF
19386 #define HAVE_DECL_STRLCPY 0
19387 _ACEOF
19388
19389
19390 fi
19391
19392
19393 # This is probably only present on Darwin, but may as well check always
19394 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19395 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19396 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19397   $as_echo_n "(cached) " >&6
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 #include <fcntl.h>
19406
19407 int
19408 main ()
19409 {
19410 #ifndef F_FULLFSYNC
19411   (void) F_FULLFSYNC;
19412 #endif
19413
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19425 $as_echo "$ac_try_echo") >&5
19426   (eval "$ac_compile") 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } && {
19433          test -z "$ac_c_werror_flag" ||
19434          test ! -s conftest.err
19435        } && test -s conftest.$ac_objext; then
19436   ac_cv_have_decl_F_FULLFSYNC=yes
19437 else
19438   $as_echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441         ac_cv_have_decl_F_FULLFSYNC=no
19442 fi
19443
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445 fi
19446 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19447 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19448 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19449
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_DECL_F_FULLFSYNC 1
19452 _ACEOF
19453
19454
19455 else
19456   cat >>confdefs.h <<_ACEOF
19457 #define HAVE_DECL_F_FULLFSYNC 0
19458 _ACEOF
19459
19460
19461 fi
19462
19463
19464
19465 HAVE_IPV6=no
19466 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19467 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19468 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19469   $as_echo_n "(cached) " >&6
19470 else
19471   ac_cv_type_struct_sockaddr_in6=no
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478 $ac_includes_default
19479 #include <netinet/in.h>
19480
19481 int
19482 main ()
19483 {
19484 if (sizeof (struct sockaddr_in6))
19485        return 0;
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498   (eval "$ac_compile") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } && {
19505          test -z "$ac_c_werror_flag" ||
19506          test ! -s conftest.err
19507        } && test -s conftest.$ac_objext; then
19508   cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 $ac_includes_default
19515 #include <netinet/in.h>
19516
19517 int
19518 main ()
19519 {
19520 if (sizeof ((struct sockaddr_in6)))
19521           return 0;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530   *) ac_try_echo=$ac_try;;
19531 esac
19532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19533 $as_echo "$ac_try_echo") >&5
19534   (eval "$ac_compile") 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } && {
19541          test -z "$ac_c_werror_flag" ||
19542          test ! -s conftest.err
19543        } && test -s conftest.$ac_objext; then
19544   :
19545 else
19546   $as_echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549         ac_cv_type_struct_sockaddr_in6=yes
19550 fi
19551
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 else
19554   $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557
19558 fi
19559
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19563 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19564 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_IPV6 1
19568 _ACEOF
19569
19570          HAVE_IPV6=yes
19571 fi
19572
19573
19574
19575 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19576 $as_echo_n "checking for PS_STRINGS... " >&6; }
19577 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19578   $as_echo_n "(cached) " >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 #include <machine/vmparam.h>
19587 #include <sys/exec.h>
19588
19589 int
19590 main ()
19591 {
19592 PS_STRINGS->ps_nargvstr = 1;
19593 PS_STRINGS->ps_argvstr = "foo";
19594   ;
19595   return 0;
19596 }
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602   *) ac_try_echo=$ac_try;;
19603 esac
19604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606   (eval "$ac_link") 2>conftest.er1
19607   ac_status=$?
19608   grep -v '^ *+' conftest.er1 >conftest.err
19609   rm -f conftest.er1
19610   cat conftest.err >&5
19611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); } && {
19613          test -z "$ac_c_werror_flag" ||
19614          test ! -s conftest.err
19615        } && test -s conftest$ac_exeext && {
19616          test "$cross_compiling" = yes ||
19617          $as_test_x conftest$ac_exeext
19618        }; then
19619   pgac_cv_var_PS_STRINGS=yes
19620 else
19621   $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624         pgac_cv_var_PS_STRINGS=no
19625 fi
19626
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629       conftest$ac_exeext conftest.$ac_ext
19630 fi
19631 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19632 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19633 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19634
19635 cat >>confdefs.h <<\_ACEOF
19636 #define HAVE_PS_STRINGS /**/
19637 _ACEOF
19638
19639 fi
19640
19641
19642 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19643 # is missing.  Yes, there are machines that have only one.  We may
19644 # also decide to use snprintf.c if snprintf() is present but does not
19645 # have all the features we need --- see below.
19646
19647 if test "$PORTNAME" = "win32"; then
19648   # Win32 gets snprintf.c built unconditionally.
19649   #
19650   # To properly translate all NLS languages strings, we must support the
19651   # *printf() %$ format, which allows *printf() arguments to be selected
19652   # by position in the translated string.
19653   #
19654   # libintl versions < 0.13 use the native *printf() functions, and Win32
19655   # *printf() doesn't understand %$, so we must use our /port versions,
19656   # which do understand %$. libintl versions >= 0.13 include their own
19657   # *printf versions on Win32.  The libintl 0.13 release note text is:
19658   #
19659   #   C format strings with positions, as they arise when a translator
19660   #   needs to reorder a sentence, are now supported on all platforms.
19661   #   On those few platforms (NetBSD and Woe32) for which the native
19662   #   printf()/fprintf()/... functions don't support such format
19663   #   strings, replacements are provided through <libintl.h>.
19664   #
19665   # We could use libintl >= 0.13's *printf() if we were sure that we had
19666   # a litint >= 0.13 at runtime, but seeing that there is no clean way
19667   # to guarantee that, it is best to just use our own, so we are sure to
19668   # get %$ support. In include/port.h we disable the *printf() macros
19669   # that might have been defined by libintl.
19670   #
19671   # We do this unconditionally whether NLS is used or not so we are sure
19672   # that all Win32 libraries and binaries behave the same.
19673   pgac_need_repl_snprintf=yes
19674 else
19675   pgac_need_repl_snprintf=no
19676
19677 for ac_func in snprintf
19678 do
19679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19681 $as_echo_n "checking for $ac_func... " >&6; }
19682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19683   $as_echo_n "(cached) " >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19693 #define $ac_func innocuous_$ac_func
19694
19695 /* System header to define __stub macros and hopefully few prototypes,
19696     which can conflict with char $ac_func (); below.
19697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698     <limits.h> exists even on freestanding compilers.  */
19699
19700 #ifdef __STDC__
19701 # include <limits.h>
19702 #else
19703 # include <assert.h>
19704 #endif
19705
19706 #undef $ac_func
19707
19708 /* Override any GCC internal prototype to avoid an error.
19709    Use char because int might match the return type of a GCC
19710    builtin and then its argument prototype would still apply.  */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char $ac_func ();
19715 /* The GNU C library defines this for functions which it implements
19716     to always fail with ENOSYS.  Some functions are actually named
19717     something starting with __ and the normal name is an alias.  */
19718 #if defined __stub_$ac_func || defined __stub___$ac_func
19719 choke me
19720 #endif
19721
19722 int
19723 main ()
19724 {
19725 return $ac_func ();
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738   (eval "$ac_link") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest$ac_exeext && {
19748          test "$cross_compiling" = yes ||
19749          $as_test_x conftest$ac_exeext
19750        }; then
19751   eval "$as_ac_var=yes"
19752 else
19753   $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756         eval "$as_ac_var=no"
19757 fi
19758
19759 rm -rf conftest.dSYM
19760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19761       conftest$ac_exeext conftest.$ac_ext
19762 fi
19763 ac_res=`eval 'as_val=${'$as_ac_var'}
19764                  $as_echo "$as_val"'`
19765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19766 $as_echo "$ac_res" >&6; }
19767 as_val=`eval 'as_val=${'$as_ac_var'}
19768                  $as_echo "$as_val"'`
19769    if test "x$as_val" = x""yes; then
19770   cat >>confdefs.h <<_ACEOF
19771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19772 _ACEOF
19773
19774 else
19775   pgac_need_repl_snprintf=yes
19776 fi
19777 done
19778
19779
19780 for ac_func in vsnprintf
19781 do
19782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 $as_echo_n "checking for $ac_func... " >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19786   $as_echo_n "(cached) " >&6
19787 else
19788   cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19796 #define $ac_func innocuous_$ac_func
19797
19798 /* System header to define __stub macros and hopefully few prototypes,
19799     which can conflict with char $ac_func (); below.
19800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801     <limits.h> exists even on freestanding compilers.  */
19802
19803 #ifdef __STDC__
19804 # include <limits.h>
19805 #else
19806 # include <assert.h>
19807 #endif
19808
19809 #undef $ac_func
19810
19811 /* Override any GCC internal prototype to avoid an error.
19812    Use char because int might match the return type of a GCC
19813    builtin and then its argument prototype would still apply.  */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char $ac_func ();
19818 /* The GNU C library defines this for functions which it implements
19819     to always fail with ENOSYS.  Some functions are actually named
19820     something starting with __ and the normal name is an alias.  */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19822 choke me
19823 #endif
19824
19825 int
19826 main ()
19827 {
19828 return $ac_func ();
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841   (eval "$ac_link") 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } && {
19848          test -z "$ac_c_werror_flag" ||
19849          test ! -s conftest.err
19850        } && test -s conftest$ac_exeext && {
19851          test "$cross_compiling" = yes ||
19852          $as_test_x conftest$ac_exeext
19853        }; then
19854   eval "$as_ac_var=yes"
19855 else
19856   $as_echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859         eval "$as_ac_var=no"
19860 fi
19861
19862 rm -rf conftest.dSYM
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864       conftest$ac_exeext conftest.$ac_ext
19865 fi
19866 ac_res=`eval 'as_val=${'$as_ac_var'}
19867                  $as_echo "$as_val"'`
19868                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19870 as_val=`eval 'as_val=${'$as_ac_var'}
19871                  $as_echo "$as_val"'`
19872    if test "x$as_val" = x""yes; then
19873   cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875 _ACEOF
19876
19877 else
19878   pgac_need_repl_snprintf=yes
19879 fi
19880 done
19881
19882 fi
19883
19884
19885 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19886 # include/c.h will provide declarations.  Note this is a separate test
19887 # from whether the functions exist in the C library --- there are
19888 # systems that have the functions but don't bother to declare them :-(
19889
19890 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19891 $as_echo_n "checking whether snprintf is declared... " >&6; }
19892 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19893   $as_echo_n "(cached) " >&6
19894 else
19895   cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 $ac_includes_default
19902 int
19903 main ()
19904 {
19905 #ifndef snprintf
19906   (void) snprintf;
19907 #endif
19908
19909   ;
19910   return 0;
19911 }
19912 _ACEOF
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917   *) ac_try_echo=$ac_try;;
19918 esac
19919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921   (eval "$ac_compile") 2>conftest.er1
19922   ac_status=$?
19923   grep -v '^ *+' conftest.er1 >conftest.err
19924   rm -f conftest.er1
19925   cat conftest.err >&5
19926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } && {
19928          test -z "$ac_c_werror_flag" ||
19929          test ! -s conftest.err
19930        } && test -s conftest.$ac_objext; then
19931   ac_cv_have_decl_snprintf=yes
19932 else
19933   $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936         ac_cv_have_decl_snprintf=no
19937 fi
19938
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 fi
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19942 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19943 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19944
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_DECL_SNPRINTF 1
19947 _ACEOF
19948
19949
19950 else
19951   cat >>confdefs.h <<_ACEOF
19952 #define HAVE_DECL_SNPRINTF 0
19953 _ACEOF
19954
19955
19956 fi
19957 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19958 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19959 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19960   $as_echo_n "(cached) " >&6
19961 else
19962   cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 int
19970 main ()
19971 {
19972 #ifndef vsnprintf
19973   (void) vsnprintf;
19974 #endif
19975
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988   (eval "$ac_compile") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && {
19995          test -z "$ac_c_werror_flag" ||
19996          test ! -s conftest.err
19997        } && test -s conftest.$ac_objext; then
19998   ac_cv_have_decl_vsnprintf=yes
19999 else
20000   $as_echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003         ac_cv_have_decl_vsnprintf=no
20004 fi
20005
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20009 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20010 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20011
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_VSNPRINTF 1
20014 _ACEOF
20015
20016
20017 else
20018   cat >>confdefs.h <<_ACEOF
20019 #define HAVE_DECL_VSNPRINTF 0
20020 _ACEOF
20021
20022
20023 fi
20024
20025
20026
20027
20028 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20029 $as_echo_n "checking for isinf... " >&6; }
20030 if test "${ac_cv_func_isinf+set}" = set; then
20031   $as_echo_n "(cached) " >&6
20032 else
20033   cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h.  */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h.  */
20039
20040 #include <math.h>
20041 double glob_double;
20042
20043 int
20044 main ()
20045 {
20046 return isinf(glob_double) ? 0 : 1;
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059   (eval "$ac_link") 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } && {
20066          test -z "$ac_c_werror_flag" ||
20067          test ! -s conftest.err
20068        } && test -s conftest$ac_exeext && {
20069          test "$cross_compiling" = yes ||
20070          $as_test_x conftest$ac_exeext
20071        }; then
20072   ac_cv_func_isinf=yes
20073 else
20074   $as_echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077         ac_cv_func_isinf=no
20078 fi
20079
20080 rm -rf conftest.dSYM
20081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20082       conftest$ac_exeext conftest.$ac_ext
20083 fi
20084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20085 $as_echo "$ac_cv_func_isinf" >&6; }
20086
20087 if test $ac_cv_func_isinf = yes ; then
20088
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_ISINF 1
20091 _ACEOF
20092
20093 else
20094   case " $LIBOBJS " in
20095   *" isinf.$ac_objext "* ) ;;
20096   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20097  ;;
20098 esac
20099
20100   # Look for a way to implement a substitute for isinf()
20101
20102
20103
20104
20105 for ac_func in fpclass fp_class fp_class_d class
20106 do
20107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20108 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20109 $as_echo_n "checking for $ac_func... " >&6; }
20110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20111   $as_echo_n "(cached) " >&6
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20121 #define $ac_func innocuous_$ac_func
20122
20123 /* System header to define __stub macros and hopefully few prototypes,
20124     which can conflict with char $ac_func (); below.
20125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126     <limits.h> exists even on freestanding compilers.  */
20127
20128 #ifdef __STDC__
20129 # include <limits.h>
20130 #else
20131 # include <assert.h>
20132 #endif
20133
20134 #undef $ac_func
20135
20136 /* Override any GCC internal prototype to avoid an error.
20137    Use char because int might match the return type of a GCC
20138    builtin and then its argument prototype would still apply.  */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char $ac_func ();
20143 /* The GNU C library defines this for functions which it implements
20144     to always fail with ENOSYS.  Some functions are actually named
20145     something starting with __ and the normal name is an alias.  */
20146 #if defined __stub_$ac_func || defined __stub___$ac_func
20147 choke me
20148 #endif
20149
20150 int
20151 main ()
20152 {
20153 return $ac_func ();
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20165 $as_echo "$ac_try_echo") >&5
20166   (eval "$ac_link") 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && {
20173          test -z "$ac_c_werror_flag" ||
20174          test ! -s conftest.err
20175        } && test -s conftest$ac_exeext && {
20176          test "$cross_compiling" = yes ||
20177          $as_test_x conftest$ac_exeext
20178        }; then
20179   eval "$as_ac_var=yes"
20180 else
20181   $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         eval "$as_ac_var=no"
20185 fi
20186
20187 rm -rf conftest.dSYM
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189       conftest$ac_exeext conftest.$ac_ext
20190 fi
20191 ac_res=`eval 'as_val=${'$as_ac_var'}
20192                  $as_echo "$as_val"'`
20193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20194 $as_echo "$ac_res" >&6; }
20195 as_val=`eval 'as_val=${'$as_ac_var'}
20196                  $as_echo "$as_val"'`
20197    if test "x$as_val" = x""yes; then
20198   cat >>confdefs.h <<_ACEOF
20199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20200 _ACEOF
20201  break
20202 fi
20203 done
20204
20205 fi
20206
20207 # Some versions of libedit contain strlcpy(); so disregard that library while
20208 # checking for these standard libc functions.
20209 pgac_save_LIBS="$LIBS"
20210 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20227 do
20228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20229 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20230 $as_echo_n "checking for $ac_func... " >&6; }
20231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20232   $as_echo_n "(cached) " >&6
20233 else
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20242 #define $ac_func innocuous_$ac_func
20243
20244 /* System header to define __stub macros and hopefully few prototypes,
20245     which can conflict with char $ac_func (); below.
20246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247     <limits.h> exists even on freestanding compilers.  */
20248
20249 #ifdef __STDC__
20250 # include <limits.h>
20251 #else
20252 # include <assert.h>
20253 #endif
20254
20255 #undef $ac_func
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258    Use char because int might match the return type of a GCC
20259    builtin and then its argument prototype would still apply.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char $ac_func ();
20264 /* The GNU C library defines this for functions which it implements
20265     to always fail with ENOSYS.  Some functions are actually named
20266     something starting with __ and the normal name is an alias.  */
20267 #if defined __stub_$ac_func || defined __stub___$ac_func
20268 choke me
20269 #endif
20270
20271 int
20272 main ()
20273 {
20274 return $ac_func ();
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287   (eval "$ac_link") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } && {
20294          test -z "$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        } && test -s conftest$ac_exeext && {
20297          test "$cross_compiling" = yes ||
20298          $as_test_x conftest$ac_exeext
20299        }; then
20300   eval "$as_ac_var=yes"
20301 else
20302   $as_echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305         eval "$as_ac_var=no"
20306 fi
20307
20308 rm -rf conftest.dSYM
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310       conftest$ac_exeext conftest.$ac_ext
20311 fi
20312 ac_res=`eval 'as_val=${'$as_ac_var'}
20313                  $as_echo "$as_val"'`
20314                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20315 $as_echo "$ac_res" >&6; }
20316 as_val=`eval 'as_val=${'$as_ac_var'}
20317                  $as_echo "$as_val"'`
20318    if test "x$as_val" = x""yes; then
20319   cat >>confdefs.h <<_ACEOF
20320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20321 _ACEOF
20322
20323 else
20324   case " $LIBOBJS " in
20325   *" $ac_func.$ac_objext "* ) ;;
20326   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20327  ;;
20328 esac
20329
20330 fi
20331 done
20332
20333
20334
20335 case $host_os in
20336
20337         # Windows uses a specialised env handler
20338         mingw*)
20339
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_UNSETENV 1
20342 _ACEOF
20343
20344                 ac_cv_func_unsetenv=yes;;
20345         *)
20346
20347 for ac_func in unsetenv
20348 do
20349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20351 $as_echo_n "checking for $ac_func... " >&6; }
20352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20353   $as_echo_n "(cached) " >&6
20354 else
20355   cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20363 #define $ac_func innocuous_$ac_func
20364
20365 /* System header to define __stub macros and hopefully few prototypes,
20366     which can conflict with char $ac_func (); below.
20367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20368     <limits.h> exists even on freestanding compilers.  */
20369
20370 #ifdef __STDC__
20371 # include <limits.h>
20372 #else
20373 # include <assert.h>
20374 #endif
20375
20376 #undef $ac_func
20377
20378 /* Override any GCC internal prototype to avoid an error.
20379    Use char because int might match the return type of a GCC
20380    builtin and then its argument prototype would still apply.  */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 char $ac_func ();
20385 /* The GNU C library defines this for functions which it implements
20386     to always fail with ENOSYS.  Some functions are actually named
20387     something starting with __ and the normal name is an alias.  */
20388 #if defined __stub_$ac_func || defined __stub___$ac_func
20389 choke me
20390 #endif
20391
20392 int
20393 main ()
20394 {
20395 return $ac_func ();
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404   *) ac_try_echo=$ac_try;;
20405 esac
20406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20407 $as_echo "$ac_try_echo") >&5
20408   (eval "$ac_link") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && {
20415          test -z "$ac_c_werror_flag" ||
20416          test ! -s conftest.err
20417        } && test -s conftest$ac_exeext && {
20418          test "$cross_compiling" = yes ||
20419          $as_test_x conftest$ac_exeext
20420        }; then
20421   eval "$as_ac_var=yes"
20422 else
20423   $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426         eval "$as_ac_var=no"
20427 fi
20428
20429 rm -rf conftest.dSYM
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431       conftest$ac_exeext conftest.$ac_ext
20432 fi
20433 ac_res=`eval 'as_val=${'$as_ac_var'}
20434                  $as_echo "$as_val"'`
20435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20436 $as_echo "$ac_res" >&6; }
20437 as_val=`eval 'as_val=${'$as_ac_var'}
20438                  $as_echo "$as_val"'`
20439    if test "x$as_val" = x""yes; then
20440   cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20442 _ACEOF
20443
20444 else
20445   case " $LIBOBJS " in
20446   *" $ac_func.$ac_objext "* ) ;;
20447   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20448  ;;
20449 esac
20450
20451 fi
20452 done
20453
20454
20455                 ;;
20456 esac
20457
20458
20459 LIBS="$pgac_save_LIBS"
20460
20461 # System's version of getaddrinfo(), if any, may be used only if we found
20462 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20463 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20464 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20465 # because we want to use our own getaddrinfo.c on Windows anyway.)
20466 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20467
20468 for ac_func in getaddrinfo
20469 do
20470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20472 $as_echo_n "checking for $ac_func... " >&6; }
20473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20474   $as_echo_n "(cached) " >&6
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20484 #define $ac_func innocuous_$ac_func
20485
20486 /* System header to define __stub macros and hopefully few prototypes,
20487     which can conflict with char $ac_func (); below.
20488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20489     <limits.h> exists even on freestanding compilers.  */
20490
20491 #ifdef __STDC__
20492 # include <limits.h>
20493 #else
20494 # include <assert.h>
20495 #endif
20496
20497 #undef $ac_func
20498
20499 /* Override any GCC internal prototype to avoid an error.
20500    Use char because int might match the return type of a GCC
20501    builtin and then its argument prototype would still apply.  */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char $ac_func ();
20506 /* The GNU C library defines this for functions which it implements
20507     to always fail with ENOSYS.  Some functions are actually named
20508     something starting with __ and the normal name is an alias.  */
20509 #if defined __stub_$ac_func || defined __stub___$ac_func
20510 choke me
20511 #endif
20512
20513 int
20514 main ()
20515 {
20516 return $ac_func ();
20517   ;
20518   return 0;
20519 }
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525   *) ac_try_echo=$ac_try;;
20526 esac
20527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529   (eval "$ac_link") 2>conftest.er1
20530   ac_status=$?
20531   grep -v '^ *+' conftest.er1 >conftest.err
20532   rm -f conftest.er1
20533   cat conftest.err >&5
20534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); } && {
20536          test -z "$ac_c_werror_flag" ||
20537          test ! -s conftest.err
20538        } && test -s conftest$ac_exeext && {
20539          test "$cross_compiling" = yes ||
20540          $as_test_x conftest$ac_exeext
20541        }; then
20542   eval "$as_ac_var=yes"
20543 else
20544   $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547         eval "$as_ac_var=no"
20548 fi
20549
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552       conftest$ac_exeext conftest.$ac_ext
20553 fi
20554 ac_res=`eval 'as_val=${'$as_ac_var'}
20555                  $as_echo "$as_val"'`
20556                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20557 $as_echo "$ac_res" >&6; }
20558 as_val=`eval 'as_val=${'$as_ac_var'}
20559                  $as_echo "$as_val"'`
20560    if test "x$as_val" = x""yes; then
20561   cat >>confdefs.h <<_ACEOF
20562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20563 _ACEOF
20564
20565 else
20566   case " $LIBOBJS " in
20567   *" $ac_func.$ac_objext "* ) ;;
20568   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20569  ;;
20570 esac
20571
20572 fi
20573 done
20574
20575
20576 else
20577   case " $LIBOBJS " in
20578   *" getaddrinfo.$ac_objext "* ) ;;
20579   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20580  ;;
20581 esac
20582
20583 fi
20584
20585 # Similarly, use system's getopt_long() only if system provides struct option.
20586 if test x"$ac_cv_type_struct_option" = xyes ; then
20587
20588 for ac_func in getopt_long
20589 do
20590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20592 $as_echo_n "checking for $ac_func... " >&6; }
20593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594   $as_echo_n "(cached) " >&6
20595 else
20596   cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20604 #define $ac_func innocuous_$ac_func
20605
20606 /* System header to define __stub macros and hopefully few prototypes,
20607     which can conflict with char $ac_func (); below.
20608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609     <limits.h> exists even on freestanding compilers.  */
20610
20611 #ifdef __STDC__
20612 # include <limits.h>
20613 #else
20614 # include <assert.h>
20615 #endif
20616
20617 #undef $ac_func
20618
20619 /* Override any GCC internal prototype to avoid an error.
20620    Use char because int might match the return type of a GCC
20621    builtin and then its argument prototype would still apply.  */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 char $ac_func ();
20626 /* The GNU C library defines this for functions which it implements
20627     to always fail with ENOSYS.  Some functions are actually named
20628     something starting with __ and the normal name is an alias.  */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20630 choke me
20631 #endif
20632
20633 int
20634 main ()
20635 {
20636 return $ac_func ();
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20648 $as_echo "$ac_try_echo") >&5
20649   (eval "$ac_link") 2>conftest.er1
20650   ac_status=$?
20651   grep -v '^ *+' conftest.er1 >conftest.err
20652   rm -f conftest.er1
20653   cat conftest.err >&5
20654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } && {
20656          test -z "$ac_c_werror_flag" ||
20657          test ! -s conftest.err
20658        } && test -s conftest$ac_exeext && {
20659          test "$cross_compiling" = yes ||
20660          $as_test_x conftest$ac_exeext
20661        }; then
20662   eval "$as_ac_var=yes"
20663 else
20664   $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667         eval "$as_ac_var=no"
20668 fi
20669
20670 rm -rf conftest.dSYM
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672       conftest$ac_exeext conftest.$ac_ext
20673 fi
20674 ac_res=`eval 'as_val=${'$as_ac_var'}
20675                  $as_echo "$as_val"'`
20676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20677 $as_echo "$ac_res" >&6; }
20678 as_val=`eval 'as_val=${'$as_ac_var'}
20679                  $as_echo "$as_val"'`
20680    if test "x$as_val" = x""yes; then
20681   cat >>confdefs.h <<_ACEOF
20682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20683 _ACEOF
20684
20685 else
20686   case " $LIBOBJS " in
20687   *" $ac_func.$ac_objext "* ) ;;
20688   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20689  ;;
20690 esac
20691
20692 fi
20693 done
20694
20695
20696 else
20697   case " $LIBOBJS " in
20698   *" getopt_long.$ac_objext "* ) ;;
20699   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20700  ;;
20701 esac
20702
20703 fi
20704
20705 # Solaris' getopt() doesn't do what we want for long options, so always use
20706 # our version on that platform.
20707 if test "$PORTNAME" = "solaris"; then
20708   case " $LIBOBJS " in
20709   *" getopt.$ac_objext "* ) ;;
20710   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20711  ;;
20712 esac
20713
20714 fi
20715
20716 # Cygwin's erand48() is broken (always returns zero) in some releases,
20717 # so force use of ours.
20718 if test "$PORTNAME" = "cygwin"; then
20719   case " $LIBOBJS " in
20720   *" erand48.$ac_objext "* ) ;;
20721   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20722  ;;
20723 esac
20724
20725 fi
20726
20727 # Win32 support
20728 if test "$PORTNAME" = "win32"; then
20729
20730 for ac_func in gettimeofday
20731 do
20732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20734 $as_echo_n "checking for $ac_func... " >&6; }
20735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20736   $as_echo_n "(cached) " >&6
20737 else
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20746 #define $ac_func innocuous_$ac_func
20747
20748 /* System header to define __stub macros and hopefully few prototypes,
20749     which can conflict with char $ac_func (); below.
20750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20751     <limits.h> exists even on freestanding compilers.  */
20752
20753 #ifdef __STDC__
20754 # include <limits.h>
20755 #else
20756 # include <assert.h>
20757 #endif
20758
20759 #undef $ac_func
20760
20761 /* Override any GCC internal prototype to avoid an error.
20762    Use char because int might match the return type of a GCC
20763    builtin and then its argument prototype would still apply.  */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 char $ac_func ();
20768 /* The GNU C library defines this for functions which it implements
20769     to always fail with ENOSYS.  Some functions are actually named
20770     something starting with __ and the normal name is an alias.  */
20771 #if defined __stub_$ac_func || defined __stub___$ac_func
20772 choke me
20773 #endif
20774
20775 int
20776 main ()
20777 {
20778 return $ac_func ();
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787   *) ac_try_echo=$ac_try;;
20788 esac
20789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20790 $as_echo "$ac_try_echo") >&5
20791   (eval "$ac_link") 2>conftest.er1
20792   ac_status=$?
20793   grep -v '^ *+' conftest.er1 >conftest.err
20794   rm -f conftest.er1
20795   cat conftest.err >&5
20796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } && {
20798          test -z "$ac_c_werror_flag" ||
20799          test ! -s conftest.err
20800        } && test -s conftest$ac_exeext && {
20801          test "$cross_compiling" = yes ||
20802          $as_test_x conftest$ac_exeext
20803        }; then
20804   eval "$as_ac_var=yes"
20805 else
20806   $as_echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809         eval "$as_ac_var=no"
20810 fi
20811
20812 rm -rf conftest.dSYM
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814       conftest$ac_exeext conftest.$ac_ext
20815 fi
20816 ac_res=`eval 'as_val=${'$as_ac_var'}
20817                  $as_echo "$as_val"'`
20818                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 as_val=`eval 'as_val=${'$as_ac_var'}
20821                  $as_echo "$as_val"'`
20822    if test "x$as_val" = x""yes; then
20823   cat >>confdefs.h <<_ACEOF
20824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20825 _ACEOF
20826
20827 else
20828   case " $LIBOBJS " in
20829   *" $ac_func.$ac_objext "* ) ;;
20830   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20831  ;;
20832 esac
20833
20834 fi
20835 done
20836
20837
20838 case " $LIBOBJS " in
20839   *" kill.$ac_objext "* ) ;;
20840   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20841  ;;
20842 esac
20843
20844 case " $LIBOBJS " in
20845   *" open.$ac_objext "* ) ;;
20846   *) LIBOBJS="$LIBOBJS open.$ac_objext"
20847  ;;
20848 esac
20849
20850 case " $LIBOBJS " in
20851   *" win32env.$ac_objext "* ) ;;
20852   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20853  ;;
20854 esac
20855
20856 case " $LIBOBJS " in
20857   *" win32error.$ac_objext "* ) ;;
20858   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20859  ;;
20860 esac
20861
20862
20863 cat >>confdefs.h <<\_ACEOF
20864 #define HAVE_SYMLINK 1
20865 _ACEOF
20866
20867 fi
20868
20869 if test "$with_readline" = yes; then
20870   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20871 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 #include <stdio.h>
20879 #ifdef HAVE_READLINE_READLINE_H
20880 # include <readline/readline.h>
20881 #elif defined(HAVE_READLINE_H)
20882 # include <readline.h>
20883 #endif
20884
20885 int
20886 main ()
20887 {
20888 rl_completion_append_character = 'x';
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901   (eval "$ac_link") 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } && {
20908          test -z "$ac_c_werror_flag" ||
20909          test ! -s conftest.err
20910        } && test -s conftest$ac_exeext && {
20911          test "$cross_compiling" = yes ||
20912          $as_test_x conftest$ac_exeext
20913        }; then
20914   { $as_echo "$as_me:$LINENO: result: yes" >&5
20915 $as_echo "yes" >&6; }
20916
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20919 _ACEOF
20920
20921 else
20922   $as_echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925         { $as_echo "$as_me:$LINENO: result: no" >&5
20926 $as_echo "no" >&6; }
20927 fi
20928
20929 rm -rf conftest.dSYM
20930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20931       conftest$ac_exeext conftest.$ac_ext
20932
20933
20934 for ac_func in rl_completion_matches rl_filename_completion_function
20935 do
20936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20938 $as_echo_n "checking for $ac_func... " >&6; }
20939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20940   $as_echo_n "(cached) " >&6
20941 else
20942   cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20950 #define $ac_func innocuous_$ac_func
20951
20952 /* System header to define __stub macros and hopefully few prototypes,
20953     which can conflict with char $ac_func (); below.
20954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955     <limits.h> exists even on freestanding compilers.  */
20956
20957 #ifdef __STDC__
20958 # include <limits.h>
20959 #else
20960 # include <assert.h>
20961 #endif
20962
20963 #undef $ac_func
20964
20965 /* Override any GCC internal prototype to avoid an error.
20966    Use char because int might match the return type of a GCC
20967    builtin and then its argument prototype would still apply.  */
20968 #ifdef __cplusplus
20969 extern "C"
20970 #endif
20971 char $ac_func ();
20972 /* The GNU C library defines this for functions which it implements
20973     to always fail with ENOSYS.  Some functions are actually named
20974     something starting with __ and the normal name is an alias.  */
20975 #if defined __stub_$ac_func || defined __stub___$ac_func
20976 choke me
20977 #endif
20978
20979 int
20980 main ()
20981 {
20982 return $ac_func ();
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   eval "$as_ac_var=yes"
21009 else
21010   $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013         eval "$as_ac_var=no"
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 fi
21020 ac_res=`eval 'as_val=${'$as_ac_var'}
21021                  $as_echo "$as_val"'`
21022                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21023 $as_echo "$ac_res" >&6; }
21024 as_val=`eval 'as_val=${'$as_ac_var'}
21025                  $as_echo "$as_val"'`
21026    if test "x$as_val" = x""yes; then
21027   cat >>confdefs.h <<_ACEOF
21028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21030
21031 fi
21032 done
21033
21034
21035
21036 for ac_func in append_history history_truncate_file
21037 do
21038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21039 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21040 $as_echo_n "checking for $ac_func... " >&6; }
21041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21042   $as_echo_n "(cached) " >&6
21043 else
21044   cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21052 #define $ac_func innocuous_$ac_func
21053
21054 /* System header to define __stub macros and hopefully few prototypes,
21055     which can conflict with char $ac_func (); below.
21056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21057     <limits.h> exists even on freestanding compilers.  */
21058
21059 #ifdef __STDC__
21060 # include <limits.h>
21061 #else
21062 # include <assert.h>
21063 #endif
21064
21065 #undef $ac_func
21066
21067 /* Override any GCC internal prototype to avoid an error.
21068    Use char because int might match the return type of a GCC
21069    builtin and then its argument prototype would still apply.  */
21070 #ifdef __cplusplus
21071 extern "C"
21072 #endif
21073 char $ac_func ();
21074 /* The GNU C library defines this for functions which it implements
21075     to always fail with ENOSYS.  Some functions are actually named
21076     something starting with __ and the normal name is an alias.  */
21077 #if defined __stub_$ac_func || defined __stub___$ac_func
21078 choke me
21079 #endif
21080
21081 int
21082 main ()
21083 {
21084 return $ac_func ();
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext conftest$ac_exeext
21090 if { (ac_try="$ac_link"
21091 case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21096 $as_echo "$ac_try_echo") >&5
21097   (eval "$ac_link") 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && {
21104          test -z "$ac_c_werror_flag" ||
21105          test ! -s conftest.err
21106        } && test -s conftest$ac_exeext && {
21107          test "$cross_compiling" = yes ||
21108          $as_test_x conftest$ac_exeext
21109        }; then
21110   eval "$as_ac_var=yes"
21111 else
21112   $as_echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115         eval "$as_ac_var=no"
21116 fi
21117
21118 rm -rf conftest.dSYM
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120       conftest$ac_exeext conftest.$ac_ext
21121 fi
21122 ac_res=`eval 'as_val=${'$as_ac_var'}
21123                  $as_echo "$as_val"'`
21124                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21125 $as_echo "$ac_res" >&6; }
21126 as_val=`eval 'as_val=${'$as_ac_var'}
21127                  $as_echo "$as_val"'`
21128    if test "x$as_val" = x""yes; then
21129   cat >>confdefs.h <<_ACEOF
21130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21131 _ACEOF
21132
21133 fi
21134 done
21135
21136 fi
21137
21138
21139 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21140 $as_echo_n "checking for sigsetjmp... " >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 #include <setjmp.h>
21148 int
21149 main ()
21150 {
21151 sigjmp_buf x; sigsetjmp(x, 1);
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21163 $as_echo "$ac_try_echo") >&5
21164   (eval "$ac_link") 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } && {
21171          test -z "$ac_c_werror_flag" ||
21172          test ! -s conftest.err
21173        } && test -s conftest$ac_exeext && {
21174          test "$cross_compiling" = yes ||
21175          $as_test_x conftest$ac_exeext
21176        }; then
21177
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_SIGSETJMP 1
21180 _ACEOF
21181
21182 { $as_echo "$as_me:$LINENO: result: yes" >&5
21183 $as_echo "yes" >&6; }
21184 else
21185   $as_echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188         { $as_echo "$as_me:$LINENO: result: no" >&5
21189 $as_echo "no" >&6; }
21190 fi
21191
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194       conftest$ac_exeext conftest.$ac_ext
21195
21196 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21197 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21198 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21199   $as_echo_n "(cached) " >&6
21200 else
21201   cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h.  */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h.  */
21207 #include <signal.h>
21208 /* NetBSD declares sys_siglist in unistd.h.  */
21209 #ifdef HAVE_UNISTD_H
21210 # include <unistd.h>
21211 #endif
21212
21213
21214 int
21215 main ()
21216 {
21217 #ifndef sys_siglist
21218   (void) sys_siglist;
21219 #endif
21220
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21232 $as_echo "$ac_try_echo") >&5
21233   (eval "$ac_compile") 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } && {
21240          test -z "$ac_c_werror_flag" ||
21241          test ! -s conftest.err
21242        } && test -s conftest.$ac_objext; then
21243   ac_cv_have_decl_sys_siglist=yes
21244 else
21245   $as_echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248         ac_cv_have_decl_sys_siglist=no
21249 fi
21250
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 fi
21253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21254 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21255 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21256
21257 cat >>confdefs.h <<_ACEOF
21258 #define HAVE_DECL_SYS_SIGLIST 1
21259 _ACEOF
21260
21261
21262 else
21263   cat >>confdefs.h <<_ACEOF
21264 #define HAVE_DECL_SYS_SIGLIST 0
21265 _ACEOF
21266
21267
21268 fi
21269
21270
21271
21272
21273 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21274 $as_echo_n "checking for syslog... " >&6; }
21275 if test "${ac_cv_func_syslog+set}" = set; then
21276   $as_echo_n "(cached) " >&6
21277 else
21278   cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21286 #define syslog innocuous_syslog
21287
21288 /* System header to define __stub macros and hopefully few prototypes,
21289     which can conflict with char syslog (); below.
21290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21291     <limits.h> exists even on freestanding compilers.  */
21292
21293 #ifdef __STDC__
21294 # include <limits.h>
21295 #else
21296 # include <assert.h>
21297 #endif
21298
21299 #undef syslog
21300
21301 /* Override any GCC internal prototype to avoid an error.
21302    Use char because int might match the return type of a GCC
21303    builtin and then its argument prototype would still apply.  */
21304 #ifdef __cplusplus
21305 extern "C"
21306 #endif
21307 char syslog ();
21308 /* The GNU C library defines this for functions which it implements
21309     to always fail with ENOSYS.  Some functions are actually named
21310     something starting with __ and the normal name is an alias.  */
21311 #if defined __stub_syslog || defined __stub___syslog
21312 choke me
21313 #endif
21314
21315 int
21316 main ()
21317 {
21318 return syslog ();
21319   ;
21320   return 0;
21321 }
21322 _ACEOF
21323 rm -f conftest.$ac_objext conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327   *) ac_try_echo=$ac_try;;
21328 esac
21329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21330 $as_echo "$ac_try_echo") >&5
21331   (eval "$ac_link") 2>conftest.er1
21332   ac_status=$?
21333   grep -v '^ *+' conftest.er1 >conftest.err
21334   rm -f conftest.er1
21335   cat conftest.err >&5
21336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } && {
21338          test -z "$ac_c_werror_flag" ||
21339          test ! -s conftest.err
21340        } && test -s conftest$ac_exeext && {
21341          test "$cross_compiling" = yes ||
21342          $as_test_x conftest$ac_exeext
21343        }; then
21344   ac_cv_func_syslog=yes
21345 else
21346   $as_echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349         ac_cv_func_syslog=no
21350 fi
21351
21352 rm -rf conftest.dSYM
21353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21354       conftest$ac_exeext conftest.$ac_ext
21355 fi
21356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21357 $as_echo "$ac_cv_func_syslog" >&6; }
21358 if test "x$ac_cv_func_syslog" = x""yes; then
21359   if test "${ac_cv_header_syslog_h+set}" = set; then
21360   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21361 $as_echo_n "checking for syslog.h... " >&6; }
21362 if test "${ac_cv_header_syslog_h+set}" = set; then
21363   $as_echo_n "(cached) " >&6
21364 fi
21365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21366 $as_echo "$ac_cv_header_syslog_h" >&6; }
21367 else
21368   # Is the header compilable?
21369 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21370 $as_echo_n "checking syslog.h usability... " >&6; }
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h.  */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h.  */
21377 $ac_includes_default
21378 #include <syslog.h>
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384   *) ac_try_echo=$ac_try;;
21385 esac
21386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21387 $as_echo "$ac_try_echo") >&5
21388   (eval "$ac_compile") 2>conftest.er1
21389   ac_status=$?
21390   grep -v '^ *+' conftest.er1 >conftest.err
21391   rm -f conftest.er1
21392   cat conftest.err >&5
21393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } && {
21395          test -z "$ac_c_werror_flag" ||
21396          test ! -s conftest.err
21397        } && test -s conftest.$ac_objext; then
21398   ac_header_compiler=yes
21399 else
21400   $as_echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21402
21403         ac_header_compiler=no
21404 fi
21405
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21408 $as_echo "$ac_header_compiler" >&6; }
21409
21410 # Is the header present?
21411 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21412 $as_echo_n "checking syslog.h presence... " >&6; }
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419 #include <syslog.h>
21420 _ACEOF
21421 if { (ac_try="$ac_cpp conftest.$ac_ext"
21422 case "(($ac_try" in
21423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424   *) ac_try_echo=$ac_try;;
21425 esac
21426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21427 $as_echo "$ac_try_echo") >&5
21428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } >/dev/null && {
21435          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21436          test ! -s conftest.err
21437        }; then
21438   ac_header_preproc=yes
21439 else
21440   $as_echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443   ac_header_preproc=no
21444 fi
21445
21446 rm -f conftest.err conftest.$ac_ext
21447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21448 $as_echo "$ac_header_preproc" >&6; }
21449
21450 # So?  What about this header?
21451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21452   yes:no: )
21453     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21454 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21455     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21456 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21457     ac_header_preproc=yes
21458     ;;
21459   no:yes:* )
21460     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21461 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21462     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21463 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21464     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21465 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21466     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21467 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21468     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21469 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21470     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21471 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21472     ( cat <<\_ASBOX
21473 ## ---------------------------------------- ##
21474 ## Report this to pgsql-bugs@postgresql.org ##
21475 ## ---------------------------------------- ##
21476 _ASBOX
21477      ) | sed "s/^/$as_me: WARNING:     /" >&2
21478     ;;
21479 esac
21480 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21481 $as_echo_n "checking for syslog.h... " >&6; }
21482 if test "${ac_cv_header_syslog_h+set}" = set; then
21483   $as_echo_n "(cached) " >&6
21484 else
21485   ac_cv_header_syslog_h=$ac_header_preproc
21486 fi
21487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21488 $as_echo "$ac_cv_header_syslog_h" >&6; }
21489
21490 fi
21491 if test "x$ac_cv_header_syslog_h" = x""yes; then
21492
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_SYSLOG 1
21495 _ACEOF
21496
21497 fi
21498
21499
21500 fi
21501
21502
21503 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21504 $as_echo_n "checking for opterr... " >&6; }
21505 if test "${pgac_cv_var_int_opterr+set}" = set; then
21506   $as_echo_n "(cached) " >&6
21507 else
21508   cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 #include <unistd.h>
21515 int
21516 main ()
21517 {
21518 extern int opterr; opterr = 1;
21519   ;
21520   return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527   *) ac_try_echo=$ac_try;;
21528 esac
21529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21530 $as_echo "$ac_try_echo") >&5
21531   (eval "$ac_link") 2>conftest.er1
21532   ac_status=$?
21533   grep -v '^ *+' conftest.er1 >conftest.err
21534   rm -f conftest.er1
21535   cat conftest.err >&5
21536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); } && {
21538          test -z "$ac_c_werror_flag" ||
21539          test ! -s conftest.err
21540        } && test -s conftest$ac_exeext && {
21541          test "$cross_compiling" = yes ||
21542          $as_test_x conftest$ac_exeext
21543        }; then
21544   pgac_cv_var_int_opterr=yes
21545 else
21546   $as_echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549         pgac_cv_var_int_opterr=no
21550 fi
21551
21552 rm -rf conftest.dSYM
21553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554       conftest$ac_exeext conftest.$ac_ext
21555 fi
21556 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21557 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21558 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21559
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_INT_OPTERR 1
21562 _ACEOF
21563
21564 fi
21565
21566 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21567 $as_echo_n "checking for optreset... " >&6; }
21568 if test "${pgac_cv_var_int_optreset+set}" = set; then
21569   $as_echo_n "(cached) " >&6
21570 else
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 #include <unistd.h>
21578 int
21579 main ()
21580 {
21581 extern int optreset; optreset = 1;
21582   ;
21583   return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (ac_try="$ac_link"
21588 case "(($ac_try" in
21589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590   *) ac_try_echo=$ac_try;;
21591 esac
21592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21593 $as_echo "$ac_try_echo") >&5
21594   (eval "$ac_link") 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && {
21601          test -z "$ac_c_werror_flag" ||
21602          test ! -s conftest.err
21603        } && test -s conftest$ac_exeext && {
21604          test "$cross_compiling" = yes ||
21605          $as_test_x conftest$ac_exeext
21606        }; then
21607   pgac_cv_var_int_optreset=yes
21608 else
21609   $as_echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         pgac_cv_var_int_optreset=no
21613 fi
21614
21615 rm -rf conftest.dSYM
21616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21617       conftest$ac_exeext conftest.$ac_ext
21618 fi
21619 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21620 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21621 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21622
21623 cat >>confdefs.h <<\_ACEOF
21624 #define HAVE_INT_OPTRESET 1
21625 _ACEOF
21626
21627 fi
21628
21629
21630
21631 for ac_func in strtoll strtoq
21632 do
21633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21634 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21635 $as_echo_n "checking for $ac_func... " >&6; }
21636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21637   $as_echo_n "(cached) " >&6
21638 else
21639   cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21647 #define $ac_func innocuous_$ac_func
21648
21649 /* System header to define __stub macros and hopefully few prototypes,
21650     which can conflict with char $ac_func (); below.
21651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21652     <limits.h> exists even on freestanding compilers.  */
21653
21654 #ifdef __STDC__
21655 # include <limits.h>
21656 #else
21657 # include <assert.h>
21658 #endif
21659
21660 #undef $ac_func
21661
21662 /* Override any GCC internal prototype to avoid an error.
21663    Use char because int might match the return type of a GCC
21664    builtin and then its argument prototype would still apply.  */
21665 #ifdef __cplusplus
21666 extern "C"
21667 #endif
21668 char $ac_func ();
21669 /* The GNU C library defines this for functions which it implements
21670     to always fail with ENOSYS.  Some functions are actually named
21671     something starting with __ and the normal name is an alias.  */
21672 #if defined __stub_$ac_func || defined __stub___$ac_func
21673 choke me
21674 #endif
21675
21676 int
21677 main ()
21678 {
21679 return $ac_func ();
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext conftest$ac_exeext
21685 if { (ac_try="$ac_link"
21686 case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692   (eval "$ac_link") 2>conftest.er1
21693   ac_status=$?
21694   grep -v '^ *+' conftest.er1 >conftest.err
21695   rm -f conftest.er1
21696   cat conftest.err >&5
21697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } && {
21699          test -z "$ac_c_werror_flag" ||
21700          test ! -s conftest.err
21701        } && test -s conftest$ac_exeext && {
21702          test "$cross_compiling" = yes ||
21703          $as_test_x conftest$ac_exeext
21704        }; then
21705   eval "$as_ac_var=yes"
21706 else
21707   $as_echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710         eval "$as_ac_var=no"
21711 fi
21712
21713 rm -rf conftest.dSYM
21714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21715       conftest$ac_exeext conftest.$ac_ext
21716 fi
21717 ac_res=`eval 'as_val=${'$as_ac_var'}
21718                  $as_echo "$as_val"'`
21719                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21720 $as_echo "$ac_res" >&6; }
21721 as_val=`eval 'as_val=${'$as_ac_var'}
21722                  $as_echo "$as_val"'`
21723    if test "x$as_val" = x""yes; then
21724   cat >>confdefs.h <<_ACEOF
21725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21726 _ACEOF
21727  break
21728 fi
21729 done
21730
21731
21732
21733 for ac_func in strtoull strtouq
21734 do
21735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21737 $as_echo_n "checking for $ac_func... " >&6; }
21738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21739   $as_echo_n "(cached) " >&6
21740 else
21741   cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h.  */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h.  */
21747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21749 #define $ac_func innocuous_$ac_func
21750
21751 /* System header to define __stub macros and hopefully few prototypes,
21752     which can conflict with char $ac_func (); below.
21753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21754     <limits.h> exists even on freestanding compilers.  */
21755
21756 #ifdef __STDC__
21757 # include <limits.h>
21758 #else
21759 # include <assert.h>
21760 #endif
21761
21762 #undef $ac_func
21763
21764 /* Override any GCC internal prototype to avoid an error.
21765    Use char because int might match the return type of a GCC
21766    builtin and then its argument prototype would still apply.  */
21767 #ifdef __cplusplus
21768 extern "C"
21769 #endif
21770 char $ac_func ();
21771 /* The GNU C library defines this for functions which it implements
21772     to always fail with ENOSYS.  Some functions are actually named
21773     something starting with __ and the normal name is an alias.  */
21774 #if defined __stub_$ac_func || defined __stub___$ac_func
21775 choke me
21776 #endif
21777
21778 int
21779 main ()
21780 {
21781 return $ac_func ();
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (ac_try="$ac_link"
21788 case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21793 $as_echo "$ac_try_echo") >&5
21794   (eval "$ac_link") 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } && {
21801          test -z "$ac_c_werror_flag" ||
21802          test ! -s conftest.err
21803        } && test -s conftest$ac_exeext && {
21804          test "$cross_compiling" = yes ||
21805          $as_test_x conftest$ac_exeext
21806        }; then
21807   eval "$as_ac_var=yes"
21808 else
21809   $as_echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21811
21812         eval "$as_ac_var=no"
21813 fi
21814
21815 rm -rf conftest.dSYM
21816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21817       conftest$ac_exeext conftest.$ac_ext
21818 fi
21819 ac_res=`eval 'as_val=${'$as_ac_var'}
21820                  $as_echo "$as_val"'`
21821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21822 $as_echo "$ac_res" >&6; }
21823 as_val=`eval 'as_val=${'$as_ac_var'}
21824                  $as_echo "$as_val"'`
21825    if test "x$as_val" = x""yes; then
21826   cat >>confdefs.h <<_ACEOF
21827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21828 _ACEOF
21829  break
21830 fi
21831 done
21832
21833
21834 # Check for one of atexit() or on_exit()
21835
21836 for ac_func in atexit
21837 do
21838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21840 $as_echo_n "checking for $ac_func... " >&6; }
21841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21842   $as_echo_n "(cached) " >&6
21843 else
21844   cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h.  */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h.  */
21850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21852 #define $ac_func innocuous_$ac_func
21853
21854 /* System header to define __stub macros and hopefully few prototypes,
21855     which can conflict with char $ac_func (); below.
21856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21857     <limits.h> exists even on freestanding compilers.  */
21858
21859 #ifdef __STDC__
21860 # include <limits.h>
21861 #else
21862 # include <assert.h>
21863 #endif
21864
21865 #undef $ac_func
21866
21867 /* Override any GCC internal prototype to avoid an error.
21868    Use char because int might match the return type of a GCC
21869    builtin and then its argument prototype would still apply.  */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char $ac_func ();
21874 /* The GNU C library defines this for functions which it implements
21875     to always fail with ENOSYS.  Some functions are actually named
21876     something starting with __ and the normal name is an alias.  */
21877 #if defined __stub_$ac_func || defined __stub___$ac_func
21878 choke me
21879 #endif
21880
21881 int
21882 main ()
21883 {
21884 return $ac_func ();
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897   (eval "$ac_link") 2>conftest.er1
21898   ac_status=$?
21899   grep -v '^ *+' conftest.er1 >conftest.err
21900   rm -f conftest.er1
21901   cat conftest.err >&5
21902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } && {
21904          test -z "$ac_c_werror_flag" ||
21905          test ! -s conftest.err
21906        } && test -s conftest$ac_exeext && {
21907          test "$cross_compiling" = yes ||
21908          $as_test_x conftest$ac_exeext
21909        }; then
21910   eval "$as_ac_var=yes"
21911 else
21912   $as_echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915         eval "$as_ac_var=no"
21916 fi
21917
21918 rm -rf conftest.dSYM
21919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920       conftest$ac_exeext conftest.$ac_ext
21921 fi
21922 ac_res=`eval 'as_val=${'$as_ac_var'}
21923                  $as_echo "$as_val"'`
21924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21925 $as_echo "$ac_res" >&6; }
21926 as_val=`eval 'as_val=${'$as_ac_var'}
21927                  $as_echo "$as_val"'`
21928    if test "x$as_val" = x""yes; then
21929   cat >>confdefs.h <<_ACEOF
21930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21931 _ACEOF
21932
21933 else
21934
21935 for ac_func in on_exit
21936 do
21937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21939 $as_echo_n "checking for $ac_func... " >&6; }
21940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21941   $as_echo_n "(cached) " >&6
21942 else
21943   cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21951 #define $ac_func innocuous_$ac_func
21952
21953 /* System header to define __stub macros and hopefully few prototypes,
21954     which can conflict with char $ac_func (); below.
21955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21956     <limits.h> exists even on freestanding compilers.  */
21957
21958 #ifdef __STDC__
21959 # include <limits.h>
21960 #else
21961 # include <assert.h>
21962 #endif
21963
21964 #undef $ac_func
21965
21966 /* Override any GCC internal prototype to avoid an error.
21967    Use char because int might match the return type of a GCC
21968    builtin and then its argument prototype would still apply.  */
21969 #ifdef __cplusplus
21970 extern "C"
21971 #endif
21972 char $ac_func ();
21973 /* The GNU C library defines this for functions which it implements
21974     to always fail with ENOSYS.  Some functions are actually named
21975     something starting with __ and the normal name is an alias.  */
21976 #if defined __stub_$ac_func || defined __stub___$ac_func
21977 choke me
21978 #endif
21979
21980 int
21981 main ()
21982 {
21983 return $ac_func ();
21984   ;
21985   return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (ac_try="$ac_link"
21990 case "(($ac_try" in
21991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992   *) ac_try_echo=$ac_try;;
21993 esac
21994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21995 $as_echo "$ac_try_echo") >&5
21996   (eval "$ac_link") 2>conftest.er1
21997   ac_status=$?
21998   grep -v '^ *+' conftest.er1 >conftest.err
21999   rm -f conftest.er1
22000   cat conftest.err >&5
22001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); } && {
22003          test -z "$ac_c_werror_flag" ||
22004          test ! -s conftest.err
22005        } && test -s conftest$ac_exeext && {
22006          test "$cross_compiling" = yes ||
22007          $as_test_x conftest$ac_exeext
22008        }; then
22009   eval "$as_ac_var=yes"
22010 else
22011   $as_echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014         eval "$as_ac_var=no"
22015 fi
22016
22017 rm -rf conftest.dSYM
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019       conftest$ac_exeext conftest.$ac_ext
22020 fi
22021 ac_res=`eval 'as_val=${'$as_ac_var'}
22022                  $as_echo "$as_val"'`
22023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22024 $as_echo "$ac_res" >&6; }
22025 as_val=`eval 'as_val=${'$as_ac_var'}
22026                  $as_echo "$as_val"'`
22027    if test "x$as_val" = x""yes; then
22028   cat >>confdefs.h <<_ACEOF
22029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030 _ACEOF
22031
22032 else
22033   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22034 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22035    { (exit 1); exit 1; }; }
22036 fi
22037 done
22038
22039 fi
22040 done
22041
22042
22043
22044 #
22045 # Pthreads
22046 #
22047 # For each platform, we need to know about any special compile and link
22048 # libraries, and whether the normal C function names are thread-safe.
22049 # See the comment at the top of src/port/thread.c for more information.
22050 # WIN32 doesn't need the pthread tests;  it always uses threads
22051 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22052
22053
22054
22055 ac_ext=c
22056 ac_cpp='$CPP $CPPFLAGS'
22057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22060
22061 acx_pthread_ok=no
22062
22063 # We used to check for pthread.h first, but this fails if pthread.h
22064 # requires special compiler flags (e.g. on True64 or Sequent).
22065 # It gets checked for in the link test anyway.
22066
22067 # First of all, check if the user has set any of the PTHREAD_LIBS,
22068 # etcetera environment variables, and if threads linking works using
22069 # them:
22070 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22071         save_CFLAGS="$CFLAGS"
22072         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22073         save_LIBS="$LIBS"
22074         LIBS="$PTHREAD_LIBS $LIBS"
22075         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22076 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22077         cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h.  */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h.  */
22083
22084 /* Override any GCC internal prototype to avoid an error.
22085    Use char because int might match the return type of a GCC
22086    builtin and then its argument prototype would still apply.  */
22087 #ifdef __cplusplus
22088 extern "C"
22089 #endif
22090 char pthread_join ();
22091 int
22092 main ()
22093 {
22094 return pthread_join ();
22095   ;
22096   return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103   *) ac_try_echo=$ac_try;;
22104 esac
22105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22106 $as_echo "$ac_try_echo") >&5
22107   (eval "$ac_link") 2>conftest.er1
22108   ac_status=$?
22109   grep -v '^ *+' conftest.er1 >conftest.err
22110   rm -f conftest.er1
22111   cat conftest.err >&5
22112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } && {
22114          test -z "$ac_c_werror_flag" ||
22115          test ! -s conftest.err
22116        } && test -s conftest$ac_exeext && {
22117          test "$cross_compiling" = yes ||
22118          $as_test_x conftest$ac_exeext
22119        }; then
22120   acx_pthread_ok=yes
22121 else
22122   $as_echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22124
22125
22126 fi
22127
22128 rm -rf conftest.dSYM
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130       conftest$ac_exeext conftest.$ac_ext
22131         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22132 $as_echo "$acx_pthread_ok" >&6; }
22133         if test x"$acx_pthread_ok" = xno; then
22134                 PTHREAD_LIBS=""
22135                 PTHREAD_CFLAGS=""
22136         fi
22137         LIBS="$save_LIBS"
22138         CFLAGS="$save_CFLAGS"
22139 fi
22140
22141 # We must check for the threads library under a number of different
22142 # names; the ordering is very important because some systems
22143 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22144 # libraries is broken (non-POSIX).
22145
22146 # Create a list of thread flags to try.  Items starting with a "-" are
22147 # C compiler flags, and other items are library names, except for "none"
22148 # which indicates that we try without any flags at all, and "pthread-config"
22149 # which is a program returning the flags for the Pth emulation library.
22150
22151 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22152
22153 # The ordering *is* (sometimes) important.  Some notes on the
22154 # individual items follow:
22155
22156 # pthreads: AIX (must check this before -lpthread)
22157 # none: in case threads are in libc; should be tried before -Kthread and
22158 #       other compiler flags to prevent continual compiler warnings
22159 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22160 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22161 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22162 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22163 # -pthreads: Solaris/gcc
22164 # -mthreads: Mingw32/gcc, Lynx/gcc
22165 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22166 #      doesn't hurt to check since this sometimes defines pthreads too;
22167 #      also defines -D_REENTRANT)
22168 # pthread: Linux, etcetera
22169 # --thread-safe: KAI C++
22170 # pthread-config: use pthread-config program (for GNU Pth library)
22171
22172 case "${host_cpu}-${host_os}" in
22173         *solaris*)
22174
22175         # On Solaris (at least, for some versions), libc contains stubbed
22176         # (non-functional) versions of the pthreads routines, so link-based
22177         # tests will erroneously succeed.  (We need to link with -pthread or
22178         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22179         # a function called by this macro, so we could check for that, but
22180         # who knows whether they'll stub that too in a future libc.)  So,
22181         # we'll just look for -pthreads and -lpthread first:
22182
22183         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22184         ;;
22185 esac
22186
22187 if test x"$acx_pthread_ok" = xno; then
22188 for flag in $acx_pthread_flags; do
22189
22190         tryPTHREAD_CFLAGS=""
22191         tryPTHREAD_LIBS=""
22192         case $flag in
22193                 none)
22194                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22195 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22196                 ;;
22197
22198                 -*)
22199                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22200 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22201                 tryPTHREAD_CFLAGS="$flag"
22202                 ;;
22203
22204                 pthread-config)
22205                 # skip this if we already have flags defined, for PostgreSQL
22206                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22207                 # Extract the first word of "pthread-config", so it can be a program name with args.
22208 set dummy pthread-config; ac_word=$2
22209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22210 $as_echo_n "checking for $ac_word... " >&6; }
22211 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22212   $as_echo_n "(cached) " >&6
22213 else
22214   if test -n "$acx_pthread_config"; then
22215   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22216 else
22217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22218 for as_dir in $PATH
22219 do
22220   IFS=$as_save_IFS
22221   test -z "$as_dir" && as_dir=.
22222   for ac_exec_ext in '' $ac_executable_extensions; do
22223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22224     ac_cv_prog_acx_pthread_config="yes"
22225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22226     break 2
22227   fi
22228 done
22229 done
22230 IFS=$as_save_IFS
22231
22232   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22233 fi
22234 fi
22235 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22236 if test -n "$acx_pthread_config"; then
22237   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22238 $as_echo "$acx_pthread_config" >&6; }
22239 else
22240   { $as_echo "$as_me:$LINENO: result: no" >&5
22241 $as_echo "no" >&6; }
22242 fi
22243
22244
22245                 if test x"$acx_pthread_config" = xno; then continue; fi
22246                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22247                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22248                 ;;
22249
22250                 *)
22251                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22252 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22253                 tryPTHREAD_LIBS="-l$flag"
22254                 ;;
22255         esac
22256
22257         save_LIBS="$LIBS"
22258         save_CFLAGS="$CFLAGS"
22259         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22260         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22261
22262         # Check for various functions.  We must include pthread.h,
22263         # since some functions may be macros.  (On the Sequent, we
22264         # need a special flag -Kthread to make this header compile.)
22265         # We check for pthread_join because it is in -lpthread on IRIX
22266         # while pthread_create is in libc.  We check for pthread_attr_init
22267         # due to DEC craziness with -lpthreads.  We check for
22268         # pthread_cleanup_push because it is one of the few pthread
22269         # functions on Solaris that doesn't have a non-functional libc stub.
22270         # We try pthread_create on general principles.
22271         cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277 #include <pthread.h>
22278 int
22279 main ()
22280 {
22281 pthread_t th; pthread_join(th, 0);
22282                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22283                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296   (eval "$ac_link") 2>conftest.er1
22297   ac_status=$?
22298   grep -v '^ *+' conftest.er1 >conftest.err
22299   rm -f conftest.er1
22300   cat conftest.err >&5
22301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } && {
22303          test -z "$ac_c_werror_flag" ||
22304          test ! -s conftest.err
22305        } && test -s conftest$ac_exeext && {
22306          test "$cross_compiling" = yes ||
22307          $as_test_x conftest$ac_exeext
22308        }; then
22309   acx_pthread_ok=yes
22310 else
22311   $as_echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314         acx_pthread_ok=no
22315 fi
22316
22317 rm -rf conftest.dSYM
22318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22319       conftest$ac_exeext conftest.$ac_ext
22320
22321         if test "x$acx_pthread_ok" = xyes; then
22322             # Don't use options that are ignored by the compiler.
22323             # We find them by checking stderror.
22324             cat >conftest.$ac_ext <<_ACEOF
22325 int
22326 main (int argc, char **argv)
22327 {
22328   (void) argc;
22329   (void) argv;
22330   return 0;
22331 }
22332 _ACEOF
22333             rm -f conftest.$ac_objext conftest$ac_exeext
22334             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22335                 # we continue with more flags because Linux needs -lpthread
22336                 # for libpq builds on PostgreSQL.  The test above only
22337                 # tests for building binaries, not shared libraries.
22338                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22339                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22340             else   acx_pthread_ok=no
22341             fi
22342         fi
22343
22344         LIBS="$save_LIBS"
22345         CFLAGS="$save_CFLAGS"
22346
22347         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22348 $as_echo "$acx_pthread_ok" >&6; }
22349 done
22350 fi
22351
22352 # Various other checks:
22353 if test "x$acx_pthread_ok" = xyes; then
22354         save_LIBS="$LIBS"
22355         LIBS="$PTHREAD_LIBS $LIBS"
22356         save_CFLAGS="$CFLAGS"
22357         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22358
22359         # Detect AIX lossage: threads are created detached by default
22360         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22361         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22362 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22363         cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h.  */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h.  */
22369 #include <pthread.h>
22370 int
22371 main ()
22372 {
22373 int attr=PTHREAD_CREATE_JOINABLE;
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386   (eval "$ac_link") 2>conftest.er1
22387   ac_status=$?
22388   grep -v '^ *+' conftest.er1 >conftest.err
22389   rm -f conftest.er1
22390   cat conftest.err >&5
22391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); } && {
22393          test -z "$ac_c_werror_flag" ||
22394          test ! -s conftest.err
22395        } && test -s conftest$ac_exeext && {
22396          test "$cross_compiling" = yes ||
22397          $as_test_x conftest$ac_exeext
22398        }; then
22399   ok=PTHREAD_CREATE_JOINABLE
22400 else
22401   $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404         ok=unknown
22405 fi
22406
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409       conftest$ac_exeext conftest.$ac_ext
22410         if test x"$ok" = xunknown; then
22411                 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h.  */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h.  */
22417 #include <pthread.h>
22418 int
22419 main ()
22420 {
22421 int attr=PTHREAD_CREATE_UNDETACHED;
22422   ;
22423   return 0;
22424 }
22425 _ACEOF
22426 rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (ac_try="$ac_link"
22428 case "(($ac_try" in
22429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430   *) ac_try_echo=$ac_try;;
22431 esac
22432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22433 $as_echo "$ac_try_echo") >&5
22434   (eval "$ac_link") 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } && {
22441          test -z "$ac_c_werror_flag" ||
22442          test ! -s conftest.err
22443        } && test -s conftest$ac_exeext && {
22444          test "$cross_compiling" = yes ||
22445          $as_test_x conftest$ac_exeext
22446        }; then
22447   ok=PTHREAD_CREATE_UNDETACHED
22448 else
22449   $as_echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452         ok=unknown
22453 fi
22454
22455 rm -rf conftest.dSYM
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457       conftest$ac_exeext conftest.$ac_ext
22458         fi
22459         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22460
22461 cat >>confdefs.h <<\_ACEOF
22462 #define PTHREAD_CREATE_JOINABLE $ok
22463 _ACEOF
22464
22465         fi
22466         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22467 $as_echo "${ok}" >&6; }
22468         if test x"$ok" = xunknown; then
22469                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22470 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22471         fi
22472
22473         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22474 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22475         flag=no
22476 # We always add these in PostgreSQL
22477 #       case "${host_cpu}-${host_os}" in
22478 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22479 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22480 #       esac
22481         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22482 $as_echo "${flag}" >&6; }
22483         if test "x$flag" != xno; then
22484                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22485         fi
22486
22487         LIBS="$save_LIBS"
22488         CFLAGS="$save_CFLAGS"
22489
22490 # Supporting cc_r would require a special CC in all places that
22491 # use libpq, and that is ugly, so we don't do it.  Users can still
22492 # define their compiler as cc_r to do thread builds of everything.
22493         # More AIX lossage: must compile with cc_r
22494         # Extract the first word of "cc_r", so it can be a program name with args.
22495 set dummy cc_r; ac_word=$2
22496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22497 $as_echo_n "checking for $ac_word... " >&6; }
22498 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22499   $as_echo_n "(cached) " >&6
22500 else
22501   if test -n "$PTHREAD_CC"; then
22502   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22503 else
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22506 do
22507   IFS=$as_save_IFS
22508   test -z "$as_dir" && as_dir=.
22509   for ac_exec_ext in '' $ac_executable_extensions; do
22510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511     ac_cv_prog_PTHREAD_CC="cc_r"
22512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22513     break 2
22514   fi
22515 done
22516 done
22517 IFS=$as_save_IFS
22518
22519   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22520 fi
22521 fi
22522 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22523 if test -n "$PTHREAD_CC"; then
22524   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22525 $as_echo "$PTHREAD_CC" >&6; }
22526 else
22527   { $as_echo "$as_me:$LINENO: result: no" >&5
22528 $as_echo "no" >&6; }
22529 fi
22530
22531
22532 else
22533         PTHREAD_CC="$CC"
22534 fi
22535
22536
22537
22538
22539
22540 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22541 if test x"$acx_pthread_ok" = xyes; then
22542
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_PTHREAD 1
22545 _ACEOF
22546
22547         :
22548 else
22549         acx_pthread_ok=no
22550
22551 fi
22552 ac_ext=c
22553 ac_cpp='$CPP $CPPFLAGS'
22554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22557
22558         # set thread flags
22559
22560 # Some platforms use these, so just define them.  They can't hurt if they
22561 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22562 # enables 5-arg getpwuid_r, among other things.
22563 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22564
22565
22566 # At this point, we don't want to muck with the compiler name for threading.
22567 # Let's see who fails, perhaps AIX.  2004-04-23
22568 if test "$PTHREAD_CC" != "$CC"; then
22569 { { $as_echo "$as_me:$LINENO: error:
22570 PostgreSQL does not support platforms that require a special compiler
22571 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
22572 $as_echo "$as_me: error:
22573 PostgreSQL does not support platforms that require a special compiler
22574 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
22575    { (exit 1); exit 1; }; }
22576 fi
22577
22578 # Check for *_r functions
22579 _CFLAGS="$CFLAGS"
22580 _LIBS="$LIBS"
22581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22582 LIBS="$LIBS $PTHREAD_LIBS"
22583
22584 if test "$PORTNAME" != "win32"; then
22585 if test "${ac_cv_header_pthread_h+set}" = set; then
22586   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22587 $as_echo_n "checking for pthread.h... " >&6; }
22588 if test "${ac_cv_header_pthread_h+set}" = set; then
22589   $as_echo_n "(cached) " >&6
22590 fi
22591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22592 $as_echo "$ac_cv_header_pthread_h" >&6; }
22593 else
22594   # Is the header compilable?
22595 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22596 $as_echo_n "checking pthread.h usability... " >&6; }
22597 cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 $ac_includes_default
22604 #include <pthread.h>
22605 _ACEOF
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610   *) ac_try_echo=$ac_try;;
22611 esac
22612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22613 $as_echo "$ac_try_echo") >&5
22614   (eval "$ac_compile") 2>conftest.er1
22615   ac_status=$?
22616   grep -v '^ *+' conftest.er1 >conftest.err
22617   rm -f conftest.er1
22618   cat conftest.err >&5
22619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); } && {
22621          test -z "$ac_c_werror_flag" ||
22622          test ! -s conftest.err
22623        } && test -s conftest.$ac_objext; then
22624   ac_header_compiler=yes
22625 else
22626   $as_echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629         ac_header_compiler=no
22630 fi
22631
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22634 $as_echo "$ac_header_compiler" >&6; }
22635
22636 # Is the header present?
22637 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22638 $as_echo_n "checking pthread.h presence... " >&6; }
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645 #include <pthread.h>
22646 _ACEOF
22647 if { (ac_try="$ac_cpp conftest.$ac_ext"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22655   ac_status=$?
22656   grep -v '^ *+' conftest.er1 >conftest.err
22657   rm -f conftest.er1
22658   cat conftest.err >&5
22659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); } >/dev/null && {
22661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22662          test ! -s conftest.err
22663        }; then
22664   ac_header_preproc=yes
22665 else
22666   $as_echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22668
22669   ac_header_preproc=no
22670 fi
22671
22672 rm -f conftest.err conftest.$ac_ext
22673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22674 $as_echo "$ac_header_preproc" >&6; }
22675
22676 # So?  What about this header?
22677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22678   yes:no: )
22679     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22680 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22681     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22682 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22683     ac_header_preproc=yes
22684     ;;
22685   no:yes:* )
22686     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22687 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22688     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22689 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22690     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22691 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22692     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22693 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22694     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22695 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22696     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22697 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22698     ( cat <<\_ASBOX
22699 ## ---------------------------------------- ##
22700 ## Report this to pgsql-bugs@postgresql.org ##
22701 ## ---------------------------------------- ##
22702 _ASBOX
22703      ) | sed "s/^/$as_me: WARNING:     /" >&2
22704     ;;
22705 esac
22706 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22707 $as_echo_n "checking for pthread.h... " >&6; }
22708 if test "${ac_cv_header_pthread_h+set}" = set; then
22709   $as_echo_n "(cached) " >&6
22710 else
22711   ac_cv_header_pthread_h=$ac_header_preproc
22712 fi
22713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22714 $as_echo "$ac_cv_header_pthread_h" >&6; }
22715
22716 fi
22717 if test "x$ac_cv_header_pthread_h" = x""yes; then
22718   :
22719 else
22720   { { $as_echo "$as_me:$LINENO: error:
22721 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
22722 $as_echo "$as_me: error:
22723 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
22724    { (exit 1); exit 1; }; }
22725 fi
22726
22727
22728 fi
22729
22730
22731
22732
22733 for ac_func in strerror_r getpwuid_r gethostbyname_r
22734 do
22735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22737 $as_echo_n "checking for $ac_func... " >&6; }
22738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22739   $as_echo_n "(cached) " >&6
22740 else
22741   cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h.  */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h.  */
22747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22749 #define $ac_func innocuous_$ac_func
22750
22751 /* System header to define __stub macros and hopefully few prototypes,
22752     which can conflict with char $ac_func (); below.
22753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22754     <limits.h> exists even on freestanding compilers.  */
22755
22756 #ifdef __STDC__
22757 # include <limits.h>
22758 #else
22759 # include <assert.h>
22760 #endif
22761
22762 #undef $ac_func
22763
22764 /* Override any GCC internal prototype to avoid an error.
22765    Use char because int might match the return type of a GCC
22766    builtin and then its argument prototype would still apply.  */
22767 #ifdef __cplusplus
22768 extern "C"
22769 #endif
22770 char $ac_func ();
22771 /* The GNU C library defines this for functions which it implements
22772     to always fail with ENOSYS.  Some functions are actually named
22773     something starting with __ and the normal name is an alias.  */
22774 #if defined __stub_$ac_func || defined __stub___$ac_func
22775 choke me
22776 #endif
22777
22778 int
22779 main ()
22780 {
22781 return $ac_func ();
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext conftest$ac_exeext
22787 if { (ac_try="$ac_link"
22788 case "(($ac_try" in
22789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790   *) ac_try_echo=$ac_try;;
22791 esac
22792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22793 $as_echo "$ac_try_echo") >&5
22794   (eval "$ac_link") 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } && {
22801          test -z "$ac_c_werror_flag" ||
22802          test ! -s conftest.err
22803        } && test -s conftest$ac_exeext && {
22804          test "$cross_compiling" = yes ||
22805          $as_test_x conftest$ac_exeext
22806        }; then
22807   eval "$as_ac_var=yes"
22808 else
22809   $as_echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22811
22812         eval "$as_ac_var=no"
22813 fi
22814
22815 rm -rf conftest.dSYM
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817       conftest$ac_exeext conftest.$ac_ext
22818 fi
22819 ac_res=`eval 'as_val=${'$as_ac_var'}
22820                  $as_echo "$as_val"'`
22821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22822 $as_echo "$ac_res" >&6; }
22823 as_val=`eval 'as_val=${'$as_ac_var'}
22824                  $as_echo "$as_val"'`
22825    if test "x$as_val" = x""yes; then
22826   cat >>confdefs.h <<_ACEOF
22827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22828 _ACEOF
22829
22830 fi
22831 done
22832
22833
22834 # Do test here with the proper thread flags
22835 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22836 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22837 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22838   $as_echo_n "(cached) " >&6
22839 else
22840   cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h.  */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h.  */
22846 #include <sys/types.h>
22847 #include <pwd.h>
22848 int
22849 main ()
22850 {
22851 uid_t uid;
22852 struct passwd *space;
22853 char *buf;
22854 size_t bufsize;
22855 struct passwd **result;
22856 getpwuid_r(uid, space, buf, bufsize, result);
22857   ;
22858   return 0;
22859 }
22860 _ACEOF
22861 rm -f conftest.$ac_objext
22862 if { (ac_try="$ac_compile"
22863 case "(($ac_try" in
22864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865   *) ac_try_echo=$ac_try;;
22866 esac
22867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22868 $as_echo "$ac_try_echo") >&5
22869   (eval "$ac_compile") 2>conftest.er1
22870   ac_status=$?
22871   grep -v '^ *+' conftest.er1 >conftest.err
22872   rm -f conftest.er1
22873   cat conftest.err >&5
22874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); } && {
22876          test -z "$ac_c_werror_flag" ||
22877          test ! -s conftest.err
22878        } && test -s conftest.$ac_objext; then
22879   pgac_cv_func_getpwuid_r_5arg=yes
22880 else
22881   $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884         pgac_cv_func_getpwuid_r_5arg=no
22885 fi
22886
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22888 fi
22889 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22890 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22891 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22892
22893 cat >>confdefs.h <<\_ACEOF
22894 #define GETPWUID_R_5ARG /**/
22895 _ACEOF
22896
22897 fi
22898
22899 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22900 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22901 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22902   $as_echo_n "(cached) " >&6
22903 else
22904   cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 #include <string.h>
22911 int
22912 main ()
22913 {
22914 #ifndef _AIX
22915 int strerror_r(int, char *, size_t);
22916 #else
22917 /* Older AIX has 'int' for the third argument so we don't test the args. */
22918 int strerror_r();
22919 #endif
22920   ;
22921   return 0;
22922 }
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928   *) ac_try_echo=$ac_try;;
22929 esac
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932   (eval "$ac_compile") 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && {
22939          test -z "$ac_c_werror_flag" ||
22940          test ! -s conftest.err
22941        } && test -s conftest.$ac_objext; then
22942   pgac_cv_func_strerror_r_int=yes
22943 else
22944   $as_echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22946
22947         pgac_cv_func_strerror_r_int=no
22948 fi
22949
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 fi
22952 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22953 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22954 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22955
22956 cat >>confdefs.h <<\_ACEOF
22957 #define STRERROR_R_INT /**/
22958 _ACEOF
22959
22960 fi
22961
22962
22963 CFLAGS="$_CFLAGS"
22964 LIBS="$_LIBS"
22965
22966 else
22967 # do not use values from template file
22968 PTHREAD_CFLAGS=
22969 PTHREAD_LIBS=
22970 fi
22971
22972
22973
22974
22975
22976 # We can test for libldap_r only after we know PTHREAD_LIBS
22977 if test "$with_ldap" = yes ; then
22978   _LIBS="$LIBS"
22979   if test "$PORTNAME" != "win32"; then
22980
22981 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22982 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
22983 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
22984   $as_echo_n "(cached) " >&6
22985 else
22986   ac_check_lib_save_LIBS=$LIBS
22987 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
22988 cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994
22995 /* Override any GCC internal prototype to avoid an error.
22996    Use char because int might match the return type of a GCC
22997    builtin and then its argument prototype would still apply.  */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 char ldap_bind ();
23002 int
23003 main ()
23004 {
23005 return ldap_bind ();
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23017 $as_echo "$ac_try_echo") >&5
23018   (eval "$ac_link") 2>conftest.er1
23019   ac_status=$?
23020   grep -v '^ *+' conftest.er1 >conftest.err
23021   rm -f conftest.er1
23022   cat conftest.err >&5
23023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } && {
23025          test -z "$ac_c_werror_flag" ||
23026          test ! -s conftest.err
23027        } && test -s conftest$ac_exeext && {
23028          test "$cross_compiling" = yes ||
23029          $as_test_x conftest$ac_exeext
23030        }; then
23031   ac_cv_lib_ldap_ldap_bind=yes
23032 else
23033   $as_echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036         ac_cv_lib_ldap_ldap_bind=no
23037 fi
23038
23039 rm -rf conftest.dSYM
23040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23041       conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23043 fi
23044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23045 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23046 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23047   cat >>confdefs.h <<_ACEOF
23048 #define HAVE_LIBLDAP 1
23049 _ACEOF
23050
23051   LIBS="-lldap $LIBS"
23052
23053 else
23054   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23055 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23056    { (exit 1); exit 1; }; }
23057 fi
23058
23059     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23060     if test "$enable_thread_safety" = yes; then
23061       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23062
23063 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23064 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23065 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23066   $as_echo_n "(cached) " >&6
23067 else
23068   ac_check_lib_save_LIBS=$LIBS
23069 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23070 cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h.  */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h.  */
23076
23077 /* Override any GCC internal prototype to avoid an error.
23078    Use char because int might match the return type of a GCC
23079    builtin and then its argument prototype would still apply.  */
23080 #ifdef __cplusplus
23081 extern "C"
23082 #endif
23083 char ldap_simple_bind ();
23084 int
23085 main ()
23086 {
23087 return ldap_simple_bind ();
23088   ;
23089   return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (ac_try="$ac_link"
23094 case "(($ac_try" in
23095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096   *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100   (eval "$ac_link") 2>conftest.er1
23101   ac_status=$?
23102   grep -v '^ *+' conftest.er1 >conftest.err
23103   rm -f conftest.er1
23104   cat conftest.err >&5
23105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); } && {
23107          test -z "$ac_c_werror_flag" ||
23108          test ! -s conftest.err
23109        } && test -s conftest$ac_exeext && {
23110          test "$cross_compiling" = yes ||
23111          $as_test_x conftest$ac_exeext
23112        }; then
23113   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23114 else
23115   $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118         ac_cv_lib_ldap_r_ldap_simple_bind=no
23119 fi
23120
23121 rm -rf conftest.dSYM
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123       conftest$ac_exeext conftest.$ac_ext
23124 LIBS=$ac_check_lib_save_LIBS
23125 fi
23126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23127 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23128 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23129   cat >>confdefs.h <<_ACEOF
23130 #define HAVE_LIBLDAP_R 1
23131 _ACEOF
23132
23133   LIBS="-lldap_r $LIBS"
23134
23135 else
23136   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23137 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23138    { (exit 1); exit 1; }; }
23139 fi
23140
23141       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23142     else
23143       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23144     fi
23145   else
23146
23147 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23148 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23149 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23150   $as_echo_n "(cached) " >&6
23151 else
23152   ac_check_lib_save_LIBS=$LIBS
23153 LIBS="-lwldap32  $LIBS"
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160
23161 /* Override any GCC internal prototype to avoid an error.
23162    Use char because int might match the return type of a GCC
23163    builtin and then its argument prototype would still apply.  */
23164 #ifdef __cplusplus
23165 extern "C"
23166 #endif
23167 char ldap_bind ();
23168 int
23169 main ()
23170 {
23171 return ldap_bind ();
23172   ;
23173   return 0;
23174 }
23175 _ACEOF
23176 rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (ac_try="$ac_link"
23178 case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23183 $as_echo "$ac_try_echo") >&5
23184   (eval "$ac_link") 2>conftest.er1
23185   ac_status=$?
23186   grep -v '^ *+' conftest.er1 >conftest.err
23187   rm -f conftest.er1
23188   cat conftest.err >&5
23189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); } && {
23191          test -z "$ac_c_werror_flag" ||
23192          test ! -s conftest.err
23193        } && test -s conftest$ac_exeext && {
23194          test "$cross_compiling" = yes ||
23195          $as_test_x conftest$ac_exeext
23196        }; then
23197   ac_cv_lib_wldap32_ldap_bind=yes
23198 else
23199   $as_echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202         ac_cv_lib_wldap32_ldap_bind=no
23203 fi
23204
23205 rm -rf conftest.dSYM
23206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23207       conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23209 fi
23210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23211 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23212 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23213   cat >>confdefs.h <<_ACEOF
23214 #define HAVE_LIBWLDAP32 1
23215 _ACEOF
23216
23217   LIBS="-lwldap32 $LIBS"
23218
23219 else
23220   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23221 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23222    { (exit 1); exit 1; }; }
23223 fi
23224
23225     LDAP_LIBS_FE="-lwldap32"
23226     LDAP_LIBS_BE="-lwldap32"
23227   fi
23228   LIBS="$_LIBS"
23229 fi
23230
23231
23232
23233
23234 # This test makes sure that run tests work at all.  Sometimes a shared
23235 # library is found by the linker, but the runtime linker can't find it.
23236 # This check should come after all modifications of compiler or linker
23237 # variables, and before any other run tests.
23238 { $as_echo "$as_me:$LINENO: checking test program" >&5
23239 $as_echo_n "checking test program... " >&6; }
23240 if test "$cross_compiling" = yes; then
23241   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23242 $as_echo "cross-compiling" >&6; }
23243 else
23244   cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h.  */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h.  */
23250 int main() { return 0; }
23251 _ACEOF
23252 rm -f conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256   *) ac_try_echo=$ac_try;;
23257 esac
23258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259 $as_echo "$ac_try_echo") >&5
23260   (eval "$ac_link") 2>&5
23261   ac_status=$?
23262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264   { (case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23269 $as_echo "$ac_try_echo") >&5
23270   (eval "$ac_try") 2>&5
23271   ac_status=$?
23272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; }; then
23274   { $as_echo "$as_me:$LINENO: result: ok" >&5
23275 $as_echo "ok" >&6; }
23276 else
23277   $as_echo "$as_me: program exited with status $ac_status" >&5
23278 $as_echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 ( exit $ac_status )
23282 { $as_echo "$as_me:$LINENO: result: failed" >&5
23283 $as_echo "failed" >&6; }
23284 { { $as_echo "$as_me:$LINENO: error:
23285 Could not execute a simple test program.  This may be a problem
23286 related to locating shared libraries.  Check the file 'config.log'
23287 for the exact reason." >&5
23288 $as_echo "$as_me: error:
23289 Could not execute a simple test program.  This may be a problem
23290 related to locating shared libraries.  Check the file 'config.log'
23291 for the exact reason." >&2;}
23292    { (exit 1); exit 1; }; }
23293 fi
23294 rm -rf conftest.dSYM
23295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23296 fi
23297
23298
23299
23300 # --------------------
23301 # Run tests below here
23302 # --------------------
23303
23304 # Force use of our snprintf if system's doesn't do arg control
23305 # See comment above at snprintf test for details.
23306 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23307   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23308 $as_echo_n "checking whether printf supports argument control... " >&6; }
23309 if test "${pgac_cv_printf_arg_control+set}" = set; then
23310   $as_echo_n "(cached) " >&6
23311 else
23312   if test "$cross_compiling" = yes; then
23313   pgac_cv_printf_arg_control=cross
23314 else
23315   cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h.  */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h.  */
23321 #include <stdio.h>
23322 #include <string.h>
23323
23324 int main()
23325 {
23326   char buf[100];
23327
23328   /* can it swap arguments? */
23329   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23330   if (strcmp(buf, "4 3") != 0)
23331     return 1;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339   *) ac_try_echo=$ac_try;;
23340 esac
23341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23342 $as_echo "$ac_try_echo") >&5
23343   (eval "$ac_link") 2>&5
23344   ac_status=$?
23345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23347   { (case "(($ac_try" in
23348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349   *) ac_try_echo=$ac_try;;
23350 esac
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353   (eval "$ac_try") 2>&5
23354   ac_status=$?
23355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; }; then
23357   pgac_cv_printf_arg_control=yes
23358 else
23359   $as_echo "$as_me: program exited with status $ac_status" >&5
23360 $as_echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ( exit $ac_status )
23364 pgac_cv_printf_arg_control=no
23365 fi
23366 rm -rf conftest.dSYM
23367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23368 fi
23369
23370
23371
23372 fi
23373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23374 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23375
23376   if test $pgac_cv_printf_arg_control != yes ; then
23377     pgac_need_repl_snprintf=yes
23378   fi
23379 fi
23380
23381
23382
23383
23384 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23385 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23386 if test "${pgac_cv_type_long_int_64+set}" = set; then
23387   $as_echo_n "(cached) " >&6
23388 else
23389   if test "$cross_compiling" = yes; then
23390   # If cross-compiling, check the size reported by the compiler and
23391 # trust that the arithmetic works.
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398
23399 int
23400 main ()
23401 {
23402 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23403 test_array [0] = 0
23404
23405   ;
23406   return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417   (eval "$ac_compile") 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && {
23424          test -z "$ac_c_werror_flag" ||
23425          test ! -s conftest.err
23426        } && test -s conftest.$ac_objext; then
23427   pgac_cv_type_long_int_64=yes
23428 else
23429   $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432         pgac_cv_type_long_int_64=no
23433 fi
23434
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436 else
23437   cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h.  */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h.  */
23443 typedef long int ac_int64;
23444
23445 /*
23446  * These are globals to discourage the compiler from folding all the
23447  * arithmetic tests down to compile-time constants.
23448  */
23449 ac_int64 a = 20000001;
23450 ac_int64 b = 40000005;
23451
23452 int does_int64_work()
23453 {
23454   ac_int64 c,d;
23455
23456   if (sizeof(ac_int64) != 8)
23457     return 0;                   /* definitely not the right size */
23458
23459   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23460   c = a * b;
23461   d = (c + b) / b;
23462   if (d != a+1)
23463     return 0;
23464   return 1;
23465 }
23466 main() {
23467   exit(! does_int64_work());
23468 }
23469 _ACEOF
23470 rm -f conftest$ac_exeext
23471 if { (ac_try="$ac_link"
23472 case "(($ac_try" in
23473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474   *) ac_try_echo=$ac_try;;
23475 esac
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478   (eval "$ac_link") 2>&5
23479   ac_status=$?
23480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23482   { (case "(($ac_try" in
23483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484   *) ac_try_echo=$ac_try;;
23485 esac
23486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23487 $as_echo "$ac_try_echo") >&5
23488   (eval "$ac_try") 2>&5
23489   ac_status=$?
23490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; }; then
23492   pgac_cv_type_long_int_64=yes
23493 else
23494   $as_echo "$as_me: program exited with status $ac_status" >&5
23495 $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498 ( exit $ac_status )
23499 pgac_cv_type_long_int_64=no
23500 fi
23501 rm -rf conftest.dSYM
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23503 fi
23504
23505
23506 fi
23507 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23508 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23509
23510 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23511 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23512
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_LONG_INT_64 1
23515 _ACEOF
23516
23517 fi
23518
23519
23520 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23521   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23522 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23523 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23524   $as_echo_n "(cached) " >&6
23525 else
23526   if test "$cross_compiling" = yes; then
23527   # If cross-compiling, check the size reported by the compiler and
23528 # trust that the arithmetic works.
23529 cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535
23536 int
23537 main ()
23538 {
23539 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23540 test_array [0] = 0
23541
23542   ;
23543   return 0;
23544 }
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550   *) ac_try_echo=$ac_try;;
23551 esac
23552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23553 $as_echo "$ac_try_echo") >&5
23554   (eval "$ac_compile") 2>conftest.er1
23555   ac_status=$?
23556   grep -v '^ *+' conftest.er1 >conftest.err
23557   rm -f conftest.er1
23558   cat conftest.err >&5
23559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); } && {
23561          test -z "$ac_c_werror_flag" ||
23562          test ! -s conftest.err
23563        } && test -s conftest.$ac_objext; then
23564   pgac_cv_type_long_long_int_64=yes
23565 else
23566   $as_echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569         pgac_cv_type_long_long_int_64=no
23570 fi
23571
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573 else
23574   cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 typedef long long int ac_int64;
23581
23582 /*
23583  * These are globals to discourage the compiler from folding all the
23584  * arithmetic tests down to compile-time constants.
23585  */
23586 ac_int64 a = 20000001;
23587 ac_int64 b = 40000005;
23588
23589 int does_int64_work()
23590 {
23591   ac_int64 c,d;
23592
23593   if (sizeof(ac_int64) != 8)
23594     return 0;                   /* definitely not the right size */
23595
23596   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23597   c = a * b;
23598   d = (c + b) / b;
23599   if (d != a+1)
23600     return 0;
23601   return 1;
23602 }
23603 main() {
23604   exit(! does_int64_work());
23605 }
23606 _ACEOF
23607 rm -f conftest$ac_exeext
23608 if { (ac_try="$ac_link"
23609 case "(($ac_try" in
23610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611   *) ac_try_echo=$ac_try;;
23612 esac
23613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615   (eval "$ac_link") 2>&5
23616   ac_status=$?
23617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23619   { (case "(($ac_try" in
23620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621   *) ac_try_echo=$ac_try;;
23622 esac
23623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23624 $as_echo "$ac_try_echo") >&5
23625   (eval "$ac_try") 2>&5
23626   ac_status=$?
23627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); }; }; then
23629   pgac_cv_type_long_long_int_64=yes
23630 else
23631   $as_echo "$as_me: program exited with status $ac_status" >&5
23632 $as_echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23634
23635 ( exit $ac_status )
23636 pgac_cv_type_long_long_int_64=no
23637 fi
23638 rm -rf conftest.dSYM
23639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23640 fi
23641
23642
23643 fi
23644 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23645 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23646
23647 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23648 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23649
23650 cat >>confdefs.h <<\_ACEOF
23651 #define HAVE_LONG_LONG_INT_64 1
23652 _ACEOF
23653
23654 fi
23655
23656   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23657     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23658 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23659    { (exit 1); exit 1; }; }
23660   fi
23661 fi
23662
23663
23664
23665 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23666   cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672
23673 #define INT64CONST(x)  x##LL
23674 long long int foo = INT64CONST(0x1234567890123456);
23675
23676 int
23677 main ()
23678 {
23679
23680   ;
23681   return 0;
23682 }
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688   *) ac_try_echo=$ac_try;;
23689 esac
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692   (eval "$ac_compile") 2>conftest.er1
23693   ac_status=$?
23694   grep -v '^ *+' conftest.er1 >conftest.err
23695   rm -f conftest.er1
23696   cat conftest.err >&5
23697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); } && {
23699          test -z "$ac_c_werror_flag" ||
23700          test ! -s conftest.err
23701        } && test -s conftest.$ac_objext; then
23702
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_LL_CONSTANTS 1
23705 _ACEOF
23706
23707 else
23708   $as_echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23710
23711
23712 fi
23713
23714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23715 fi
23716
23717
23718 # If we found "long int" is 64 bits, assume snprintf handles it.  If
23719 # we found we need to use "long long int", better check.  We cope with
23720 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
23721 # work, fall back to our own snprintf emulation (which we know uses %lld).
23722
23723 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23724   if test $pgac_need_repl_snprintf = no; then
23725     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23726 $as_echo_n "checking snprintf format for long long int... " >&6; }
23727 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23728   $as_echo_n "(cached) " >&6
23729 else
23730   for pgac_format in '%lld' '%qd' '%I64d'; do
23731 if test "$cross_compiling" = yes; then
23732   pgac_cv_snprintf_long_long_int_format=cross; break
23733 else
23734   cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h.  */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h.  */
23740 #include <stdio.h>
23741 typedef long long int ac_int64;
23742 #define INT64_FORMAT "$pgac_format"
23743
23744 ac_int64 a = 20000001;
23745 ac_int64 b = 40000005;
23746
23747 int does_int64_snprintf_work()
23748 {
23749   ac_int64 c;
23750   char buf[100];
23751
23752   if (sizeof(ac_int64) != 8)
23753     return 0;                   /* doesn't look like the right size */
23754
23755   c = a * b;
23756   snprintf(buf, 100, INT64_FORMAT, c);
23757   if (strcmp(buf, "800000140000005") != 0)
23758     return 0;                   /* either multiply or snprintf is busted */
23759   return 1;
23760 }
23761 main() {
23762   exit(! does_int64_snprintf_work());
23763 }
23764 _ACEOF
23765 rm -f conftest$ac_exeext
23766 if { (ac_try="$ac_link"
23767 case "(($ac_try" in
23768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769   *) ac_try_echo=$ac_try;;
23770 esac
23771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23772 $as_echo "$ac_try_echo") >&5
23773   (eval "$ac_link") 2>&5
23774   ac_status=$?
23775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23777   { (case "(($ac_try" in
23778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779   *) ac_try_echo=$ac_try;;
23780 esac
23781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782 $as_echo "$ac_try_echo") >&5
23783   (eval "$ac_try") 2>&5
23784   ac_status=$?
23785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); }; }; then
23787   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23788 else
23789   $as_echo "$as_me: program exited with status $ac_status" >&5
23790 $as_echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793 fi
23794 rm -rf conftest.dSYM
23795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23796 fi
23797
23798
23799 done
23800 fi
23801
23802 LONG_LONG_INT_FORMAT=''
23803
23804 case $pgac_cv_snprintf_long_long_int_format in
23805   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23806 $as_echo "cannot test (not on host machine)" >&6; };;
23807   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23808 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23809          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23810   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
23811 $as_echo "none" >&6; };;
23812 esac
23813     if test "$LONG_LONG_INT_FORMAT" = ""; then
23814       # Force usage of our own snprintf, since system snprintf is broken
23815       pgac_need_repl_snprintf=yes
23816       LONG_LONG_INT_FORMAT='%lld'
23817     fi
23818   else
23819     # Here if we previously decided we needed to use our own snprintf
23820     LONG_LONG_INT_FORMAT='%lld'
23821   fi
23822   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23823   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23824   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23825 else
23826   # Here if we are not using 'long long int' at all
23827   INT64_FORMAT='"%ld"'
23828   UINT64_FORMAT='"%lu"'
23829 fi
23830
23831
23832 cat >>confdefs.h <<_ACEOF
23833 #define INT64_FORMAT $INT64_FORMAT
23834 _ACEOF
23835
23836
23837
23838 cat >>confdefs.h <<_ACEOF
23839 #define UINT64_FORMAT $UINT64_FORMAT
23840 _ACEOF
23841
23842
23843 # Now we have checked all the reasons to replace snprintf
23844 if test $pgac_need_repl_snprintf = yes; then
23845
23846 cat >>confdefs.h <<\_ACEOF
23847 #define USE_REPL_SNPRINTF 1
23848 _ACEOF
23849
23850   case " $LIBOBJS " in
23851   *" snprintf.$ac_objext "* ) ;;
23852   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23853  ;;
23854 esac
23855
23856 fi
23857
23858 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23859 # The cast to long int works around a bug in the HP C Compiler
23860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23862 # This bug is HP SR number 8606223364.
23863 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23864 $as_echo_n "checking size of void *... " >&6; }
23865 if test "${ac_cv_sizeof_void_p+set}" = set; then
23866   $as_echo_n "(cached) " >&6
23867 else
23868   if test "$cross_compiling" = yes; then
23869   # Depending upon the size, compute the lo and hi bounds.
23870 cat >conftest.$ac_ext <<_ACEOF
23871 /* confdefs.h.  */
23872 _ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h.  */
23876 $ac_includes_default
23877 int
23878 main ()
23879 {
23880 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23881 test_array [0] = 0
23882
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891   *) ac_try_echo=$ac_try;;
23892 esac
23893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23894 $as_echo "$ac_try_echo") >&5
23895   (eval "$ac_compile") 2>conftest.er1
23896   ac_status=$?
23897   grep -v '^ *+' conftest.er1 >conftest.err
23898   rm -f conftest.er1
23899   cat conftest.err >&5
23900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); } && {
23902          test -z "$ac_c_werror_flag" ||
23903          test ! -s conftest.err
23904        } && test -s conftest.$ac_objext; then
23905   ac_lo=0 ac_mid=0
23906   while :; do
23907     cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 $ac_includes_default
23914 int
23915 main ()
23916 {
23917 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23918 test_array [0] = 0
23919
23920   ;
23921   return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928   *) ac_try_echo=$ac_try;;
23929 esac
23930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23931 $as_echo "$ac_try_echo") >&5
23932   (eval "$ac_compile") 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && {
23939          test -z "$ac_c_werror_flag" ||
23940          test ! -s conftest.err
23941        } && test -s conftest.$ac_objext; then
23942   ac_hi=$ac_mid; break
23943 else
23944   $as_echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947         ac_lo=`expr $ac_mid + 1`
23948                         if test $ac_lo -le $ac_mid; then
23949                           ac_lo= ac_hi=
23950                           break
23951                         fi
23952                         ac_mid=`expr 2 '*' $ac_mid + 1`
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956   done
23957 else
23958   $as_echo "$as_me: failed program was:" >&5
23959 sed 's/^/| /' conftest.$ac_ext >&5
23960
23961         cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h.  */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h.  */
23967 $ac_includes_default
23968 int
23969 main ()
23970 {
23971 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23972 test_array [0] = 0
23973
23974   ;
23975   return 0;
23976 }
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982   *) ac_try_echo=$ac_try;;
23983 esac
23984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23985 $as_echo "$ac_try_echo") >&5
23986   (eval "$ac_compile") 2>conftest.er1
23987   ac_status=$?
23988   grep -v '^ *+' conftest.er1 >conftest.err
23989   rm -f conftest.er1
23990   cat conftest.err >&5
23991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); } && {
23993          test -z "$ac_c_werror_flag" ||
23994          test ! -s conftest.err
23995        } && test -s conftest.$ac_objext; then
23996   ac_hi=-1 ac_mid=-1
23997   while :; do
23998     cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h.  */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h.  */
24004 $ac_includes_default
24005 int
24006 main ()
24007 {
24008 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24009 test_array [0] = 0
24010
24011   ;
24012   return 0;
24013 }
24014 _ACEOF
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019   *) ac_try_echo=$ac_try;;
24020 esac
24021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023   (eval "$ac_compile") 2>conftest.er1
24024   ac_status=$?
24025   grep -v '^ *+' conftest.er1 >conftest.err
24026   rm -f conftest.er1
24027   cat conftest.err >&5
24028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); } && {
24030          test -z "$ac_c_werror_flag" ||
24031          test ! -s conftest.err
24032        } && test -s conftest.$ac_objext; then
24033   ac_lo=$ac_mid; break
24034 else
24035   $as_echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038         ac_hi=`expr '(' $ac_mid ')' - 1`
24039                         if test $ac_mid -le $ac_hi; then
24040                           ac_lo= ac_hi=
24041                           break
24042                         fi
24043                         ac_mid=`expr 2 '*' $ac_mid`
24044 fi
24045
24046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047   done
24048 else
24049   $as_echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24051
24052         ac_lo= ac_hi=
24053 fi
24054
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 fi
24057
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 # Binary search between lo and hi bounds.
24060 while test "x$ac_lo" != "x$ac_hi"; do
24061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24062   cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068 $ac_includes_default
24069 int
24070 main ()
24071 {
24072 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24073 test_array [0] = 0
24074
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext
24080 if { (ac_try="$ac_compile"
24081 case "(($ac_try" in
24082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083   *) ac_try_echo=$ac_try;;
24084 esac
24085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24086 $as_echo "$ac_try_echo") >&5
24087   (eval "$ac_compile") 2>conftest.er1
24088   ac_status=$?
24089   grep -v '^ *+' conftest.er1 >conftest.err
24090   rm -f conftest.er1
24091   cat conftest.err >&5
24092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); } && {
24094          test -z "$ac_c_werror_flag" ||
24095          test ! -s conftest.err
24096        } && test -s conftest.$ac_objext; then
24097   ac_hi=$ac_mid
24098 else
24099   $as_echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24101
24102         ac_lo=`expr '(' $ac_mid ')' + 1`
24103 fi
24104
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106 done
24107 case $ac_lo in
24108 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24109 '') if test "$ac_cv_type_void_p" = yes; then
24110      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24113 See \`config.log' for more details." >&5
24114 $as_echo "$as_me: error: cannot compute sizeof (void *)
24115 See \`config.log' for more details." >&2;}
24116    { (exit 77); exit 77; }; }; }
24117    else
24118      ac_cv_sizeof_void_p=0
24119    fi ;;
24120 esac
24121 else
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 static long int longval () { return (long int) (sizeof (void *)); }
24130 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24131 #include <stdio.h>
24132 #include <stdlib.h>
24133 int
24134 main ()
24135 {
24136
24137   FILE *f = fopen ("conftest.val", "w");
24138   if (! f)
24139     return 1;
24140   if (((long int) (sizeof (void *))) < 0)
24141     {
24142       long int i = longval ();
24143       if (i != ((long int) (sizeof (void *))))
24144         return 1;
24145       fprintf (f, "%ld", i);
24146     }
24147   else
24148     {
24149       unsigned long int i = ulongval ();
24150       if (i != ((long int) (sizeof (void *))))
24151         return 1;
24152       fprintf (f, "%lu", i);
24153     }
24154   /* Do not output a trailing newline, as this causes \r\n confusion
24155      on some platforms.  */
24156   return ferror (f) || fclose (f) != 0;
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166   *) ac_try_echo=$ac_try;;
24167 esac
24168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170   (eval "$ac_link") 2>&5
24171   ac_status=$?
24172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24174   { (case "(($ac_try" in
24175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176   *) ac_try_echo=$ac_try;;
24177 esac
24178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180   (eval "$ac_try") 2>&5
24181   ac_status=$?
24182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; }; then
24184   ac_cv_sizeof_void_p=`cat conftest.val`
24185 else
24186   $as_echo "$as_me: program exited with status $ac_status" >&5
24187 $as_echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24189
24190 ( exit $ac_status )
24191 if test "$ac_cv_type_void_p" = yes; then
24192      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24194 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24195 See \`config.log' for more details." >&5
24196 $as_echo "$as_me: error: cannot compute sizeof (void *)
24197 See \`config.log' for more details." >&2;}
24198    { (exit 77); exit 77; }; }; }
24199    else
24200      ac_cv_sizeof_void_p=0
24201    fi
24202 fi
24203 rm -rf conftest.dSYM
24204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24205 fi
24206 rm -f conftest.val
24207 fi
24208 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24209 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24210
24211
24212
24213 cat >>confdefs.h <<_ACEOF
24214 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24215 _ACEOF
24216
24217
24218 # The cast to long int works around a bug in the HP C Compiler
24219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24221 # This bug is HP SR number 8606223364.
24222 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24223 $as_echo_n "checking size of size_t... " >&6; }
24224 if test "${ac_cv_sizeof_size_t+set}" = set; then
24225   $as_echo_n "(cached) " >&6
24226 else
24227   if test "$cross_compiling" = yes; then
24228   # Depending upon the size, compute the lo and hi bounds.
24229 cat >conftest.$ac_ext <<_ACEOF
24230 /* confdefs.h.  */
24231 _ACEOF
24232 cat confdefs.h >>conftest.$ac_ext
24233 cat >>conftest.$ac_ext <<_ACEOF
24234 /* end confdefs.h.  */
24235 $ac_includes_default
24236 int
24237 main ()
24238 {
24239 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24240 test_array [0] = 0
24241
24242   ;
24243   return 0;
24244 }
24245 _ACEOF
24246 rm -f conftest.$ac_objext
24247 if { (ac_try="$ac_compile"
24248 case "(($ac_try" in
24249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250   *) ac_try_echo=$ac_try;;
24251 esac
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254   (eval "$ac_compile") 2>conftest.er1
24255   ac_status=$?
24256   grep -v '^ *+' conftest.er1 >conftest.err
24257   rm -f conftest.er1
24258   cat conftest.err >&5
24259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); } && {
24261          test -z "$ac_c_werror_flag" ||
24262          test ! -s conftest.err
24263        } && test -s conftest.$ac_objext; then
24264   ac_lo=0 ac_mid=0
24265   while :; do
24266     cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h.  */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h.  */
24272 $ac_includes_default
24273 int
24274 main ()
24275 {
24276 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24277 test_array [0] = 0
24278
24279   ;
24280   return 0;
24281 }
24282 _ACEOF
24283 rm -f conftest.$ac_objext
24284 if { (ac_try="$ac_compile"
24285 case "(($ac_try" in
24286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287   *) ac_try_echo=$ac_try;;
24288 esac
24289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24290 $as_echo "$ac_try_echo") >&5
24291   (eval "$ac_compile") 2>conftest.er1
24292   ac_status=$?
24293   grep -v '^ *+' conftest.er1 >conftest.err
24294   rm -f conftest.er1
24295   cat conftest.err >&5
24296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); } && {
24298          test -z "$ac_c_werror_flag" ||
24299          test ! -s conftest.err
24300        } && test -s conftest.$ac_objext; then
24301   ac_hi=$ac_mid; break
24302 else
24303   $as_echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306         ac_lo=`expr $ac_mid + 1`
24307                         if test $ac_lo -le $ac_mid; then
24308                           ac_lo= ac_hi=
24309                           break
24310                         fi
24311                         ac_mid=`expr 2 '*' $ac_mid + 1`
24312 fi
24313
24314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24315   done
24316 else
24317   $as_echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320         cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h.  */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h.  */
24326 $ac_includes_default
24327 int
24328 main ()
24329 {
24330 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24331 test_array [0] = 0
24332
24333   ;
24334   return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345   (eval "$ac_compile") 2>conftest.er1
24346   ac_status=$?
24347   grep -v '^ *+' conftest.er1 >conftest.err
24348   rm -f conftest.er1
24349   cat conftest.err >&5
24350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); } && {
24352          test -z "$ac_c_werror_flag" ||
24353          test ! -s conftest.err
24354        } && test -s conftest.$ac_objext; then
24355   ac_hi=-1 ac_mid=-1
24356   while :; do
24357     cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h.  */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h.  */
24363 $ac_includes_default
24364 int
24365 main ()
24366 {
24367 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24368 test_array [0] = 0
24369
24370   ;
24371   return 0;
24372 }
24373 _ACEOF
24374 rm -f conftest.$ac_objext
24375 if { (ac_try="$ac_compile"
24376 case "(($ac_try" in
24377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24378   *) ac_try_echo=$ac_try;;
24379 esac
24380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24381 $as_echo "$ac_try_echo") >&5
24382   (eval "$ac_compile") 2>conftest.er1
24383   ac_status=$?
24384   grep -v '^ *+' conftest.er1 >conftest.err
24385   rm -f conftest.er1
24386   cat conftest.err >&5
24387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); } && {
24389          test -z "$ac_c_werror_flag" ||
24390          test ! -s conftest.err
24391        } && test -s conftest.$ac_objext; then
24392   ac_lo=$ac_mid; break
24393 else
24394   $as_echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397         ac_hi=`expr '(' $ac_mid ')' - 1`
24398                         if test $ac_mid -le $ac_hi; then
24399                           ac_lo= ac_hi=
24400                           break
24401                         fi
24402                         ac_mid=`expr 2 '*' $ac_mid`
24403 fi
24404
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406   done
24407 else
24408   $as_echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411         ac_lo= ac_hi=
24412 fi
24413
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24415 fi
24416
24417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24418 # Binary search between lo and hi bounds.
24419 while test "x$ac_lo" != "x$ac_hi"; do
24420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24421   cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h.  */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h.  */
24427 $ac_includes_default
24428 int
24429 main ()
24430 {
24431 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24432 test_array [0] = 0
24433
24434   ;
24435   return 0;
24436 }
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446   (eval "$ac_compile") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest.$ac_objext; then
24456   ac_hi=$ac_mid
24457 else
24458   $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461         ac_lo=`expr '(' $ac_mid ')' + 1`
24462 fi
24463
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 done
24466 case $ac_lo in
24467 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24468 '') if test "$ac_cv_type_size_t" = yes; then
24469      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24471 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24472 See \`config.log' for more details." >&5
24473 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24474 See \`config.log' for more details." >&2;}
24475    { (exit 77); exit 77; }; }; }
24476    else
24477      ac_cv_sizeof_size_t=0
24478    fi ;;
24479 esac
24480 else
24481   cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h.  */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h.  */
24487 $ac_includes_default
24488 static long int longval () { return (long int) (sizeof (size_t)); }
24489 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24490 #include <stdio.h>
24491 #include <stdlib.h>
24492 int
24493 main ()
24494 {
24495
24496   FILE *f = fopen ("conftest.val", "w");
24497   if (! f)
24498     return 1;
24499   if (((long int) (sizeof (size_t))) < 0)
24500     {
24501       long int i = longval ();
24502       if (i != ((long int) (sizeof (size_t))))
24503         return 1;
24504       fprintf (f, "%ld", i);
24505     }
24506   else
24507     {
24508       unsigned long int i = ulongval ();
24509       if (i != ((long int) (sizeof (size_t))))
24510         return 1;
24511       fprintf (f, "%lu", i);
24512     }
24513   /* Do not output a trailing newline, as this causes \r\n confusion
24514      on some platforms.  */
24515   return ferror (f) || fclose (f) != 0;
24516
24517   ;
24518   return 0;
24519 }
24520 _ACEOF
24521 rm -f conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24528 $as_echo "$ac_try_echo") >&5
24529   (eval "$ac_link") 2>&5
24530   ac_status=$?
24531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24533   { (case "(($ac_try" in
24534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535   *) ac_try_echo=$ac_try;;
24536 esac
24537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24538 $as_echo "$ac_try_echo") >&5
24539   (eval "$ac_try") 2>&5
24540   ac_status=$?
24541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; }; then
24543   ac_cv_sizeof_size_t=`cat conftest.val`
24544 else
24545   $as_echo "$as_me: program exited with status $ac_status" >&5
24546 $as_echo "$as_me: failed program was:" >&5
24547 sed 's/^/| /' conftest.$ac_ext >&5
24548
24549 ( exit $ac_status )
24550 if test "$ac_cv_type_size_t" = yes; then
24551      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24553 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24554 See \`config.log' for more details." >&5
24555 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24556 See \`config.log' for more details." >&2;}
24557    { (exit 77); exit 77; }; }; }
24558    else
24559      ac_cv_sizeof_size_t=0
24560    fi
24561 fi
24562 rm -rf conftest.dSYM
24563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24564 fi
24565 rm -f conftest.val
24566 fi
24567 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24568 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24569
24570
24571
24572 cat >>confdefs.h <<_ACEOF
24573 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24574 _ACEOF
24575
24576
24577 # The cast to long int works around a bug in the HP C Compiler
24578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24580 # This bug is HP SR number 8606223364.
24581 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24582 $as_echo_n "checking size of long... " >&6; }
24583 if test "${ac_cv_sizeof_long+set}" = set; then
24584   $as_echo_n "(cached) " >&6
24585 else
24586   if test "$cross_compiling" = yes; then
24587   # Depending upon the size, compute the lo and hi bounds.
24588 cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h.  */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h.  */
24594 $ac_includes_default
24595 int
24596 main ()
24597 {
24598 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24599 test_array [0] = 0
24600
24601   ;
24602   return 0;
24603 }
24604 _ACEOF
24605 rm -f conftest.$ac_objext
24606 if { (ac_try="$ac_compile"
24607 case "(($ac_try" in
24608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609   *) ac_try_echo=$ac_try;;
24610 esac
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613   (eval "$ac_compile") 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } && {
24620          test -z "$ac_c_werror_flag" ||
24621          test ! -s conftest.err
24622        } && test -s conftest.$ac_objext; then
24623   ac_lo=0 ac_mid=0
24624   while :; do
24625     cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631 $ac_includes_default
24632 int
24633 main ()
24634 {
24635 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24636 test_array [0] = 0
24637
24638   ;
24639   return 0;
24640 }
24641 _ACEOF
24642 rm -f conftest.$ac_objext
24643 if { (ac_try="$ac_compile"
24644 case "(($ac_try" in
24645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646   *) ac_try_echo=$ac_try;;
24647 esac
24648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24649 $as_echo "$ac_try_echo") >&5
24650   (eval "$ac_compile") 2>conftest.er1
24651   ac_status=$?
24652   grep -v '^ *+' conftest.er1 >conftest.err
24653   rm -f conftest.er1
24654   cat conftest.err >&5
24655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); } && {
24657          test -z "$ac_c_werror_flag" ||
24658          test ! -s conftest.err
24659        } && test -s conftest.$ac_objext; then
24660   ac_hi=$ac_mid; break
24661 else
24662   $as_echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665         ac_lo=`expr $ac_mid + 1`
24666                         if test $ac_lo -le $ac_mid; then
24667                           ac_lo= ac_hi=
24668                           break
24669                         fi
24670                         ac_mid=`expr 2 '*' $ac_mid + 1`
24671 fi
24672
24673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24674   done
24675 else
24676   $as_echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24678
24679         cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 $ac_includes_default
24686 int
24687 main ()
24688 {
24689 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24690 test_array [0] = 0
24691
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704   (eval "$ac_compile") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest.$ac_objext; then
24714   ac_hi=-1 ac_mid=-1
24715   while :; do
24716     cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722 $ac_includes_default
24723 int
24724 main ()
24725 {
24726 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24727 test_array [0] = 0
24728
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24740 $as_echo "$ac_try_echo") >&5
24741   (eval "$ac_compile") 2>conftest.er1
24742   ac_status=$?
24743   grep -v '^ *+' conftest.er1 >conftest.err
24744   rm -f conftest.er1
24745   cat conftest.err >&5
24746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } && {
24748          test -z "$ac_c_werror_flag" ||
24749          test ! -s conftest.err
24750        } && test -s conftest.$ac_objext; then
24751   ac_lo=$ac_mid; break
24752 else
24753   $as_echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756         ac_hi=`expr '(' $ac_mid ')' - 1`
24757                         if test $ac_mid -le $ac_hi; then
24758                           ac_lo= ac_hi=
24759                           break
24760                         fi
24761                         ac_mid=`expr 2 '*' $ac_mid`
24762 fi
24763
24764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24765   done
24766 else
24767   $as_echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770         ac_lo= ac_hi=
24771 fi
24772
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24774 fi
24775
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 # Binary search between lo and hi bounds.
24778 while test "x$ac_lo" != "x$ac_hi"; do
24779   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24780   cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h.  */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h.  */
24786 $ac_includes_default
24787 int
24788 main ()
24789 {
24790 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24791 test_array [0] = 0
24792
24793   ;
24794   return 0;
24795 }
24796 _ACEOF
24797 rm -f conftest.$ac_objext
24798 if { (ac_try="$ac_compile"
24799 case "(($ac_try" in
24800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801   *) ac_try_echo=$ac_try;;
24802 esac
24803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24804 $as_echo "$ac_try_echo") >&5
24805   (eval "$ac_compile") 2>conftest.er1
24806   ac_status=$?
24807   grep -v '^ *+' conftest.er1 >conftest.err
24808   rm -f conftest.er1
24809   cat conftest.err >&5
24810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); } && {
24812          test -z "$ac_c_werror_flag" ||
24813          test ! -s conftest.err
24814        } && test -s conftest.$ac_objext; then
24815   ac_hi=$ac_mid
24816 else
24817   $as_echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820         ac_lo=`expr '(' $ac_mid ')' + 1`
24821 fi
24822
24823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824 done
24825 case $ac_lo in
24826 ?*) ac_cv_sizeof_long=$ac_lo;;
24827 '') if test "$ac_cv_type_long" = yes; then
24828      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24830 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24831 See \`config.log' for more details." >&5
24832 $as_echo "$as_me: error: cannot compute sizeof (long)
24833 See \`config.log' for more details." >&2;}
24834    { (exit 77); exit 77; }; }; }
24835    else
24836      ac_cv_sizeof_long=0
24837    fi ;;
24838 esac
24839 else
24840   cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846 $ac_includes_default
24847 static long int longval () { return (long int) (sizeof (long)); }
24848 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24849 #include <stdio.h>
24850 #include <stdlib.h>
24851 int
24852 main ()
24853 {
24854
24855   FILE *f = fopen ("conftest.val", "w");
24856   if (! f)
24857     return 1;
24858   if (((long int) (sizeof (long))) < 0)
24859     {
24860       long int i = longval ();
24861       if (i != ((long int) (sizeof (long))))
24862         return 1;
24863       fprintf (f, "%ld", i);
24864     }
24865   else
24866     {
24867       unsigned long int i = ulongval ();
24868       if (i != ((long int) (sizeof (long))))
24869         return 1;
24870       fprintf (f, "%lu", i);
24871     }
24872   /* Do not output a trailing newline, as this causes \r\n confusion
24873      on some platforms.  */
24874   return ferror (f) || fclose (f) != 0;
24875
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884   *) ac_try_echo=$ac_try;;
24885 esac
24886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24887 $as_echo "$ac_try_echo") >&5
24888   (eval "$ac_link") 2>&5
24889   ac_status=$?
24890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24892   { (case "(($ac_try" in
24893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894   *) ac_try_echo=$ac_try;;
24895 esac
24896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24897 $as_echo "$ac_try_echo") >&5
24898   (eval "$ac_try") 2>&5
24899   ac_status=$?
24900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_cv_sizeof_long=`cat conftest.val`
24903 else
24904   $as_echo "$as_me: program exited with status $ac_status" >&5
24905 $as_echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908 ( exit $ac_status )
24909 if test "$ac_cv_type_long" = yes; then
24910      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24912 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24913 See \`config.log' for more details." >&5
24914 $as_echo "$as_me: error: cannot compute sizeof (long)
24915 See \`config.log' for more details." >&2;}
24916    { (exit 77); exit 77; }; }; }
24917    else
24918      ac_cv_sizeof_long=0
24919    fi
24920 fi
24921 rm -rf conftest.dSYM
24922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24923 fi
24924 rm -f conftest.val
24925 fi
24926 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24927 $as_echo "$ac_cv_sizeof_long" >&6; }
24928
24929
24930
24931 cat >>confdefs.h <<_ACEOF
24932 #define SIZEOF_LONG $ac_cv_sizeof_long
24933 _ACEOF
24934
24935
24936
24937 # Decide whether float4 is passed by value: user-selectable, enabled by default
24938 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24939 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24940
24941
24942 # Check whether --enable-float4-byval was given.
24943 if test "${enable_float4_byval+set}" = set; then
24944   enableval=$enable_float4_byval;
24945   case $enableval in
24946     yes)
24947
24948 cat >>confdefs.h <<\_ACEOF
24949 #define USE_FLOAT4_BYVAL 1
24950 _ACEOF
24951
24952                float4passbyval=true
24953       ;;
24954     no)
24955       float4passbyval=false
24956       ;;
24957     *)
24958       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24959 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24960    { (exit 1); exit 1; }; }
24961       ;;
24962   esac
24963
24964 else
24965   enable_float4_byval=yes
24966
24967 cat >>confdefs.h <<\_ACEOF
24968 #define USE_FLOAT4_BYVAL 1
24969 _ACEOF
24970
24971                float4passbyval=true
24972 fi
24973
24974
24975 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24976 $as_echo "$enable_float4_byval" >&6; }
24977
24978 cat >>confdefs.h <<_ACEOF
24979 #define FLOAT4PASSBYVAL $float4passbyval
24980 _ACEOF
24981
24982
24983 # Decide whether float8 is passed by value.
24984 # Note: this setting also controls int8 and related types such as timestamp.
24985 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
24986 # If not, trying to select it is an error.
24987 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
24988 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
24989 if test $ac_cv_sizeof_void_p -ge 8 ; then
24990
24991
24992 # Check whether --enable-float8-byval was given.
24993 if test "${enable_float8_byval+set}" = set; then
24994   enableval=$enable_float8_byval;
24995   case $enableval in
24996     yes)
24997       :
24998       ;;
24999     no)
25000       :
25001       ;;
25002     *)
25003       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25004 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25005    { (exit 1); exit 1; }; }
25006       ;;
25007   esac
25008
25009 else
25010   enable_float8_byval=yes
25011
25012 fi
25013
25014
25015 else
25016
25017
25018 # Check whether --enable-float8-byval was given.
25019 if test "${enable_float8_byval+set}" = set; then
25020   enableval=$enable_float8_byval;
25021   case $enableval in
25022     yes)
25023       :
25024       ;;
25025     no)
25026       :
25027       ;;
25028     *)
25029       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25030 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25031    { (exit 1); exit 1; }; }
25032       ;;
25033   esac
25034
25035 else
25036   enable_float8_byval=no
25037
25038 fi
25039
25040
25041   if test "$enable_float8_byval" = yes ; then
25042     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25043 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25044    { (exit 1); exit 1; }; }
25045   fi
25046 fi
25047 if test "$enable_float8_byval" = yes ; then
25048
25049 cat >>confdefs.h <<\_ACEOF
25050 #define USE_FLOAT8_BYVAL 1
25051 _ACEOF
25052
25053   float8passbyval=true
25054 else
25055   float8passbyval=false
25056 fi
25057 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25058 $as_echo "$enable_float8_byval" >&6; }
25059
25060 cat >>confdefs.h <<_ACEOF
25061 #define FLOAT8PASSBYVAL $float8passbyval
25062 _ACEOF
25063
25064
25065 # Determine memory alignment requirements for the basic C data types.
25066
25067 # The cast to long int works around a bug in the HP C Compiler,
25068 # see AC_CHECK_SIZEOF for more information.
25069 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25070 $as_echo_n "checking alignment of short... " >&6; }
25071 if test "${ac_cv_alignof_short+set}" = set; then
25072   $as_echo_n "(cached) " >&6
25073 else
25074   if test "$cross_compiling" = yes; then
25075   # Depending upon the size, compute the lo and hi bounds.
25076 cat >conftest.$ac_ext <<_ACEOF
25077 /* confdefs.h.  */
25078 _ACEOF
25079 cat confdefs.h >>conftest.$ac_ext
25080 cat >>conftest.$ac_ext <<_ACEOF
25081 /* end confdefs.h.  */
25082 $ac_includes_default
25083 #ifndef offsetof
25084 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25085 #endif
25086 typedef struct { char x; short y; } ac__type_alignof_;
25087 int
25088 main ()
25089 {
25090 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25091 test_array [0] = 0
25092
25093   ;
25094   return 0;
25095 }
25096 _ACEOF
25097 rm -f conftest.$ac_objext
25098 if { (ac_try="$ac_compile"
25099 case "(($ac_try" in
25100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101   *) ac_try_echo=$ac_try;;
25102 esac
25103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25104 $as_echo "$ac_try_echo") >&5
25105   (eval "$ac_compile") 2>conftest.er1
25106   ac_status=$?
25107   grep -v '^ *+' conftest.er1 >conftest.err
25108   rm -f conftest.er1
25109   cat conftest.err >&5
25110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); } && {
25112          test -z "$ac_c_werror_flag" ||
25113          test ! -s conftest.err
25114        } && test -s conftest.$ac_objext; then
25115   ac_lo=0 ac_mid=0
25116   while :; do
25117     cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 $ac_includes_default
25124 #ifndef offsetof
25125 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25126 #endif
25127 typedef struct { char x; short y; } ac__type_alignof_;
25128 int
25129 main ()
25130 {
25131 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25132 test_array [0] = 0
25133
25134   ;
25135   return 0;
25136 }
25137 _ACEOF
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142   *) ac_try_echo=$ac_try;;
25143 esac
25144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25145 $as_echo "$ac_try_echo") >&5
25146   (eval "$ac_compile") 2>conftest.er1
25147   ac_status=$?
25148   grep -v '^ *+' conftest.er1 >conftest.err
25149   rm -f conftest.er1
25150   cat conftest.err >&5
25151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); } && {
25153          test -z "$ac_c_werror_flag" ||
25154          test ! -s conftest.err
25155        } && test -s conftest.$ac_objext; then
25156   ac_hi=$ac_mid; break
25157 else
25158   $as_echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161         ac_lo=`expr $ac_mid + 1`
25162                         if test $ac_lo -le $ac_mid; then
25163                           ac_lo= ac_hi=
25164                           break
25165                         fi
25166                         ac_mid=`expr 2 '*' $ac_mid + 1`
25167 fi
25168
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170   done
25171 else
25172   $as_echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175         cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h.  */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h.  */
25181 $ac_includes_default
25182 #ifndef offsetof
25183 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25184 #endif
25185 typedef struct { char x; short y; } ac__type_alignof_;
25186 int
25187 main ()
25188 {
25189 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25190 test_array [0] = 0
25191
25192   ;
25193   return 0;
25194 }
25195 _ACEOF
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25203 $as_echo "$ac_try_echo") >&5
25204   (eval "$ac_compile") 2>conftest.er1
25205   ac_status=$?
25206   grep -v '^ *+' conftest.er1 >conftest.err
25207   rm -f conftest.er1
25208   cat conftest.err >&5
25209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); } && {
25211          test -z "$ac_c_werror_flag" ||
25212          test ! -s conftest.err
25213        } && test -s conftest.$ac_objext; then
25214   ac_hi=-1 ac_mid=-1
25215   while :; do
25216     cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h.  */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h.  */
25222 $ac_includes_default
25223 #ifndef offsetof
25224 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25225 #endif
25226 typedef struct { char x; short y; } ac__type_alignof_;
25227 int
25228 main ()
25229 {
25230 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25231 test_array [0] = 0
25232
25233   ;
25234   return 0;
25235 }
25236 _ACEOF
25237 rm -f conftest.$ac_objext
25238 if { (ac_try="$ac_compile"
25239 case "(($ac_try" in
25240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241   *) ac_try_echo=$ac_try;;
25242 esac
25243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245   (eval "$ac_compile") 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } && {
25252          test -z "$ac_c_werror_flag" ||
25253          test ! -s conftest.err
25254        } && test -s conftest.$ac_objext; then
25255   ac_lo=$ac_mid; break
25256 else
25257   $as_echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260         ac_hi=`expr '(' $ac_mid ')' - 1`
25261                         if test $ac_mid -le $ac_hi; then
25262                           ac_lo= ac_hi=
25263                           break
25264                         fi
25265                         ac_mid=`expr 2 '*' $ac_mid`
25266 fi
25267
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269   done
25270 else
25271   $as_echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25273
25274         ac_lo= ac_hi=
25275 fi
25276
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278 fi
25279
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 # Binary search between lo and hi bounds.
25282 while test "x$ac_lo" != "x$ac_hi"; do
25283   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25284   cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h.  */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h.  */
25290 $ac_includes_default
25291 #ifndef offsetof
25292 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25293 #endif
25294 typedef struct { char x; short y; } ac__type_alignof_;
25295 int
25296 main ()
25297 {
25298 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25299 test_array [0] = 0
25300
25301   ;
25302   return 0;
25303 }
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25312 $as_echo "$ac_try_echo") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_c_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   ac_hi=$ac_mid
25324 else
25325   $as_echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_lo=`expr '(' $ac_mid ')' + 1`
25329 fi
25330
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 done
25333 case $ac_lo in
25334 ?*) ac_cv_alignof_short=$ac_lo;;
25335 '') if test "$ac_cv_type_short" = yes; then
25336      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25338 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25339 See \`config.log' for more details." >&5
25340 $as_echo "$as_me: error: cannot compute alignment of short
25341 See \`config.log' for more details." >&2;}
25342    { (exit 77); exit 77; }; }; }
25343    else
25344      ac_cv_alignof_short=0
25345    fi ;;
25346 esac
25347 else
25348   cat >conftest.$ac_ext <<_ACEOF
25349 /* confdefs.h.  */
25350 _ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h.  */
25354 $ac_includes_default
25355 #ifndef offsetof
25356 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25357 #endif
25358 typedef struct { char x; short y; } ac__type_alignof_;
25359 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25360 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25361 #include <stdio.h>
25362 #include <stdlib.h>
25363 int
25364 main ()
25365 {
25366
25367   FILE *f = fopen ("conftest.val", "w");
25368   if (! f)
25369     return 1;
25370   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25371     {
25372       long int i = longval ();
25373       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25374         return 1;
25375       fprintf (f, "%ld", i);
25376     }
25377   else
25378     {
25379       unsigned long int i = ulongval ();
25380       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25381         return 1;
25382       fprintf (f, "%lu", i);
25383     }
25384   /* Do not output a trailing newline, as this causes \r\n confusion
25385      on some platforms.  */
25386   return ferror (f) || fclose (f) != 0;
25387
25388   ;
25389   return 0;
25390 }
25391 _ACEOF
25392 rm -f conftest$ac_exeext
25393 if { (ac_try="$ac_link"
25394 case "(($ac_try" in
25395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396   *) ac_try_echo=$ac_try;;
25397 esac
25398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400   (eval "$ac_link") 2>&5
25401   ac_status=$?
25402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25404   { (case "(($ac_try" in
25405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406   *) ac_try_echo=$ac_try;;
25407 esac
25408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25409 $as_echo "$ac_try_echo") >&5
25410   (eval "$ac_try") 2>&5
25411   ac_status=$?
25412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); }; }; then
25414   ac_cv_alignof_short=`cat conftest.val`
25415 else
25416   $as_echo "$as_me: program exited with status $ac_status" >&5
25417 $as_echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25419
25420 ( exit $ac_status )
25421 if test "$ac_cv_type_short" = yes; then
25422      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25424 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25425 See \`config.log' for more details." >&5
25426 $as_echo "$as_me: error: cannot compute alignment of short
25427 See \`config.log' for more details." >&2;}
25428    { (exit 77); exit 77; }; }; }
25429    else
25430      ac_cv_alignof_short=0
25431    fi
25432 fi
25433 rm -rf conftest.dSYM
25434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25435 fi
25436 rm -f conftest.val
25437 fi
25438 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25439 $as_echo "$ac_cv_alignof_short" >&6; }
25440
25441
25442
25443 cat >>confdefs.h <<_ACEOF
25444 #define ALIGNOF_SHORT $ac_cv_alignof_short
25445 _ACEOF
25446
25447
25448 # The cast to long int works around a bug in the HP C Compiler,
25449 # see AC_CHECK_SIZEOF for more information.
25450 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25451 $as_echo_n "checking alignment of int... " >&6; }
25452 if test "${ac_cv_alignof_int+set}" = set; then
25453   $as_echo_n "(cached) " >&6
25454 else
25455   if test "$cross_compiling" = yes; then
25456   # Depending upon the size, compute the lo and hi bounds.
25457 cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h.  */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h.  */
25463 $ac_includes_default
25464 #ifndef offsetof
25465 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25466 #endif
25467 typedef struct { char x; int y; } ac__type_alignof_;
25468 int
25469 main ()
25470 {
25471 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25472 test_array [0] = 0
25473
25474   ;
25475   return 0;
25476 }
25477 _ACEOF
25478 rm -f conftest.$ac_objext
25479 if { (ac_try="$ac_compile"
25480 case "(($ac_try" in
25481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482   *) ac_try_echo=$ac_try;;
25483 esac
25484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25485 $as_echo "$ac_try_echo") >&5
25486   (eval "$ac_compile") 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } && {
25493          test -z "$ac_c_werror_flag" ||
25494          test ! -s conftest.err
25495        } && test -s conftest.$ac_objext; then
25496   ac_lo=0 ac_mid=0
25497   while :; do
25498     cat >conftest.$ac_ext <<_ACEOF
25499 /* confdefs.h.  */
25500 _ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h.  */
25504 $ac_includes_default
25505 #ifndef offsetof
25506 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25507 #endif
25508 typedef struct { char x; int y; } ac__type_alignof_;
25509 int
25510 main ()
25511 {
25512 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25513 test_array [0] = 0
25514
25515   ;
25516   return 0;
25517 }
25518 _ACEOF
25519 rm -f conftest.$ac_objext
25520 if { (ac_try="$ac_compile"
25521 case "(($ac_try" in
25522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25523   *) ac_try_echo=$ac_try;;
25524 esac
25525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25526 $as_echo "$ac_try_echo") >&5
25527   (eval "$ac_compile") 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } && {
25534          test -z "$ac_c_werror_flag" ||
25535          test ! -s conftest.err
25536        } && test -s conftest.$ac_objext; then
25537   ac_hi=$ac_mid; break
25538 else
25539   $as_echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25541
25542         ac_lo=`expr $ac_mid + 1`
25543                         if test $ac_lo -le $ac_mid; then
25544                           ac_lo= ac_hi=
25545                           break
25546                         fi
25547                         ac_mid=`expr 2 '*' $ac_mid + 1`
25548 fi
25549
25550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551   done
25552 else
25553   $as_echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25555
25556         cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562 $ac_includes_default
25563 #ifndef offsetof
25564 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25565 #endif
25566 typedef struct { char x; int y; } ac__type_alignof_;
25567 int
25568 main ()
25569 {
25570 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25571 test_array [0] = 0
25572
25573   ;
25574   return 0;
25575 }
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581   *) ac_try_echo=$ac_try;;
25582 esac
25583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25584 $as_echo "$ac_try_echo") >&5
25585   (eval "$ac_compile") 2>conftest.er1
25586   ac_status=$?
25587   grep -v '^ *+' conftest.er1 >conftest.err
25588   rm -f conftest.er1
25589   cat conftest.err >&5
25590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); } && {
25592          test -z "$ac_c_werror_flag" ||
25593          test ! -s conftest.err
25594        } && test -s conftest.$ac_objext; then
25595   ac_hi=-1 ac_mid=-1
25596   while :; do
25597     cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h.  */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h.  */
25603 $ac_includes_default
25604 #ifndef offsetof
25605 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25606 #endif
25607 typedef struct { char x; int y; } ac__type_alignof_;
25608 int
25609 main ()
25610 {
25611 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25612 test_array [0] = 0
25613
25614   ;
25615   return 0;
25616 }
25617 _ACEOF
25618 rm -f conftest.$ac_objext
25619 if { (ac_try="$ac_compile"
25620 case "(($ac_try" in
25621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622   *) ac_try_echo=$ac_try;;
25623 esac
25624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25625 $as_echo "$ac_try_echo") >&5
25626   (eval "$ac_compile") 2>conftest.er1
25627   ac_status=$?
25628   grep -v '^ *+' conftest.er1 >conftest.err
25629   rm -f conftest.er1
25630   cat conftest.err >&5
25631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); } && {
25633          test -z "$ac_c_werror_flag" ||
25634          test ! -s conftest.err
25635        } && test -s conftest.$ac_objext; then
25636   ac_lo=$ac_mid; break
25637 else
25638   $as_echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25640
25641         ac_hi=`expr '(' $ac_mid ')' - 1`
25642                         if test $ac_mid -le $ac_hi; then
25643                           ac_lo= ac_hi=
25644                           break
25645                         fi
25646                         ac_mid=`expr 2 '*' $ac_mid`
25647 fi
25648
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25650   done
25651 else
25652   $as_echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655         ac_lo= ac_hi=
25656 fi
25657
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 fi
25660
25661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25662 # Binary search between lo and hi bounds.
25663 while test "x$ac_lo" != "x$ac_hi"; do
25664   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25665   cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h.  */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h.  */
25671 $ac_includes_default
25672 #ifndef offsetof
25673 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25674 #endif
25675 typedef struct { char x; int y; } ac__type_alignof_;
25676 int
25677 main ()
25678 {
25679 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25680 test_array [0] = 0
25681
25682   ;
25683   return 0;
25684 }
25685 _ACEOF
25686 rm -f conftest.$ac_objext
25687 if { (ac_try="$ac_compile"
25688 case "(($ac_try" in
25689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690   *) ac_try_echo=$ac_try;;
25691 esac
25692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25693 $as_echo "$ac_try_echo") >&5
25694   (eval "$ac_compile") 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } && {
25701          test -z "$ac_c_werror_flag" ||
25702          test ! -s conftest.err
25703        } && test -s conftest.$ac_objext; then
25704   ac_hi=$ac_mid
25705 else
25706   $as_echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709         ac_lo=`expr '(' $ac_mid ')' + 1`
25710 fi
25711
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 done
25714 case $ac_lo in
25715 ?*) ac_cv_alignof_int=$ac_lo;;
25716 '') if test "$ac_cv_type_int" = yes; then
25717      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25719 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25720 See \`config.log' for more details." >&5
25721 $as_echo "$as_me: error: cannot compute alignment of int
25722 See \`config.log' for more details." >&2;}
25723    { (exit 77); exit 77; }; }; }
25724    else
25725      ac_cv_alignof_int=0
25726    fi ;;
25727 esac
25728 else
25729   cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 $ac_includes_default
25736 #ifndef offsetof
25737 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25738 #endif
25739 typedef struct { char x; int y; } ac__type_alignof_;
25740 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25741 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25742 #include <stdio.h>
25743 #include <stdlib.h>
25744 int
25745 main ()
25746 {
25747
25748   FILE *f = fopen ("conftest.val", "w");
25749   if (! f)
25750     return 1;
25751   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25752     {
25753       long int i = longval ();
25754       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25755         return 1;
25756       fprintf (f, "%ld", i);
25757     }
25758   else
25759     {
25760       unsigned long int i = ulongval ();
25761       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25762         return 1;
25763       fprintf (f, "%lu", i);
25764     }
25765   /* Do not output a trailing newline, as this causes \r\n confusion
25766      on some platforms.  */
25767   return ferror (f) || fclose (f) != 0;
25768
25769   ;
25770   return 0;
25771 }
25772 _ACEOF
25773 rm -f conftest$ac_exeext
25774 if { (ac_try="$ac_link"
25775 case "(($ac_try" in
25776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777   *) ac_try_echo=$ac_try;;
25778 esac
25779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25780 $as_echo "$ac_try_echo") >&5
25781   (eval "$ac_link") 2>&5
25782   ac_status=$?
25783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25785   { (case "(($ac_try" in
25786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787   *) ac_try_echo=$ac_try;;
25788 esac
25789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25790 $as_echo "$ac_try_echo") >&5
25791   (eval "$ac_try") 2>&5
25792   ac_status=$?
25793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); }; }; then
25795   ac_cv_alignof_int=`cat conftest.val`
25796 else
25797   $as_echo "$as_me: program exited with status $ac_status" >&5
25798 $as_echo "$as_me: failed program was:" >&5
25799 sed 's/^/| /' conftest.$ac_ext >&5
25800
25801 ( exit $ac_status )
25802 if test "$ac_cv_type_int" = yes; then
25803      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25805 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25806 See \`config.log' for more details." >&5
25807 $as_echo "$as_me: error: cannot compute alignment of int
25808 See \`config.log' for more details." >&2;}
25809    { (exit 77); exit 77; }; }; }
25810    else
25811      ac_cv_alignof_int=0
25812    fi
25813 fi
25814 rm -rf conftest.dSYM
25815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25816 fi
25817 rm -f conftest.val
25818 fi
25819 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25820 $as_echo "$ac_cv_alignof_int" >&6; }
25821
25822
25823
25824 cat >>confdefs.h <<_ACEOF
25825 #define ALIGNOF_INT $ac_cv_alignof_int
25826 _ACEOF
25827
25828
25829 # The cast to long int works around a bug in the HP C Compiler,
25830 # see AC_CHECK_SIZEOF for more information.
25831 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25832 $as_echo_n "checking alignment of long... " >&6; }
25833 if test "${ac_cv_alignof_long+set}" = set; then
25834   $as_echo_n "(cached) " >&6
25835 else
25836   if test "$cross_compiling" = yes; then
25837   # Depending upon the size, compute the lo and hi bounds.
25838 cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 $ac_includes_default
25845 #ifndef offsetof
25846 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25847 #endif
25848 typedef struct { char x; long y; } ac__type_alignof_;
25849 int
25850 main ()
25851 {
25852 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25853 test_array [0] = 0
25854
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867   (eval "$ac_compile") 2>conftest.er1
25868   ac_status=$?
25869   grep -v '^ *+' conftest.er1 >conftest.err
25870   rm -f conftest.er1
25871   cat conftest.err >&5
25872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } && {
25874          test -z "$ac_c_werror_flag" ||
25875          test ! -s conftest.err
25876        } && test -s conftest.$ac_objext; then
25877   ac_lo=0 ac_mid=0
25878   while :; do
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; long y; } ac__type_alignof_;
25890 int
25891 main ()
25892 {
25893 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25894 test_array [0] = 0
25895
25896   ;
25897   return 0;
25898 }
25899 _ACEOF
25900 rm -f conftest.$ac_objext
25901 if { (ac_try="$ac_compile"
25902 case "(($ac_try" in
25903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904   *) ac_try_echo=$ac_try;;
25905 esac
25906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25907 $as_echo "$ac_try_echo") >&5
25908   (eval "$ac_compile") 2>conftest.er1
25909   ac_status=$?
25910   grep -v '^ *+' conftest.er1 >conftest.err
25911   rm -f conftest.er1
25912   cat conftest.err >&5
25913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); } && {
25915          test -z "$ac_c_werror_flag" ||
25916          test ! -s conftest.err
25917        } && test -s conftest.$ac_objext; then
25918   ac_hi=$ac_mid; break
25919 else
25920   $as_echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25922
25923         ac_lo=`expr $ac_mid + 1`
25924                         if test $ac_lo -le $ac_mid; then
25925                           ac_lo= ac_hi=
25926                           break
25927                         fi
25928                         ac_mid=`expr 2 '*' $ac_mid + 1`
25929 fi
25930
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932   done
25933 else
25934   $as_echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25936
25937         cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h.  */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h.  */
25943 $ac_includes_default
25944 #ifndef offsetof
25945 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25946 #endif
25947 typedef struct { char x; long y; } ac__type_alignof_;
25948 int
25949 main ()
25950 {
25951 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25952 test_array [0] = 0
25953
25954   ;
25955   return 0;
25956 }
25957 _ACEOF
25958 rm -f conftest.$ac_objext
25959 if { (ac_try="$ac_compile"
25960 case "(($ac_try" in
25961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962   *) ac_try_echo=$ac_try;;
25963 esac
25964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25965 $as_echo "$ac_try_echo") >&5
25966   (eval "$ac_compile") 2>conftest.er1
25967   ac_status=$?
25968   grep -v '^ *+' conftest.er1 >conftest.err
25969   rm -f conftest.er1
25970   cat conftest.err >&5
25971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); } && {
25973          test -z "$ac_c_werror_flag" ||
25974          test ! -s conftest.err
25975        } && test -s conftest.$ac_objext; then
25976   ac_hi=-1 ac_mid=-1
25977   while :; do
25978     cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984 $ac_includes_default
25985 #ifndef offsetof
25986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25987 #endif
25988 typedef struct { char x; long y; } ac__type_alignof_;
25989 int
25990 main ()
25991 {
25992 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25993 test_array [0] = 0
25994
25995   ;
25996   return 0;
25997 }
25998 _ACEOF
25999 rm -f conftest.$ac_objext
26000 if { (ac_try="$ac_compile"
26001 case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26006 $as_echo "$ac_try_echo") >&5
26007   (eval "$ac_compile") 2>conftest.er1
26008   ac_status=$?
26009   grep -v '^ *+' conftest.er1 >conftest.err
26010   rm -f conftest.er1
26011   cat conftest.err >&5
26012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); } && {
26014          test -z "$ac_c_werror_flag" ||
26015          test ! -s conftest.err
26016        } && test -s conftest.$ac_objext; then
26017   ac_lo=$ac_mid; break
26018 else
26019   $as_echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26021
26022         ac_hi=`expr '(' $ac_mid ')' - 1`
26023                         if test $ac_mid -le $ac_hi; then
26024                           ac_lo= ac_hi=
26025                           break
26026                         fi
26027                         ac_mid=`expr 2 '*' $ac_mid`
26028 fi
26029
26030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031   done
26032 else
26033   $as_echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036         ac_lo= ac_hi=
26037 fi
26038
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040 fi
26041
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 # Binary search between lo and hi bounds.
26044 while test "x$ac_lo" != "x$ac_hi"; do
26045   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26046   cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 $ac_includes_default
26053 #ifndef offsetof
26054 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26055 #endif
26056 typedef struct { char x; long y; } ac__type_alignof_;
26057 int
26058 main ()
26059 {
26060 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26061 test_array [0] = 0
26062
26063   ;
26064   return 0;
26065 }
26066 _ACEOF
26067 rm -f conftest.$ac_objext
26068 if { (ac_try="$ac_compile"
26069 case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26074 $as_echo "$ac_try_echo") >&5
26075   (eval "$ac_compile") 2>conftest.er1
26076   ac_status=$?
26077   grep -v '^ *+' conftest.er1 >conftest.err
26078   rm -f conftest.er1
26079   cat conftest.err >&5
26080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081   (exit $ac_status); } && {
26082          test -z "$ac_c_werror_flag" ||
26083          test ! -s conftest.err
26084        } && test -s conftest.$ac_objext; then
26085   ac_hi=$ac_mid
26086 else
26087   $as_echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090         ac_lo=`expr '(' $ac_mid ')' + 1`
26091 fi
26092
26093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26094 done
26095 case $ac_lo in
26096 ?*) ac_cv_alignof_long=$ac_lo;;
26097 '') if test "$ac_cv_type_long" = yes; then
26098      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26100 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26101 See \`config.log' for more details." >&5
26102 $as_echo "$as_me: error: cannot compute alignment of long
26103 See \`config.log' for more details." >&2;}
26104    { (exit 77); exit 77; }; }; }
26105    else
26106      ac_cv_alignof_long=0
26107    fi ;;
26108 esac
26109 else
26110   cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h.  */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h.  */
26116 $ac_includes_default
26117 #ifndef offsetof
26118 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26119 #endif
26120 typedef struct { char x; long y; } ac__type_alignof_;
26121 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26122 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26123 #include <stdio.h>
26124 #include <stdlib.h>
26125 int
26126 main ()
26127 {
26128
26129   FILE *f = fopen ("conftest.val", "w");
26130   if (! f)
26131     return 1;
26132   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26133     {
26134       long int i = longval ();
26135       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26136         return 1;
26137       fprintf (f, "%ld", i);
26138     }
26139   else
26140     {
26141       unsigned long int i = ulongval ();
26142       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26143         return 1;
26144       fprintf (f, "%lu", i);
26145     }
26146   /* Do not output a trailing newline, as this causes \r\n confusion
26147      on some platforms.  */
26148   return ferror (f) || fclose (f) != 0;
26149
26150   ;
26151   return 0;
26152 }
26153 _ACEOF
26154 rm -f conftest$ac_exeext
26155 if { (ac_try="$ac_link"
26156 case "(($ac_try" in
26157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26158   *) ac_try_echo=$ac_try;;
26159 esac
26160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26161 $as_echo "$ac_try_echo") >&5
26162   (eval "$ac_link") 2>&5
26163   ac_status=$?
26164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26166   { (case "(($ac_try" in
26167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168   *) ac_try_echo=$ac_try;;
26169 esac
26170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171 $as_echo "$ac_try_echo") >&5
26172   (eval "$ac_try") 2>&5
26173   ac_status=$?
26174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; }; then
26176   ac_cv_alignof_long=`cat conftest.val`
26177 else
26178   $as_echo "$as_me: program exited with status $ac_status" >&5
26179 $as_echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182 ( exit $ac_status )
26183 if test "$ac_cv_type_long" = yes; then
26184      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26186 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26187 See \`config.log' for more details." >&5
26188 $as_echo "$as_me: error: cannot compute alignment of long
26189 See \`config.log' for more details." >&2;}
26190    { (exit 77); exit 77; }; }; }
26191    else
26192      ac_cv_alignof_long=0
26193    fi
26194 fi
26195 rm -rf conftest.dSYM
26196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26197 fi
26198 rm -f conftest.val
26199 fi
26200 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26201 $as_echo "$ac_cv_alignof_long" >&6; }
26202
26203
26204
26205 cat >>confdefs.h <<_ACEOF
26206 #define ALIGNOF_LONG $ac_cv_alignof_long
26207 _ACEOF
26208
26209
26210 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26211   # The cast to long int works around a bug in the HP C Compiler,
26212 # see AC_CHECK_SIZEOF for more information.
26213 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26214 $as_echo_n "checking alignment of long long int... " >&6; }
26215 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26216   $as_echo_n "(cached) " >&6
26217 else
26218   if test "$cross_compiling" = yes; then
26219   # Depending upon the size, compute the lo and hi bounds.
26220 cat >conftest.$ac_ext <<_ACEOF
26221 /* confdefs.h.  */
26222 _ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h.  */
26226 $ac_includes_default
26227 #ifndef offsetof
26228 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26229 #endif
26230 typedef struct { char x; long long int y; } ac__type_alignof_;
26231 int
26232 main ()
26233 {
26234 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26235 test_array [0] = 0
26236
26237   ;
26238   return 0;
26239 }
26240 _ACEOF
26241 rm -f conftest.$ac_objext
26242 if { (ac_try="$ac_compile"
26243 case "(($ac_try" in
26244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245   *) ac_try_echo=$ac_try;;
26246 esac
26247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26248 $as_echo "$ac_try_echo") >&5
26249   (eval "$ac_compile") 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } && {
26256          test -z "$ac_c_werror_flag" ||
26257          test ! -s conftest.err
26258        } && test -s conftest.$ac_objext; then
26259   ac_lo=0 ac_mid=0
26260   while :; do
26261     cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h.  */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h.  */
26267 $ac_includes_default
26268 #ifndef offsetof
26269 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26270 #endif
26271 typedef struct { char x; long long int y; } ac__type_alignof_;
26272 int
26273 main ()
26274 {
26275 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26276 test_array [0] = 0
26277
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 rm -f conftest.$ac_objext
26283 if { (ac_try="$ac_compile"
26284 case "(($ac_try" in
26285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26286   *) ac_try_echo=$ac_try;;
26287 esac
26288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26289 $as_echo "$ac_try_echo") >&5
26290   (eval "$ac_compile") 2>conftest.er1
26291   ac_status=$?
26292   grep -v '^ *+' conftest.er1 >conftest.err
26293   rm -f conftest.er1
26294   cat conftest.err >&5
26295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } && {
26297          test -z "$ac_c_werror_flag" ||
26298          test ! -s conftest.err
26299        } && test -s conftest.$ac_objext; then
26300   ac_hi=$ac_mid; break
26301 else
26302   $as_echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26304
26305         ac_lo=`expr $ac_mid + 1`
26306                         if test $ac_lo -le $ac_mid; then
26307                           ac_lo= ac_hi=
26308                           break
26309                         fi
26310                         ac_mid=`expr 2 '*' $ac_mid + 1`
26311 fi
26312
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314   done
26315 else
26316   $as_echo "$as_me: failed program was:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26318
26319         cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h.  */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h.  */
26325 $ac_includes_default
26326 #ifndef offsetof
26327 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26328 #endif
26329 typedef struct { char x; long long int y; } ac__type_alignof_;
26330 int
26331 main ()
26332 {
26333 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26334 test_array [0] = 0
26335
26336   ;
26337   return 0;
26338 }
26339 _ACEOF
26340 rm -f conftest.$ac_objext
26341 if { (ac_try="$ac_compile"
26342 case "(($ac_try" in
26343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344   *) ac_try_echo=$ac_try;;
26345 esac
26346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26347 $as_echo "$ac_try_echo") >&5
26348   (eval "$ac_compile") 2>conftest.er1
26349   ac_status=$?
26350   grep -v '^ *+' conftest.er1 >conftest.err
26351   rm -f conftest.er1
26352   cat conftest.err >&5
26353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); } && {
26355          test -z "$ac_c_werror_flag" ||
26356          test ! -s conftest.err
26357        } && test -s conftest.$ac_objext; then
26358   ac_hi=-1 ac_mid=-1
26359   while :; do
26360     cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366 $ac_includes_default
26367 #ifndef offsetof
26368 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26369 #endif
26370 typedef struct { char x; long long int y; } ac__type_alignof_;
26371 int
26372 main ()
26373 {
26374 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26375 test_array [0] = 0
26376
26377   ;
26378   return 0;
26379 }
26380 _ACEOF
26381 rm -f conftest.$ac_objext
26382 if { (ac_try="$ac_compile"
26383 case "(($ac_try" in
26384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385   *) ac_try_echo=$ac_try;;
26386 esac
26387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26388 $as_echo "$ac_try_echo") >&5
26389   (eval "$ac_compile") 2>conftest.er1
26390   ac_status=$?
26391   grep -v '^ *+' conftest.er1 >conftest.err
26392   rm -f conftest.er1
26393   cat conftest.err >&5
26394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); } && {
26396          test -z "$ac_c_werror_flag" ||
26397          test ! -s conftest.err
26398        } && test -s conftest.$ac_objext; then
26399   ac_lo=$ac_mid; break
26400 else
26401   $as_echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26403
26404         ac_hi=`expr '(' $ac_mid ')' - 1`
26405                         if test $ac_mid -le $ac_hi; then
26406                           ac_lo= ac_hi=
26407                           break
26408                         fi
26409                         ac_mid=`expr 2 '*' $ac_mid`
26410 fi
26411
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26413   done
26414 else
26415   $as_echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26417
26418         ac_lo= ac_hi=
26419 fi
26420
26421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26422 fi
26423
26424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26425 # Binary search between lo and hi bounds.
26426 while test "x$ac_lo" != "x$ac_hi"; do
26427   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26428   cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h.  */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h.  */
26434 $ac_includes_default
26435 #ifndef offsetof
26436 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26437 #endif
26438 typedef struct { char x; long long int y; } ac__type_alignof_;
26439 int
26440 main ()
26441 {
26442 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26443 test_array [0] = 0
26444
26445   ;
26446   return 0;
26447 }
26448 _ACEOF
26449 rm -f conftest.$ac_objext
26450 if { (ac_try="$ac_compile"
26451 case "(($ac_try" in
26452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453   *) ac_try_echo=$ac_try;;
26454 esac
26455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26456 $as_echo "$ac_try_echo") >&5
26457   (eval "$ac_compile") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_c_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest.$ac_objext; then
26467   ac_hi=$ac_mid
26468 else
26469   $as_echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472         ac_lo=`expr '(' $ac_mid ')' + 1`
26473 fi
26474
26475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26476 done
26477 case $ac_lo in
26478 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26479 '') if test "$ac_cv_type_long_long_int" = yes; then
26480      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26482 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26483 See \`config.log' for more details." >&5
26484 $as_echo "$as_me: error: cannot compute alignment of long long int
26485 See \`config.log' for more details." >&2;}
26486    { (exit 77); exit 77; }; }; }
26487    else
26488      ac_cv_alignof_long_long_int=0
26489    fi ;;
26490 esac
26491 else
26492   cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498 $ac_includes_default
26499 #ifndef offsetof
26500 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26501 #endif
26502 typedef struct { char x; long long int y; } ac__type_alignof_;
26503 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26504 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26505 #include <stdio.h>
26506 #include <stdlib.h>
26507 int
26508 main ()
26509 {
26510
26511   FILE *f = fopen ("conftest.val", "w");
26512   if (! f)
26513     return 1;
26514   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26515     {
26516       long int i = longval ();
26517       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26518         return 1;
26519       fprintf (f, "%ld", i);
26520     }
26521   else
26522     {
26523       unsigned long int i = ulongval ();
26524       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26525         return 1;
26526       fprintf (f, "%lu", i);
26527     }
26528   /* Do not output a trailing newline, as this causes \r\n confusion
26529      on some platforms.  */
26530   return ferror (f) || fclose (f) != 0;
26531
26532   ;
26533   return 0;
26534 }
26535 _ACEOF
26536 rm -f conftest$ac_exeext
26537 if { (ac_try="$ac_link"
26538 case "(($ac_try" in
26539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540   *) ac_try_echo=$ac_try;;
26541 esac
26542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26543 $as_echo "$ac_try_echo") >&5
26544   (eval "$ac_link") 2>&5
26545   ac_status=$?
26546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26548   { (case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26553 $as_echo "$ac_try_echo") >&5
26554   (eval "$ac_try") 2>&5
26555   ac_status=$?
26556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); }; }; then
26558   ac_cv_alignof_long_long_int=`cat conftest.val`
26559 else
26560   $as_echo "$as_me: program exited with status $ac_status" >&5
26561 $as_echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564 ( exit $ac_status )
26565 if test "$ac_cv_type_long_long_int" = yes; then
26566      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26568 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26569 See \`config.log' for more details." >&5
26570 $as_echo "$as_me: error: cannot compute alignment of long long int
26571 See \`config.log' for more details." >&2;}
26572    { (exit 77); exit 77; }; }; }
26573    else
26574      ac_cv_alignof_long_long_int=0
26575    fi
26576 fi
26577 rm -rf conftest.dSYM
26578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26579 fi
26580 rm -f conftest.val
26581 fi
26582 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26583 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26584
26585
26586
26587 cat >>confdefs.h <<_ACEOF
26588 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26589 _ACEOF
26590
26591
26592 fi
26593 # The cast to long int works around a bug in the HP C Compiler,
26594 # see AC_CHECK_SIZEOF for more information.
26595 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26596 $as_echo_n "checking alignment of double... " >&6; }
26597 if test "${ac_cv_alignof_double+set}" = set; then
26598   $as_echo_n "(cached) " >&6
26599 else
26600   if test "$cross_compiling" = yes; then
26601   # Depending upon the size, compute the lo and hi bounds.
26602 cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608 $ac_includes_default
26609 #ifndef offsetof
26610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26611 #endif
26612 typedef struct { char x; double y; } ac__type_alignof_;
26613 int
26614 main ()
26615 {
26616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26617 test_array [0] = 0
26618
26619   ;
26620   return 0;
26621 }
26622 _ACEOF
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627   *) ac_try_echo=$ac_try;;
26628 esac
26629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26630 $as_echo "$ac_try_echo") >&5
26631   (eval "$ac_compile") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } && {
26638          test -z "$ac_c_werror_flag" ||
26639          test ! -s conftest.err
26640        } && test -s conftest.$ac_objext; then
26641   ac_lo=0 ac_mid=0
26642   while :; do
26643     cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649 $ac_includes_default
26650 #ifndef offsetof
26651 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26652 #endif
26653 typedef struct { char x; double y; } ac__type_alignof_;
26654 int
26655 main ()
26656 {
26657 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26658 test_array [0] = 0
26659
26660   ;
26661   return 0;
26662 }
26663 _ACEOF
26664 rm -f conftest.$ac_objext
26665 if { (ac_try="$ac_compile"
26666 case "(($ac_try" in
26667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668   *) ac_try_echo=$ac_try;;
26669 esac
26670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26671 $as_echo "$ac_try_echo") >&5
26672   (eval "$ac_compile") 2>conftest.er1
26673   ac_status=$?
26674   grep -v '^ *+' conftest.er1 >conftest.err
26675   rm -f conftest.er1
26676   cat conftest.err >&5
26677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); } && {
26679          test -z "$ac_c_werror_flag" ||
26680          test ! -s conftest.err
26681        } && test -s conftest.$ac_objext; then
26682   ac_hi=$ac_mid; break
26683 else
26684   $as_echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687         ac_lo=`expr $ac_mid + 1`
26688                         if test $ac_lo -le $ac_mid; then
26689                           ac_lo= ac_hi=
26690                           break
26691                         fi
26692                         ac_mid=`expr 2 '*' $ac_mid + 1`
26693 fi
26694
26695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696   done
26697 else
26698   $as_echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701         cat >conftest.$ac_ext <<_ACEOF
26702 /* confdefs.h.  */
26703 _ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h.  */
26707 $ac_includes_default
26708 #ifndef offsetof
26709 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26710 #endif
26711 typedef struct { char x; double y; } ac__type_alignof_;
26712 int
26713 main ()
26714 {
26715 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26716 test_array [0] = 0
26717
26718   ;
26719   return 0;
26720 }
26721 _ACEOF
26722 rm -f conftest.$ac_objext
26723 if { (ac_try="$ac_compile"
26724 case "(($ac_try" in
26725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726   *) ac_try_echo=$ac_try;;
26727 esac
26728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26729 $as_echo "$ac_try_echo") >&5
26730   (eval "$ac_compile") 2>conftest.er1
26731   ac_status=$?
26732   grep -v '^ *+' conftest.er1 >conftest.err
26733   rm -f conftest.er1
26734   cat conftest.err >&5
26735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); } && {
26737          test -z "$ac_c_werror_flag" ||
26738          test ! -s conftest.err
26739        } && test -s conftest.$ac_objext; then
26740   ac_hi=-1 ac_mid=-1
26741   while :; do
26742     cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h.  */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h.  */
26748 $ac_includes_default
26749 #ifndef offsetof
26750 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26751 #endif
26752 typedef struct { char x; double y; } ac__type_alignof_;
26753 int
26754 main ()
26755 {
26756 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26757 test_array [0] = 0
26758
26759   ;
26760   return 0;
26761 }
26762 _ACEOF
26763 rm -f conftest.$ac_objext
26764 if { (ac_try="$ac_compile"
26765 case "(($ac_try" in
26766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767   *) ac_try_echo=$ac_try;;
26768 esac
26769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26770 $as_echo "$ac_try_echo") >&5
26771   (eval "$ac_compile") 2>conftest.er1
26772   ac_status=$?
26773   grep -v '^ *+' conftest.er1 >conftest.err
26774   rm -f conftest.er1
26775   cat conftest.err >&5
26776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); } && {
26778          test -z "$ac_c_werror_flag" ||
26779          test ! -s conftest.err
26780        } && test -s conftest.$ac_objext; then
26781   ac_lo=$ac_mid; break
26782 else
26783   $as_echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786         ac_hi=`expr '(' $ac_mid ')' - 1`
26787                         if test $ac_mid -le $ac_hi; then
26788                           ac_lo= ac_hi=
26789                           break
26790                         fi
26791                         ac_mid=`expr 2 '*' $ac_mid`
26792 fi
26793
26794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26795   done
26796 else
26797   $as_echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26799
26800         ac_lo= ac_hi=
26801 fi
26802
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804 fi
26805
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807 # Binary search between lo and hi bounds.
26808 while test "x$ac_lo" != "x$ac_hi"; do
26809   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26810   cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 $ac_includes_default
26817 #ifndef offsetof
26818 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26819 #endif
26820 typedef struct { char x; double y; } ac__type_alignof_;
26821 int
26822 main ()
26823 {
26824 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26825 test_array [0] = 0
26826
26827   ;
26828   return 0;
26829 }
26830 _ACEOF
26831 rm -f conftest.$ac_objext
26832 if { (ac_try="$ac_compile"
26833 case "(($ac_try" in
26834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835   *) ac_try_echo=$ac_try;;
26836 esac
26837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26838 $as_echo "$ac_try_echo") >&5
26839   (eval "$ac_compile") 2>conftest.er1
26840   ac_status=$?
26841   grep -v '^ *+' conftest.er1 >conftest.err
26842   rm -f conftest.er1
26843   cat conftest.err >&5
26844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } && {
26846          test -z "$ac_c_werror_flag" ||
26847          test ! -s conftest.err
26848        } && test -s conftest.$ac_objext; then
26849   ac_hi=$ac_mid
26850 else
26851   $as_echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26853
26854         ac_lo=`expr '(' $ac_mid ')' + 1`
26855 fi
26856
26857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26858 done
26859 case $ac_lo in
26860 ?*) ac_cv_alignof_double=$ac_lo;;
26861 '') if test "$ac_cv_type_double" = yes; then
26862      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26864 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26865 See \`config.log' for more details." >&5
26866 $as_echo "$as_me: error: cannot compute alignment of double
26867 See \`config.log' for more details." >&2;}
26868    { (exit 77); exit 77; }; }; }
26869    else
26870      ac_cv_alignof_double=0
26871    fi ;;
26872 esac
26873 else
26874   cat >conftest.$ac_ext <<_ACEOF
26875 /* confdefs.h.  */
26876 _ACEOF
26877 cat confdefs.h >>conftest.$ac_ext
26878 cat >>conftest.$ac_ext <<_ACEOF
26879 /* end confdefs.h.  */
26880 $ac_includes_default
26881 #ifndef offsetof
26882 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26883 #endif
26884 typedef struct { char x; double y; } ac__type_alignof_;
26885 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26886 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26887 #include <stdio.h>
26888 #include <stdlib.h>
26889 int
26890 main ()
26891 {
26892
26893   FILE *f = fopen ("conftest.val", "w");
26894   if (! f)
26895     return 1;
26896   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26897     {
26898       long int i = longval ();
26899       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26900         return 1;
26901       fprintf (f, "%ld", i);
26902     }
26903   else
26904     {
26905       unsigned long int i = ulongval ();
26906       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26907         return 1;
26908       fprintf (f, "%lu", i);
26909     }
26910   /* Do not output a trailing newline, as this causes \r\n confusion
26911      on some platforms.  */
26912   return ferror (f) || fclose (f) != 0;
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 rm -f conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26925 $as_echo "$ac_try_echo") >&5
26926   (eval "$ac_link") 2>&5
26927   ac_status=$?
26928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26930   { (case "(($ac_try" in
26931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932   *) ac_try_echo=$ac_try;;
26933 esac
26934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26935 $as_echo "$ac_try_echo") >&5
26936   (eval "$ac_try") 2>&5
26937   ac_status=$?
26938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); }; }; then
26940   ac_cv_alignof_double=`cat conftest.val`
26941 else
26942   $as_echo "$as_me: program exited with status $ac_status" >&5
26943 $as_echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946 ( exit $ac_status )
26947 if test "$ac_cv_type_double" = yes; then
26948      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26950 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26951 See \`config.log' for more details." >&5
26952 $as_echo "$as_me: error: cannot compute alignment of double
26953 See \`config.log' for more details." >&2;}
26954    { (exit 77); exit 77; }; }; }
26955    else
26956      ac_cv_alignof_double=0
26957    fi
26958 fi
26959 rm -rf conftest.dSYM
26960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26961 fi
26962 rm -f conftest.val
26963 fi
26964 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26965 $as_echo "$ac_cv_alignof_double" >&6; }
26966
26967
26968
26969 cat >>confdefs.h <<_ACEOF
26970 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26971 _ACEOF
26972
26973
26974
26975 # Compute maximum alignment of any basic type.
26976 # We assume long's alignment is at least as strong as char, short, or int;
26977 # but we must check long long (if it exists) and double.
26978
26979 MAX_ALIGNOF=$ac_cv_alignof_long
26980 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26981   MAX_ALIGNOF=$ac_cv_alignof_double
26982 fi
26983 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
26984   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
26985 fi
26986
26987 cat >>confdefs.h <<_ACEOF
26988 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
26989 _ACEOF
26990
26991
26992
26993 # Some platforms predefine the types int8, int16, etc.  Only check
26994 # a (hopefully) representative subset.
26995 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26996 $as_echo_n "checking for int8... " >&6; }
26997 if test "${ac_cv_type_int8+set}" = set; then
26998   $as_echo_n "(cached) " >&6
26999 else
27000   ac_cv_type_int8=no
27001 cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007 #include <stdio.h>
27008 #ifdef HAVE_SUPPORTDEFS_H
27009 #include <SupportDefs.h>
27010 #endif
27011
27012 int
27013 main ()
27014 {
27015 if (sizeof (int8))
27016        return 0;
27017   ;
27018   return 0;
27019 }
27020 _ACEOF
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029   (eval "$ac_compile") 2>conftest.er1
27030   ac_status=$?
27031   grep -v '^ *+' conftest.er1 >conftest.err
27032   rm -f conftest.er1
27033   cat conftest.err >&5
27034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); } && {
27036          test -z "$ac_c_werror_flag" ||
27037          test ! -s conftest.err
27038        } && test -s conftest.$ac_objext; then
27039   cat >conftest.$ac_ext <<_ACEOF
27040 /* confdefs.h.  */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h.  */
27045 #include <stdio.h>
27046 #ifdef HAVE_SUPPORTDEFS_H
27047 #include <SupportDefs.h>
27048 #endif
27049
27050 int
27051 main ()
27052 {
27053 if (sizeof ((int8)))
27054           return 0;
27055   ;
27056   return 0;
27057 }
27058 _ACEOF
27059 rm -f conftest.$ac_objext
27060 if { (ac_try="$ac_compile"
27061 case "(($ac_try" in
27062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063   *) ac_try_echo=$ac_try;;
27064 esac
27065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27066 $as_echo "$ac_try_echo") >&5
27067   (eval "$ac_compile") 2>conftest.er1
27068   ac_status=$?
27069   grep -v '^ *+' conftest.er1 >conftest.err
27070   rm -f conftest.er1
27071   cat conftest.err >&5
27072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); } && {
27074          test -z "$ac_c_werror_flag" ||
27075          test ! -s conftest.err
27076        } && test -s conftest.$ac_objext; then
27077   :
27078 else
27079   $as_echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082         ac_cv_type_int8=yes
27083 fi
27084
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27086 else
27087   $as_echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27089
27090
27091 fi
27092
27093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27094 fi
27095 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27096 $as_echo "$ac_cv_type_int8" >&6; }
27097 if test "x$ac_cv_type_int8" = x""yes; then
27098
27099 cat >>confdefs.h <<_ACEOF
27100 #define HAVE_INT8 1
27101 _ACEOF
27102
27103
27104 fi
27105 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27106 $as_echo_n "checking for uint8... " >&6; }
27107 if test "${ac_cv_type_uint8+set}" = set; then
27108   $as_echo_n "(cached) " >&6
27109 else
27110   ac_cv_type_uint8=no
27111 cat >conftest.$ac_ext <<_ACEOF
27112 /* confdefs.h.  */
27113 _ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h.  */
27117 #include <stdio.h>
27118 #ifdef HAVE_SUPPORTDEFS_H
27119 #include <SupportDefs.h>
27120 #endif
27121
27122 int
27123 main ()
27124 {
27125 if (sizeof (uint8))
27126        return 0;
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (ac_try="$ac_compile"
27133 case "(($ac_try" in
27134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135   *) ac_try_echo=$ac_try;;
27136 esac
27137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27138 $as_echo "$ac_try_echo") >&5
27139   (eval "$ac_compile") 2>conftest.er1
27140   ac_status=$?
27141   grep -v '^ *+' conftest.er1 >conftest.err
27142   rm -f conftest.er1
27143   cat conftest.err >&5
27144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); } && {
27146          test -z "$ac_c_werror_flag" ||
27147          test ! -s conftest.err
27148        } && test -s conftest.$ac_objext; then
27149   cat >conftest.$ac_ext <<_ACEOF
27150 /* confdefs.h.  */
27151 _ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h.  */
27155 #include <stdio.h>
27156 #ifdef HAVE_SUPPORTDEFS_H
27157 #include <SupportDefs.h>
27158 #endif
27159
27160 int
27161 main ()
27162 {
27163 if (sizeof ((uint8)))
27164           return 0;
27165   ;
27166   return 0;
27167 }
27168 _ACEOF
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27176 $as_echo "$ac_try_echo") >&5
27177   (eval "$ac_compile") 2>conftest.er1
27178   ac_status=$?
27179   grep -v '^ *+' conftest.er1 >conftest.err
27180   rm -f conftest.er1
27181   cat conftest.err >&5
27182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); } && {
27184          test -z "$ac_c_werror_flag" ||
27185          test ! -s conftest.err
27186        } && test -s conftest.$ac_objext; then
27187   :
27188 else
27189   $as_echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192         ac_cv_type_uint8=yes
27193 fi
27194
27195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27196 else
27197   $as_echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27199
27200
27201 fi
27202
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27204 fi
27205 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27206 $as_echo "$ac_cv_type_uint8" >&6; }
27207 if test "x$ac_cv_type_uint8" = x""yes; then
27208
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_UINT8 1
27211 _ACEOF
27212
27213
27214 fi
27215 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27216 $as_echo_n "checking for int64... " >&6; }
27217 if test "${ac_cv_type_int64+set}" = set; then
27218   $as_echo_n "(cached) " >&6
27219 else
27220   ac_cv_type_int64=no
27221 cat >conftest.$ac_ext <<_ACEOF
27222 /* confdefs.h.  */
27223 _ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h.  */
27227 #include <stdio.h>
27228 #ifdef HAVE_SUPPORTDEFS_H
27229 #include <SupportDefs.h>
27230 #endif
27231
27232 int
27233 main ()
27234 {
27235 if (sizeof (int64))
27236        return 0;
27237   ;
27238   return 0;
27239 }
27240 _ACEOF
27241 rm -f conftest.$ac_objext
27242 if { (ac_try="$ac_compile"
27243 case "(($ac_try" in
27244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245   *) ac_try_echo=$ac_try;;
27246 esac
27247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27248 $as_echo "$ac_try_echo") >&5
27249   (eval "$ac_compile") 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } && {
27256          test -z "$ac_c_werror_flag" ||
27257          test ! -s conftest.err
27258        } && test -s conftest.$ac_objext; then
27259   cat >conftest.$ac_ext <<_ACEOF
27260 /* confdefs.h.  */
27261 _ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h.  */
27265 #include <stdio.h>
27266 #ifdef HAVE_SUPPORTDEFS_H
27267 #include <SupportDefs.h>
27268 #endif
27269
27270 int
27271 main ()
27272 {
27273 if (sizeof ((int64)))
27274           return 0;
27275   ;
27276   return 0;
27277 }
27278 _ACEOF
27279 rm -f conftest.$ac_objext
27280 if { (ac_try="$ac_compile"
27281 case "(($ac_try" in
27282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27283   *) ac_try_echo=$ac_try;;
27284 esac
27285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27286 $as_echo "$ac_try_echo") >&5
27287   (eval "$ac_compile") 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } && {
27294          test -z "$ac_c_werror_flag" ||
27295          test ! -s conftest.err
27296        } && test -s conftest.$ac_objext; then
27297   :
27298 else
27299   $as_echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27301
27302         ac_cv_type_int64=yes
27303 fi
27304
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27306 else
27307   $as_echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.$ac_ext >&5
27309
27310
27311 fi
27312
27313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27314 fi
27315 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27316 $as_echo "$ac_cv_type_int64" >&6; }
27317 if test "x$ac_cv_type_int64" = x""yes; then
27318
27319 cat >>confdefs.h <<_ACEOF
27320 #define HAVE_INT64 1
27321 _ACEOF
27322
27323
27324 fi
27325 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27326 $as_echo_n "checking for uint64... " >&6; }
27327 if test "${ac_cv_type_uint64+set}" = set; then
27328   $as_echo_n "(cached) " >&6
27329 else
27330   ac_cv_type_uint64=no
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h.  */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h.  */
27337 #include <stdio.h>
27338 #ifdef HAVE_SUPPORTDEFS_H
27339 #include <SupportDefs.h>
27340 #endif
27341
27342 int
27343 main ()
27344 {
27345 if (sizeof (uint64))
27346        return 0;
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 rm -f conftest.$ac_objext
27352 if { (ac_try="$ac_compile"
27353 case "(($ac_try" in
27354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355   *) ac_try_echo=$ac_try;;
27356 esac
27357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27358 $as_echo "$ac_try_echo") >&5
27359   (eval "$ac_compile") 2>conftest.er1
27360   ac_status=$?
27361   grep -v '^ *+' conftest.er1 >conftest.err
27362   rm -f conftest.er1
27363   cat conftest.err >&5
27364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); } && {
27366          test -z "$ac_c_werror_flag" ||
27367          test ! -s conftest.err
27368        } && test -s conftest.$ac_objext; then
27369   cat >conftest.$ac_ext <<_ACEOF
27370 /* confdefs.h.  */
27371 _ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h.  */
27375 #include <stdio.h>
27376 #ifdef HAVE_SUPPORTDEFS_H
27377 #include <SupportDefs.h>
27378 #endif
27379
27380 int
27381 main ()
27382 {
27383 if (sizeof ((uint64)))
27384           return 0;
27385   ;
27386   return 0;
27387 }
27388 _ACEOF
27389 rm -f conftest.$ac_objext
27390 if { (ac_try="$ac_compile"
27391 case "(($ac_try" in
27392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393   *) ac_try_echo=$ac_try;;
27394 esac
27395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27396 $as_echo "$ac_try_echo") >&5
27397   (eval "$ac_compile") 2>conftest.er1
27398   ac_status=$?
27399   grep -v '^ *+' conftest.er1 >conftest.err
27400   rm -f conftest.er1
27401   cat conftest.err >&5
27402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); } && {
27404          test -z "$ac_c_werror_flag" ||
27405          test ! -s conftest.err
27406        } && test -s conftest.$ac_objext; then
27407   :
27408 else
27409   $as_echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27411
27412         ac_cv_type_uint64=yes
27413 fi
27414
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 else
27417   $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420
27421 fi
27422
27423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27424 fi
27425 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27426 $as_echo "$ac_cv_type_uint64" >&6; }
27427 if test "x$ac_cv_type_uint64" = x""yes; then
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_UINT64 1
27431 _ACEOF
27432
27433
27434 fi
27435
27436
27437 # We also check for sig_atomic_t, which *should* be defined per ANSI
27438 # C, but is missing on some old platforms.
27439 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27440 $as_echo_n "checking for sig_atomic_t... " >&6; }
27441 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27442   $as_echo_n "(cached) " >&6
27443 else
27444   ac_cv_type_sig_atomic_t=no
27445 cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h.  */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h.  */
27451 #include <signal.h>
27452
27453 int
27454 main ()
27455 {
27456 if (sizeof (sig_atomic_t))
27457        return 0;
27458   ;
27459   return 0;
27460 }
27461 _ACEOF
27462 rm -f conftest.$ac_objext
27463 if { (ac_try="$ac_compile"
27464 case "(($ac_try" in
27465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466   *) ac_try_echo=$ac_try;;
27467 esac
27468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27469 $as_echo "$ac_try_echo") >&5
27470   (eval "$ac_compile") 2>conftest.er1
27471   ac_status=$?
27472   grep -v '^ *+' conftest.er1 >conftest.err
27473   rm -f conftest.er1
27474   cat conftest.err >&5
27475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476   (exit $ac_status); } && {
27477          test -z "$ac_c_werror_flag" ||
27478          test ! -s conftest.err
27479        } && test -s conftest.$ac_objext; then
27480   cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486 #include <signal.h>
27487
27488 int
27489 main ()
27490 {
27491 if (sizeof ((sig_atomic_t)))
27492           return 0;
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext
27498 if { (ac_try="$ac_compile"
27499 case "(($ac_try" in
27500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501   *) ac_try_echo=$ac_try;;
27502 esac
27503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27504 $as_echo "$ac_try_echo") >&5
27505   (eval "$ac_compile") 2>conftest.er1
27506   ac_status=$?
27507   grep -v '^ *+' conftest.er1 >conftest.err
27508   rm -f conftest.er1
27509   cat conftest.err >&5
27510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); } && {
27512          test -z "$ac_c_werror_flag" ||
27513          test ! -s conftest.err
27514        } && test -s conftest.$ac_objext; then
27515   :
27516 else
27517   $as_echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520         ac_cv_type_sig_atomic_t=yes
27521 fi
27522
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524 else
27525   $as_echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528
27529 fi
27530
27531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27532 fi
27533 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27534 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27535 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27536
27537 cat >>confdefs.h <<_ACEOF
27538 #define HAVE_SIG_ATOMIC_T 1
27539 _ACEOF
27540
27541
27542 fi
27543
27544
27545
27546 if test "$PORTNAME" != "win32"
27547 then
27548 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27549 $as_echo_n "checking for POSIX signal interface... " >&6; }
27550 if test "${pgac_cv_func_posix_signals+set}" = set; then
27551   $as_echo_n "(cached) " >&6
27552 else
27553   cat >conftest.$ac_ext <<_ACEOF
27554 /* confdefs.h.  */
27555 _ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h.  */
27559 #include <signal.h>
27560
27561 int
27562 main ()
27563 {
27564 struct sigaction act, oact;
27565 sigemptyset(&act.sa_mask);
27566 act.sa_flags = SA_RESTART;
27567 sigaction(0, &act, &oact);
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 rm -f conftest.$ac_objext conftest$ac_exeext
27573 if { (ac_try="$ac_link"
27574 case "(($ac_try" in
27575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576   *) ac_try_echo=$ac_try;;
27577 esac
27578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27579 $as_echo "$ac_try_echo") >&5
27580   (eval "$ac_link") 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } && {
27587          test -z "$ac_c_werror_flag" ||
27588          test ! -s conftest.err
27589        } && test -s conftest$ac_exeext && {
27590          test "$cross_compiling" = yes ||
27591          $as_test_x conftest$ac_exeext
27592        }; then
27593   pgac_cv_func_posix_signals=yes
27594 else
27595   $as_echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27597
27598         pgac_cv_func_posix_signals=no
27599 fi
27600
27601 rm -rf conftest.dSYM
27602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27603       conftest$ac_exeext conftest.$ac_ext
27604 fi
27605 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27606 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27607 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27608
27609 cat >>confdefs.h <<\_ACEOF
27610 #define HAVE_POSIX_SIGNALS /**/
27611 _ACEOF
27612
27613 fi
27614 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27615
27616 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27617   { { $as_echo "$as_me:$LINENO: error:
27618 Thread-safety requires POSIX signals, which are not supported by this
27619 operating system;  use --disable-thread-safety to disable thread safety." >&5
27620 $as_echo "$as_me: error:
27621 Thread-safety requires POSIX signals, which are not supported by this
27622 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
27623    { (exit 1); exit 1; }; }
27624 fi
27625 fi
27626
27627 # SunOS doesn't handle negative byte comparisons properly with +/- return
27628 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27629 $as_echo_n "checking for working memcmp... " >&6; }
27630 if test "${ac_cv_func_memcmp_working+set}" = set; then
27631   $as_echo_n "(cached) " >&6
27632 else
27633   if test "$cross_compiling" = yes; then
27634   ac_cv_func_memcmp_working=no
27635 else
27636   cat >conftest.$ac_ext <<_ACEOF
27637 /* confdefs.h.  */
27638 _ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h.  */
27642 $ac_includes_default
27643 int
27644 main ()
27645 {
27646
27647   /* Some versions of memcmp are not 8-bit clean.  */
27648   char c0 = '\100', c1 = '\200', c2 = '\201';
27649   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27650     return 1;
27651
27652   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27653      or more and with at least one buffer not starting on a 4-byte boundary.
27654      William Lewis provided this test program.   */
27655   {
27656     char foo[21];
27657     char bar[21];
27658     int i;
27659     for (i = 0; i < 4; i++)
27660       {
27661         char *a = foo + i;
27662         char *b = bar + i;
27663         strcpy (a, "--------01111111");
27664         strcpy (b, "--------10000000");
27665         if (memcmp (a, b, 16) >= 0)
27666           return 1;
27667       }
27668     return 0;
27669   }
27670
27671   ;
27672   return 0;
27673 }
27674 _ACEOF
27675 rm -f conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679   *) ac_try_echo=$ac_try;;
27680 esac
27681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27682 $as_echo "$ac_try_echo") >&5
27683   (eval "$ac_link") 2>&5
27684   ac_status=$?
27685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27687   { (case "(($ac_try" in
27688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689   *) ac_try_echo=$ac_try;;
27690 esac
27691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27692 $as_echo "$ac_try_echo") >&5
27693   (eval "$ac_try") 2>&5
27694   ac_status=$?
27695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; }; then
27697   ac_cv_func_memcmp_working=yes
27698 else
27699   $as_echo "$as_me: program exited with status $ac_status" >&5
27700 $as_echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 ( exit $ac_status )
27704 ac_cv_func_memcmp_working=no
27705 fi
27706 rm -rf conftest.dSYM
27707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27708 fi
27709
27710
27711 fi
27712 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27713 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27714 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27715   *" memcmp.$ac_objext "* ) ;;
27716   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27717  ;;
27718 esac
27719
27720
27721
27722
27723 # Select semaphore implementation type.
27724 if test "$PORTNAME" != "win32"; then
27725   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27726
27727 cat >>confdefs.h <<\_ACEOF
27728 #define USE_NAMED_POSIX_SEMAPHORES 1
27729 _ACEOF
27730
27731     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27732   else
27733     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27734
27735 cat >>confdefs.h <<\_ACEOF
27736 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27737 _ACEOF
27738
27739       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27740     else
27741
27742 cat >>confdefs.h <<\_ACEOF
27743 #define USE_SYSV_SEMAPHORES 1
27744 _ACEOF
27745
27746       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27747     fi
27748   fi
27749 else
27750
27751 cat >>confdefs.h <<\_ACEOF
27752 #define USE_WIN32_SEMAPHORES 1
27753 _ACEOF
27754
27755   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27756 fi
27757
27758
27759 # Select shared-memory implementation type.
27760 if test "$PORTNAME" != "win32"; then
27761
27762 cat >>confdefs.h <<\_ACEOF
27763 #define USE_SYSV_SHARED_MEMORY 1
27764 _ACEOF
27765
27766   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27767 else
27768
27769 cat >>confdefs.h <<\_ACEOF
27770 #define USE_WIN32_SHARED_MEMORY 1
27771 _ACEOF
27772
27773   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27774 fi
27775
27776 # If not set in template file, set bytes to use libc memset()
27777 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27778   MEMSET_LOOP_LIMIT=1024
27779 fi
27780
27781 cat >>confdefs.h <<_ACEOF
27782 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27783 _ACEOF
27784
27785
27786
27787 if test "$enable_nls" = yes ; then
27788
27789   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27790 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27791 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27792   $as_echo_n "(cached) " >&6
27793 else
27794   ac_func_search_save_LIBS=$LIBS
27795 cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h.  */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h.  */
27801
27802 /* Override any GCC internal prototype to avoid an error.
27803    Use char because int might match the return type of a GCC
27804    builtin and then its argument prototype would still apply.  */
27805 #ifdef __cplusplus
27806 extern "C"
27807 #endif
27808 char bind_textdomain_codeset ();
27809 int
27810 main ()
27811 {
27812 return bind_textdomain_codeset ();
27813   ;
27814   return 0;
27815 }
27816 _ACEOF
27817 for ac_lib in '' intl; do
27818   if test -z "$ac_lib"; then
27819     ac_res="none required"
27820   else
27821     ac_res=-l$ac_lib
27822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27823   fi
27824   rm -f conftest.$ac_objext conftest$ac_exeext
27825 if { (ac_try="$ac_link"
27826 case "(($ac_try" in
27827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27828   *) ac_try_echo=$ac_try;;
27829 esac
27830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27831 $as_echo "$ac_try_echo") >&5
27832   (eval "$ac_link") 2>conftest.er1
27833   ac_status=$?
27834   grep -v '^ *+' conftest.er1 >conftest.err
27835   rm -f conftest.er1
27836   cat conftest.err >&5
27837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); } && {
27839          test -z "$ac_c_werror_flag" ||
27840          test ! -s conftest.err
27841        } && test -s conftest$ac_exeext && {
27842          test "$cross_compiling" = yes ||
27843          $as_test_x conftest$ac_exeext
27844        }; then
27845   ac_cv_search_bind_textdomain_codeset=$ac_res
27846 else
27847   $as_echo "$as_me: failed program was:" >&5
27848 sed 's/^/| /' conftest.$ac_ext >&5
27849
27850
27851 fi
27852
27853 rm -rf conftest.dSYM
27854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27855       conftest$ac_exeext
27856   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27857   break
27858 fi
27859 done
27860 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27861   :
27862 else
27863   ac_cv_search_bind_textdomain_codeset=no
27864 fi
27865 rm conftest.$ac_ext
27866 LIBS=$ac_func_search_save_LIBS
27867 fi
27868 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27869 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27870 ac_res=$ac_cv_search_bind_textdomain_codeset
27871 if test "$ac_res" != no; then
27872   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27873
27874 else
27875   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27876 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27877    { (exit 1); exit 1; }; }
27878 fi
27879
27880   if test "${ac_cv_header_libintl_h+set}" = set; then
27881   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27882 $as_echo_n "checking for libintl.h... " >&6; }
27883 if test "${ac_cv_header_libintl_h+set}" = set; then
27884   $as_echo_n "(cached) " >&6
27885 fi
27886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27887 $as_echo "$ac_cv_header_libintl_h" >&6; }
27888 else
27889   # Is the header compilable?
27890 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27891 $as_echo_n "checking libintl.h usability... " >&6; }
27892 cat >conftest.$ac_ext <<_ACEOF
27893 /* confdefs.h.  */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h.  */
27898 $ac_includes_default
27899 #include <libintl.h>
27900 _ACEOF
27901 rm -f conftest.$ac_objext
27902 if { (ac_try="$ac_compile"
27903 case "(($ac_try" in
27904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905   *) ac_try_echo=$ac_try;;
27906 esac
27907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27908 $as_echo "$ac_try_echo") >&5
27909   (eval "$ac_compile") 2>conftest.er1
27910   ac_status=$?
27911   grep -v '^ *+' conftest.er1 >conftest.err
27912   rm -f conftest.er1
27913   cat conftest.err >&5
27914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); } && {
27916          test -z "$ac_c_werror_flag" ||
27917          test ! -s conftest.err
27918        } && test -s conftest.$ac_objext; then
27919   ac_header_compiler=yes
27920 else
27921   $as_echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27923
27924         ac_header_compiler=no
27925 fi
27926
27927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27929 $as_echo "$ac_header_compiler" >&6; }
27930
27931 # Is the header present?
27932 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27933 $as_echo_n "checking libintl.h presence... " >&6; }
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940 #include <libintl.h>
27941 _ACEOF
27942 if { (ac_try="$ac_cpp conftest.$ac_ext"
27943 case "(($ac_try" in
27944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945   *) ac_try_echo=$ac_try;;
27946 esac
27947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27948 $as_echo "$ac_try_echo") >&5
27949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27950   ac_status=$?
27951   grep -v '^ *+' conftest.er1 >conftest.err
27952   rm -f conftest.er1
27953   cat conftest.err >&5
27954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955   (exit $ac_status); } >/dev/null && {
27956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27957          test ! -s conftest.err
27958        }; then
27959   ac_header_preproc=yes
27960 else
27961   $as_echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27963
27964   ac_header_preproc=no
27965 fi
27966
27967 rm -f conftest.err conftest.$ac_ext
27968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27969 $as_echo "$ac_header_preproc" >&6; }
27970
27971 # So?  What about this header?
27972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27973   yes:no: )
27974     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27975 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27976     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27977 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27978     ac_header_preproc=yes
27979     ;;
27980   no:yes:* )
27981     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27982 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27983     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
27984 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
27985     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27986 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27987     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
27988 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27989     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27990 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27991     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27992 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27993     ( cat <<\_ASBOX
27994 ## ---------------------------------------- ##
27995 ## Report this to pgsql-bugs@postgresql.org ##
27996 ## ---------------------------------------- ##
27997 _ASBOX
27998      ) | sed "s/^/$as_me: WARNING:     /" >&2
27999     ;;
28000 esac
28001 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28002 $as_echo_n "checking for libintl.h... " >&6; }
28003 if test "${ac_cv_header_libintl_h+set}" = set; then
28004   $as_echo_n "(cached) " >&6
28005 else
28006   ac_cv_header_libintl_h=$ac_header_preproc
28007 fi
28008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28009 $as_echo "$ac_cv_header_libintl_h" >&6; }
28010
28011 fi
28012 if test "x$ac_cv_header_libintl_h" = x""yes; then
28013   :
28014 else
28015   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28016 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28017    { (exit 1); exit 1; }; }
28018 fi
28019
28020
28021   for ac_prog in msgfmt
28022 do
28023   # Extract the first word of "$ac_prog", so it can be a program name with args.
28024 set dummy $ac_prog; ac_word=$2
28025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28026 $as_echo_n "checking for $ac_word... " >&6; }
28027 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28028   $as_echo_n "(cached) " >&6
28029 else
28030   if test -n "$MSGFMT"; then
28031   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28032 else
28033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28034 for as_dir in $PATH
28035 do
28036   IFS=$as_save_IFS
28037   test -z "$as_dir" && as_dir=.
28038   for ac_exec_ext in '' $ac_executable_extensions; do
28039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28040     ac_cv_prog_MSGFMT="$ac_prog"
28041     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28042     break 2
28043   fi
28044 done
28045 done
28046 IFS=$as_save_IFS
28047
28048 fi
28049 fi
28050 MSGFMT=$ac_cv_prog_MSGFMT
28051 if test -n "$MSGFMT"; then
28052   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28053 $as_echo "$MSGFMT" >&6; }
28054 else
28055   { $as_echo "$as_me:$LINENO: result: no" >&5
28056 $as_echo "no" >&6; }
28057 fi
28058
28059
28060   test -n "$MSGFMT" && break
28061 done
28062
28063   if test -z "$MSGFMT"; then
28064     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28065 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28066    { (exit 1); exit 1; }; }
28067   fi
28068   for ac_prog in msgmerge
28069 do
28070   # Extract the first word of "$ac_prog", so it can be a program name with args.
28071 set dummy $ac_prog; ac_word=$2
28072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28073 $as_echo_n "checking for $ac_word... " >&6; }
28074 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28075   $as_echo_n "(cached) " >&6
28076 else
28077   if test -n "$MSGMERGE"; then
28078   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28079 else
28080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28081 for as_dir in $PATH
28082 do
28083   IFS=$as_save_IFS
28084   test -z "$as_dir" && as_dir=.
28085   for ac_exec_ext in '' $ac_executable_extensions; do
28086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28087     ac_cv_prog_MSGMERGE="$ac_prog"
28088     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28089     break 2
28090   fi
28091 done
28092 done
28093 IFS=$as_save_IFS
28094
28095 fi
28096 fi
28097 MSGMERGE=$ac_cv_prog_MSGMERGE
28098 if test -n "$MSGMERGE"; then
28099   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28100 $as_echo "$MSGMERGE" >&6; }
28101 else
28102   { $as_echo "$as_me:$LINENO: result: no" >&5
28103 $as_echo "no" >&6; }
28104 fi
28105
28106
28107   test -n "$MSGMERGE" && break
28108 done
28109
28110   for ac_prog in xgettext
28111 do
28112   # Extract the first word of "$ac_prog", so it can be a program name with args.
28113 set dummy $ac_prog; ac_word=$2
28114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28115 $as_echo_n "checking for $ac_word... " >&6; }
28116 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28117   $as_echo_n "(cached) " >&6
28118 else
28119   if test -n "$XGETTEXT"; then
28120   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28121 else
28122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28123 for as_dir in $PATH
28124 do
28125   IFS=$as_save_IFS
28126   test -z "$as_dir" && as_dir=.
28127   for ac_exec_ext in '' $ac_executable_extensions; do
28128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28129     ac_cv_prog_XGETTEXT="$ac_prog"
28130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28131     break 2
28132   fi
28133 done
28134 done
28135 IFS=$as_save_IFS
28136
28137 fi
28138 fi
28139 XGETTEXT=$ac_cv_prog_XGETTEXT
28140 if test -n "$XGETTEXT"; then
28141   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28142 $as_echo "$XGETTEXT" >&6; }
28143 else
28144   { $as_echo "$as_me:$LINENO: result: no" >&5
28145 $as_echo "no" >&6; }
28146 fi
28147
28148
28149   test -n "$XGETTEXT" && break
28150 done
28151
28152
28153 fi
28154
28155 # Check for Tcl configuration script tclConfig.sh
28156 if test "$with_tcl" = yes; then
28157     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28158 do
28159   # Extract the first word of "$ac_prog", so it can be a program name with args.
28160 set dummy $ac_prog; ac_word=$2
28161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28162 $as_echo_n "checking for $ac_word... " >&6; }
28163 if test "${ac_cv_path_TCLSH+set}" = set; then
28164   $as_echo_n "(cached) " >&6
28165 else
28166   case $TCLSH in
28167   [\\/]* | ?:[\\/]*)
28168   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28169   ;;
28170   *)
28171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28172 for as_dir in $PATH
28173 do
28174   IFS=$as_save_IFS
28175   test -z "$as_dir" && as_dir=.
28176   for ac_exec_ext in '' $ac_executable_extensions; do
28177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28178     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28179     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28180     break 2
28181   fi
28182 done
28183 done
28184 IFS=$as_save_IFS
28185
28186   ;;
28187 esac
28188 fi
28189 TCLSH=$ac_cv_path_TCLSH
28190 if test -n "$TCLSH"; then
28191   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28192 $as_echo "$TCLSH" >&6; }
28193 else
28194   { $as_echo "$as_me:$LINENO: result: no" >&5
28195 $as_echo "no" >&6; }
28196 fi
28197
28198
28199   test -n "$TCLSH" && break
28200 done
28201
28202 if test x"$TCLSH" = x""; then
28203   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28204 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28205    { (exit 1); exit 1; }; }
28206 fi
28207
28208 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28209 $as_echo_n "checking for tclConfig.sh... " >&6; }
28210 # Let user override test
28211 if test -z "$TCL_CONFIG_SH"; then
28212     pgac_test_dirs="$with_tclconfig"
28213
28214     set X $pgac_test_dirs; shift
28215     if test $# -eq 0; then
28216         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28217 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28218    { (exit 1); exit 1; }; }
28219         set X `echo 'puts $auto_path' | $TCLSH`; shift
28220     fi
28221
28222     for pgac_dir do
28223         if test -r "$pgac_dir/tclConfig.sh"; then
28224             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28225             break
28226         fi
28227     done
28228 fi
28229
28230 if test -z "$TCL_CONFIG_SH"; then
28231     { $as_echo "$as_me:$LINENO: result: no" >&5
28232 $as_echo "no" >&6; }
28233     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28234 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28235    { (exit 1); exit 1; }; }
28236 else
28237     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28238 $as_echo "$TCL_CONFIG_SH" >&6; }
28239 fi
28240
28241
28242
28243     . "$TCL_CONFIG_SH"
28244 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28245 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28246 eval TCL_LIBS=\"$TCL_LIBS\"
28247 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28248 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28249
28250         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28251     ac_save_CPPFLAGS=$CPPFLAGS
28252     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28253     if test "${ac_cv_header_tcl_h+set}" = set; then
28254   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28255 $as_echo_n "checking for tcl.h... " >&6; }
28256 if test "${ac_cv_header_tcl_h+set}" = set; then
28257   $as_echo_n "(cached) " >&6
28258 fi
28259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28260 $as_echo "$ac_cv_header_tcl_h" >&6; }
28261 else
28262   # Is the header compilable?
28263 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28264 $as_echo_n "checking tcl.h usability... " >&6; }
28265 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h.  */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h.  */
28271 $ac_includes_default
28272 #include <tcl.h>
28273 _ACEOF
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278   *) ac_try_echo=$ac_try;;
28279 esac
28280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28281 $as_echo "$ac_try_echo") >&5
28282   (eval "$ac_compile") 2>conftest.er1
28283   ac_status=$?
28284   grep -v '^ *+' conftest.er1 >conftest.err
28285   rm -f conftest.er1
28286   cat conftest.err >&5
28287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); } && {
28289          test -z "$ac_c_werror_flag" ||
28290          test ! -s conftest.err
28291        } && test -s conftest.$ac_objext; then
28292   ac_header_compiler=yes
28293 else
28294   $as_echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297         ac_header_compiler=no
28298 fi
28299
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28302 $as_echo "$ac_header_compiler" >&6; }
28303
28304 # Is the header present?
28305 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28306 $as_echo_n "checking tcl.h presence... " >&6; }
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313 #include <tcl.h>
28314 _ACEOF
28315 if { (ac_try="$ac_cpp conftest.$ac_ext"
28316 case "(($ac_try" in
28317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28318   *) ac_try_echo=$ac_try;;
28319 esac
28320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28321 $as_echo "$ac_try_echo") >&5
28322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28323   ac_status=$?
28324   grep -v '^ *+' conftest.er1 >conftest.err
28325   rm -f conftest.er1
28326   cat conftest.err >&5
28327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328   (exit $ac_status); } >/dev/null && {
28329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28330          test ! -s conftest.err
28331        }; then
28332   ac_header_preproc=yes
28333 else
28334   $as_echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28336
28337   ac_header_preproc=no
28338 fi
28339
28340 rm -f conftest.err conftest.$ac_ext
28341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28342 $as_echo "$ac_header_preproc" >&6; }
28343
28344 # So?  What about this header?
28345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28346   yes:no: )
28347     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28348 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28349     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28350 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28351     ac_header_preproc=yes
28352     ;;
28353   no:yes:* )
28354     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28355 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28356     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28357 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28358     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28359 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28360     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28361 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28362     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28363 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28364     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28365 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28366     ( cat <<\_ASBOX
28367 ## ---------------------------------------- ##
28368 ## Report this to pgsql-bugs@postgresql.org ##
28369 ## ---------------------------------------- ##
28370 _ASBOX
28371      ) | sed "s/^/$as_me: WARNING:     /" >&2
28372     ;;
28373 esac
28374 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28375 $as_echo_n "checking for tcl.h... " >&6; }
28376 if test "${ac_cv_header_tcl_h+set}" = set; then
28377   $as_echo_n "(cached) " >&6
28378 else
28379   ac_cv_header_tcl_h=$ac_header_preproc
28380 fi
28381 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28382 $as_echo "$ac_cv_header_tcl_h" >&6; }
28383
28384 fi
28385 if test "x$ac_cv_header_tcl_h" = x""yes; then
28386   :
28387 else
28388   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28389 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28390    { (exit 1); exit 1; }; }
28391 fi
28392
28393
28394     CPPFLAGS=$ac_save_CPPFLAGS
28395 fi
28396
28397 #
28398 # Check for DocBook and tools
28399 #
28400 for ac_prog in onsgmls nsgmls
28401 do
28402   # Extract the first word of "$ac_prog", so it can be a program name with args.
28403 set dummy $ac_prog; ac_word=$2
28404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28405 $as_echo_n "checking for $ac_word... " >&6; }
28406 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28407   $as_echo_n "(cached) " >&6
28408 else
28409   if test -n "$NSGMLS"; then
28410   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28411 else
28412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28413 for as_dir in $PATH
28414 do
28415   IFS=$as_save_IFS
28416   test -z "$as_dir" && as_dir=.
28417   for ac_exec_ext in '' $ac_executable_extensions; do
28418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28419     ac_cv_prog_NSGMLS="$ac_prog"
28420     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28421     break 2
28422   fi
28423 done
28424 done
28425 IFS=$as_save_IFS
28426
28427 fi
28428 fi
28429 NSGMLS=$ac_cv_prog_NSGMLS
28430 if test -n "$NSGMLS"; then
28431   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28432 $as_echo "$NSGMLS" >&6; }
28433 else
28434   { $as_echo "$as_me:$LINENO: result: no" >&5
28435 $as_echo "no" >&6; }
28436 fi
28437
28438
28439   test -n "$NSGMLS" && break
28440 done
28441
28442 for ac_prog in openjade jade
28443 do
28444   # Extract the first word of "$ac_prog", so it can be a program name with args.
28445 set dummy $ac_prog; ac_word=$2
28446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28447 $as_echo_n "checking for $ac_word... " >&6; }
28448 if test "${ac_cv_prog_JADE+set}" = set; then
28449   $as_echo_n "(cached) " >&6
28450 else
28451   if test -n "$JADE"; then
28452   ac_cv_prog_JADE="$JADE" # Let the user override the test.
28453 else
28454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28455 for as_dir in $PATH
28456 do
28457   IFS=$as_save_IFS
28458   test -z "$as_dir" && as_dir=.
28459   for ac_exec_ext in '' $ac_executable_extensions; do
28460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28461     ac_cv_prog_JADE="$ac_prog"
28462     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28463     break 2
28464   fi
28465 done
28466 done
28467 IFS=$as_save_IFS
28468
28469 fi
28470 fi
28471 JADE=$ac_cv_prog_JADE
28472 if test -n "$JADE"; then
28473   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28474 $as_echo "$JADE" >&6; }
28475 else
28476   { $as_echo "$as_me:$LINENO: result: no" >&5
28477 $as_echo "no" >&6; }
28478 fi
28479
28480
28481   test -n "$JADE" && break
28482 done
28483
28484
28485 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28486 $as_echo_n "checking for DocBook V4.2... " >&6; }
28487 if test "${pgac_cv_check_docbook+set}" = set; then
28488   $as_echo_n "(cached) " >&6
28489 else
28490   cat >conftest.sgml <<EOF
28491 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28492 <book>
28493  <title>test</title>
28494  <chapter>
28495   <title>random</title>
28496    <sect1>
28497     <title>testsect</title>
28498     <para>text</para>
28499   </sect1>
28500  </chapter>
28501 </book>
28502 EOF
28503
28504 pgac_cv_check_docbook=no
28505
28506 if test -n "$NSGMLS"; then
28507   $NSGMLS -s conftest.sgml 1>&5 2>&1
28508   if test $? -eq 0; then
28509     pgac_cv_check_docbook=yes
28510   fi
28511 fi
28512 rm -f conftest.sgml
28513 fi
28514 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28515 $as_echo "$pgac_cv_check_docbook" >&6; }
28516
28517 have_docbook=$pgac_cv_check_docbook
28518
28519
28520 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28521 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28522 if test "${pgac_cv_path_stylesheets+set}" = set; then
28523   $as_echo_n "(cached) " >&6
28524 else
28525   if test -n "$DOCBOOKSTYLE"; then
28526   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28527 else
28528   for pgac_prefix in /usr /usr/local /opt /sw; do
28529     for pgac_infix in share lib; do
28530       for pgac_postfix in \
28531         sgml/stylesheets/nwalsh-modular \
28532         sgml/stylesheets/docbook \
28533         sgml/stylesheets/dsssl/docbook \
28534         sgml/docbook-dsssl \
28535         sgml/docbook/dsssl/modular \
28536         sgml/docbook/stylesheet/dsssl/modular \
28537         sgml/docbook/dsssl-stylesheets \
28538         sgml/dsssl/docbook-dsssl-nwalsh
28539       do
28540         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28541         if test -r "$pgac_candidate/html/docbook.dsl" \
28542            && test -r "$pgac_candidate/print/docbook.dsl"
28543         then
28544           pgac_cv_path_stylesheets=$pgac_candidate
28545           break 3
28546         fi
28547       done
28548     done
28549   done
28550 fi
28551 fi
28552
28553 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28554
28555 if test -n "$DOCBOOKSTYLE"; then
28556   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28557 $as_echo "$DOCBOOKSTYLE" >&6; }
28558 else
28559   { $as_echo "$as_me:$LINENO: result: no" >&5
28560 $as_echo "no" >&6; }
28561 fi
28562 if test -n "$DOCBOOKSTYLE"; then
28563   for ac_prog in collateindex.pl
28564 do
28565   # Extract the first word of "$ac_prog", so it can be a program name with args.
28566 set dummy $ac_prog; ac_word=$2
28567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28568 $as_echo_n "checking for $ac_word... " >&6; }
28569 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28570   $as_echo_n "(cached) " >&6
28571 else
28572   case $COLLATEINDEX in
28573   [\\/]* | ?:[\\/]*)
28574   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28575   ;;
28576   *)
28577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28578 for as_dir in $DOCBOOKSTYLE/bin $PATH
28579 do
28580   IFS=$as_save_IFS
28581   test -z "$as_dir" && as_dir=.
28582   for ac_exec_ext in '' $ac_executable_extensions; do
28583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28584     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28585     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28586     break 2
28587   fi
28588 done
28589 done
28590 IFS=$as_save_IFS
28591
28592   ;;
28593 esac
28594 fi
28595 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28596 if test -n "$COLLATEINDEX"; then
28597   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28598 $as_echo "$COLLATEINDEX" >&6; }
28599 else
28600   { $as_echo "$as_me:$LINENO: result: no" >&5
28601 $as_echo "no" >&6; }
28602 fi
28603
28604
28605   test -n "$COLLATEINDEX" && break
28606 done
28607
28608 else
28609   for ac_prog in collateindex.pl
28610 do
28611   # Extract the first word of "$ac_prog", so it can be a program name with args.
28612 set dummy $ac_prog; ac_word=$2
28613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28614 $as_echo_n "checking for $ac_word... " >&6; }
28615 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28616   $as_echo_n "(cached) " >&6
28617 else
28618   case $COLLATEINDEX in
28619   [\\/]* | ?:[\\/]*)
28620   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28621   ;;
28622   *)
28623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28624 for as_dir in $PATH
28625 do
28626   IFS=$as_save_IFS
28627   test -z "$as_dir" && as_dir=.
28628   for ac_exec_ext in '' $ac_executable_extensions; do
28629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28630     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28631     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28632     break 2
28633   fi
28634 done
28635 done
28636 IFS=$as_save_IFS
28637
28638   ;;
28639 esac
28640 fi
28641 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28642 if test -n "$COLLATEINDEX"; then
28643   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28644 $as_echo "$COLLATEINDEX" >&6; }
28645 else
28646   { $as_echo "$as_me:$LINENO: result: no" >&5
28647 $as_echo "no" >&6; }
28648 fi
28649
28650
28651   test -n "$COLLATEINDEX" && break
28652 done
28653
28654 fi
28655 for ac_prog in xsltproc
28656 do
28657   # Extract the first word of "$ac_prog", so it can be a program name with args.
28658 set dummy $ac_prog; ac_word=$2
28659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28660 $as_echo_n "checking for $ac_word... " >&6; }
28661 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28662   $as_echo_n "(cached) " >&6
28663 else
28664   if test -n "$XSLTPROC"; then
28665   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28666 else
28667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28668 for as_dir in $PATH
28669 do
28670   IFS=$as_save_IFS
28671   test -z "$as_dir" && as_dir=.
28672   for ac_exec_ext in '' $ac_executable_extensions; do
28673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28674     ac_cv_prog_XSLTPROC="$ac_prog"
28675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28676     break 2
28677   fi
28678 done
28679 done
28680 IFS=$as_save_IFS
28681
28682 fi
28683 fi
28684 XSLTPROC=$ac_cv_prog_XSLTPROC
28685 if test -n "$XSLTPROC"; then
28686   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28687 $as_echo "$XSLTPROC" >&6; }
28688 else
28689   { $as_echo "$as_me:$LINENO: result: no" >&5
28690 $as_echo "no" >&6; }
28691 fi
28692
28693
28694   test -n "$XSLTPROC" && break
28695 done
28696
28697 for ac_prog in osx sgml2xml sx
28698 do
28699   # Extract the first word of "$ac_prog", so it can be a program name with args.
28700 set dummy $ac_prog; ac_word=$2
28701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28702 $as_echo_n "checking for $ac_word... " >&6; }
28703 if test "${ac_cv_prog_OSX+set}" = set; then
28704   $as_echo_n "(cached) " >&6
28705 else
28706   if test -n "$OSX"; then
28707   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28708 else
28709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28710 for as_dir in $PATH
28711 do
28712   IFS=$as_save_IFS
28713   test -z "$as_dir" && as_dir=.
28714   for ac_exec_ext in '' $ac_executable_extensions; do
28715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28716     ac_cv_prog_OSX="$ac_prog"
28717     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28718     break 2
28719   fi
28720 done
28721 done
28722 IFS=$as_save_IFS
28723
28724 fi
28725 fi
28726 OSX=$ac_cv_prog_OSX
28727 if test -n "$OSX"; then
28728   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28729 $as_echo "$OSX" >&6; }
28730 else
28731   { $as_echo "$as_me:$LINENO: result: no" >&5
28732 $as_echo "no" >&6; }
28733 fi
28734
28735
28736   test -n "$OSX" && break
28737 done
28738
28739
28740 # Thread testing
28741
28742 # We have to run the thread test near the end so we have all our symbols
28743 # defined.  Cross compiling throws a warning.
28744 #
28745 if test "$enable_thread_safety" = yes; then
28746 if test "$PORTNAME" != "win32"
28747 then
28748 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28749 $as_echo_n "checking thread safety of required library functions... " >&6; }
28750
28751 _CFLAGS="$CFLAGS"
28752 _LIBS="$LIBS"
28753 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28754 LIBS="$LIBS $PTHREAD_LIBS"
28755 if test "$cross_compiling" = yes; then
28756   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28757 $as_echo "maybe" >&6; }
28758   { $as_echo "$as_me:$LINENO: WARNING:
28759 *** Skipping thread test program because of cross-compile build.
28760 *** Run the program in src/test/thread on the target machine.
28761 " >&5
28762 $as_echo "$as_me: WARNING:
28763 *** Skipping thread test program because of cross-compile build.
28764 *** Run the program in src/test/thread on the target machine.
28765 " >&2;}
28766 else
28767   cat >conftest.$ac_ext <<_ACEOF
28768 /* confdefs.h.  */
28769 _ACEOF
28770 cat confdefs.h >>conftest.$ac_ext
28771 cat >>conftest.$ac_ext <<_ACEOF
28772 /* end confdefs.h.  */
28773 #include "$srcdir/src/test/thread/thread_test.c"
28774 _ACEOF
28775 rm -f conftest$ac_exeext
28776 if { (ac_try="$ac_link"
28777 case "(($ac_try" in
28778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779   *) ac_try_echo=$ac_try;;
28780 esac
28781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28782 $as_echo "$ac_try_echo") >&5
28783   (eval "$ac_link") 2>&5
28784   ac_status=$?
28785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28787   { (case "(($ac_try" in
28788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789   *) ac_try_echo=$ac_try;;
28790 esac
28791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28792 $as_echo "$ac_try_echo") >&5
28793   (eval "$ac_try") 2>&5
28794   ac_status=$?
28795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); }; }; then
28797   { $as_echo "$as_me:$LINENO: result: yes" >&5
28798 $as_echo "yes" >&6; }
28799 else
28800   $as_echo "$as_me: program exited with status $ac_status" >&5
28801 $as_echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28803
28804 ( exit $ac_status )
28805 { $as_echo "$as_me:$LINENO: result: no" >&5
28806 $as_echo "no" >&6; }
28807   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28808 This platform is not thread-safe.  Check the file 'config.log' or compile
28809 and run src/test/thread/thread_test for the exact reason.
28810 Use --disable-thread-safety to disable thread safety." >&5
28811 $as_echo "$as_me: error: thread test program failed
28812 This platform is not thread-safe.  Check the file 'config.log' or compile
28813 and run src/test/thread/thread_test for the exact reason.
28814 Use --disable-thread-safety to disable thread safety." >&2;}
28815    { (exit 1); exit 1; }; }
28816 fi
28817 rm -rf conftest.dSYM
28818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28819 fi
28820
28821
28822 CFLAGS="$_CFLAGS"
28823 LIBS="$_LIBS"
28824 else
28825 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28826 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28827 fi
28828 fi
28829
28830 # If compiler will take -Wl,--as-needed (or various platform-specific
28831 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28832 # trying to filter LIBS to the minimum for each executable.
28833 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28834 # libreadline; therefore we postpone testing it until we know what library
28835 # dependencies readline has.  The test code will try to link with $LIBS.
28836 if test "$with_readline" = yes; then
28837   link_test_func=readline
28838 else
28839   link_test_func=exit
28840 fi
28841
28842 if test "$PORTNAME" = "darwin"; then
28843   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28844 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28845 pgac_save_LDFLAGS=$LDFLAGS
28846 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28847 if test "$cross_compiling" = yes; then
28848   LDFLAGS="$pgac_save_LDFLAGS"
28849                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28850 $as_echo "assuming no" >&6; }
28851 else
28852   cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28859 int
28860 main ()
28861 {
28862
28863   ;
28864   return 0;
28865 }
28866 _ACEOF
28867 rm -f conftest$ac_exeext
28868 if { (ac_try="$ac_link"
28869 case "(($ac_try" in
28870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871   *) ac_try_echo=$ac_try;;
28872 esac
28873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28874 $as_echo "$ac_try_echo") >&5
28875   (eval "$ac_link") 2>&5
28876   ac_status=$?
28877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28879   { (case "(($ac_try" in
28880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881   *) ac_try_echo=$ac_try;;
28882 esac
28883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28884 $as_echo "$ac_try_echo") >&5
28885   (eval "$ac_try") 2>&5
28886   ac_status=$?
28887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); }; }; then
28889   { $as_echo "$as_me:$LINENO: result: yes" >&5
28890 $as_echo "yes" >&6; }
28891 else
28892   $as_echo "$as_me: program exited with status $ac_status" >&5
28893 $as_echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28895
28896 ( exit $ac_status )
28897 LDFLAGS="$pgac_save_LDFLAGS"
28898                { $as_echo "$as_me:$LINENO: result: no" >&5
28899 $as_echo "no" >&6; }
28900 fi
28901 rm -rf conftest.dSYM
28902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28903 fi
28904
28905
28906
28907 elif test "$PORTNAME" = "openbsd"; then
28908   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28909 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28910 pgac_save_LDFLAGS=$LDFLAGS
28911 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28912 if test "$cross_compiling" = yes; then
28913   LDFLAGS="$pgac_save_LDFLAGS"
28914                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28915 $as_echo "assuming no" >&6; }
28916 else
28917   cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h.  */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h.  */
28923 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28924 int
28925 main ()
28926 {
28927
28928   ;
28929   return 0;
28930 }
28931 _ACEOF
28932 rm -f conftest$ac_exeext
28933 if { (ac_try="$ac_link"
28934 case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28939 $as_echo "$ac_try_echo") >&5
28940   (eval "$ac_link") 2>&5
28941   ac_status=$?
28942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28944   { (case "(($ac_try" in
28945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946   *) ac_try_echo=$ac_try;;
28947 esac
28948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28949 $as_echo "$ac_try_echo") >&5
28950   (eval "$ac_try") 2>&5
28951   ac_status=$?
28952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); }; }; then
28954   { $as_echo "$as_me:$LINENO: result: yes" >&5
28955 $as_echo "yes" >&6; }
28956 else
28957   $as_echo "$as_me: program exited with status $ac_status" >&5
28958 $as_echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28960
28961 ( exit $ac_status )
28962 LDFLAGS="$pgac_save_LDFLAGS"
28963                { $as_echo "$as_me:$LINENO: result: no" >&5
28964 $as_echo "no" >&6; }
28965 fi
28966 rm -rf conftest.dSYM
28967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28968 fi
28969
28970
28971
28972 else
28973   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28974 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28975 pgac_save_LDFLAGS=$LDFLAGS
28976 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28977 if test "$cross_compiling" = yes; then
28978   LDFLAGS="$pgac_save_LDFLAGS"
28979                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28980 $as_echo "assuming no" >&6; }
28981 else
28982   cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h.  */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h.  */
28988 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28989 int
28990 main ()
28991 {
28992
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29004 $as_echo "$ac_try_echo") >&5
29005   (eval "$ac_link") 2>&5
29006   ac_status=$?
29007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29009   { (case "(($ac_try" in
29010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011   *) ac_try_echo=$ac_try;;
29012 esac
29013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29014 $as_echo "$ac_try_echo") >&5
29015   (eval "$ac_try") 2>&5
29016   ac_status=$?
29017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); }; }; then
29019   { $as_echo "$as_me:$LINENO: result: yes" >&5
29020 $as_echo "yes" >&6; }
29021 else
29022   $as_echo "$as_me: program exited with status $ac_status" >&5
29023 $as_echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29025
29026 ( exit $ac_status )
29027 LDFLAGS="$pgac_save_LDFLAGS"
29028                { $as_echo "$as_me:$LINENO: result: no" >&5
29029 $as_echo "no" >&6; }
29030 fi
29031 rm -rf conftest.dSYM
29032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29033 fi
29034
29035
29036
29037 fi
29038
29039
29040 # Begin output steps
29041
29042 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29043 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29044 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29045 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29046 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29047 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29048
29049 # Create compiler version string
29050 if test x"$GCC" = x"yes" ; then
29051   cc_string="GCC `${CC} --version | sed q`"
29052 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29053   cc_string=`${CC} -V 2>&1 | sed q`
29054 else
29055   cc_string=$CC
29056 fi
29057
29058
29059 cat >>confdefs.h <<_ACEOF
29060 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29061 _ACEOF
29062
29063
29064 # Supply a numeric version string for use by 3rd party add-ons
29065 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29066 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29067 tr '.' '        ' |
29068 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29069
29070 cat >>confdefs.h <<_ACEOF
29071 #define PG_VERSION_NUM $PG_VERSION_NUM
29072 _ACEOF
29073
29074
29075
29076 # prepare build tree if outside source tree
29077 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29078 # Note 2: /bin/pwd might be better than shell's built-in at getting
29079 #         a symlink-free name.
29080 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29081   vpath_build=no
29082 else
29083   vpath_build=yes
29084   if test "$no_create" != yes; then
29085     $as_echo_n "preparing build tree... " >&6
29086     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29087     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29088       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29089 $as_echo "$as_me: error: failed" >&2;}
29090    { (exit 1); exit 1; }; }
29091     { $as_echo "$as_me:$LINENO: result: done" >&5
29092 $as_echo "done" >&6; }
29093   fi
29094 fi
29095
29096
29097
29098 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29099
29100
29101 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}"
29102
29103
29104 if test "$PORTNAME" = "win32"; then
29105 ac_config_commands="$ac_config_commands check_win32_symlinks"
29106
29107 fi
29108
29109 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29110
29111
29112 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29113
29114
29115 cat >confcache <<\_ACEOF
29116 # This file is a shell script that caches the results of configure
29117 # tests run on this system so they can be shared between configure
29118 # scripts and configure runs, see configure's option --config-cache.
29119 # It is not useful on other systems.  If it contains results you don't
29120 # want to keep, you may remove or edit it.
29121 #
29122 # config.status only pays attention to the cache file if you give it
29123 # the --recheck option to rerun configure.
29124 #
29125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29127 # following values.
29128
29129 _ACEOF
29130
29131 # The following way of writing the cache mishandles newlines in values,
29132 # but we know of no workaround that is simple, portable, and efficient.
29133 # So, we kill variables containing newlines.
29134 # Ultrix sh set writes to stderr and can't be redirected directly,
29135 # and sets the high bit in the cache file unless we assign to the vars.
29136 (
29137   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29138     eval ac_val=\$$ac_var
29139     case $ac_val in #(
29140     *${as_nl}*)
29141       case $ac_var in #(
29142       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29144       esac
29145       case $ac_var in #(
29146       _ | IFS | as_nl) ;; #(
29147       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29148       *) $as_unset $ac_var ;;
29149       esac ;;
29150     esac
29151   done
29152
29153   (set) 2>&1 |
29154     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29155     *${as_nl}ac_space=\ *)
29156       # `set' does not quote correctly, so add quotes (double-quote
29157       # substitution turns \\\\ into \\, and sed turns \\ into \).
29158       sed -n \
29159         "s/'/'\\\\''/g;
29160           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29161       ;; #(
29162     *)
29163       # `set' quotes correctly as required by POSIX, so do not add quotes.
29164       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29165       ;;
29166     esac |
29167     sort
29168 ) |
29169   sed '
29170      /^ac_cv_env_/b end
29171      t clear
29172      :clear
29173      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29174      t end
29175      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29176      :end' >>confcache
29177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29178   if test -w "$cache_file"; then
29179     test "x$cache_file" != "x/dev/null" &&
29180       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29181 $as_echo "$as_me: updating cache $cache_file" >&6;}
29182     cat confcache >$cache_file
29183   else
29184     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29186   fi
29187 fi
29188 rm -f confcache
29189
29190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29191 # Let make expand exec_prefix.
29192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29193
29194 DEFS=-DHAVE_CONFIG_H
29195
29196 ac_libobjs=
29197 ac_ltlibobjs=
29198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29199   # 1. Remove the extension, and $U if already installed.
29200   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29201   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29202   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29203   #    will be set to the directory where LIBOBJS objects are built.
29204   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29205   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29206 done
29207 LIBOBJS=$ac_libobjs
29208
29209 LTLIBOBJS=$ac_ltlibobjs
29210
29211
29212
29213
29214 : ${CONFIG_STATUS=./config.status}
29215 ac_write_fail=0
29216 ac_clean_files_save=$ac_clean_files
29217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29218 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29219 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29220 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29221 #! $SHELL
29222 # Generated by $as_me.
29223 # Run this file to recreate the current configuration.
29224 # Compiler output produced by configure, useful for debugging
29225 # configure, is in config.log if it exists.
29226
29227 debug=false
29228 ac_cs_recheck=false
29229 ac_cs_silent=false
29230 SHELL=\${CONFIG_SHELL-$SHELL}
29231 _ACEOF
29232
29233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29234 ## --------------------- ##
29235 ## M4sh Initialization.  ##
29236 ## --------------------- ##
29237
29238 # Be more Bourne compatible
29239 DUALCASE=1; export DUALCASE # for MKS sh
29240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29241   emulate sh
29242   NULLCMD=:
29243   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29244   # is contrary to our usage.  Disable this feature.
29245   alias -g '${1+"$@"}'='"$@"'
29246   setopt NO_GLOB_SUBST
29247 else
29248   case `(set -o) 2>/dev/null` in
29249   *posix*) set -o posix ;;
29250 esac
29251
29252 fi
29253
29254
29255
29256
29257 # PATH needs CR
29258 # Avoid depending upon Character Ranges.
29259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29262 as_cr_digits='0123456789'
29263 as_cr_alnum=$as_cr_Letters$as_cr_digits
29264
29265 as_nl='
29266 '
29267 export as_nl
29268 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29269 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29272 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29273   as_echo='printf %s\n'
29274   as_echo_n='printf %s'
29275 else
29276   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29277     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29278     as_echo_n='/usr/ucb/echo -n'
29279   else
29280     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29281     as_echo_n_body='eval
29282       arg=$1;
29283       case $arg in
29284       *"$as_nl"*)
29285         expr "X$arg" : "X\\(.*\\)$as_nl";
29286         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29287       esac;
29288       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29289     '
29290     export as_echo_n_body
29291     as_echo_n='sh -c $as_echo_n_body as_echo'
29292   fi
29293   export as_echo_body
29294   as_echo='sh -c $as_echo_body as_echo'
29295 fi
29296
29297 # The user is always right.
29298 if test "${PATH_SEPARATOR+set}" != set; then
29299   PATH_SEPARATOR=:
29300   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29301     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29302       PATH_SEPARATOR=';'
29303   }
29304 fi
29305
29306 # Support unset when possible.
29307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29308   as_unset=unset
29309 else
29310   as_unset=false
29311 fi
29312
29313
29314 # IFS
29315 # We need space, tab and new line, in precisely that order.  Quoting is
29316 # there to prevent editors from complaining about space-tab.
29317 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29318 # splitting by setting IFS to empty value.)
29319 IFS=" ""        $as_nl"
29320
29321 # Find who we are.  Look in the path if we contain no directory separator.
29322 case $0 in
29323   *[\\/]* ) as_myself=$0 ;;
29324   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29325 for as_dir in $PATH
29326 do
29327   IFS=$as_save_IFS
29328   test -z "$as_dir" && as_dir=.
29329   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29330 done
29331 IFS=$as_save_IFS
29332
29333      ;;
29334 esac
29335 # We did not find ourselves, most probably we were run as `sh COMMAND'
29336 # in which case we are not to be found in the path.
29337 if test "x$as_myself" = x; then
29338   as_myself=$0
29339 fi
29340 if test ! -f "$as_myself"; then
29341   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29342   { (exit 1); exit 1; }
29343 fi
29344
29345 # Work around bugs in pre-3.0 UWIN ksh.
29346 for as_var in ENV MAIL MAILPATH
29347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29348 done
29349 PS1='$ '
29350 PS2='> '
29351 PS4='+ '
29352
29353 # NLS nuisances.
29354 LC_ALL=C
29355 export LC_ALL
29356 LANGUAGE=C
29357 export LANGUAGE
29358
29359 # Required to use basename.
29360 if expr a : '\(a\)' >/dev/null 2>&1 &&
29361    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29362   as_expr=expr
29363 else
29364   as_expr=false
29365 fi
29366
29367 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29368   as_basename=basename
29369 else
29370   as_basename=false
29371 fi
29372
29373
29374 # Name of the executable.
29375 as_me=`$as_basename -- "$0" ||
29376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29377          X"$0" : 'X\(//\)$' \| \
29378          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29379 $as_echo X/"$0" |
29380     sed '/^.*\/\([^/][^/]*\)\/*$/{
29381             s//\1/
29382             q
29383           }
29384           /^X\/\(\/\/\)$/{
29385             s//\1/
29386             q
29387           }
29388           /^X\/\(\/\).*/{
29389             s//\1/
29390             q
29391           }
29392           s/.*/./; q'`
29393
29394 # CDPATH.
29395 $as_unset CDPATH
29396
29397
29398
29399   as_lineno_1=$LINENO
29400   as_lineno_2=$LINENO
29401   test "x$as_lineno_1" != "x$as_lineno_2" &&
29402   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29403
29404   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29405   # uniformly replaced by the line number.  The first 'sed' inserts a
29406   # line-number line after each line using $LINENO; the second 'sed'
29407   # does the real work.  The second script uses 'N' to pair each
29408   # line-number line with the line containing $LINENO, and appends
29409   # trailing '-' during substitution so that $LINENO is not a special
29410   # case at line end.
29411   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29412   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29413   # E. McMahon (1931-1989) for sed's syntax.  :-)
29414   sed -n '
29415     p
29416     /[$]LINENO/=
29417   ' <$as_myself |
29418     sed '
29419       s/[$]LINENO.*/&-/
29420       t lineno
29421       b
29422       :lineno
29423       N
29424       :loop
29425       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29426       t loop
29427       s/-\n.*//
29428     ' >$as_me.lineno &&
29429   chmod +x "$as_me.lineno" ||
29430     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29431    { (exit 1); exit 1; }; }
29432
29433   # Don't try to exec as it changes $[0], causing all sort of problems
29434   # (the dirname of $[0] is not the place where we might find the
29435   # original and so on.  Autoconf is especially sensitive to this).
29436   . "./$as_me.lineno"
29437   # Exit status is that of the last command.
29438   exit
29439 }
29440
29441
29442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29443   as_dirname=dirname
29444 else
29445   as_dirname=false
29446 fi
29447
29448 ECHO_C= ECHO_N= ECHO_T=
29449 case `echo -n x` in
29450 -n*)
29451   case `echo 'x\c'` in
29452   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29453   *)   ECHO_C='\c';;
29454   esac;;
29455 *)
29456   ECHO_N='-n';;
29457 esac
29458 if expr a : '\(a\)' >/dev/null 2>&1 &&
29459    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29460   as_expr=expr
29461 else
29462   as_expr=false
29463 fi
29464
29465 rm -f conf$$ conf$$.exe conf$$.file
29466 if test -d conf$$.dir; then
29467   rm -f conf$$.dir/conf$$.file
29468 else
29469   rm -f conf$$.dir
29470   mkdir conf$$.dir 2>/dev/null
29471 fi
29472 if (echo >conf$$.file) 2>/dev/null; then
29473   if ln -s conf$$.file conf$$ 2>/dev/null; then
29474     as_ln_s='ln -s'
29475     # ... but there are two gotchas:
29476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29478     # In both cases, we have to default to `cp -p'.
29479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29480       as_ln_s='cp -p'
29481   elif ln conf$$.file conf$$ 2>/dev/null; then
29482     as_ln_s=ln
29483   else
29484     as_ln_s='cp -p'
29485   fi
29486 else
29487   as_ln_s='cp -p'
29488 fi
29489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29490 rmdir conf$$.dir 2>/dev/null
29491
29492 if mkdir -p . 2>/dev/null; then
29493   as_mkdir_p=:
29494 else
29495   test -d ./-p && rmdir ./-p
29496   as_mkdir_p=false
29497 fi
29498
29499 if test -x / >/dev/null 2>&1; then
29500   as_test_x='test -x'
29501 else
29502   if ls -dL / >/dev/null 2>&1; then
29503     as_ls_L_option=L
29504   else
29505     as_ls_L_option=
29506   fi
29507   as_test_x='
29508     eval sh -c '\''
29509       if test -d "$1"; then
29510         test -d "$1/.";
29511       else
29512         case $1 in
29513         -*)set "./$1";;
29514         esac;
29515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29516         ???[sx]*):;;*)false;;esac;fi
29517     '\'' sh
29518   '
29519 fi
29520 as_executable_p=$as_test_x
29521
29522 # Sed expression to map a string onto a valid CPP name.
29523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29524
29525 # Sed expression to map a string onto a valid variable name.
29526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29527
29528
29529 exec 6>&1
29530
29531 # Save the log message, to keep $[0] and so on meaningful, and to
29532 # report actual input values of CONFIG_FILES etc. instead of their
29533 # values after options handling.
29534 ac_log="
29535 This file was extended by PostgreSQL $as_me 9.1devel, which was
29536 generated by GNU Autoconf 2.63.  Invocation command line was
29537
29538   CONFIG_FILES    = $CONFIG_FILES
29539   CONFIG_HEADERS  = $CONFIG_HEADERS
29540   CONFIG_LINKS    = $CONFIG_LINKS
29541   CONFIG_COMMANDS = $CONFIG_COMMANDS
29542   $ $0 $@
29543
29544 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29545 "
29546
29547 _ACEOF
29548
29549 case $ac_config_files in *"
29550 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29551 esac
29552
29553 case $ac_config_headers in *"
29554 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29555 esac
29556
29557
29558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29559 # Files that config.status was made for.
29560 config_files="$ac_config_files"
29561 config_headers="$ac_config_headers"
29562 config_links="$ac_config_links"
29563 config_commands="$ac_config_commands"
29564
29565 _ACEOF
29566
29567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29568 ac_cs_usage="\
29569 \`$as_me' instantiates files from templates according to the
29570 current configuration.
29571
29572 Usage: $0 [OPTION]... [FILE]...
29573
29574   -h, --help       print this help, then exit
29575   -V, --version    print version number and configuration settings, then exit
29576   -q, --quiet, --silent
29577                    do not print progress messages
29578   -d, --debug      don't remove temporary files
29579       --recheck    update $as_me by reconfiguring in the same conditions
29580       --file=FILE[:TEMPLATE]
29581                    instantiate the configuration file FILE
29582       --header=FILE[:TEMPLATE]
29583                    instantiate the configuration header FILE
29584
29585 Configuration files:
29586 $config_files
29587
29588 Configuration headers:
29589 $config_headers
29590
29591 Configuration links:
29592 $config_links
29593
29594 Configuration commands:
29595 $config_commands
29596
29597 Report bugs to <bug-autoconf@gnu.org>."
29598
29599 _ACEOF
29600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29601 ac_cs_version="\\
29602 PostgreSQL config.status 9.1devel
29603 configured by $0, generated by GNU Autoconf 2.63,
29604   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29605
29606 Copyright (C) 2008 Free Software Foundation, Inc.
29607 This config.status script is free software; the Free Software Foundation
29608 gives unlimited permission to copy, distribute and modify it."
29609
29610 ac_pwd='$ac_pwd'
29611 srcdir='$srcdir'
29612 MKDIR_P='$MKDIR_P'
29613 AWK='$AWK'
29614 test -n "\$AWK" || AWK=awk
29615 _ACEOF
29616
29617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29618 # The default lists apply if the user does not specify any file.
29619 ac_need_defaults=:
29620 while test $# != 0
29621 do
29622   case $1 in
29623   --*=*)
29624     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29625     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29626     ac_shift=:
29627     ;;
29628   *)
29629     ac_option=$1
29630     ac_optarg=$2
29631     ac_shift=shift
29632     ;;
29633   esac
29634
29635   case $ac_option in
29636   # Handling of the options.
29637   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29638     ac_cs_recheck=: ;;
29639   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29640     $as_echo "$ac_cs_version"; exit ;;
29641   --debug | --debu | --deb | --de | --d | -d )
29642     debug=: ;;
29643   --file | --fil | --fi | --f )
29644     $ac_shift
29645     case $ac_optarg in
29646     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29647     esac
29648     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29649     ac_need_defaults=false;;
29650   --header | --heade | --head | --hea )
29651     $ac_shift
29652     case $ac_optarg in
29653     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29654     esac
29655     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29656     ac_need_defaults=false;;
29657   --he | --h)
29658     # Conflict between --help and --header
29659     { $as_echo "$as_me: error: ambiguous option: $1
29660 Try \`$0 --help' for more information." >&2
29661    { (exit 1); exit 1; }; };;
29662   --help | --hel | -h )
29663     $as_echo "$ac_cs_usage"; exit ;;
29664   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29665   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29666     ac_cs_silent=: ;;
29667
29668   # This is an error.
29669   -*) { $as_echo "$as_me: error: unrecognized option: $1
29670 Try \`$0 --help' for more information." >&2
29671    { (exit 1); exit 1; }; } ;;
29672
29673   *) ac_config_targets="$ac_config_targets $1"
29674      ac_need_defaults=false ;;
29675
29676   esac
29677   shift
29678 done
29679
29680 ac_configure_extra_args=
29681
29682 if $ac_cs_silent; then
29683   exec 6>/dev/null
29684   ac_configure_extra_args="$ac_configure_extra_args --silent"
29685 fi
29686
29687 _ACEOF
29688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29689 if \$ac_cs_recheck; then
29690   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29691   shift
29692   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29693   CONFIG_SHELL='$SHELL'
29694   export CONFIG_SHELL
29695   exec "\$@"
29696 fi
29697
29698 _ACEOF
29699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29700 exec 5>>config.log
29701 {
29702   echo
29703   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29704 ## Running $as_me. ##
29705 _ASBOX
29706   $as_echo "$ac_log"
29707 } >&5
29708
29709 _ACEOF
29710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29711 _ACEOF
29712
29713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29714
29715 # Handling of arguments.
29716 for ac_config_target in $ac_config_targets
29717 do
29718   case $ac_config_target in
29719     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29720     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29721     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29722     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29723     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29724     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29725     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29726     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29727     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29728     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29729     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29730     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29731
29732   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29733 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29734    { (exit 1); exit 1; }; };;
29735   esac
29736 done
29737
29738
29739 # If the user did not use the arguments to specify the items to instantiate,
29740 # then the envvar interface is used.  Set only those that are not.
29741 # We use the long form for the default assignment because of an extremely
29742 # bizarre bug on SunOS 4.1.3.
29743 if $ac_need_defaults; then
29744   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29745   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29746   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29747   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29748 fi
29749
29750 # Have a temporary directory for convenience.  Make it in the build tree
29751 # simply because there is no reason against having it here, and in addition,
29752 # creating and moving files from /tmp can sometimes cause problems.
29753 # Hook for its removal unless debugging.
29754 # Note that there is a small window in which the directory will not be cleaned:
29755 # after its creation but before its name has been assigned to `$tmp'.
29756 $debug ||
29757 {
29758   tmp=
29759   trap 'exit_status=$?
29760   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29761 ' 0
29762   trap '{ (exit 1); exit 1; }' 1 2 13 15
29763 }
29764 # Create a (secure) tmp directory for tmp files.
29765
29766 {
29767   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29768   test -n "$tmp" && test -d "$tmp"
29769 }  ||
29770 {
29771   tmp=./conf$$-$RANDOM
29772   (umask 077 && mkdir "$tmp")
29773 } ||
29774 {
29775    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29776    { (exit 1); exit 1; }
29777 }
29778
29779 # Set up the scripts for CONFIG_FILES section.
29780 # No need to generate them if there are no CONFIG_FILES.
29781 # This happens for instance with `./config.status config.h'.
29782 if test -n "$CONFIG_FILES"; then
29783
29784
29785 ac_cr='\r'
29786 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29787 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29788   ac_cs_awk_cr='\\r'
29789 else
29790   ac_cs_awk_cr=$ac_cr
29791 fi
29792
29793 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29794 _ACEOF
29795
29796
29797 {
29798   echo "cat >conf$$subs.awk <<_ACEOF" &&
29799   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29800   echo "_ACEOF"
29801 } >conf$$subs.sh ||
29802   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29803 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29804    { (exit 1); exit 1; }; }
29805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29806 ac_delim='%!_!# '
29807 for ac_last_try in false false false false false :; do
29808   . ./conf$$subs.sh ||
29809     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29810 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29811    { (exit 1); exit 1; }; }
29812
29813   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29814   if test $ac_delim_n = $ac_delim_num; then
29815     break
29816   elif $ac_last_try; then
29817     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29818 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29819    { (exit 1); exit 1; }; }
29820   else
29821     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29822   fi
29823 done
29824 rm -f conf$$subs.sh
29825
29826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29827 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29828 _ACEOF
29829 sed -n '
29830 h
29831 s/^/S["/; s/!.*/"]=/
29832 p
29833 g
29834 s/^[^!]*!//
29835 :repl
29836 t repl
29837 s/'"$ac_delim"'$//
29838 t delim
29839 :nl
29840 h
29841 s/\(.\{148\}\).*/\1/
29842 t more1
29843 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29844 p
29845 n
29846 b repl
29847 :more1
29848 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29849 p
29850 g
29851 s/.\{148\}//
29852 t nl
29853 :delim
29854 h
29855 s/\(.\{148\}\).*/\1/
29856 t more2
29857 s/["\\]/\\&/g; s/^/"/; s/$/"/
29858 p
29859 b
29860 :more2
29861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29862 p
29863 g
29864 s/.\{148\}//
29865 t delim
29866 ' <conf$$subs.awk | sed '
29867 /^[^""]/{
29868   N
29869   s/\n//
29870 }
29871 ' >>$CONFIG_STATUS || ac_write_fail=1
29872 rm -f conf$$subs.awk
29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29874 _ACAWK
29875 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29876   for (key in S) S_is_set[key] = 1
29877   FS = "\a"
29878
29879 }
29880 {
29881   line = $ 0
29882   nfields = split(line, field, "@")
29883   substed = 0
29884   len = length(field[1])
29885   for (i = 2; i < nfields; i++) {
29886     key = field[i]
29887     keylen = length(key)
29888     if (S_is_set[key]) {
29889       value = S[key]
29890       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29891       len += length(value) + length(field[++i])
29892       substed = 1
29893     } else
29894       len += 1 + keylen
29895   }
29896
29897   print line
29898 }
29899
29900 _ACAWK
29901 _ACEOF
29902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29903 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29904   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29905 else
29906   cat
29907 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29908   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29909 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29910    { (exit 1); exit 1; }; }
29911 _ACEOF
29912
29913 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29914 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29915 # trailing colons and then remove the whole line if VPATH becomes empty
29916 # (actually we leave an empty line to preserve line numbers).
29917 if test "x$srcdir" = x.; then
29918   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29919 s/:*\$(srcdir):*/:/
29920 s/:*\${srcdir}:*/:/
29921 s/:*@srcdir@:*/:/
29922 s/^\([^=]*=[     ]*\):*/\1/
29923 s/:*$//
29924 s/^[^=]*=[       ]*$//
29925 }'
29926 fi
29927
29928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29929 fi # test -n "$CONFIG_FILES"
29930
29931 # Set up the scripts for CONFIG_HEADERS section.
29932 # No need to generate them if there are no CONFIG_HEADERS.
29933 # This happens for instance with `./config.status Makefile'.
29934 if test -n "$CONFIG_HEADERS"; then
29935 cat >"$tmp/defines.awk" <<\_ACAWK ||
29936 BEGIN {
29937 _ACEOF
29938
29939 # Transform confdefs.h into an awk script `defines.awk', embedded as
29940 # here-document in config.status, that substitutes the proper values into
29941 # config.h.in to produce config.h.
29942
29943 # Create a delimiter string that does not exist in confdefs.h, to ease
29944 # handling of long lines.
29945 ac_delim='%!_!# '
29946 for ac_last_try in false false :; do
29947   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29948   if test -z "$ac_t"; then
29949     break
29950   elif $ac_last_try; then
29951     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29952 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29953    { (exit 1); exit 1; }; }
29954   else
29955     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29956   fi
29957 done
29958
29959 # For the awk script, D is an array of macro values keyed by name,
29960 # likewise P contains macro parameters if any.  Preserve backslash
29961 # newline sequences.
29962
29963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29964 sed -n '
29965 s/.\{148\}/&'"$ac_delim"'/g
29966 t rset
29967 :rset
29968 s/^[     ]*#[    ]*define[       ][      ]*/ /
29969 t def
29970 d
29971 :def
29972 s/\\$//
29973 t bsnl
29974 s/["\\]/\\&/g
29975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29976 D["\1"]=" \3"/p
29977 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29978 d
29979 :bsnl
29980 s/["\\]/\\&/g
29981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29982 D["\1"]=" \3\\\\\\n"\\/p
29983 t cont
29984 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29985 t cont
29986 d
29987 :cont
29988 n
29989 s/.\{148\}/&'"$ac_delim"'/g
29990 t clear
29991 :clear
29992 s/\\$//
29993 t bsnlc
29994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29995 d
29996 :bsnlc
29997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29998 b cont
29999 ' <confdefs.h | sed '
30000 s/'"$ac_delim"'/"\\\
30001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30002
30003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30004   for (key in D) D_is_set[key] = 1
30005   FS = "\a"
30006 }
30007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30008   line = \$ 0
30009   split(line, arg, " ")
30010   if (arg[1] == "#") {
30011     defundef = arg[2]
30012     mac1 = arg[3]
30013   } else {
30014     defundef = substr(arg[1], 2)
30015     mac1 = arg[2]
30016   }
30017   split(mac1, mac2, "(") #)
30018   macro = mac2[1]
30019   prefix = substr(line, 1, index(line, defundef) - 1)
30020   if (D_is_set[macro]) {
30021     # Preserve the white space surrounding the "#".
30022     print prefix "define", macro P[macro] D[macro]
30023     next
30024   } else {
30025     # Replace #undef with comments.  This is necessary, for example,
30026     # in the case of _POSIX_SOURCE, which is predefined and required
30027     # on some systems where configure will not decide to define it.
30028     if (defundef == "undef") {
30029       print "/*", prefix defundef, macro, "*/"
30030       next
30031     }
30032   }
30033 }
30034 { print }
30035 _ACAWK
30036 _ACEOF
30037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30038   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30039 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30040    { (exit 1); exit 1; }; }
30041 fi # test -n "$CONFIG_HEADERS"
30042
30043
30044 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30045 shift
30046 for ac_tag
30047 do
30048   case $ac_tag in
30049   :[FHLC]) ac_mode=$ac_tag; continue;;
30050   esac
30051   case $ac_mode$ac_tag in
30052   :[FHL]*:*);;
30053   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30054 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30055    { (exit 1); exit 1; }; };;
30056   :[FH]-) ac_tag=-:-;;
30057   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30058   esac
30059   ac_save_IFS=$IFS
30060   IFS=:
30061   set x $ac_tag
30062   IFS=$ac_save_IFS
30063   shift
30064   ac_file=$1
30065   shift
30066
30067   case $ac_mode in
30068   :L) ac_source=$1;;
30069   :[FH])
30070     ac_file_inputs=
30071     for ac_f
30072     do
30073       case $ac_f in
30074       -) ac_f="$tmp/stdin";;
30075       *) # Look for the file first in the build tree, then in the source tree
30076          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30077          # because $ac_f cannot contain `:'.
30078          test -f "$ac_f" ||
30079            case $ac_f in
30080            [\\/$]*) false;;
30081            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30082            esac ||
30083            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30084 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30085    { (exit 1); exit 1; }; };;
30086       esac
30087       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30088       ac_file_inputs="$ac_file_inputs '$ac_f'"
30089     done
30090
30091     # Let's still pretend it is `configure' which instantiates (i.e., don't
30092     # use $as_me), people would be surprised to read:
30093     #    /* config.h.  Generated by config.status.  */
30094     configure_input='Generated from '`
30095           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30096         `' by configure.'
30097     if test x"$ac_file" != x-; then
30098       configure_input="$ac_file.  $configure_input"
30099       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30100 $as_echo "$as_me: creating $ac_file" >&6;}
30101     fi
30102     # Neutralize special characters interpreted by sed in replacement strings.
30103     case $configure_input in #(
30104     *\&* | *\|* | *\\* )
30105        ac_sed_conf_input=`$as_echo "$configure_input" |
30106        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30107     *) ac_sed_conf_input=$configure_input;;
30108     esac
30109
30110     case $ac_tag in
30111     *:-:* | *:-) cat >"$tmp/stdin" \
30112       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30113 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30114    { (exit 1); exit 1; }; } ;;
30115     esac
30116     ;;
30117   esac
30118
30119   ac_dir=`$as_dirname -- "$ac_file" ||
30120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30121          X"$ac_file" : 'X\(//\)[^/]' \| \
30122          X"$ac_file" : 'X\(//\)$' \| \
30123          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30124 $as_echo X"$ac_file" |
30125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30126             s//\1/
30127             q
30128           }
30129           /^X\(\/\/\)[^/].*/{
30130             s//\1/
30131             q
30132           }
30133           /^X\(\/\/\)$/{
30134             s//\1/
30135             q
30136           }
30137           /^X\(\/\).*/{
30138             s//\1/
30139             q
30140           }
30141           s/.*/./; q'`
30142   { as_dir="$ac_dir"
30143   case $as_dir in #(
30144   -*) as_dir=./$as_dir;;
30145   esac
30146   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30147     as_dirs=
30148     while :; do
30149       case $as_dir in #(
30150       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30151       *) as_qdir=$as_dir;;
30152       esac
30153       as_dirs="'$as_qdir' $as_dirs"
30154       as_dir=`$as_dirname -- "$as_dir" ||
30155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30156          X"$as_dir" : 'X\(//\)[^/]' \| \
30157          X"$as_dir" : 'X\(//\)$' \| \
30158          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30159 $as_echo X"$as_dir" |
30160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30161             s//\1/
30162             q
30163           }
30164           /^X\(\/\/\)[^/].*/{
30165             s//\1/
30166             q
30167           }
30168           /^X\(\/\/\)$/{
30169             s//\1/
30170             q
30171           }
30172           /^X\(\/\).*/{
30173             s//\1/
30174             q
30175           }
30176           s/.*/./; q'`
30177       test -d "$as_dir" && break
30178     done
30179     test -z "$as_dirs" || eval "mkdir $as_dirs"
30180   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30181 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30182    { (exit 1); exit 1; }; }; }
30183   ac_builddir=.
30184
30185 case "$ac_dir" in
30186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30187 *)
30188   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30189   # A ".." for each directory in $ac_dir_suffix.
30190   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30191   case $ac_top_builddir_sub in
30192   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30193   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30194   esac ;;
30195 esac
30196 ac_abs_top_builddir=$ac_pwd
30197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30198 # for backward compatibility:
30199 ac_top_builddir=$ac_top_build_prefix
30200
30201 case $srcdir in
30202   .)  # We are building in place.
30203     ac_srcdir=.
30204     ac_top_srcdir=$ac_top_builddir_sub
30205     ac_abs_top_srcdir=$ac_pwd ;;
30206   [\\/]* | ?:[\\/]* )  # Absolute name.
30207     ac_srcdir=$srcdir$ac_dir_suffix;
30208     ac_top_srcdir=$srcdir
30209     ac_abs_top_srcdir=$srcdir ;;
30210   *) # Relative name.
30211     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30212     ac_top_srcdir=$ac_top_build_prefix$srcdir
30213     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30214 esac
30215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30216
30217
30218   case $ac_mode in
30219   :F)
30220   #
30221   # CONFIG_FILE
30222   #
30223
30224   ac_MKDIR_P=$MKDIR_P
30225   case $MKDIR_P in
30226   [\\/$]* | ?:[\\/]* ) ;;
30227   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30228   esac
30229 _ACEOF
30230
30231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30232 # If the template does not know about datarootdir, expand it.
30233 # FIXME: This hack should be removed a few years after 2.60.
30234 ac_datarootdir_hack=; ac_datarootdir_seen=
30235
30236 ac_sed_dataroot='
30237 /datarootdir/ {
30238   p
30239   q
30240 }
30241 /@datadir@/p
30242 /@docdir@/p
30243 /@infodir@/p
30244 /@localedir@/p
30245 /@mandir@/p
30246 '
30247 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30248 *datarootdir*) ac_datarootdir_seen=yes;;
30249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30250   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30251 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30252 _ACEOF
30253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30254   ac_datarootdir_hack='
30255   s&@datadir@&$datadir&g
30256   s&@docdir@&$docdir&g
30257   s&@infodir@&$infodir&g
30258   s&@localedir@&$localedir&g
30259   s&@mandir@&$mandir&g
30260     s&\\\${datarootdir}&$datarootdir&g' ;;
30261 esac
30262 _ACEOF
30263
30264 # Neutralize VPATH when `$srcdir' = `.'.
30265 # Shell code in configure.ac might set extrasub.
30266 # FIXME: do we really want to maintain this feature?
30267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30268 ac_sed_extra="$ac_vpsub
30269 $extrasub
30270 _ACEOF
30271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30272 :t
30273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30274 s|@configure_input@|$ac_sed_conf_input|;t t
30275 s&@top_builddir@&$ac_top_builddir_sub&;t t
30276 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30277 s&@srcdir@&$ac_srcdir&;t t
30278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30279 s&@top_srcdir@&$ac_top_srcdir&;t t
30280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30281 s&@builddir@&$ac_builddir&;t t
30282 s&@abs_builddir@&$ac_abs_builddir&;t t
30283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30284 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30285 $ac_datarootdir_hack
30286 "
30287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30288   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30289 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30290    { (exit 1); exit 1; }; }
30291
30292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30293   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30294   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30295   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30296 which seems to be undefined.  Please make sure it is defined." >&5
30297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30298 which seems to be undefined.  Please make sure it is defined." >&2;}
30299
30300   rm -f "$tmp/stdin"
30301   case $ac_file in
30302   -) cat "$tmp/out" && rm -f "$tmp/out";;
30303   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30304   esac \
30305   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30306 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30307    { (exit 1); exit 1; }; }
30308  ;;
30309   :H)
30310   #
30311   # CONFIG_HEADER
30312   #
30313   if test x"$ac_file" != x-; then
30314     {
30315       $as_echo "/* $configure_input  */" \
30316       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30317     } >"$tmp/config.h" \
30318       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30319 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30320    { (exit 1); exit 1; }; }
30321     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30322       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30324     else
30325       rm -f "$ac_file"
30326       mv "$tmp/config.h" "$ac_file" \
30327         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30329    { (exit 1); exit 1; }; }
30330     fi
30331   else
30332     $as_echo "/* $configure_input  */" \
30333       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30334       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30335 $as_echo "$as_me: error: could not create -" >&2;}
30336    { (exit 1); exit 1; }; }
30337   fi
30338  ;;
30339   :L)
30340   #
30341   # CONFIG_LINK
30342   #
30343
30344   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30345     :
30346   else
30347     # Prefer the file from the source tree if names are identical.
30348     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30349       ac_source=$srcdir/$ac_source
30350     fi
30351
30352     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30353 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30354
30355     if test ! -r "$ac_source"; then
30356       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30357 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30358    { (exit 1); exit 1; }; }
30359     fi
30360     rm -f "$ac_file"
30361
30362     # Try a relative symlink, then a hard link, then a copy.
30363     case $srcdir in
30364     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30365         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30366     esac
30367     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30368       ln "$ac_source" "$ac_file" 2>/dev/null ||
30369       cp -p "$ac_source" "$ac_file" ||
30370       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30371 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30372    { (exit 1); exit 1; }; }
30373   fi
30374  ;;
30375   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30376 $as_echo "$as_me: executing $ac_file commands" >&6;}
30377  ;;
30378   esac
30379
30380
30381   case $ac_file$ac_mode in
30382     "check_win32_symlinks":C)
30383 # Links sometimes fail undetected on Mingw -
30384 # so here we detect it and warn the user
30385 for FILE in $CONFIG_LINKS
30386  do
30387         # test -e works for symlinks in the MinGW console
30388         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30389 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30390  done
30391  ;;
30392     "src/include/pg_config.h":H)
30393 # Update timestamp for pg_config.h (see Makefile.global)
30394 echo >src/include/stamp-h
30395  ;;
30396     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30397
30398   esac
30399 done # for ac_tag
30400
30401
30402 { (exit 0); exit 0; }
30403 _ACEOF
30404 chmod +x $CONFIG_STATUS
30405 ac_clean_files=$ac_clean_files_save
30406
30407 test $ac_write_fail = 0 ||
30408   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30409 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30410    { (exit 1); exit 1; }; }
30411
30412
30413 # configure is writing to config.log, and then calls config.status.
30414 # config.status does its own redirection, appending to config.log.
30415 # Unfortunately, on DOS this fails, as config.log is still kept open
30416 # by configure, so config.status won't be able to write to it; its
30417 # output is simply discarded.  So we exec the FD to /dev/null,
30418 # effectively closing config.log, so it can be properly (re)opened and
30419 # appended to by config.status.  When coming back to configure, we
30420 # need to make the FD available again.
30421 if test "$no_create" != yes; then
30422   ac_cs_success=:
30423   ac_config_status_args=
30424   test "$silent" = yes &&
30425     ac_config_status_args="$ac_config_status_args --quiet"
30426   exec 5>/dev/null
30427   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30428   exec 5>>config.log
30429   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30430   # would make configure fail if this is the last instruction.
30431   $ac_cs_success || { (exit 1); exit 1; }
30432 fi
30433 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30434   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30435 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30436 fi
30437