]> granicus.if.org Git - postgresql/blob - configure
Improve documentation for pg_largeobject changes.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 8.5devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='8.5devel'
602 PACKAGE_STRING='PostgreSQL 8.5devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 LIBOBJS
671 HAVE_IPV6
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 python_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
692 AWK
693 LN_S
694 TAR
695 WINDRES
696 DLLWRAP
697 DLLTOOL
698 AR
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
705 LD
706 LDFLAGS_SL
707 ELF_SYS
708 EGREP
709 GREP
710 with_zlib
711 with_system_tzdata
712 with_libxslt
713 with_libxml
714 XML2_CONFIG
715 with_ossp_uuid
716 with_openssl
717 with_bonjour
718 with_ldap
719 with_pam
720 krb_srvtab
721 with_krb5
722 with_gssapi
723 with_python
724 with_perl
725 with_tcl
726 enable_thread_safety
727 INCLUDES
728 autodepend
729 TAS
730 GCC
731 CPP
732 SUN_STUDIO_CC
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 enable_dtrace
741 DTRACEFLAGS
742 DTRACE
743 enable_coverage
744 GENHTML
745 LCOV
746 GCOV
747 enable_profiling
748 enable_debug
749 enable_rpath
750 enable_shared
751 default_port
752 WANTED_LANGUAGES
753 enable_nls
754 PORTNAME
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 PG_MAJORVERSION
764 configure_args
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_template
806 with_includes
807 with_libraries
808 with_libs
809 enable_integer_datetimes
810 enable_nls
811 with_pgport
812 enable_shared
813 enable_rpath
814 enable_spinlocks
815 enable_debug
816 enable_profiling
817 enable_coverage
818 enable_dtrace
819 with_blocksize
820 with_segsize
821 with_wal_blocksize
822 with_wal_segsize
823 with_CC
824 enable_depend
825 enable_cassert
826 enable_thread_safety
827 with_tcl
828 with_tclconfig
829 with_perl
830 with_python
831 with_gssapi
832 with_krb5
833 with_krb_srvnam
834 with_pam
835 with_ldap
836 with_bonjour
837 with_openssl
838 with_readline
839 with_libedit_preferred
840 with_ossp_uuid
841 with_libxml
842 with_libxslt
843 with_system_tzdata
844 with_zlib
845 with_gnu_ld
846 enable_float4_byval
847 enable_float8_byval
848 enable_largefile
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 LDFLAGS_SL
860 DOCBOOKSTYLE'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *)    ac_optarg=yes ;;
925   esac
926
927   # Accept the important Cygnus configure options, so we can diagnose typos.
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970    { (exit 1); exit 1; }; }
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997    { (exit 1); exit 1; }; }
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011   | --exec | --exe | --ex)
1012     ac_prev=exec_prefix ;;
1013   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015   | --exec=* | --exe=* | --ex=*)
1016     exec_prefix=$ac_optarg ;;
1017
1018   -gas | --gas | --ga | --g)
1019     # Obsolete; use --with-gas.
1020     with_gas=yes ;;
1021
1022   -help | --help | --hel | --he | -h)
1023     ac_init_help=long ;;
1024   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025     ac_init_help=recursive ;;
1026   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027     ac_init_help=short ;;
1028
1029   -host | --host | --hos | --ho)
1030     ac_prev=host_alias ;;
1031   -host=* | --host=* | --hos=* | --ho=*)
1032     host_alias=$ac_optarg ;;
1033
1034   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035     ac_prev=htmldir ;;
1036   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037   | --ht=*)
1038     htmldir=$ac_optarg ;;
1039
1040   -includedir | --includedir | --includedi | --included | --include \
1041   | --includ | --inclu | --incl | --inc)
1042     ac_prev=includedir ;;
1043   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044   | --includ=* | --inclu=* | --incl=* | --inc=*)
1045     includedir=$ac_optarg ;;
1046
1047   -infodir | --infodir | --infodi | --infod | --info | --inf)
1048     ac_prev=infodir ;;
1049   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050     infodir=$ac_optarg ;;
1051
1052   -libdir | --libdir | --libdi | --libd)
1053     ac_prev=libdir ;;
1054   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055     libdir=$ac_optarg ;;
1056
1057   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058   | --libexe | --libex | --libe)
1059     ac_prev=libexecdir ;;
1060   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061   | --libexe=* | --libex=* | --libe=*)
1062     libexecdir=$ac_optarg ;;
1063
1064   -localedir | --localedir | --localedi | --localed | --locale)
1065     ac_prev=localedir ;;
1066   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067     localedir=$ac_optarg ;;
1068
1069   -localstatedir | --localstatedir | --localstatedi | --localstated \
1070   | --localstate | --localstat | --localsta | --localst | --locals)
1071     ac_prev=localstatedir ;;
1072   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074     localstatedir=$ac_optarg ;;
1075
1076   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077     ac_prev=mandir ;;
1078   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079     mandir=$ac_optarg ;;
1080
1081   -nfp | --nfp | --nf)
1082     # Obsolete; use --without-fp.
1083     with_fp=no ;;
1084
1085   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086   | --no-cr | --no-c | -n)
1087     no_create=yes ;;
1088
1089   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091     no_recursion=yes ;;
1092
1093   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095   | --oldin | --oldi | --old | --ol | --o)
1096     ac_prev=oldincludedir ;;
1097   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100     oldincludedir=$ac_optarg ;;
1101
1102   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103     ac_prev=prefix ;;
1104   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105     prefix=$ac_optarg ;;
1106
1107   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108   | --program-pre | --program-pr | --program-p)
1109     ac_prev=program_prefix ;;
1110   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112     program_prefix=$ac_optarg ;;
1113
1114   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115   | --program-suf | --program-su | --program-s)
1116     ac_prev=program_suffix ;;
1117   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119     program_suffix=$ac_optarg ;;
1120
1121   -program-transform-name | --program-transform-name \
1122   | --program-transform-nam | --program-transform-na \
1123   | --program-transform-n | --program-transform- \
1124   | --program-transform | --program-transfor \
1125   | --program-transfo | --program-transf \
1126   | --program-trans | --program-tran \
1127   | --progr-tra | --program-tr | --program-t)
1128     ac_prev=program_transform_name ;;
1129   -program-transform-name=* | --program-transform-name=* \
1130   | --program-transform-nam=* | --program-transform-na=* \
1131   | --program-transform-n=* | --program-transform-=* \
1132   | --program-transform=* | --program-transfor=* \
1133   | --program-transfo=* | --program-transf=* \
1134   | --program-trans=* | --program-tran=* \
1135   | --progr-tra=* | --program-tr=* | --program-t=*)
1136     program_transform_name=$ac_optarg ;;
1137
1138   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139     ac_prev=pdfdir ;;
1140   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141     pdfdir=$ac_optarg ;;
1142
1143   -psdir | --psdir | --psdi | --psd | --ps)
1144     ac_prev=psdir ;;
1145   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146     psdir=$ac_optarg ;;
1147
1148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149   | -silent | --silent | --silen | --sile | --sil)
1150     silent=yes ;;
1151
1152   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153     ac_prev=sbindir ;;
1154   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155   | --sbi=* | --sb=*)
1156     sbindir=$ac_optarg ;;
1157
1158   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160   | --sharedst | --shareds | --shared | --share | --shar \
1161   | --sha | --sh)
1162     ac_prev=sharedstatedir ;;
1163   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166   | --sha=* | --sh=*)
1167     sharedstatedir=$ac_optarg ;;
1168
1169   -site | --site | --sit)
1170     ac_prev=site ;;
1171   -site=* | --site=* | --sit=*)
1172     site=$ac_optarg ;;
1173
1174   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175     ac_prev=srcdir ;;
1176   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177     srcdir=$ac_optarg ;;
1178
1179   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180   | --syscon | --sysco | --sysc | --sys | --sy)
1181     ac_prev=sysconfdir ;;
1182   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184     sysconfdir=$ac_optarg ;;
1185
1186   -target | --target | --targe | --targ | --tar | --ta | --t)
1187     ac_prev=target_alias ;;
1188   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189     target_alias=$ac_optarg ;;
1190
1191   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192     verbose=yes ;;
1193
1194   -version | --version | --versio | --versi | --vers | -V)
1195     ac_init_version=: ;;
1196
1197   -with-* | --with-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219    { (exit 1); exit 1; }; }
1220     ac_useropt_orig=$ac_useropt
1221     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222     case $ac_user_opts in
1223       *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227          ac_unrecognized_sep=', ';;
1228     esac
1229     eval with_$ac_useropt=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281   case $enable_option_checking in
1282     no) ;;
1283     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284    { (exit 1); exit 1; }; } ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308    { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323     If a cross compiler is detected then cross compile mode will be used." >&2
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339    { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342    { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$as_myself" : 'X\(//\)[^/]' \| \
1352          X"$as_myself" : 'X\(//\)$' \| \
1353          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387    { (exit 1); exit 1; }; }
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of PostgreSQL 8.5devel:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --disable-integer-datetimes
1487                           disable 64-bit integer date/time support
1488   --enable-nls[=LANGUAGES]
1489                           enable Native Language Support
1490   --disable-shared        do not build shared libraries
1491   --disable-rpath         do not embed shared library search path in
1492                           executables
1493   --disable-spinlocks     do not use spinlocks
1494   --enable-debug          build with debugging symbols (-g)
1495   --enable-profiling      build with profiling enabled
1496   --enable-coverage       build with coverage testing instrumentation
1497   --enable-dtrace         build with DTrace support
1498   --enable-depend         turn on automatic dependency tracking
1499   --enable-cassert        enable assertion checks (for debugging)
1500   --disable-thread-safety disable thread-safety in client libraries
1501   --disable-float4-byval  disable float4 passed by value
1502   --disable-float8-byval  disable float8 passed by value
1503   --disable-largefile     omit support for large files
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-template=NAME    override operating system template
1509   --with-includes=DIRS    look for additional header files in DIRS
1510   --with-libraries=DIRS   look for additional libraries in DIRS
1511   --with-libs=DIRS        alternative spelling of --with-libraries
1512   --with-pgport=PORTNUM   set default port number [5432]
1513   --with-blocksize=BLOCKSIZE
1514                           set table block size in kB [8]
1515   --with-segsize=SEGSIZE  set table segment size in GB [1]
1516   --with-wal-blocksize=BLOCKSIZE
1517                           set WAL block size in kB [8]
1518   --with-wal-segsize=SEGSIZE
1519                           set WAL segment size in MB [16]
1520   --with-CC=CMD           set compiler (deprecated)
1521   --with-tcl              build Tcl modules (PL/Tcl)
1522   --with-tclconfig=DIR    tclConfig.sh is in DIR
1523   --with-perl             build Perl modules (PL/Perl)
1524   --with-python           build Python modules (PL/Python)
1525   --with-gssapi           build with GSSAPI support
1526   --with-krb5             build with Kerberos 5 support
1527   --with-krb-srvnam=NAME  default service principal name in Kerberos
1528                           [postgres]
1529   --with-pam              build with PAM support
1530   --with-ldap             build with LDAP support
1531   --with-bonjour          build with Bonjour support
1532   --with-openssl          build with OpenSSL support
1533   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1534   --with-libedit-preferred
1535                           prefer BSD Libedit over GNU Readline
1536   --with-ossp-uuid        use OSSP UUID library when building
1537                           contrib/uuid-ossp
1538   --with-libxml           build with XML support
1539   --with-libxslt          use XSLT support when building contrib/xml2
1540   --with-system-tzdata=DIR
1541                           use system time zone data in DIR
1542   --without-zlib          do not use Zlib
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   LDFLAGS_SL  linker flags for shared library linking
1555   DOCBOOKSTYLE
1556               location of DocBook stylesheets
1557
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 Report bugs to <pgsql-bugs@postgresql.org>.
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567   # If there are subdirs, report their specific --help.
1568   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569     test -d "$ac_dir" ||
1570       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571       continue
1572     ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578   # A ".." for each directory in $ac_dir_suffix.
1579   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580   case $ac_top_builddir_sub in
1581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583   esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591   .)  # We are building in place.
1592     ac_srcdir=.
1593     ac_top_srcdir=$ac_top_builddir_sub
1594     ac_abs_top_srcdir=$ac_pwd ;;
1595   [\\/]* | ?:[\\/]* )  # Absolute name.
1596     ac_srcdir=$srcdir$ac_dir_suffix;
1597     ac_top_srcdir=$srcdir
1598     ac_abs_top_srcdir=$srcdir ;;
1599   *) # Relative name.
1600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601     ac_top_srcdir=$ac_top_build_prefix$srcdir
1602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606     cd "$ac_dir" || { ac_status=$?; continue; }
1607     # Check for guested configure.
1608     if test -f "$ac_srcdir/configure.gnu"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611     elif test -f "$ac_srcdir/configure"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure" --help=recursive
1614     else
1615       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616     fi || ac_status=$?
1617     cd "$ac_pwd" || { ac_status=$?; break; }
1618   done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623   cat <<\_ACEOF
1624 PostgreSQL configure 8.5devel
1625 generated by GNU Autoconf 2.63
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631
1632 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1633 _ACEOF
1634   exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by PostgreSQL $as_me 8.5devel, which was
1641 generated by GNU Autoconf 2.63.  Invocation command line was
1642
1643   $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1661
1662 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1663 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1666 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1667 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1668 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   $as_echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704   for ac_arg
1705   do
1706     case $ac_arg in
1707     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709     | -silent | --silent | --silen | --sile | --sil)
1710       continue ;;
1711     *\'*)
1712       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713     esac
1714     case $ac_pass in
1715     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716     2)
1717       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718       if test $ac_must_keep_next = true; then
1719         ac_must_keep_next=false # Got value, back to normal.
1720       else
1721         case $ac_arg in
1722           *=* | --config-cache | -C | -disable-* | --disable-* \
1723           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725           | -with-* | --with-* | -without-* | --without-* | --x)
1726             case "$ac_configure_args0 " in
1727               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728             esac
1729             ;;
1730           -* ) ac_must_keep_next=true ;;
1731         esac
1732       fi
1733       ac_configure_args="$ac_configure_args '$ac_arg'"
1734       ;;
1735     esac
1736   done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log.  We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747   # Save into config.log some information that might help in debugging.
1748   {
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756     echo
1757     # The following way of writing the cache mishandles newlines in values,
1758 (
1759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760     eval ac_val=\$$ac_var
1761     case $ac_val in #(
1762     *${as_nl}*)
1763       case $ac_var in #(
1764       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1766       esac
1767       case $ac_var in #(
1768       _ | IFS | as_nl) ;; #(
1769       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770       *) $as_unset $ac_var ;;
1771       esac ;;
1772     esac
1773   done
1774   (set) 2>&1 |
1775     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776     *${as_nl}ac_space=\ *)
1777       sed -n \
1778         "s/'\''/'\''\\\\'\'''\''/g;
1779           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1780       ;; #(
1781     *)
1782       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783       ;;
1784     esac |
1785     sort
1786 )
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1793 _ASBOX
1794     echo
1795     for ac_var in $ac_subst_vars
1796     do
1797       eval ac_val=\$$ac_var
1798       case $ac_val in
1799       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800       esac
1801       $as_echo "$ac_var='\''$ac_val'\''"
1802     done | sort
1803     echo
1804
1805     if test -n "$ac_subst_files"; then
1806       cat <<\_ASBOX
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1810 _ASBOX
1811       echo
1812       for ac_var in $ac_subst_files
1813       do
1814         eval ac_val=\$$ac_var
1815         case $ac_val in
1816         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817         esac
1818         $as_echo "$ac_var='\''$ac_val'\''"
1819       done | sort
1820       echo
1821     fi
1822
1823     if test -s confdefs.h; then
1824       cat <<\_ASBOX
1825 ## ----------- ##
1826 ## confdefs.h. ##
1827 ## ----------- ##
1828 _ASBOX
1829       echo
1830       cat confdefs.h
1831       echo
1832     fi
1833     test "$ac_signal" != 0 &&
1834       $as_echo "$as_me: caught signal $ac_signal"
1835     $as_echo "$as_me: exit $exit_status"
1836   } >&5
1837   rm -f core *.core core.conftest.* &&
1838     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1839     exit $exit_status
1840 ' 0
1841 for ac_signal in 1 2 13 15; do
1842   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 done
1844 ac_signal=0
1845
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1848
1849 # Predefined preprocessor variables.
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 _ACEOF
1874
1875
1876 # Let the site file select an alternate cache file if it wants to.
1877 # Prefer an explicitly selected file to automatically selected ones.
1878 ac_site_file1=NONE
1879 ac_site_file2=NONE
1880 if test -n "$CONFIG_SITE"; then
1881   ac_site_file1=$CONFIG_SITE
1882 elif test "x$prefix" != xNONE; then
1883   ac_site_file1=$prefix/share/config.site
1884   ac_site_file2=$prefix/etc/config.site
1885 else
1886   ac_site_file1=$ac_default_prefix/share/config.site
1887   ac_site_file2=$ac_default_prefix/etc/config.site
1888 fi
1889 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1890 do
1891   test "x$ac_site_file" = xNONE && continue
1892   if test -r "$ac_site_file"; then
1893     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895     sed 's/^/| /' "$ac_site_file" >&5
1896     . "$ac_site_file"
1897   fi
1898 done
1899
1900 if test -r "$cache_file"; then
1901   # Some versions of bash will fail to source /dev/null (special
1902   # files actually), so we avoid doing that.
1903   if test -f "$cache_file"; then
1904     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 $as_echo "$as_me: loading cache $cache_file" >&6;}
1906     case $cache_file in
1907       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908       *)                      . "./$cache_file";;
1909     esac
1910   fi
1911 else
1912   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 $as_echo "$as_me: creating cache $cache_file" >&6;}
1914   >$cache_file
1915 fi
1916
1917 # Check that the precious variables saved in the cache have kept the same
1918 # value.
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922   eval ac_new_set=\$ac_env_${ac_var}_set
1923   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924   eval ac_new_val=\$ac_env_${ac_var}_value
1925   case $ac_old_set,$ac_new_set in
1926     set,)
1927       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,set)
1931       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,);;
1935     *)
1936       if test "x$ac_old_val" != "x$ac_new_val"; then
1937         # differences in whitespace do not lead to failure.
1938         ac_old_val_w=`echo x $ac_old_val`
1939         ac_new_val_w=`echo x $ac_new_val`
1940         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943           ac_cache_corrupted=:
1944         else
1945           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947           eval $ac_var=\$ac_old_val
1948         fi
1949         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1950 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1951         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1952 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006
2007
2008
2009
2010
2011
2012 ac_aux_dir=
2013 for ac_dir in config "$srcdir"/config; do
2014   if test -f "$ac_dir/install-sh"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/install-sh -c"
2017     break
2018   elif test -f "$ac_dir/install.sh"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/install.sh -c"
2021     break
2022   elif test -f "$ac_dir/shtool"; then
2023     ac_aux_dir=$ac_dir
2024     ac_install_sh="$ac_aux_dir/shtool install -c"
2025     break
2026   fi
2027 done
2028 if test -z "$ac_aux_dir"; then
2029   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2030 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2041
2042
2043
2044 configure_args=$ac_configure_args
2045
2046
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PG_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2057 _ACEOF
2058
2059
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064    { (exit 1); exit 1; }; }
2065
2066 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2067 $as_echo_n "checking build system type... " >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069   $as_echo_n "(cached) " >&6
2070 else
2071   ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077    { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 fi
2084 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 $as_echo "$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2087 *-*-*) ;;
2088 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2090    { (exit 1); exit 1; }; };;
2091 esac
2092 build=$ac_cv_build
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_build
2095 shift
2096 build_cpu=$1
2097 build_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 build_os=$*
2102 IFS=$ac_save_IFS
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2104
2105
2106 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2107 $as_echo_n "checking host system type... " >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109   $as_echo_n "(cached) " >&6
2110 else
2111   if test "x$host_alias" = x; then
2112   ac_cv_host=$ac_cv_build
2113 else
2114   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 fi
2121 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 $as_echo "$ac_cv_host" >&6; }
2123 case $ac_cv_host in
2124 *-*-*) ;;
2125 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2127    { (exit 1); exit 1; }; };;
2128 esac
2129 host=$ac_cv_host
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_host
2132 shift
2133 host_cpu=$1
2134 host_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 host_os=$*
2139 IFS=$ac_save_IFS
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2141
2142
2143
2144 template=
2145 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2146 $as_echo_n "checking which template to use... " >&6; }
2147
2148
2149
2150
2151 # Check whether --with-template was given.
2152 if test "${with_template+set}" = set; then
2153   withval=$with_template;
2154   case $withval in
2155     yes)
2156       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2157 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2158    { (exit 1); exit 1; }; }
2159       ;;
2160     no)
2161       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2162 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2163    { (exit 1); exit 1; }; }
2164       ;;
2165     *)
2166
2167   case $withval in
2168     list)   echo; ls "$srcdir/src/template"; exit;;
2169     *)      if test -f "$srcdir/src/template/$with_template" ; then
2170               template=$withval
2171             else
2172               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2173 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2174    { (exit 1); exit 1; }; }
2175             fi;;
2176   esac
2177
2178       ;;
2179   esac
2180
2181 else
2182
2183 # --with-template not given
2184
2185 case $host_os in
2186      aix*) template=aix ;;
2187     bsdi*) template=bsdi ;;
2188   cygwin*) template=cygwin ;;
2189   darwin*) template=darwin ;;
2190     dgux*) template=dgux ;;
2191  freebsd*) template=freebsd ;;
2192     hpux*) template=hpux ;;
2193     irix*) template=irix ;;
2194  linux*|gnu*|k*bsd*-gnu)
2195            template=linux ;;
2196    mingw*) template=win32 ;;
2197   netbsd*) template=netbsd ;;
2198 nextstep*) template=nextstep ;;
2199  openbsd*) template=openbsd ;;
2200      osf*) template=osf ;;
2201      sco*) template=sco ;;
2202  solaris*) template=solaris ;;
2203    sunos*) template=sunos4 ;;
2204  sysv4.2*)
2205         case $host_vendor in
2206           univel) template=univel ;;
2207         esac ;;
2208    sysv4*) template=svr4 ;;
2209    sysv5*) template=unixware ;;
2210   ultrix*) template=ultrix4 ;;
2211 esac
2212
2213   if test x"$template" = x"" ; then
2214     { { $as_echo "$as_me:$LINENO: error:
2215 *******************************************************************
2216 PostgreSQL has apparently not been ported to your platform yet.
2217 To try a manual configuration, look into the src/template directory
2218 for a similar platform and use the '--with-template=' option.
2219
2220 Please also contact <pgsql-bugs@postgresql.org> to see about
2221 rectifying this.  Include the above 'checking host system type...'
2222 line.
2223 *******************************************************************
2224 " >&5
2225 $as_echo "$as_me: error:
2226 *******************************************************************
2227 PostgreSQL has apparently not been ported to your platform yet.
2228 To try a manual configuration, look into the src/template directory
2229 for a similar platform and use the '--with-template=' option.
2230
2231 Please also contact <pgsql-bugs@postgresql.org> to see about
2232 rectifying this.  Include the above 'checking host system type...'
2233 line.
2234 *******************************************************************
2235 " >&2;}
2236    { (exit 1); exit 1; }; }
2237   fi
2238
2239
2240 fi
2241
2242
2243
2244 { $as_echo "$as_me:$LINENO: result: $template" >&5
2245 $as_echo "$template" >&6; }
2246
2247 PORTNAME=$template
2248
2249
2250 # Initialize default assumption that we do not need separate assembly code
2251 # for TAS (test-and-set).  This can be overridden by the template file
2252 # when it's executed.
2253 need_tas=no
2254 tas_file=dummy.s
2255
2256
2257
2258 ##
2259 ## Command line options
2260 ##
2261
2262 #
2263 # Add non-standard directories to the include path
2264 #
2265
2266
2267
2268 # Check whether --with-includes was given.
2269 if test "${with_includes+set}" = set; then
2270   withval=$with_includes;
2271   case $withval in
2272     yes)
2273       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2274 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2275    { (exit 1); exit 1; }; }
2276       ;;
2277     no)
2278       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2279 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2280    { (exit 1); exit 1; }; }
2281       ;;
2282     *)
2283
2284       ;;
2285   esac
2286
2287 fi
2288
2289
2290
2291
2292 #
2293 # Add non-standard directories to the library search path
2294 #
2295
2296
2297
2298 # Check whether --with-libraries was given.
2299 if test "${with_libraries+set}" = set; then
2300   withval=$with_libraries;
2301   case $withval in
2302     yes)
2303       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2304 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2305    { (exit 1); exit 1; }; }
2306       ;;
2307     no)
2308       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2309 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2310    { (exit 1); exit 1; }; }
2311       ;;
2312     *)
2313       LIBRARY_DIRS=$withval
2314       ;;
2315   esac
2316
2317 fi
2318
2319
2320
2321
2322
2323
2324 # Check whether --with-libs was given.
2325 if test "${with_libs+set}" = set; then
2326   withval=$with_libs;
2327   case $withval in
2328     yes)
2329       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2330 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2331    { (exit 1); exit 1; }; }
2332       ;;
2333     no)
2334       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2335 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2336    { (exit 1); exit 1; }; }
2337       ;;
2338     *)
2339       LIBRARY_DIRS=$withval
2340       ;;
2341   esac
2342
2343 fi
2344
2345
2346
2347
2348 #
2349 # 64-bit integer date/time storage: enabled by default.
2350 #
2351 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2352 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2353
2354
2355 # Check whether --enable-integer-datetimes was given.
2356 if test "${enable_integer_datetimes+set}" = set; then
2357   enableval=$enable_integer_datetimes;
2358   case $enableval in
2359     yes)
2360
2361 cat >>confdefs.h <<\_ACEOF
2362 #define USE_INTEGER_DATETIMES 1
2363 _ACEOF
2364
2365       ;;
2366     no)
2367       :
2368       ;;
2369     *)
2370       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2371 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2372    { (exit 1); exit 1; }; }
2373       ;;
2374   esac
2375
2376 else
2377   enable_integer_datetimes=yes
2378
2379 cat >>confdefs.h <<\_ACEOF
2380 #define USE_INTEGER_DATETIMES 1
2381 _ACEOF
2382
2383 fi
2384
2385
2386 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2387 $as_echo "$enable_integer_datetimes" >&6; }
2388
2389
2390 #
2391 # NLS
2392 #
2393 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2394 $as_echo_n "checking whether NLS is wanted... " >&6; }
2395
2396
2397 # Check whether --enable-nls was given.
2398 if test "${enable_nls+set}" = set; then
2399   enableval=$enable_nls;
2400   case $enableval in
2401     yes)
2402       :
2403       ;;
2404     no)
2405       :
2406       ;;
2407     *)
2408       enable_nls=yes
2409 WANTED_LANGUAGES=$enableval
2410       ;;
2411   esac
2412
2413 else
2414   enable_nls=no
2415 fi
2416
2417
2418
2419 if test "$enable_nls" = yes; then
2420
2421 cat >>confdefs.h <<\_ACEOF
2422 #define ENABLE_NLS 1
2423 _ACEOF
2424
2425 fi
2426
2427 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2428 $as_echo "$enable_nls" >&6; }
2429
2430
2431
2432 #
2433 # Default port number (--with-pgport), default 5432
2434 #
2435 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2436 $as_echo_n "checking for default port number... " >&6; }
2437
2438
2439
2440 # Check whether --with-pgport was given.
2441 if test "${with_pgport+set}" = set; then
2442   withval=$with_pgport;
2443   case $withval in
2444     yes)
2445       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2446 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2447    { (exit 1); exit 1; }; }
2448       ;;
2449     no)
2450       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2451 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2452    { (exit 1); exit 1; }; }
2453       ;;
2454     *)
2455       default_port=$withval
2456       ;;
2457   esac
2458
2459 else
2460   default_port=5432
2461 fi
2462
2463
2464 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2465 $as_echo "$default_port" >&6; }
2466 # Need both of these because some places want an integer and some a string
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define DEF_PGPORT ${default_port}
2470 _ACEOF
2471
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define DEF_PGPORT_STR "${default_port}"
2475 _ACEOF
2476
2477
2478
2479 #
2480 # Option to disable shared libraries
2481 #
2482
2483
2484 # Check whether --enable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486   enableval=$enable_shared;
2487   case $enableval in
2488     yes)
2489       :
2490       ;;
2491     no)
2492       :
2493       ;;
2494     *)
2495       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2496 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2497    { (exit 1); exit 1; }; }
2498       ;;
2499   esac
2500
2501 else
2502   enable_shared=yes
2503
2504 fi
2505
2506
2507
2508
2509 #
2510 # '-rpath'-like feature can be disabled
2511 #
2512
2513
2514 # Check whether --enable-rpath was given.
2515 if test "${enable_rpath+set}" = set; then
2516   enableval=$enable_rpath;
2517   case $enableval in
2518     yes)
2519       :
2520       ;;
2521     no)
2522       :
2523       ;;
2524     *)
2525       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2526 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2527    { (exit 1); exit 1; }; }
2528       ;;
2529   esac
2530
2531 else
2532   enable_rpath=yes
2533
2534 fi
2535
2536
2537
2538
2539 #
2540 # Spinlocks
2541 #
2542
2543
2544 # Check whether --enable-spinlocks was given.
2545 if test "${enable_spinlocks+set}" = set; then
2546   enableval=$enable_spinlocks;
2547   case $enableval in
2548     yes)
2549       :
2550       ;;
2551     no)
2552       :
2553       ;;
2554     *)
2555       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2556 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2557    { (exit 1); exit 1; }; }
2558       ;;
2559   esac
2560
2561 else
2562   enable_spinlocks=yes
2563
2564 fi
2565
2566
2567
2568 #
2569 # --enable-debug adds -g to compiler flags
2570 #
2571
2572
2573 # Check whether --enable-debug was given.
2574 if test "${enable_debug+set}" = set; then
2575   enableval=$enable_debug;
2576   case $enableval in
2577     yes)
2578       :
2579       ;;
2580     no)
2581       :
2582       ;;
2583     *)
2584       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2585 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2586    { (exit 1); exit 1; }; }
2587       ;;
2588   esac
2589
2590 else
2591   enable_debug=no
2592
2593 fi
2594
2595
2596
2597
2598 #
2599 # --enable-profiling enables gcc profiling
2600 #
2601
2602
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605   enableval=$enable_profiling;
2606   case $enableval in
2607     yes)
2608       :
2609       ;;
2610     no)
2611       :
2612       ;;
2613     *)
2614       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2615 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2616    { (exit 1); exit 1; }; }
2617       ;;
2618   esac
2619
2620 else
2621   enable_profiling=no
2622
2623 fi
2624
2625
2626
2627
2628 #
2629 # --enable-coverage enables generation of code coverage metrics with gcov
2630 #
2631
2632
2633 # Check whether --enable-coverage was given.
2634 if test "${enable_coverage+set}" = set; then
2635   enableval=$enable_coverage;
2636   case $enableval in
2637     yes)
2638       for ac_prog in gcov
2639 do
2640   # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_GCOV+set}" = set; then
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$GCOV"; then
2648   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_GCOV="$ac_prog"
2658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 GCOV=$ac_cv_prog_GCOV
2668 if test -n "$GCOV"; then
2669   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2670 $as_echo "$GCOV" >&6; }
2671 else
2672   { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677   test -n "$GCOV" && break
2678 done
2679
2680 if test -z "$GCOV"; then
2681   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2682 $as_echo "$as_me: error: gcov not found" >&2;}
2683    { (exit 1); exit 1; }; }
2684 fi
2685 for ac_prog in lcov
2686 do
2687   # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_LCOV+set}" = set; then
2692   $as_echo_n "(cached) " >&6
2693 else
2694   if test -n "$LCOV"; then
2695   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702   for ac_exec_ext in '' $ac_executable_extensions; do
2703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704     ac_cv_prog_LCOV="$ac_prog"
2705     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 LCOV=$ac_cv_prog_LCOV
2715 if test -n "$LCOV"; then
2716   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2717 $as_echo "$LCOV" >&6; }
2718 else
2719   { $as_echo "$as_me:$LINENO: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724   test -n "$LCOV" && break
2725 done
2726
2727 if test -z "$LCOV"; then
2728   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2729 $as_echo "$as_me: error: lcov not found" >&2;}
2730    { (exit 1); exit 1; }; }
2731 fi
2732 for ac_prog in genhtml
2733 do
2734   # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_GENHTML+set}" = set; then
2739   $as_echo_n "(cached) " >&6
2740 else
2741   if test -n "$GENHTML"; then
2742   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749   for ac_exec_ext in '' $ac_executable_extensions; do
2750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751     ac_cv_prog_GENHTML="$ac_prog"
2752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 GENHTML=$ac_cv_prog_GENHTML
2762 if test -n "$GENHTML"; then
2763   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2764 $as_echo "$GENHTML" >&6; }
2765 else
2766   { $as_echo "$as_me:$LINENO: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771   test -n "$GENHTML" && break
2772 done
2773
2774 if test -z "$GENHTML"; then
2775   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2776 $as_echo "$as_me: error: genhtml not found" >&2;}
2777    { (exit 1); exit 1; }; }
2778 fi
2779       ;;
2780     no)
2781       :
2782       ;;
2783     *)
2784       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2785 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2786    { (exit 1); exit 1; }; }
2787       ;;
2788   esac
2789
2790 else
2791   enable_coverage=no
2792
2793 fi
2794
2795
2796
2797
2798 #
2799 # DTrace
2800 #
2801
2802
2803 # Check whether --enable-dtrace was given.
2804 if test "${enable_dtrace+set}" = set; then
2805   enableval=$enable_dtrace;
2806   case $enableval in
2807     yes)
2808
2809 cat >>confdefs.h <<\_ACEOF
2810 #define ENABLE_DTRACE 1
2811 _ACEOF
2812
2813 for ac_prog in dtrace
2814 do
2815   # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_DTRACE+set}" = set; then
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$DTRACE"; then
2823   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_DTRACE="$ac_prog"
2833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 DTRACE=$ac_cv_prog_DTRACE
2843 if test -n "$DTRACE"; then
2844   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2845 $as_echo "$DTRACE" >&6; }
2846 else
2847   { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852   test -n "$DTRACE" && break
2853 done
2854
2855 if test -z "$DTRACE"; then
2856   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2857 $as_echo "$as_me: error: dtrace not found" >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861       ;;
2862     no)
2863       :
2864       ;;
2865     *)
2866       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2867 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2868    { (exit 1); exit 1; }; }
2869       ;;
2870   esac
2871
2872 else
2873   enable_dtrace=no
2874
2875 fi
2876
2877
2878
2879
2880 #
2881 # Block size
2882 #
2883 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2884 $as_echo_n "checking for block size... " >&6; }
2885
2886
2887
2888 # Check whether --with-blocksize was given.
2889 if test "${with_blocksize+set}" = set; then
2890   withval=$with_blocksize;
2891   case $withval in
2892     yes)
2893       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2894 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2895    { (exit 1); exit 1; }; }
2896       ;;
2897     no)
2898       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2899 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2900    { (exit 1); exit 1; }; }
2901       ;;
2902     *)
2903       blocksize=$withval
2904       ;;
2905   esac
2906
2907 else
2908   blocksize=8
2909 fi
2910
2911
2912 case ${blocksize} in
2913   1) BLCKSZ=1024;;
2914   2) BLCKSZ=2048;;
2915   4) BLCKSZ=4096;;
2916   8) BLCKSZ=8192;;
2917  16) BLCKSZ=16384;;
2918  32) BLCKSZ=32768;;
2919   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2920 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2921    { (exit 1); exit 1; }; }
2922 esac
2923 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2924 $as_echo "${blocksize}kB" >&6; }
2925
2926
2927 cat >>confdefs.h <<_ACEOF
2928 #define BLCKSZ ${BLCKSZ}
2929 _ACEOF
2930
2931
2932 #
2933 # Relation segment size
2934 #
2935 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2936 $as_echo_n "checking for segment size... " >&6; }
2937
2938
2939
2940 # Check whether --with-segsize was given.
2941 if test "${with_segsize+set}" = set; then
2942   withval=$with_segsize;
2943   case $withval in
2944     yes)
2945       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2946 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2947    { (exit 1); exit 1; }; }
2948       ;;
2949     no)
2950       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2951 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2952    { (exit 1); exit 1; }; }
2953       ;;
2954     *)
2955       segsize=$withval
2956       ;;
2957   esac
2958
2959 else
2960   segsize=1
2961 fi
2962
2963
2964 # this expression is set up to avoid unnecessary integer overflow
2965 # blocksize is already guaranteed to be a factor of 1024
2966 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2967 test $? -eq 0 || exit 1
2968 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2969 $as_echo "${segsize}GB" >&6; }
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define RELSEG_SIZE ${RELSEG_SIZE}
2974 _ACEOF
2975
2976
2977 #
2978 # WAL block size
2979 #
2980 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2981 $as_echo_n "checking for WAL block size... " >&6; }
2982
2983
2984
2985 # Check whether --with-wal-blocksize was given.
2986 if test "${with_wal_blocksize+set}" = set; then
2987   withval=$with_wal_blocksize;
2988   case $withval in
2989     yes)
2990       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2991 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2992    { (exit 1); exit 1; }; }
2993       ;;
2994     no)
2995       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2996 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2997    { (exit 1); exit 1; }; }
2998       ;;
2999     *)
3000       wal_blocksize=$withval
3001       ;;
3002   esac
3003
3004 else
3005   wal_blocksize=8
3006 fi
3007
3008
3009 case ${wal_blocksize} in
3010   1) XLOG_BLCKSZ=1024;;
3011   2) XLOG_BLCKSZ=2048;;
3012   4) XLOG_BLCKSZ=4096;;
3013   8) XLOG_BLCKSZ=8192;;
3014  16) XLOG_BLCKSZ=16384;;
3015  32) XLOG_BLCKSZ=32768;;
3016  64) XLOG_BLCKSZ=65536;;
3017   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3018 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3019    { (exit 1); exit 1; }; }
3020 esac
3021 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3022 $as_echo "${wal_blocksize}kB" >&6; }
3023
3024
3025 cat >>confdefs.h <<_ACEOF
3026 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3027 _ACEOF
3028
3029
3030 #
3031 # WAL segment size
3032 #
3033 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3034 $as_echo_n "checking for WAL segment size... " >&6; }
3035
3036
3037
3038 # Check whether --with-wal-segsize was given.
3039 if test "${with_wal_segsize+set}" = set; then
3040   withval=$with_wal_segsize;
3041   case $withval in
3042     yes)
3043       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3044 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3045    { (exit 1); exit 1; }; }
3046       ;;
3047     no)
3048       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3049 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3050    { (exit 1); exit 1; }; }
3051       ;;
3052     *)
3053       wal_segsize=$withval
3054       ;;
3055   esac
3056
3057 else
3058   wal_segsize=16
3059 fi
3060
3061
3062 case ${wal_segsize} in
3063   1) ;;
3064   2) ;;
3065   4) ;;
3066   8) ;;
3067  16) ;;
3068  32) ;;
3069  64) ;;
3070   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3071 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3072    { (exit 1); exit 1; }; }
3073 esac
3074 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3075 $as_echo "${wal_segsize}MB" >&6; }
3076
3077
3078 cat >>confdefs.h <<_ACEOF
3079 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3080 _ACEOF
3081
3082
3083 #
3084 # C compiler
3085 #
3086
3087 # For historical reasons you can also use --with-CC to specify the C compiler
3088 # to use, although the standard way to do this is to set the CC environment
3089 # variable.
3090
3091
3092
3093 # Check whether --with-CC was given.
3094 if test "${with_CC+set}" = set; then
3095   withval=$with_CC;
3096   case $withval in
3097     yes)
3098       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3099 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3100    { (exit 1); exit 1; }; }
3101       ;;
3102     no)
3103       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3104 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3105    { (exit 1); exit 1; }; }
3106       ;;
3107     *)
3108       CC=$with_CC
3109       ;;
3110   esac
3111
3112 fi
3113
3114
3115
3116 case $template in
3117   aix) pgac_cc_list="gcc xlc";;
3118  irix) pgac_cc_list="cc";; # no gcc
3119     *) pgac_cc_list="gcc cc";;
3120 esac
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128   for ac_prog in $pgac_cc_list
3129   do
3130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$CC"; then
3138   ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167     test -n "$CC" && break
3168   done
3169 fi
3170 if test -z "$CC"; then
3171   ac_ct_CC=$CC
3172   for ac_prog in $pgac_cc_list
3173 do
3174   # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -n "$ac_ct_CC"; then
3182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191     ac_cv_prog_ac_ct_CC="$ac_prog"
3192     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3205 else
3206   { $as_echo "$as_me:$LINENO: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211   test -n "$ac_ct_CC" && break
3212 done
3213
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223     CC=$ac_ct_CC
3224   fi
3225 fi
3226
3227
3228 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details." >&5
3232 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&2;}
3234    { (exit 1); exit 1; }; }; }
3235
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 { (ac_try="$ac_compiler --version >&5"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247   (eval "$ac_compiler --version >&5") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }
3251 { (ac_try="$ac_compiler -v >&5"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258   (eval "$ac_compiler -v >&5") 2>&5
3259   ac_status=$?
3260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269   (eval "$ac_compiler -V >&5") 2>&5
3270   ac_status=$?
3271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }
3273
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300
3301 ac_rmfiles=
3302 for ac_file in $ac_files
3303 do
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307   esac
3308 done
3309 rm -f $ac_rmfiles
3310
3311 if { (ac_try="$ac_link_default"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318   (eval "$ac_link_default") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; then
3322   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3326 # Autoconf.
3327 for ac_file in $ac_files ''
3328 do
3329   test -f "$ac_file" || continue
3330   case $ac_file in
3331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332         ;;
3333     [ab].out )
3334         # We found the default executable, but exeext='' is most
3335         # certainly right.
3336         break;;
3337     *.* )
3338         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339         then :; else
3340            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341         fi
3342         # We set ac_cv_exeext here because the later test for it is not
3343         # safe: cross compilers may not add the suffix if given an `-o'
3344         # argument, so we may need to know it at that point already.
3345         # Even if this section looks crufty: it has the advantage of
3346         # actually working.
3347         break;;
3348     * )
3349         break;;
3350   esac
3351 done
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353
3354 else
3355   ac_file=''
3356 fi
3357
3358 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3359 $as_echo "$ac_file" >&6; }
3360 if test -z "$ac_file"; then
3361   $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3367 See \`config.log' for more details." >&5
3368 $as_echo "$as_me: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&2;}
3370    { (exit 77); exit 77; }; }; }
3371 fi
3372
3373 ac_exeext=$ac_cv_exeext
3374
3375 # Check that the compiler produces executables we can run.  If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3378 $as_echo_n "checking whether the C compiler works... " >&6; }
3379 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3380 # If not cross compiling, check that we can run a simple program.
3381 if test "$cross_compiling" != yes; then
3382   if { ac_try='./$ac_file'
3383   { (case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388 $as_echo "$ac_try_echo") >&5
3389   (eval "$ac_try") 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; }; then
3393     cross_compiling=no
3394   else
3395     if test "$cross_compiling" = maybe; then
3396         cross_compiling=yes
3397     else
3398         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&2;}
3406    { (exit 1); exit 1; }; }; }
3407     fi
3408   fi
3409 fi
3410 { $as_echo "$as_me:$LINENO: result: yes" >&5
3411 $as_echo "yes" >&6; }
3412
3413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3414 ac_clean_files=$ac_clean_files_save
3415 # Check that the compiler produces executables we can run.  If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { (ac_try="$ac_link"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430 $as_echo "$ac_try_echo") >&5
3431   (eval "$ac_link") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; then
3435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 # `rm'.
3439 for ac_file in conftest.exe conftest conftest.*; do
3440   test -f "$ac_file" || continue
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444           break;;
3445     * ) break;;
3446   esac
3447 done
3448 else
3449   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." >&5
3453 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }; }
3456 fi
3457
3458 rm -f conftest$ac_cv_exeext
3459 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3460 $as_echo "$ac_cv_exeext" >&6; }
3461
3462 rm -f conftest.$ac_ext
3463 EXEEXT=$ac_cv_exeext
3464 ac_exeext=$EXEEXT
3465 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3466 $as_echo_n "checking for suffix of object files... " >&6; }
3467 if test "${ac_cv_objext+set}" = set; then
3468   $as_echo_n "(cached) " >&6
3469 else
3470   cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476
3477 int
3478 main ()
3479 {
3480
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.o conftest.obj
3486 if { (ac_try="$ac_compile"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493   (eval "$ac_compile") 2>&5
3494   ac_status=$?
3495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); }; then
3497   for ac_file in conftest.o conftest.obj conftest.*; do
3498   test -f "$ac_file" || continue;
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3501     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3502        break;;
3503   esac
3504 done
3505 else
3506   $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details." >&5
3513 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details." >&2;}
3515    { (exit 1); exit 1; }; }; }
3516 fi
3517
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519 fi
3520 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3523 ac_objext=$OBJEXT
3524 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3527   $as_echo_n "(cached) " >&6
3528 else
3529   cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539 #ifndef __GNUC__
3540        choke me
3541 #endif
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3549 case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3554 $as_echo "$ac_try_echo") >&5
3555   (eval "$ac_compile") 2>conftest.er1
3556   ac_status=$?
3557   grep -v '^ *+' conftest.er1 >conftest.err
3558   rm -f conftest.er1
3559   cat conftest.err >&5
3560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } && {
3562          test -z "$ac_c_werror_flag" ||
3563          test ! -s conftest.err
3564        } && test -s conftest.$ac_objext; then
3565   ac_compiler_gnu=yes
3566 else
3567   $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570         ac_compiler_gnu=no
3571 fi
3572
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575
3576 fi
3577 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3580   GCC=yes
3581 else
3582   GCC=
3583 fi
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then
3589   $as_echo_n "(cached) " >&6
3590 else
3591   ac_save_c_werror_flag=$ac_c_werror_flag
3592    ac_c_werror_flag=yes
3593    ac_cv_prog_cc_g=no
3594    CFLAGS="-g"
3595    cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3617 $as_echo "$ac_try_echo") >&5
3618   (eval "$ac_compile") 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } && {
3625          test -z "$ac_c_werror_flag" ||
3626          test ! -s conftest.err
3627        } && test -s conftest.$ac_objext; then
3628   ac_cv_prog_cc_g=yes
3629 else
3630   $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633         CFLAGS=""
3634       cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640
3641 int
3642 main ()
3643 {
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } && {
3664          test -z "$ac_c_werror_flag" ||
3665          test ! -s conftest.err
3666        } && test -s conftest.$ac_objext; then
3667   :
3668 else
3669   $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672         ac_c_werror_flag=$ac_save_c_werror_flag
3673          CFLAGS="-g"
3674          cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (ac_try="$ac_compile"
3691 case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3696 $as_echo "$ac_try_echo") >&5
3697   (eval "$ac_compile") 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } && {
3704          test -z "$ac_c_werror_flag" ||
3705          test ! -s conftest.err
3706        } && test -s conftest.$ac_objext; then
3707   ac_cv_prog_cc_g=yes
3708 else
3709   $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712
3713 fi
3714
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722    ac_c_werror_flag=$ac_save_c_werror_flag
3723 fi
3724 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3725 $as_echo "$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727   CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729   if test "$GCC" = yes; then
3730     CFLAGS="-g -O2"
3731   else
3732     CFLAGS="-g"
3733   fi
3734 else
3735   if test "$GCC" = yes; then
3736     CFLAGS="-O2"
3737   else
3738     CFLAGS=
3739   fi
3740 fi
3741 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743 if test "${ac_cv_prog_cc_c89+set}" = set; then
3744   $as_echo_n "(cached) " >&6
3745 else
3746   ac_cv_prog_cc_c89=no
3747 ac_save_CC=$CC
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h.  */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h.  */
3754 #include <stdarg.h>
3755 #include <stdio.h>
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3762      char **p;
3763      int i;
3764 {
3765   return p[i];
3766 }
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3768 {
3769   char *s;
3770   va_list v;
3771   va_start (v,p);
3772   s = g (p, va_arg (v,int));
3773   va_end (v);
3774   return s;
3775 }
3776
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3778    function prototypes and stuff, but not '\xHH' hex character constants.
3779    These don't provoke an error unfortunately, instead are silently treated
3780    as 'x'.  The following induces an error, until -std is added to get
3781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3782    array size at least.  It's necessary to write '\x00'==0 to get something
3783    that's true only with -std.  */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787    inside strings and character constants.  */
3788 #define FOO(x) 'x'
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795 int argc;
3796 char **argv;
3797 int
3798 main ()
3799 {
3800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 do
3808   CC="$ac_save_CC $ac_arg"
3809   rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3816 $as_echo "$ac_try_echo") >&5
3817   (eval "$ac_compile") 2>conftest.er1
3818   ac_status=$?
3819   grep -v '^ *+' conftest.er1 >conftest.err
3820   rm -f conftest.er1
3821   cat conftest.err >&5
3822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); } && {
3824          test -z "$ac_c_werror_flag" ||
3825          test ! -s conftest.err
3826        } && test -s conftest.$ac_objext; then
3827   ac_cv_prog_cc_c89=$ac_arg
3828 else
3829   $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832
3833 fi
3834
3835 rm -f core conftest.err conftest.$ac_objext
3836   test "x$ac_cv_prog_cc_c89" != "xno" && break
3837 done
3838 rm -f conftest.$ac_ext
3839 CC=$ac_save_CC
3840
3841 fi
3842 # AC_CACHE_VAL
3843 case "x$ac_cv_prog_cc_c89" in
3844   x)
3845     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3847   xno)
3848     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3850   *)
3851     CC="$CC $ac_cv_prog_cc_c89"
3852     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3854 esac
3855
3856
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863
3864 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3865 # but has idiosyncrasies of its own.  We assume icc will define
3866 # __INTEL_COMPILER regardless of CFLAGS.
3867
3868 cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878 #ifndef __INTEL_COMPILER
3879 choke me
3880 #endif
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3887 case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893   (eval "$ac_compile") 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } && {
3900          test -z "$ac_c_werror_flag" ||
3901          test ! -s conftest.err
3902        } && test -s conftest.$ac_objext; then
3903   ICC=yes
3904 else
3905   $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908         ICC=no
3909 fi
3910
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912
3913 # Check if it's Sun Studio compiler. We assume that
3914 # __SUNPRO_C will be defined for Sun Studio compilers
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925 #ifndef __SUNPRO_C
3926 choke me
3927 #endif
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3939 $as_echo "$ac_try_echo") >&5
3940   (eval "$ac_compile") 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } && {
3947          test -z "$ac_c_werror_flag" ||
3948          test ! -s conftest.err
3949        } && test -s conftest.$ac_objext; then
3950   SUN_STUDIO_CC=yes
3951 else
3952   $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955         SUN_STUDIO_CC=no
3956 fi
3957
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
3960
3961
3962 unset CFLAGS
3963
3964 #
3965 # Read the template
3966 #
3967 . "$srcdir/src/template/$template" || exit
3968
3969 # CFLAGS are selected so:
3970 # If the user specifies something in the environment, that is used.
3971 # else:  If the template file set something, that is used.
3972 # else:  If coverage was enabled, don't set anything.
3973 # else:  If the compiler is GCC, then we use -O2.
3974 # else:  If the compiler is something else, then we use -O, unless debugging.
3975
3976 if test "$ac_env_CFLAGS_set" = set; then
3977   CFLAGS=$ac_env_CFLAGS_value
3978 elif test "${CFLAGS+set}" = set; then
3979   : # (keep what template set)
3980 elif test "$enable_coverage" = yes; then
3981   : # no optimization by default
3982 elif test "$GCC" = yes; then
3983   CFLAGS="-O2"
3984 else
3985   # if the user selected debug mode, don't use -O
3986   if test "$enable_debug" != yes; then
3987     CFLAGS="-O"
3988   fi
3989 fi
3990
3991 # Some versions of GCC support some additional useful warning flags.
3992 # Check whether they are supported, and add them to CFLAGS if so.
3993 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3994 # but has its own.  Also check other compiler-specific flags here.
3995
3996 if test "$GCC" = yes -a "$ICC" = no; then
3997   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3998   # These work in some but not all gcc versions
3999   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4000 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4001 pgac_save_CFLAGS=$CFLAGS
4002 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4025 $as_echo "$ac_try_echo") >&5
4026   (eval "$ac_compile") 2>conftest.er1
4027   ac_status=$?
4028   grep -v '^ *+' conftest.er1 >conftest.err
4029   rm -f conftest.er1
4030   cat conftest.err >&5
4031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); } && {
4033          test -z "$ac_c_werror_flag" ||
4034          test ! -s conftest.err
4035        } && test -s conftest.$ac_objext; then
4036   { $as_echo "$as_me:$LINENO: result: yes" >&5
4037 $as_echo "yes" >&6; }
4038 else
4039   $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042         CFLAGS="$pgac_save_CFLAGS"
4043                     { $as_echo "$as_me:$LINENO: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048
4049   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4050 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4051 pgac_save_CFLAGS=$CFLAGS
4052 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076   (eval "$ac_compile") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } && {
4083          test -z "$ac_c_werror_flag" ||
4084          test ! -s conftest.err
4085        } && test -s conftest.$ac_objext; then
4086   { $as_echo "$as_me:$LINENO: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 else
4089   $as_echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         CFLAGS="$pgac_save_CFLAGS"
4093                     { $as_echo "$as_me:$LINENO: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098
4099   # Disable strict-aliasing rules; needed for gcc 3.3+
4100   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4101 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4102 pgac_save_CFLAGS=$CFLAGS
4103 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h.  */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4126 $as_echo "$ac_try_echo") >&5
4127   (eval "$ac_compile") 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } && {
4134          test -z "$ac_c_werror_flag" ||
4135          test ! -s conftest.err
4136        } && test -s conftest.$ac_objext; then
4137   { $as_echo "$as_me:$LINENO: result: yes" >&5
4138 $as_echo "yes" >&6; }
4139 else
4140   $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143         CFLAGS="$pgac_save_CFLAGS"
4144                     { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149
4150   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4151   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4152 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4153 pgac_save_CFLAGS=$CFLAGS
4154 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161
4162 int
4163 main ()
4164 {
4165
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (ac_try="$ac_compile"
4172 case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178   (eval "$ac_compile") 2>conftest.er1
4179   ac_status=$?
4180   grep -v '^ *+' conftest.er1 >conftest.err
4181   rm -f conftest.er1
4182   cat conftest.err >&5
4183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } && {
4185          test -z "$ac_c_werror_flag" ||
4186          test ! -s conftest.err
4187        } && test -s conftest.$ac_objext; then
4188   { $as_echo "$as_me:$LINENO: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190 else
4191   $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194         CFLAGS="$pgac_save_CFLAGS"
4195                     { $as_echo "$as_me:$LINENO: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200
4201 elif test "$ICC" = yes; then
4202   # Intel's compiler has a bug/misoptimization in checking for
4203   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4204   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4205 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4206 pgac_save_CFLAGS=$CFLAGS
4207 CFLAGS="$pgac_save_CFLAGS -mp1"
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214
4215 int
4216 main ()
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4225 case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230 $as_echo "$ac_try_echo") >&5
4231   (eval "$ac_compile") 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } && {
4238          test -z "$ac_c_werror_flag" ||
4239          test ! -s conftest.err
4240        } && test -s conftest.$ac_objext; then
4241   { $as_echo "$as_me:$LINENO: result: yes" >&5
4242 $as_echo "yes" >&6; }
4243 else
4244   $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247         CFLAGS="$pgac_save_CFLAGS"
4248                     { $as_echo "$as_me:$LINENO: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253
4254   # Make sure strict aliasing is off (though this is said to be the default)
4255   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4256 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4257 pgac_save_CFLAGS=$CFLAGS
4258 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4276 case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282   (eval "$ac_compile") 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } && {
4289          test -z "$ac_c_werror_flag" ||
4290          test ! -s conftest.err
4291        } && test -s conftest.$ac_objext; then
4292   { $as_echo "$as_me:$LINENO: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 else
4295   $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298         CFLAGS="$pgac_save_CFLAGS"
4299                     { $as_echo "$as_me:$LINENO: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305 elif test "$PORTNAME" = "aix"; then
4306   # AIX's xlc has to have strict aliasing turned off too
4307   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4308 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4309 pgac_save_CFLAGS=$CFLAGS
4310 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (ac_try="$ac_compile"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334   (eval "$ac_compile") 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } && {
4341          test -z "$ac_c_werror_flag" ||
4342          test ! -s conftest.err
4343        } && test -s conftest.$ac_objext; then
4344   { $as_echo "$as_me:$LINENO: result: yes" >&5
4345 $as_echo "yes" >&6; }
4346 else
4347   $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350         CFLAGS="$pgac_save_CFLAGS"
4351                     { $as_echo "$as_me:$LINENO: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356
4357 fi
4358
4359 # supply -g if --enable-debug
4360 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4361   CFLAGS="$CFLAGS -g"
4362 fi
4363
4364 # enable code coverage if --enable-coverage
4365 if test "$enable_coverage" = yes; then
4366   if test "$GCC" = yes; then
4367     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4368   else
4369     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4370 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4371    { (exit 1); exit 1; }; }
4372   fi
4373 fi
4374
4375 # enable profiling if --enable-profiling
4376 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4377   if test "$GCC" = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define PROFILE_PID_DIR 1
4381 _ACEOF
4382
4383     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4384   else
4385     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4386 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4387    { (exit 1); exit 1; }; }
4388   fi
4389 fi
4390
4391 # We already have this in Makefile.win32, but configure needs it too
4392 if test "$PORTNAME" = "win32"; then
4393   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4394 fi
4395
4396 # Check if the compiler still works with the template settings
4397 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4398 $as_echo_n "checking whether the C compiler still works... " >&6; }
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405
4406 int
4407 main ()
4408 {
4409 return 0;
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 rm -f conftest.$ac_objext conftest$ac_exeext
4415 if { (ac_try="$ac_link"
4416 case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4421 $as_echo "$ac_try_echo") >&5
4422   (eval "$ac_link") 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } && {
4429          test -z "$ac_c_werror_flag" ||
4430          test ! -s conftest.err
4431        } && test -s conftest$ac_exeext && {
4432          test "$cross_compiling" = yes ||
4433          $as_test_x conftest$ac_exeext
4434        }; then
4435   { $as_echo "$as_me:$LINENO: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 else
4438   $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         { $as_echo "$as_me:$LINENO: result: no" >&5
4442 $as_echo "no" >&6; }
4443    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4444 $as_echo "$as_me: error: cannot proceed" >&2;}
4445    { (exit 1); exit 1; }; }
4446 fi
4447
4448 rm -rf conftest.dSYM
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450       conftest$ac_exeext conftest.$ac_ext
4451
4452 # Defend against gcc -ffast-math
4453 if test "$GCC" = yes; then
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460
4461 int
4462 main ()
4463 {
4464 #ifdef __FAST_MATH__
4465 choke me
4466 #endif
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479   (eval "$ac_compile") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } && {
4486          test -z "$ac_c_werror_flag" ||
4487          test ! -s conftest.err
4488        } && test -s conftest.$ac_objext; then
4489   :
4490 else
4491   $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4495 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4496    { (exit 1); exit 1; }; }
4497 fi
4498
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4509 # On Suns, sometimes $CPP names a directory.
4510 if test -n "$CPP" && test -d "$CPP"; then
4511   CPP=
4512 fi
4513 if test -z "$CPP"; then
4514   if test "${ac_cv_prog_CPP+set}" = set; then
4515   $as_echo_n "(cached) " >&6
4516 else
4517       # Double quotes because CPP needs to be expanded
4518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4519     do
4520       ac_preproc_ok=false
4521 for ac_c_preproc_warn_flag in '' yes
4522 do
4523   # Use a header file that comes with gcc, so configuring glibc
4524   # with a fresh cross-compiler works.
4525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526   # <limits.h> exists even on freestanding compilers.
4527   # On the NeXT, cc -E runs the code through the compiler's parser,
4528   # not just through cpp. "Syntax error" is here to catch this case.
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 #ifdef __STDC__
4536 # include <limits.h>
4537 #else
4538 # include <assert.h>
4539 #endif
4540                      Syntax error
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4548 $as_echo "$ac_try_echo") >&5
4549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } >/dev/null && {
4556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557          test ! -s conftest.err
4558        }; then
4559   :
4560 else
4561   $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564   # Broken: fails on valid input.
4565 continue
4566 fi
4567
4568 rm -f conftest.err conftest.$ac_ext
4569
4570   # OK, works on sane cases.  Now check whether nonexistent headers
4571   # can be detected and how.
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <ac_nonexistent.h>
4579 _ACEOF
4580 if { (ac_try="$ac_cpp conftest.$ac_ext"
4581 case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586 $as_echo "$ac_try_echo") >&5
4587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } >/dev/null && {
4594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595          test ! -s conftest.err
4596        }; then
4597   # Broken: success on invalid input.
4598 continue
4599 else
4600   $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603   # Passes both tests.
4604 ac_preproc_ok=:
4605 break
4606 fi
4607
4608 rm -f conftest.err conftest.$ac_ext
4609
4610 done
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then
4614   break
4615 fi
4616
4617     done
4618     ac_cv_prog_CPP=$CPP
4619
4620 fi
4621   CPP=$ac_cv_prog_CPP
4622 else
4623   ac_cv_prog_CPP=$CPP
4624 fi
4625 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4626 $as_echo "$CPP" >&6; }
4627 ac_preproc_ok=false
4628 for ac_c_preproc_warn_flag in '' yes
4629 do
4630   # Use a header file that comes with gcc, so configuring glibc
4631   # with a fresh cross-compiler works.
4632   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633   # <limits.h> exists even on freestanding compilers.
4634   # On the NeXT, cc -E runs the code through the compiler's parser,
4635   # not just through cpp. "Syntax error" is here to catch this case.
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 #ifdef __STDC__
4643 # include <limits.h>
4644 #else
4645 # include <assert.h>
4646 #endif
4647                      Syntax error
4648 _ACEOF
4649 if { (ac_try="$ac_cpp conftest.$ac_ext"
4650 case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 $as_echo "$ac_try_echo") >&5
4656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } >/dev/null && {
4663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664          test ! -s conftest.err
4665        }; then
4666   :
4667 else
4668   $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671   # Broken: fails on valid input.
4672 continue
4673 fi
4674
4675 rm -f conftest.err conftest.$ac_ext
4676
4677   # OK, works on sane cases.  Now check whether nonexistent headers
4678   # can be detected and how.
4679   cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685 #include <ac_nonexistent.h>
4686 _ACEOF
4687 if { (ac_try="$ac_cpp conftest.$ac_ext"
4688 case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4695   ac_status=$?
4696   grep -v '^ *+' conftest.er1 >conftest.err
4697   rm -f conftest.er1
4698   cat conftest.err >&5
4699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } >/dev/null && {
4701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4702          test ! -s conftest.err
4703        }; then
4704   # Broken: success on invalid input.
4705 continue
4706 else
4707   $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710   # Passes both tests.
4711 ac_preproc_ok=:
4712 break
4713 fi
4714
4715 rm -f conftest.err conftest.$ac_ext
4716
4717 done
4718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4719 rm -f conftest.err conftest.$ac_ext
4720 if $ac_preproc_ok; then
4721   :
4722 else
4723   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4725 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4726 See \`config.log' for more details." >&5
4727 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details." >&2;}
4729    { (exit 1); exit 1; }; }; }
4730 fi
4731
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738
4739
4740
4741 #
4742 # Set up TAS assembly code if needed; the template file has now had its
4743 # chance to request this.
4744 #
4745 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4746
4747
4748 if test "$need_tas" = yes ; then
4749   TAS=tas.o
4750 else
4751   TAS=""
4752 fi
4753
4754
4755
4756 #
4757 # Automatic dependency tracking
4758 #
4759
4760
4761 # Check whether --enable-depend was given.
4762 if test "${enable_depend+set}" = set; then
4763   enableval=$enable_depend;
4764   case $enableval in
4765     yes)
4766       autodepend=yes
4767       ;;
4768     no)
4769       :
4770       ;;
4771     *)
4772       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4773 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4774    { (exit 1); exit 1; }; }
4775       ;;
4776   esac
4777
4778 else
4779   enable_depend=no
4780
4781 fi
4782
4783
4784
4785
4786
4787 #
4788 # Enable assert checks
4789 #
4790
4791
4792 # Check whether --enable-cassert was given.
4793 if test "${enable_cassert+set}" = set; then
4794   enableval=$enable_cassert;
4795   case $enableval in
4796     yes)
4797
4798 cat >>confdefs.h <<\_ACEOF
4799 #define USE_ASSERT_CHECKING 1
4800 _ACEOF
4801
4802       ;;
4803     no)
4804       :
4805       ;;
4806     *)
4807       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4808 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4809    { (exit 1); exit 1; }; }
4810       ;;
4811   esac
4812
4813 else
4814   enable_cassert=no
4815
4816 fi
4817
4818
4819
4820
4821 #
4822 # Include directories
4823 #
4824 ac_save_IFS=$IFS
4825 IFS="${IFS}${PATH_SEPARATOR}"
4826 # SRCH_INC comes from the template file
4827 for dir in $with_includes $SRCH_INC; do
4828   if test -d "$dir"; then
4829     INCLUDES="$INCLUDES -I$dir"
4830   else
4831     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4832 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4833   fi
4834 done
4835 IFS=$ac_save_IFS
4836
4837
4838
4839 #
4840 # Library directories
4841 #
4842 ac_save_IFS=$IFS
4843 IFS="${IFS}${PATH_SEPARATOR}"
4844 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4845 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4846   if test -d "$dir"; then
4847     LIBDIRS="$LIBDIRS -L$dir"
4848   else
4849     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4850 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4851   fi
4852 done
4853 IFS=$ac_save_IFS
4854
4855 #
4856 # Enable thread-safe client libraries
4857 #
4858 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4859 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4860
4861
4862 # Check whether --enable-thread-safety was given.
4863 if test "${enable_thread_safety+set}" = set; then
4864   enableval=$enable_thread_safety;
4865   case $enableval in
4866     yes)
4867       :
4868       ;;
4869     no)
4870       :
4871       ;;
4872     *)
4873       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4874 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4875    { (exit 1); exit 1; }; }
4876       ;;
4877   esac
4878
4879 else
4880   enable_thread_safety=yes
4881
4882 fi
4883
4884
4885 if test "$enable_thread_safety" = yes; then
4886
4887 cat >>confdefs.h <<\_ACEOF
4888 #define ENABLE_THREAD_SAFETY 1
4889 _ACEOF
4890
4891 fi
4892 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4893 $as_echo "$enable_thread_safety" >&6; }
4894
4895
4896 #
4897 # Optionally build Tcl modules (PL/Tcl)
4898 #
4899 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4900 $as_echo_n "checking whether to build with Tcl... " >&6; }
4901
4902
4903
4904 # Check whether --with-tcl was given.
4905 if test "${with_tcl+set}" = set; then
4906   withval=$with_tcl;
4907   case $withval in
4908     yes)
4909       :
4910       ;;
4911     no)
4912       :
4913       ;;
4914     *)
4915       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4916 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4917    { (exit 1); exit 1; }; }
4918       ;;
4919   esac
4920
4921 else
4922   with_tcl=no
4923
4924 fi
4925
4926
4927 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4928 $as_echo "$with_tcl" >&6; }
4929
4930
4931 # We see if the path to the Tcl/Tk configuration scripts is specified.
4932 # This will override the use of tclsh to find the paths to search.
4933
4934
4935
4936
4937 # Check whether --with-tclconfig was given.
4938 if test "${with_tclconfig+set}" = set; then
4939   withval=$with_tclconfig;
4940   case $withval in
4941     yes)
4942       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4943 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4944    { (exit 1); exit 1; }; }
4945       ;;
4946     no)
4947       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4948 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4949    { (exit 1); exit 1; }; }
4950       ;;
4951     *)
4952
4953       ;;
4954   esac
4955
4956 fi
4957
4958
4959
4960 #
4961 # Optionally build Perl modules (PL/Perl)
4962 #
4963 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4964 $as_echo_n "checking whether to build Perl modules... " >&6; }
4965
4966
4967
4968 # Check whether --with-perl was given.
4969 if test "${with_perl+set}" = set; then
4970   withval=$with_perl;
4971   case $withval in
4972     yes)
4973       :
4974       ;;
4975     no)
4976       :
4977       ;;
4978     *)
4979       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4980 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4981    { (exit 1); exit 1; }; }
4982       ;;
4983   esac
4984
4985 else
4986   with_perl=no
4987
4988 fi
4989
4990
4991 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4992 $as_echo "$with_perl" >&6; }
4993
4994
4995 #
4996 # Optionally build Python modules (PL/Python)
4997 #
4998 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4999 $as_echo_n "checking whether to build Python modules... " >&6; }
5000
5001
5002
5003 # Check whether --with-python was given.
5004 if test "${with_python+set}" = set; then
5005   withval=$with_python;
5006   case $withval in
5007     yes)
5008       :
5009       ;;
5010     no)
5011       :
5012       ;;
5013     *)
5014       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5015 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5016    { (exit 1); exit 1; }; }
5017       ;;
5018   esac
5019
5020 else
5021   with_python=no
5022
5023 fi
5024
5025
5026 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5027 $as_echo "$with_python" >&6; }
5028
5029
5030 #
5031 # GSSAPI
5032 #
5033 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5034 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5035
5036
5037
5038 # Check whether --with-gssapi was given.
5039 if test "${with_gssapi+set}" = set; then
5040   withval=$with_gssapi;
5041   case $withval in
5042     yes)
5043
5044
5045 cat >>confdefs.h <<\_ACEOF
5046 #define ENABLE_GSS 1
5047 _ACEOF
5048
5049   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5050
5051       ;;
5052     no)
5053       :
5054       ;;
5055     *)
5056       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5057 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5058    { (exit 1); exit 1; }; }
5059       ;;
5060   esac
5061
5062 else
5063   with_gssapi=no
5064
5065 fi
5066
5067
5068 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5069 $as_echo "$with_gssapi" >&6; }
5070
5071
5072 #
5073 # Kerberos 5
5074 #
5075 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5076 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5077
5078
5079
5080 # Check whether --with-krb5 was given.
5081 if test "${with_krb5+set}" = set; then
5082   withval=$with_krb5;
5083   case $withval in
5084     yes)
5085
5086
5087 cat >>confdefs.h <<\_ACEOF
5088 #define KRB5 1
5089 _ACEOF
5090
5091   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5092
5093       ;;
5094     no)
5095       :
5096       ;;
5097     *)
5098       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5099 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5100    { (exit 1); exit 1; }; }
5101       ;;
5102   esac
5103
5104 else
5105   with_krb5=no
5106
5107 fi
5108
5109
5110 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5111 $as_echo "$with_krb5" >&6; }
5112
5113
5114
5115
5116
5117
5118 #
5119 # Kerberos configuration parameters
5120 #
5121
5122
5123
5124 # Check whether --with-krb-srvnam was given.
5125 if test "${with_krb_srvnam+set}" = set; then
5126   withval=$with_krb_srvnam;
5127   case $withval in
5128     yes)
5129       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5130 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5131    { (exit 1); exit 1; }; }
5132       ;;
5133     no)
5134       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5135 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5136    { (exit 1); exit 1; }; }
5137       ;;
5138     *)
5139
5140       ;;
5141   esac
5142
5143 else
5144   with_krb_srvnam="postgres"
5145 fi
5146
5147
5148
5149 cat >>confdefs.h <<_ACEOF
5150 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5151 _ACEOF
5152
5153
5154
5155 #
5156 # PAM
5157 #
5158 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5159 $as_echo_n "checking whether to build with PAM support... " >&6; }
5160
5161
5162
5163 # Check whether --with-pam was given.
5164 if test "${with_pam+set}" = set; then
5165   withval=$with_pam;
5166   case $withval in
5167     yes)
5168
5169 cat >>confdefs.h <<\_ACEOF
5170 #define USE_PAM 1
5171 _ACEOF
5172
5173       ;;
5174     no)
5175       :
5176       ;;
5177     *)
5178       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5179 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5180    { (exit 1); exit 1; }; }
5181       ;;
5182   esac
5183
5184 else
5185   with_pam=no
5186
5187 fi
5188
5189
5190 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5191 $as_echo "$with_pam" >&6; }
5192
5193
5194
5195 #
5196 # LDAP
5197 #
5198 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5199 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5200
5201
5202
5203 # Check whether --with-ldap was given.
5204 if test "${with_ldap+set}" = set; then
5205   withval=$with_ldap;
5206   case $withval in
5207     yes)
5208
5209 cat >>confdefs.h <<\_ACEOF
5210 #define USE_LDAP 1
5211 _ACEOF
5212
5213       ;;
5214     no)
5215       :
5216       ;;
5217     *)
5218       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5219 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5220    { (exit 1); exit 1; }; }
5221       ;;
5222   esac
5223
5224 else
5225   with_ldap=no
5226
5227 fi
5228
5229
5230 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5231 $as_echo "$with_ldap" >&6; }
5232
5233
5234
5235 #
5236 # Bonjour
5237 #
5238 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5239 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5240
5241
5242
5243 # Check whether --with-bonjour was given.
5244 if test "${with_bonjour+set}" = set; then
5245   withval=$with_bonjour;
5246   case $withval in
5247     yes)
5248
5249 cat >>confdefs.h <<\_ACEOF
5250 #define USE_BONJOUR 1
5251 _ACEOF
5252
5253       ;;
5254     no)
5255       :
5256       ;;
5257     *)
5258       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5259 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5260    { (exit 1); exit 1; }; }
5261       ;;
5262   esac
5263
5264 else
5265   with_bonjour=no
5266
5267 fi
5268
5269
5270 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5271 $as_echo "$with_bonjour" >&6; }
5272
5273
5274
5275 #
5276 # OpenSSL
5277 #
5278 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5279 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5280
5281
5282
5283 # Check whether --with-openssl was given.
5284 if test "${with_openssl+set}" = set; then
5285   withval=$with_openssl;
5286   case $withval in
5287     yes)
5288
5289 cat >>confdefs.h <<\_ACEOF
5290 #define USE_SSL 1
5291 _ACEOF
5292
5293       ;;
5294     no)
5295       :
5296       ;;
5297     *)
5298       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5299 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5300    { (exit 1); exit 1; }; }
5301       ;;
5302   esac
5303
5304 else
5305   with_openssl=no
5306
5307 fi
5308
5309
5310 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5311 $as_echo "$with_openssl" >&6; }
5312
5313
5314
5315 #
5316 # Readline
5317 #
5318
5319
5320
5321 # Check whether --with-readline was given.
5322 if test "${with_readline+set}" = set; then
5323   withval=$with_readline;
5324   case $withval in
5325     yes)
5326       :
5327       ;;
5328     no)
5329       :
5330       ;;
5331     *)
5332       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5333 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5334    { (exit 1); exit 1; }; }
5335       ;;
5336   esac
5337
5338 else
5339   with_readline=yes
5340
5341 fi
5342
5343
5344 # readline on MinGW has problems with backslashes in psql and other bugs.
5345 # This is particularly a problem with non-US code pages.
5346 # Therefore disable its use until we understand the cause. 2004-07-20
5347 if test "$PORTNAME" = "win32"; then
5348   if test "$with_readline" = yes; then
5349     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5350 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5351     with_readline=no
5352   fi
5353 fi
5354
5355
5356 #
5357 # Prefer libedit
5358 #
5359
5360
5361
5362 # Check whether --with-libedit-preferred was given.
5363 if test "${with_libedit_preferred+set}" = set; then
5364   withval=$with_libedit_preferred;
5365   case $withval in
5366     yes)
5367       :
5368       ;;
5369     no)
5370       :
5371       ;;
5372     *)
5373       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5374 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5375    { (exit 1); exit 1; }; }
5376       ;;
5377   esac
5378
5379 else
5380   with_libedit_preferred=no
5381
5382 fi
5383
5384
5385
5386
5387 #
5388 # OSSP UUID library
5389 #
5390
5391
5392
5393 # Check whether --with-ossp-uuid was given.
5394 if test "${with_ossp_uuid+set}" = set; then
5395   withval=$with_ossp_uuid;
5396   case $withval in
5397     yes)
5398       :
5399       ;;
5400     no)
5401       :
5402       ;;
5403     *)
5404       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5405 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5406    { (exit 1); exit 1; }; }
5407       ;;
5408   esac
5409
5410 else
5411   with_ossp_uuid=no
5412
5413 fi
5414
5415
5416
5417
5418
5419 #
5420 # XML
5421 #
5422
5423
5424
5425 # Check whether --with-libxml was given.
5426 if test "${with_libxml+set}" = set; then
5427   withval=$with_libxml;
5428   case $withval in
5429     yes)
5430
5431 cat >>confdefs.h <<\_ACEOF
5432 #define USE_LIBXML 1
5433 _ACEOF
5434
5435       ;;
5436     no)
5437       :
5438       ;;
5439     *)
5440       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5441 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5442    { (exit 1); exit 1; }; }
5443       ;;
5444   esac
5445
5446 else
5447   with_libxml=no
5448
5449 fi
5450
5451
5452
5453 if test "$with_libxml" = yes ; then
5454   for ac_prog in xml2-config
5455 do
5456   # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5461   $as_echo_n "(cached) " >&6
5462 else
5463   if test -n "$XML2_CONFIG"; then
5464   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_exec_ext in '' $ac_executable_extensions; do
5472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473     ac_cv_prog_XML2_CONFIG="$ac_prog"
5474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5484 if test -n "$XML2_CONFIG"; then
5485   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5486 $as_echo "$XML2_CONFIG" >&6; }
5487 else
5488   { $as_echo "$as_me:$LINENO: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493   test -n "$XML2_CONFIG" && break
5494 done
5495
5496   if test -n "$XML2_CONFIG"; then
5497     for pgac_option in `$XML2_CONFIG --cflags`; do
5498       case $pgac_option in
5499         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5500       esac
5501     done
5502     for pgac_option in `$XML2_CONFIG --libs`; do
5503       case $pgac_option in
5504         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5505       esac
5506     done
5507   fi
5508 fi
5509
5510
5511
5512 #
5513 # XSLT
5514 #
5515
5516
5517
5518 # Check whether --with-libxslt was given.
5519 if test "${with_libxslt+set}" = set; then
5520   withval=$with_libxslt;
5521   case $withval in
5522     yes)
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define USE_LIBXSLT 1
5526 _ACEOF
5527
5528       ;;
5529     no)
5530       :
5531       ;;
5532     *)
5533       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5534 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5535    { (exit 1); exit 1; }; }
5536       ;;
5537   esac
5538
5539 else
5540   with_libxslt=no
5541
5542 fi
5543
5544
5545
5546
5547
5548
5549 #
5550 # tzdata
5551 #
5552
5553
5554
5555 # Check whether --with-system-tzdata was given.
5556 if test "${with_system_tzdata+set}" = set; then
5557   withval=$with_system_tzdata;
5558   case $withval in
5559     yes)
5560       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5561 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5562    { (exit 1); exit 1; }; }
5563       ;;
5564     no)
5565       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5566 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5567    { (exit 1); exit 1; }; }
5568       ;;
5569     *)
5570
5571       ;;
5572   esac
5573
5574 fi
5575
5576
5577
5578
5579 #
5580 # Zlib
5581 #
5582
5583
5584
5585 # Check whether --with-zlib was given.
5586 if test "${with_zlib+set}" = set; then
5587   withval=$with_zlib;
5588   case $withval in
5589     yes)
5590       :
5591       ;;
5592     no)
5593       :
5594       ;;
5595     *)
5596       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5597 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5598    { (exit 1); exit 1; }; }
5599       ;;
5600   esac
5601
5602 else
5603   with_zlib=yes
5604
5605 fi
5606
5607
5608
5609
5610 #
5611 # Elf
5612 #
5613
5614 # Assume system is ELF if it predefines __ELF__ as 1,
5615 # otherwise believe host_os based default.
5616 case $host_os in
5617     freebsd1*|freebsd2*) elf=no;;
5618     freebsd3*|freebsd4*) elf=yes;;
5619 esac
5620
5621
5622 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5624 if test "${ac_cv_path_GREP+set}" = set; then
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if test -z "$GREP"; then
5628   ac_path_GREP_found=false
5629   # Loop through the user's path and test for each of PROGNAME-LIST
5630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for ac_prog in grep ggrep; do
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5638       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5639 # Check for GNU ac_path_GREP and select it if it is found.
5640   # Check for GNU $ac_path_GREP
5641 case `"$ac_path_GREP" --version 2>&1` in
5642 *GNU*)
5643   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5644 *)
5645   ac_count=0
5646   $as_echo_n 0123456789 >"conftest.in"
5647   while :
5648   do
5649     cat "conftest.in" "conftest.in" >"conftest.tmp"
5650     mv "conftest.tmp" "conftest.in"
5651     cp "conftest.in" "conftest.nl"
5652     $as_echo 'GREP' >> "conftest.nl"
5653     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655     ac_count=`expr $ac_count + 1`
5656     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5657       # Best one so far, save it but keep looking for a better one
5658       ac_cv_path_GREP="$ac_path_GREP"
5659       ac_path_GREP_max=$ac_count
5660     fi
5661     # 10*(2^10) chars as input seems more than enough
5662     test $ac_count -gt 10 && break
5663   done
5664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5666
5667       $ac_path_GREP_found && break 3
5668     done
5669   done
5670 done
5671 IFS=$as_save_IFS
5672   if test -z "$ac_cv_path_GREP"; then
5673     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675    { (exit 1); exit 1; }; }
5676   fi
5677 else
5678   ac_cv_path_GREP=$GREP
5679 fi
5680
5681 fi
5682 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5683 $as_echo "$ac_cv_path_GREP" >&6; }
5684  GREP="$ac_cv_path_GREP"
5685
5686
5687 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5688 $as_echo_n "checking for egrep... " >&6; }
5689 if test "${ac_cv_path_EGREP+set}" = set; then
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5693    then ac_cv_path_EGREP="$GREP -E"
5694    else
5695      if test -z "$EGREP"; then
5696   ac_path_EGREP_found=false
5697   # Loop through the user's path and test for each of PROGNAME-LIST
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_prog in egrep; do
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5706       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5707 # Check for GNU ac_path_EGREP and select it if it is found.
5708   # Check for GNU $ac_path_EGREP
5709 case `"$ac_path_EGREP" --version 2>&1` in
5710 *GNU*)
5711   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5712 *)
5713   ac_count=0
5714   $as_echo_n 0123456789 >"conftest.in"
5715   while :
5716   do
5717     cat "conftest.in" "conftest.in" >"conftest.tmp"
5718     mv "conftest.tmp" "conftest.in"
5719     cp "conftest.in" "conftest.nl"
5720     $as_echo 'EGREP' >> "conftest.nl"
5721     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723     ac_count=`expr $ac_count + 1`
5724     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5725       # Best one so far, save it but keep looking for a better one
5726       ac_cv_path_EGREP="$ac_path_EGREP"
5727       ac_path_EGREP_max=$ac_count
5728     fi
5729     # 10*(2^10) chars as input seems more than enough
5730     test $ac_count -gt 10 && break
5731   done
5732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733 esac
5734
5735       $ac_path_EGREP_found && break 3
5736     done
5737   done
5738 done
5739 IFS=$as_save_IFS
5740   if test -z "$ac_cv_path_EGREP"; then
5741     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743    { (exit 1); exit 1; }; }
5744   fi
5745 else
5746   ac_cv_path_EGREP=$EGREP
5747 fi
5748
5749    fi
5750 fi
5751 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5752 $as_echo "$ac_cv_path_EGREP" >&6; }
5753  EGREP="$ac_cv_path_EGREP"
5754
5755
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762 #if __ELF__
5763   yes
5764 #endif
5765
5766 _ACEOF
5767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5768   $EGREP "yes" >/dev/null 2>&1; then
5769   ELF_SYS=true
5770 else
5771   if test "X$elf" = "Xyes" ; then
5772   ELF_SYS=true
5773 else
5774   ELF_SYS=
5775 fi
5776 fi
5777 rm -f conftest*
5778
5779
5780
5781 #
5782 # Assignments
5783 #
5784
5785 CPPFLAGS="$CPPFLAGS $INCLUDES"
5786 LDFLAGS="$LDFLAGS $LIBDIRS"
5787
5788
5789
5790
5791 # Check whether --with-gnu-ld was given.
5792 if test "${with_gnu_ld+set}" = set; then
5793   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5794 else
5795   with_gnu_ld=no
5796 fi
5797
5798 ac_prog=ld
5799 if test "$GCC" = yes; then
5800   # Check if gcc -print-prog-name=ld gives a path.
5801   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5802 $as_echo_n "checking for ld used by GCC... " >&6; }
5803   case $host in
5804   *-*-mingw*)
5805     # gcc leaves a trailing carriage return which upsets mingw
5806     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5807   *)
5808     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5809   esac
5810   case "$ac_prog" in
5811     # Accept absolute paths.
5812     [\\/]* | [A-Za-z]:[\\/]*)
5813       re_direlt='/[^/][^/]*/\.\./'
5814       # Canonicalize the path of ld
5815       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5816       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5817         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5818       done
5819       test -z "$LD" && LD="$ac_prog"
5820       ;;
5821   "")
5822     # If it fails, then pretend we aren't using GCC.
5823     ac_prog=ld
5824     ;;
5825   *)
5826     # If it is relative, then search for the first ld in PATH.
5827     with_gnu_ld=unknown
5828     ;;
5829   esac
5830 elif test "$with_gnu_ld" = yes; then
5831   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5832 $as_echo_n "checking for GNU ld... " >&6; }
5833 else
5834   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5835 $as_echo_n "checking for non-GNU ld... " >&6; }
5836 fi
5837 if test "${ac_cv_path_LD+set}" = set; then
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -z "$LD"; then
5841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5842   for ac_dir in $PATH; do
5843     test -z "$ac_dir" && ac_dir=.
5844     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5845       ac_cv_path_LD="$ac_dir/$ac_prog"
5846       # Check to see if the program is GNU ld.  I'd rather use --version,
5847       # but apparently some GNU ld's only accept -v.
5848       # Break only if it was the GNU/non-GNU ld that we prefer.
5849       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5850         test "$with_gnu_ld" != no && break
5851       else
5852         test "$with_gnu_ld" != yes && break
5853       fi
5854     fi
5855   done
5856   IFS="$ac_save_ifs"
5857 else
5858   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5859 fi
5860 fi
5861
5862 LD="$ac_cv_path_LD"
5863 if test -n "$LD"; then
5864   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5866 else
5867   { $as_echo "$as_me:$LINENO: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5871 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5872    { (exit 1); exit 1; }; }
5873 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5876   $as_echo_n "(cached) " >&6
5877 else
5878   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5879 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5880   ac_cv_prog_gnu_ld=yes
5881 else
5882   ac_cv_prog_gnu_ld=no
5883 fi
5884 fi
5885 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5886 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5887 with_gnu_ld=$ac_cv_prog_gnu_ld
5888
5889
5890
5891
5892 case $host_os in sysv5*)
5893   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5894 $as_echo_n "checking whether ld -R works... " >&6; }
5895 if test "${pgac_cv_prog_ld_R+set}" = set; then
5896   $as_echo_n "(cached) " >&6
5897 else
5898
5899     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5900     cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906
5907 int
5908 main ()
5909 {
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (ac_try="$ac_link"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923   (eval "$ac_link") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && {
5930          test -z "$ac_c_werror_flag" ||
5931          test ! -s conftest.err
5932        } && test -s conftest$ac_exeext && {
5933          test "$cross_compiling" = yes ||
5934          $as_test_x conftest$ac_exeext
5935        }; then
5936   pgac_cv_prog_ld_R=yes
5937 else
5938   $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941         pgac_cv_prog_ld_R=no
5942 fi
5943
5944 rm -rf conftest.dSYM
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5946       conftest$ac_exeext conftest.$ac_ext
5947     LDFLAGS=$pgac_save_LDFLAGS
5948
5949 fi
5950 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5951 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5952   ld_R_works=$pgac_cv_prog_ld_R
5953
5954 esac
5955 if test -n "$ac_tool_prefix"; then
5956   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_RANLIB+set}" = set; then
5961   $as_echo_n "(cached) " >&6
5962 else
5963   if test -n "$RANLIB"; then
5964   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_exec_ext in '' $ac_executable_extensions; do
5972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5974     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 RANLIB=$ac_cv_prog_RANLIB
5984 if test -n "$RANLIB"; then
5985   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5986 $as_echo "$RANLIB" >&6; }
5987 else
5988   { $as_echo "$as_me:$LINENO: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 fi
5994 if test -z "$ac_cv_prog_RANLIB"; then
5995   ac_ct_RANLIB=$RANLIB
5996   # Extract the first word of "ranlib", so it can be a program name with args.
5997 set dummy ranlib; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6001   $as_echo_n "(cached) " >&6
6002 else
6003   if test -n "$ac_ct_RANLIB"; then
6004   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013     ac_cv_prog_ac_ct_RANLIB="ranlib"
6014     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024 if test -n "$ac_ct_RANLIB"; then
6025   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6026 $as_echo "$ac_ct_RANLIB" >&6; }
6027 else
6028   { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032   if test "x$ac_ct_RANLIB" = x; then
6033     RANLIB=":"
6034   else
6035     case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041     RANLIB=$ac_ct_RANLIB
6042   fi
6043 else
6044   RANLIB="$ac_cv_prog_RANLIB"
6045 fi
6046
6047
6048   if test -n "$ac_tool_prefix"; then
6049   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_STRIP+set}" = set; then
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$STRIP"; then
6057   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 STRIP=$ac_cv_prog_STRIP
6077 if test -n "$STRIP"; then
6078   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6079 $as_echo "$STRIP" >&6; }
6080 else
6081   { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 fi
6087 if test -z "$ac_cv_prog_STRIP"; then
6088   ac_ct_STRIP=$STRIP
6089   # Extract the first word of "strip", so it can be a program name with args.
6090 set dummy strip; ac_word=$2
6091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6094   $as_echo_n "(cached) " >&6
6095 else
6096   if test -n "$ac_ct_STRIP"; then
6097   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_ac_ct_STRIP="strip"
6107     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117 if test -n "$ac_ct_STRIP"; then
6118   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6119 $as_echo "$ac_ct_STRIP" >&6; }
6120 else
6121   { $as_echo "$as_me:$LINENO: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125   if test "x$ac_ct_STRIP" = x; then
6126     STRIP=":"
6127   else
6128     case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134     STRIP=$ac_ct_STRIP
6135   fi
6136 else
6137   STRIP="$ac_cv_prog_STRIP"
6138 fi
6139
6140
6141   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6142 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6143   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6144     STRIP_STATIC_LIB="$STRIP -x"
6145     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6146     { $as_echo "$as_me:$LINENO: result: yes" >&5
6147 $as_echo "yes" >&6; }
6148   else
6149     STRIP_STATIC_LIB=:
6150     STRIP_SHARED_LIB=:
6151     { $as_echo "$as_me:$LINENO: result: no" >&5
6152 $as_echo "no" >&6; }
6153   fi
6154
6155
6156
6157 if test -n "$ac_tool_prefix"; then
6158   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}ar; ac_word=$2
6160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_AR+set}" = set; then
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -n "$AR"; then
6166   ac_cv_prog_AR="$AR" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173   for ac_exec_ext in '' $ac_executable_extensions; do
6174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175     ac_cv_prog_AR="${ac_tool_prefix}ar"
6176     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 AR=$ac_cv_prog_AR
6186 if test -n "$AR"; then
6187   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6188 $as_echo "$AR" >&6; }
6189 else
6190   { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194
6195 fi
6196 if test -z "$ac_cv_prog_AR"; then
6197   ac_ct_AR=$AR
6198   # Extract the first word of "ar", so it can be a program name with args.
6199 set dummy ar; ac_word=$2
6200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$ac_ct_AR"; then
6206   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213   for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_ac_ct_AR="ar"
6216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6226 if test -n "$ac_ct_AR"; then
6227   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6228 $as_echo "$ac_ct_AR" >&6; }
6229 else
6230   { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234   if test "x$ac_ct_AR" = x; then
6235     AR="ar"
6236   else
6237     case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243     AR=$ac_ct_AR
6244   fi
6245 else
6246   AR="$ac_cv_prog_AR"
6247 fi
6248
6249 if test "$PORTNAME" = "win32"; then
6250   if test -n "$ac_tool_prefix"; then
6251   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6256   $as_echo_n "(cached) " >&6
6257 else
6258   if test -n "$DLLTOOL"; then
6259   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 DLLTOOL=$ac_cv_prog_DLLTOOL
6279 if test -n "$DLLTOOL"; then
6280   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6281 $as_echo "$DLLTOOL" >&6; }
6282 else
6283   { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_DLLTOOL"; then
6290   ac_ct_DLLTOOL=$DLLTOOL
6291   # Extract the first word of "dlltool", so it can be a program name with args.
6292 set dummy dlltool; ac_word=$2
6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$ac_ct_DLLTOOL"; then
6299   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6309     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6319 if test -n "$ac_ct_DLLTOOL"; then
6320   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6321 $as_echo "$ac_ct_DLLTOOL" >&6; }
6322 else
6323   { $as_echo "$as_me:$LINENO: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327   if test "x$ac_ct_DLLTOOL" = x; then
6328     DLLTOOL="dlltool"
6329   else
6330     case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336     DLLTOOL=$ac_ct_DLLTOOL
6337   fi
6338 else
6339   DLLTOOL="$ac_cv_prog_DLLTOOL"
6340 fi
6341
6342   if test -n "$ac_tool_prefix"; then
6343   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6348   $as_echo_n "(cached) " >&6
6349 else
6350   if test -n "$DLLWRAP"; then
6351   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6361     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 DLLWRAP=$ac_cv_prog_DLLWRAP
6371 if test -n "$DLLWRAP"; then
6372   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6373 $as_echo "$DLLWRAP" >&6; }
6374 else
6375   { $as_echo "$as_me:$LINENO: result: no" >&5
6376 $as_echo "no" >&6; }
6377 fi
6378
6379
6380 fi
6381 if test -z "$ac_cv_prog_DLLWRAP"; then
6382   ac_ct_DLLWRAP=$DLLWRAP
6383   # Extract the first word of "dllwrap", so it can be a program name with args.
6384 set dummy dllwrap; ac_word=$2
6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6388   $as_echo_n "(cached) " >&6
6389 else
6390   if test -n "$ac_ct_DLLWRAP"; then
6391   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6411 if test -n "$ac_ct_DLLWRAP"; then
6412   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6413 $as_echo "$ac_ct_DLLWRAP" >&6; }
6414 else
6415   { $as_echo "$as_me:$LINENO: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419   if test "x$ac_ct_DLLWRAP" = x; then
6420     DLLWRAP="dllwrap"
6421   else
6422     case $cross_compiling:$ac_tool_warned in
6423 yes:)
6424 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428     DLLWRAP=$ac_ct_DLLWRAP
6429   fi
6430 else
6431   DLLWRAP="$ac_cv_prog_DLLWRAP"
6432 fi
6433
6434   if test -n "$ac_tool_prefix"; then
6435   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}windres; ac_word=$2
6437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if test "${ac_cv_prog_WINDRES+set}" = set; then
6440   $as_echo_n "(cached) " >&6
6441 else
6442   if test -n "$WINDRES"; then
6443   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450   for ac_exec_ext in '' $ac_executable_extensions; do
6451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6453     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 WINDRES=$ac_cv_prog_WINDRES
6463 if test -n "$WINDRES"; then
6464   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6465 $as_echo "$WINDRES" >&6; }
6466 else
6467   { $as_echo "$as_me:$LINENO: result: no" >&5
6468 $as_echo "no" >&6; }
6469 fi
6470
6471
6472 fi
6473 if test -z "$ac_cv_prog_WINDRES"; then
6474   ac_ct_WINDRES=$WINDRES
6475   # Extract the first word of "windres", so it can be a program name with args.
6476 set dummy windres; ac_word=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6480   $as_echo_n "(cached) " >&6
6481 else
6482   if test -n "$ac_ct_WINDRES"; then
6483   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490   for ac_exec_ext in '' $ac_executable_extensions; do
6491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492     ac_cv_prog_ac_ct_WINDRES="windres"
6493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6503 if test -n "$ac_ct_WINDRES"; then
6504   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6505 $as_echo "$ac_ct_WINDRES" >&6; }
6506 else
6507   { $as_echo "$as_me:$LINENO: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510
6511   if test "x$ac_ct_WINDRES" = x; then
6512     WINDRES="windres"
6513   else
6514     case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6519 esac
6520     WINDRES=$ac_ct_WINDRES
6521   fi
6522 else
6523   WINDRES="$ac_cv_prog_WINDRES"
6524 fi
6525
6526 fi
6527
6528 # Extract the first word of "tar", so it can be a program name with args.
6529 set dummy tar; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_path_TAR+set}" = set; then
6533   $as_echo_n "(cached) " >&6
6534 else
6535   case $TAR in
6536   [\\/]* | ?:[\\/]*)
6537   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6538   ;;
6539   *)
6540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555   ;;
6556 esac
6557 fi
6558 TAR=$ac_cv_path_TAR
6559 if test -n "$TAR"; then
6560   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6561 $as_echo "$TAR" >&6; }
6562 else
6563   { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6569 $as_echo_n "checking whether ln -s works... " >&6; }
6570 LN_S=$as_ln_s
6571 if test "$LN_S" = "ln -s"; then
6572   { $as_echo "$as_me:$LINENO: result: yes" >&5
6573 $as_echo "yes" >&6; }
6574 else
6575   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6576 $as_echo "no, using $LN_S" >&6; }
6577 fi
6578
6579 for ac_prog in gawk mawk nawk awk
6580 do
6581   # Extract the first word of "$ac_prog", so it can be a program name with args.
6582 set dummy $ac_prog; ac_word=$2
6583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_AWK+set}" = set; then
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$AWK"; then
6589   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_prog_AWK="$ac_prog"
6599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 AWK=$ac_cv_prog_AWK
6609 if test -n "$AWK"; then
6610   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6611 $as_echo "$AWK" >&6; }
6612 else
6613   { $as_echo "$as_me:$LINENO: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618   test -n "$AWK" && break
6619 done
6620
6621 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6623 if test -z "$MKDIR_P"; then
6624   if test "${ac_cv_path_mkdir+set}" = set; then
6625   $as_echo_n "(cached) " >&6
6626 else
6627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_prog in mkdir gmkdir; do
6633          for ac_exec_ext in '' $ac_executable_extensions; do
6634            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6635            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6636              'mkdir (GNU coreutils) '* | \
6637              'mkdir (coreutils) '* | \
6638              'mkdir (fileutils) '4.1*)
6639                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6640                break 3;;
6641            esac
6642          done
6643        done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648
6649   if test "${ac_cv_path_mkdir+set}" = set; then
6650     MKDIR_P="$ac_cv_path_mkdir -p"
6651   else
6652     # As a last resort, use the slow shell script.  Don't cache a
6653     # value for MKDIR_P within a source directory, because that will
6654     # break other packages using the cache if that directory is
6655     # removed, or if the value is a relative name.
6656     test -d ./--version && rmdir ./--version
6657     MKDIR_P="$ac_install_sh -d"
6658   fi
6659 fi
6660 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6661 $as_echo "$MKDIR_P" >&6; }
6662
6663 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6664 # a relative path to it in each makefile where it subsitutes it. This clashes
6665 # with our Makefile.global concept. This workaround helps.
6666 case $MKDIR_P in
6667   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6668 esac
6669
6670 # Let the user override the search
6671 if test -z "$BISON"; then
6672   for ac_prog in bison
6673 do
6674   # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_path_BISON+set}" = set; then
6679   $as_echo_n "(cached) " >&6
6680 else
6681   case $BISON in
6682   [\\/]* | ?:[\\/]*)
6683   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6684   ;;
6685   *)
6686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701   ;;
6702 esac
6703 fi
6704 BISON=$ac_cv_path_BISON
6705 if test -n "$BISON"; then
6706   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6707 $as_echo "$BISON" >&6; }
6708 else
6709   { $as_echo "$as_me:$LINENO: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713
6714   test -n "$BISON" && break
6715 done
6716
6717 fi
6718
6719 if test "$BISON"; then
6720   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6721   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6722 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6723   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6724   then
6725     { $as_echo "$as_me:$LINENO: WARNING:
6726 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6727 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6728 $as_echo "$as_me: WARNING:
6729 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6730 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6731     BISON=""
6732   fi
6733 fi
6734
6735 if test -z "$BISON"; then
6736   { $as_echo "$as_me:$LINENO: WARNING:
6737 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6738 *** change any of the parser definition files.  You can obtain Bison from
6739 *** a GNU mirror site.  (If you are using the official distribution of
6740 *** PostgreSQL then you do not need to worry about this, because the Bison
6741 *** output is pre-generated.)" >&5
6742 $as_echo "$as_me: WARNING:
6743 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6744 *** change any of the parser definition files.  You can obtain Bison from
6745 *** a GNU mirror site.  (If you are using the official distribution of
6746 *** PostgreSQL then you do not need to worry about this, because the Bison
6747 *** output is pre-generated.)" >&2;}
6748 fi
6749 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6750
6751
6752 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6753 $as_echo_n "checking for flex... " >&6; }
6754 if test "${pgac_cv_path_flex+set}" = set; then
6755   $as_echo_n "(cached) " >&6
6756 else
6757   # Let the user override the test
6758 if test -n "$FLEX"; then
6759   pgac_cv_path_flex=$FLEX
6760 else
6761   pgac_save_IFS=$IFS
6762   IFS=$PATH_SEPARATOR
6763   for pgac_dir in $PATH; do
6764     IFS=$pgac_save_IFS
6765     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6766       pgac_dir=`pwd`
6767     fi
6768     for pgac_prog in flex lex; do
6769       pgac_candidate="$pgac_dir/$pgac_prog"
6770       if test -f "$pgac_candidate" \
6771         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6772       then
6773         echo '%%'  > conftest.l
6774         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6775           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6776           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6777           then
6778             pgac_cv_path_flex=$pgac_candidate
6779             break 2
6780           else
6781             { $as_echo "$as_me:$LINENO: WARNING:
6782 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6783 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6784 $as_echo "$as_me: WARNING:
6785 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6786 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6787           fi
6788         fi
6789       fi
6790     done
6791   done
6792   rm -f conftest.l lex.yy.c
6793   : ${pgac_cv_path_flex=no}
6794 fi
6795
6796 fi
6797 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6798 $as_echo "$pgac_cv_path_flex" >&6; }
6799 if test x"$pgac_cv_path_flex" = x"no"; then
6800   { $as_echo "$as_me:$LINENO: WARNING:
6801 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6802 *** change any of the scanner definition files.  You can obtain Flex from
6803 *** a GNU mirror site.  (If you are using the official distribution of
6804 *** PostgreSQL then you do not need to worry about this because the Flex
6805 *** output is pre-generated.)" >&5
6806 $as_echo "$as_me: WARNING:
6807 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6808 *** change any of the scanner definition files.  You can obtain Flex from
6809 *** a GNU mirror site.  (If you are using the official distribution of
6810 *** PostgreSQL then you do not need to worry about this because the Flex
6811 *** output is pre-generated.)" >&2;}
6812
6813   FLEX=
6814 else
6815   FLEX=$pgac_cv_path_flex
6816   pgac_flex_version=`$FLEX --version 2>/dev/null`
6817   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6818 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6819 fi
6820
6821
6822
6823
6824
6825 # Extract the first word of "perl", so it can be a program name with args.
6826 set dummy perl; ac_word=$2
6827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_path_PERL+set}" = set; then
6830   $as_echo_n "(cached) " >&6
6831 else
6832   case $PERL in
6833   [\\/]* | ?:[\\/]*)
6834   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6835   ;;
6836   *)
6837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842   for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6845     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852   ;;
6853 esac
6854 fi
6855 PERL=$ac_cv_path_PERL
6856 if test -n "$PERL"; then
6857   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6858 $as_echo "$PERL" >&6; }
6859 else
6860   { $as_echo "$as_me:$LINENO: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864
6865 if test "$with_perl" = yes; then
6866
6867 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6868 $as_echo_n "checking for Perl archlibexp... " >&6; }
6869 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6870 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6871 $as_echo "$perl_archlibexp" >&6; }
6872 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6873 $as_echo_n "checking for Perl privlibexp... " >&6; }
6874 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6875 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6876 $as_echo "$perl_privlibexp" >&6; }
6877 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6878 $as_echo_n "checking for Perl useshrplib... " >&6; }
6879 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6880 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6881 $as_echo "$perl_useshrplib" >&6; }
6882
6883 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6884 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6885 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6886 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6887 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6888 if test -z "$perl_embed_ldflags" ; then
6889         { $as_echo "$as_me:$LINENO: result: no" >&5
6890 $as_echo "no" >&6; }
6891         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6892 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6893 installed." >&5
6894 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6895 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6896 installed." >&2;}
6897    { (exit 1); exit 1; }; }
6898 else
6899         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6900 $as_echo "$perl_embed_ldflags" >&6; }
6901 fi
6902
6903 fi
6904
6905 if test "$with_python" = yes; then
6906   # Extract the first word of "python", so it can be a program name with args.
6907 set dummy python; ac_word=$2
6908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if test "${ac_cv_path_PYTHON+set}" = set; then
6911   $as_echo_n "(cached) " >&6
6912 else
6913   case $PYTHON in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6926     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933   ;;
6934 esac
6935 fi
6936 PYTHON=$ac_cv_path_PYTHON
6937 if test -n "$PYTHON"; then
6938   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6939 $as_echo "$PYTHON" >&6; }
6940 else
6941   { $as_echo "$as_me:$LINENO: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 if test x"$PYTHON" = x""; then
6947   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6948 $as_echo "$as_me: error: Python not found" >&2;}
6949    { (exit 1); exit 1; }; }
6950 fi
6951
6952
6953 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6954 $as_echo_n "checking for Python distutils module... " >&6; }
6955 if "${PYTHON}" -c 'import distutils' 2>&5
6956 then
6957     { $as_echo "$as_me:$LINENO: result: yes" >&5
6958 $as_echo "yes" >&6; }
6959 else
6960     { $as_echo "$as_me:$LINENO: result: no" >&5
6961 $as_echo "no" >&6; }
6962     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
6963 $as_echo "$as_me: error: distutils module not found" >&2;}
6964    { (exit 1); exit 1; }; }
6965 fi
6966 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
6967 $as_echo_n "checking Python configuration directory... " >&6; }
6968 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
6969 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6970 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
6971 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6972
6973 # This should be enough of a message.
6974 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
6975 $as_echo "$python_configdir" >&6; }
6976
6977
6978 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6979 $as_echo_n "checking how to link an embedded Python application... " >&6; }
6980
6981 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6982 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6983 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6984 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6985
6986 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6987 then
6988         # New way: use the official shared library
6989         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6990         python_libspec="-L${python_libdir} -l${ldlibrary}"
6991 else
6992         # Old way: use libpython from python_configdir
6993         python_libdir="${python_configdir}"
6994         python_libspec="-L${python_libdir} -lpython${python_version}"
6995 fi
6996
6997 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6998
6999 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7000 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7001
7002
7003 # threaded python is not supported on bsd's
7004 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7005 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7006 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7007 if test "$pythreads" = "1"; then
7008   { $as_echo "$as_me:$LINENO: result: yes" >&5
7009 $as_echo "yes" >&6; }
7010   case $host_os in
7011   openbsd*|freebsd*)
7012     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7013 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7014    { (exit 1); exit 1; }; }
7015     ;;
7016   esac
7017 else
7018   { $as_echo "$as_me:$LINENO: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023 fi
7024
7025 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7026   # Extract the first word of "zic", so it can be a program name with args.
7027 set dummy zic; ac_word=$2
7028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if test "${ac_cv_path_ZIC+set}" = set; then
7031   $as_echo_n "(cached) " >&6
7032 else
7033   case $ZIC in
7034   [\\/]* | ?:[\\/]*)
7035   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7036   ;;
7037   *)
7038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053   ;;
7054 esac
7055 fi
7056 ZIC=$ac_cv_path_ZIC
7057 if test -n "$ZIC"; then
7058   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7059 $as_echo "$ZIC" >&6; }
7060 else
7061   { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066   if test -z "$ZIC"; then
7067     { { $as_echo "$as_me:$LINENO: error:
7068 When cross-compiling, either use the option --with-system-tzdata to use
7069 existing time-zone data, or set the environment variable ZIC to a zic
7070 program to use during the build." >&5
7071 $as_echo "$as_me: error:
7072 When cross-compiling, either use the option --with-system-tzdata to use
7073 existing time-zone data, or set the environment variable ZIC to a zic
7074 program to use during the build." >&2;}
7075    { (exit 1); exit 1; }; }
7076   fi
7077 fi
7078
7079
7080 ##
7081 ## Libraries
7082 ##
7083 ## Most libraries are included only if they demonstrably provide a function
7084 ## we need, but libm is an exception: always include it, because there are
7085 ## too many compilers that play cute optimization games that will break
7086 ## probes for standard functions such as pow().
7087 ##
7088
7089
7090 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7091 $as_echo_n "checking for main in -lm... " >&6; }
7092 if test "${ac_cv_lib_m_main+set}" = set; then
7093   $as_echo_n "(cached) " >&6
7094 else
7095   ac_check_lib_save_LIBS=$LIBS
7096 LIBS="-lm  $LIBS"
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103
7104
7105 int
7106 main ()
7107 {
7108 return main ();
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121   (eval "$ac_link") 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } && {
7128          test -z "$ac_c_werror_flag" ||
7129          test ! -s conftest.err
7130        } && test -s conftest$ac_exeext && {
7131          test "$cross_compiling" = yes ||
7132          $as_test_x conftest$ac_exeext
7133        }; then
7134   ac_cv_lib_m_main=yes
7135 else
7136   $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139         ac_cv_lib_m_main=no
7140 fi
7141
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7144       conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7146 fi
7147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7148 $as_echo "$ac_cv_lib_m_main" >&6; }
7149 if test "x$ac_cv_lib_m_main" = x""yes; then
7150   cat >>confdefs.h <<_ACEOF
7151 #define HAVE_LIBM 1
7152 _ACEOF
7153
7154   LIBS="-lm $LIBS"
7155
7156 fi
7157
7158 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7159 $as_echo_n "checking for library containing setproctitle... " >&6; }
7160 if test "${ac_cv_search_setproctitle+set}" = set; then
7161   $as_echo_n "(cached) " >&6
7162 else
7163   ac_func_search_save_LIBS=$LIBS
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 /* Override any GCC internal prototype to avoid an error.
7172    Use char because int might match the return type of a GCC
7173    builtin and then its argument prototype would still apply.  */
7174 #ifdef __cplusplus
7175 extern "C"
7176 #endif
7177 char setproctitle ();
7178 int
7179 main ()
7180 {
7181 return setproctitle ();
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 for ac_lib in '' util; do
7187   if test -z "$ac_lib"; then
7188     ac_res="none required"
7189   else
7190     ac_res=-l$ac_lib
7191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7192   fi
7193   rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (ac_try="$ac_link"
7195 case "(($ac_try" in
7196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197   *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201   (eval "$ac_link") 2>conftest.er1
7202   ac_status=$?
7203   grep -v '^ *+' conftest.er1 >conftest.err
7204   rm -f conftest.er1
7205   cat conftest.err >&5
7206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); } && {
7208          test -z "$ac_c_werror_flag" ||
7209          test ! -s conftest.err
7210        } && test -s conftest$ac_exeext && {
7211          test "$cross_compiling" = yes ||
7212          $as_test_x conftest$ac_exeext
7213        }; then
7214   ac_cv_search_setproctitle=$ac_res
7215 else
7216   $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219
7220 fi
7221
7222 rm -rf conftest.dSYM
7223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7224       conftest$ac_exeext
7225   if test "${ac_cv_search_setproctitle+set}" = set; then
7226   break
7227 fi
7228 done
7229 if test "${ac_cv_search_setproctitle+set}" = set; then
7230   :
7231 else
7232   ac_cv_search_setproctitle=no
7233 fi
7234 rm conftest.$ac_ext
7235 LIBS=$ac_func_search_save_LIBS
7236 fi
7237 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7238 $as_echo "$ac_cv_search_setproctitle" >&6; }
7239 ac_res=$ac_cv_search_setproctitle
7240 if test "$ac_res" != no; then
7241   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7242
7243 fi
7244
7245 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7246 $as_echo_n "checking for library containing dlopen... " >&6; }
7247 if test "${ac_cv_search_dlopen+set}" = set; then
7248   $as_echo_n "(cached) " >&6
7249 else
7250   ac_func_search_save_LIBS=$LIBS
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257
7258 /* Override any GCC internal prototype to avoid an error.
7259    Use char because int might match the return type of a GCC
7260    builtin and then its argument prototype would still apply.  */
7261 #ifdef __cplusplus
7262 extern "C"
7263 #endif
7264 char dlopen ();
7265 int
7266 main ()
7267 {
7268 return dlopen ();
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 for ac_lib in '' dl; do
7274   if test -z "$ac_lib"; then
7275     ac_res="none required"
7276   else
7277     ac_res=-l$ac_lib
7278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7279   fi
7280   rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284   *) ac_try_echo=$ac_try;;
7285 esac
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288   (eval "$ac_link") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } && {
7295          test -z "$ac_c_werror_flag" ||
7296          test ! -s conftest.err
7297        } && test -s conftest$ac_exeext && {
7298          test "$cross_compiling" = yes ||
7299          $as_test_x conftest$ac_exeext
7300        }; then
7301   ac_cv_search_dlopen=$ac_res
7302 else
7303   $as_echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306
7307 fi
7308
7309 rm -rf conftest.dSYM
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7311       conftest$ac_exeext
7312   if test "${ac_cv_search_dlopen+set}" = set; then
7313   break
7314 fi
7315 done
7316 if test "${ac_cv_search_dlopen+set}" = set; then
7317   :
7318 else
7319   ac_cv_search_dlopen=no
7320 fi
7321 rm conftest.$ac_ext
7322 LIBS=$ac_func_search_save_LIBS
7323 fi
7324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7325 $as_echo "$ac_cv_search_dlopen" >&6; }
7326 ac_res=$ac_cv_search_dlopen
7327 if test "$ac_res" != no; then
7328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7329
7330 fi
7331
7332 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7333 $as_echo_n "checking for library containing socket... " >&6; }
7334 if test "${ac_cv_search_socket+set}" = set; then
7335   $as_echo_n "(cached) " >&6
7336 else
7337   ac_func_search_save_LIBS=$LIBS
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344
7345 /* Override any GCC internal prototype to avoid an error.
7346    Use char because int might match the return type of a GCC
7347    builtin and then its argument prototype would still apply.  */
7348 #ifdef __cplusplus
7349 extern "C"
7350 #endif
7351 char socket ();
7352 int
7353 main ()
7354 {
7355 return socket ();
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 for ac_lib in '' socket wsock32; do
7361   if test -z "$ac_lib"; then
7362     ac_res="none required"
7363   else
7364     ac_res=-l$ac_lib
7365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7366   fi
7367   rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (ac_try="$ac_link"
7369 case "(($ac_try" in
7370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371   *) ac_try_echo=$ac_try;;
7372 esac
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375   (eval "$ac_link") 2>conftest.er1
7376   ac_status=$?
7377   grep -v '^ *+' conftest.er1 >conftest.err
7378   rm -f conftest.er1
7379   cat conftest.err >&5
7380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } && {
7382          test -z "$ac_c_werror_flag" ||
7383          test ! -s conftest.err
7384        } && test -s conftest$ac_exeext && {
7385          test "$cross_compiling" = yes ||
7386          $as_test_x conftest$ac_exeext
7387        }; then
7388   ac_cv_search_socket=$ac_res
7389 else
7390   $as_echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393
7394 fi
7395
7396 rm -rf conftest.dSYM
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398       conftest$ac_exeext
7399   if test "${ac_cv_search_socket+set}" = set; then
7400   break
7401 fi
7402 done
7403 if test "${ac_cv_search_socket+set}" = set; then
7404   :
7405 else
7406   ac_cv_search_socket=no
7407 fi
7408 rm conftest.$ac_ext
7409 LIBS=$ac_func_search_save_LIBS
7410 fi
7411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7412 $as_echo "$ac_cv_search_socket" >&6; }
7413 ac_res=$ac_cv_search_socket
7414 if test "$ac_res" != no; then
7415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7416
7417 fi
7418
7419 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7420 $as_echo_n "checking for library containing shl_load... " >&6; }
7421 if test "${ac_cv_search_shl_load+set}" = set; then
7422   $as_echo_n "(cached) " >&6
7423 else
7424   ac_func_search_save_LIBS=$LIBS
7425 cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h.  */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h.  */
7431
7432 /* Override any GCC internal prototype to avoid an error.
7433    Use char because int might match the return type of a GCC
7434    builtin and then its argument prototype would still apply.  */
7435 #ifdef __cplusplus
7436 extern "C"
7437 #endif
7438 char shl_load ();
7439 int
7440 main ()
7441 {
7442 return shl_load ();
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 for ac_lib in '' dld; do
7448   if test -z "$ac_lib"; then
7449     ac_res="none required"
7450   else
7451     ac_res=-l$ac_lib
7452     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7453   fi
7454   rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7456 case "(($ac_try" in
7457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458   *) ac_try_echo=$ac_try;;
7459 esac
7460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461 $as_echo "$ac_try_echo") >&5
7462   (eval "$ac_link") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } && {
7469          test -z "$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        } && test -s conftest$ac_exeext && {
7472          test "$cross_compiling" = yes ||
7473          $as_test_x conftest$ac_exeext
7474        }; then
7475   ac_cv_search_shl_load=$ac_res
7476 else
7477   $as_echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480
7481 fi
7482
7483 rm -rf conftest.dSYM
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485       conftest$ac_exeext
7486   if test "${ac_cv_search_shl_load+set}" = set; then
7487   break
7488 fi
7489 done
7490 if test "${ac_cv_search_shl_load+set}" = set; then
7491   :
7492 else
7493   ac_cv_search_shl_load=no
7494 fi
7495 rm conftest.$ac_ext
7496 LIBS=$ac_func_search_save_LIBS
7497 fi
7498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7499 $as_echo "$ac_cv_search_shl_load" >&6; }
7500 ac_res=$ac_cv_search_shl_load
7501 if test "$ac_res" != no; then
7502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7503
7504 fi
7505
7506 # We only use libld in port/dynloader/aix.c
7507 case $host_os in
7508      aix*)
7509         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7510 $as_echo_n "checking for library containing ldopen... " >&6; }
7511 if test "${ac_cv_search_ldopen+set}" = set; then
7512   $as_echo_n "(cached) " >&6
7513 else
7514   ac_func_search_save_LIBS=$LIBS
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h.  */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h.  */
7521
7522 /* Override any GCC internal prototype to avoid an error.
7523    Use char because int might match the return type of a GCC
7524    builtin and then its argument prototype would still apply.  */
7525 #ifdef __cplusplus
7526 extern "C"
7527 #endif
7528 char ldopen ();
7529 int
7530 main ()
7531 {
7532 return ldopen ();
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 for ac_lib in '' ld; do
7538   if test -z "$ac_lib"; then
7539     ac_res="none required"
7540   else
7541     ac_res=-l$ac_lib
7542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7543   fi
7544   rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (ac_try="$ac_link"
7546 case "(($ac_try" in
7547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548   *) ac_try_echo=$ac_try;;
7549 esac
7550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551 $as_echo "$ac_try_echo") >&5
7552   (eval "$ac_link") 2>conftest.er1
7553   ac_status=$?
7554   grep -v '^ *+' conftest.er1 >conftest.err
7555   rm -f conftest.er1
7556   cat conftest.err >&5
7557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } && {
7559          test -z "$ac_c_werror_flag" ||
7560          test ! -s conftest.err
7561        } && test -s conftest$ac_exeext && {
7562          test "$cross_compiling" = yes ||
7563          $as_test_x conftest$ac_exeext
7564        }; then
7565   ac_cv_search_ldopen=$ac_res
7566 else
7567   $as_echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570
7571 fi
7572
7573 rm -rf conftest.dSYM
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575       conftest$ac_exeext
7576   if test "${ac_cv_search_ldopen+set}" = set; then
7577   break
7578 fi
7579 done
7580 if test "${ac_cv_search_ldopen+set}" = set; then
7581   :
7582 else
7583   ac_cv_search_ldopen=no
7584 fi
7585 rm conftest.$ac_ext
7586 LIBS=$ac_func_search_save_LIBS
7587 fi
7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7589 $as_echo "$ac_cv_search_ldopen" >&6; }
7590 ac_res=$ac_cv_search_ldopen
7591 if test "$ac_res" != no; then
7592   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7593
7594 fi
7595
7596         ;;
7597 esac
7598 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7599 $as_echo_n "checking for library containing getopt_long... " >&6; }
7600 if test "${ac_cv_search_getopt_long+set}" = set; then
7601   $as_echo_n "(cached) " >&6
7602 else
7603   ac_func_search_save_LIBS=$LIBS
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610
7611 /* Override any GCC internal prototype to avoid an error.
7612    Use char because int might match the return type of a GCC
7613    builtin and then its argument prototype would still apply.  */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char getopt_long ();
7618 int
7619 main ()
7620 {
7621 return getopt_long ();
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 for ac_lib in '' getopt gnugetopt; do
7627   if test -z "$ac_lib"; then
7628     ac_res="none required"
7629   else
7630     ac_res=-l$ac_lib
7631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7632   fi
7633   rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (ac_try="$ac_link"
7635 case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641   (eval "$ac_link") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } && {
7648          test -z "$ac_c_werror_flag" ||
7649          test ! -s conftest.err
7650        } && test -s conftest$ac_exeext && {
7651          test "$cross_compiling" = yes ||
7652          $as_test_x conftest$ac_exeext
7653        }; then
7654   ac_cv_search_getopt_long=$ac_res
7655 else
7656   $as_echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659
7660 fi
7661
7662 rm -rf conftest.dSYM
7663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7664       conftest$ac_exeext
7665   if test "${ac_cv_search_getopt_long+set}" = set; then
7666   break
7667 fi
7668 done
7669 if test "${ac_cv_search_getopt_long+set}" = set; then
7670   :
7671 else
7672   ac_cv_search_getopt_long=no
7673 fi
7674 rm conftest.$ac_ext
7675 LIBS=$ac_func_search_save_LIBS
7676 fi
7677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7678 $as_echo "$ac_cv_search_getopt_long" >&6; }
7679 ac_res=$ac_cv_search_getopt_long
7680 if test "$ac_res" != no; then
7681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7682
7683 fi
7684
7685 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7686 $as_echo_n "checking for library containing crypt... " >&6; }
7687 if test "${ac_cv_search_crypt+set}" = set; then
7688   $as_echo_n "(cached) " >&6
7689 else
7690   ac_func_search_save_LIBS=$LIBS
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697
7698 /* Override any GCC internal prototype to avoid an error.
7699    Use char because int might match the return type of a GCC
7700    builtin and then its argument prototype would still apply.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 char crypt ();
7705 int
7706 main ()
7707 {
7708 return crypt ();
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 for ac_lib in '' crypt; do
7714   if test -z "$ac_lib"; then
7715     ac_res="none required"
7716   else
7717     ac_res=-l$ac_lib
7718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7719   fi
7720   rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (ac_try="$ac_link"
7722 case "(($ac_try" in
7723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724   *) ac_try_echo=$ac_try;;
7725 esac
7726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7727 $as_echo "$ac_try_echo") >&5
7728   (eval "$ac_link") 2>conftest.er1
7729   ac_status=$?
7730   grep -v '^ *+' conftest.er1 >conftest.err
7731   rm -f conftest.er1
7732   cat conftest.err >&5
7733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); } && {
7735          test -z "$ac_c_werror_flag" ||
7736          test ! -s conftest.err
7737        } && test -s conftest$ac_exeext && {
7738          test "$cross_compiling" = yes ||
7739          $as_test_x conftest$ac_exeext
7740        }; then
7741   ac_cv_search_crypt=$ac_res
7742 else
7743   $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746
7747 fi
7748
7749 rm -rf conftest.dSYM
7750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7751       conftest$ac_exeext
7752   if test "${ac_cv_search_crypt+set}" = set; then
7753   break
7754 fi
7755 done
7756 if test "${ac_cv_search_crypt+set}" = set; then
7757   :
7758 else
7759   ac_cv_search_crypt=no
7760 fi
7761 rm conftest.$ac_ext
7762 LIBS=$ac_func_search_save_LIBS
7763 fi
7764 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7765 $as_echo "$ac_cv_search_crypt" >&6; }
7766 ac_res=$ac_cv_search_crypt
7767 if test "$ac_res" != no; then
7768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7769
7770 fi
7771
7772 # Solaris:
7773 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7774 $as_echo_n "checking for library containing fdatasync... " >&6; }
7775 if test "${ac_cv_search_fdatasync+set}" = set; then
7776   $as_echo_n "(cached) " >&6
7777 else
7778   ac_func_search_save_LIBS=$LIBS
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 /* Override any GCC internal prototype to avoid an error.
7787    Use char because int might match the return type of a GCC
7788    builtin and then its argument prototype would still apply.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char fdatasync ();
7793 int
7794 main ()
7795 {
7796 return fdatasync ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 for ac_lib in '' rt posix4; do
7802   if test -z "$ac_lib"; then
7803     ac_res="none required"
7804   else
7805     ac_res=-l$ac_lib
7806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7807   fi
7808   rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (ac_try="$ac_link"
7810 case "(($ac_try" in
7811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812   *) ac_try_echo=$ac_try;;
7813 esac
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816   (eval "$ac_link") 2>conftest.er1
7817   ac_status=$?
7818   grep -v '^ *+' conftest.er1 >conftest.err
7819   rm -f conftest.er1
7820   cat conftest.err >&5
7821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } && {
7823          test -z "$ac_c_werror_flag" ||
7824          test ! -s conftest.err
7825        } && test -s conftest$ac_exeext && {
7826          test "$cross_compiling" = yes ||
7827          $as_test_x conftest$ac_exeext
7828        }; then
7829   ac_cv_search_fdatasync=$ac_res
7830 else
7831   $as_echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834
7835 fi
7836
7837 rm -rf conftest.dSYM
7838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7839       conftest$ac_exeext
7840   if test "${ac_cv_search_fdatasync+set}" = set; then
7841   break
7842 fi
7843 done
7844 if test "${ac_cv_search_fdatasync+set}" = set; then
7845   :
7846 else
7847   ac_cv_search_fdatasync=no
7848 fi
7849 rm conftest.$ac_ext
7850 LIBS=$ac_func_search_save_LIBS
7851 fi
7852 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7853 $as_echo "$ac_cv_search_fdatasync" >&6; }
7854 ac_res=$ac_cv_search_fdatasync
7855 if test "$ac_res" != no; then
7856   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7857
7858 fi
7859
7860 # Required for thread_test.c on Solaris 2.5:
7861 # Other ports use it too (HP-UX) so test unconditionally
7862 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7863 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7864 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7865   $as_echo_n "(cached) " >&6
7866 else
7867   ac_func_search_save_LIBS=$LIBS
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874
7875 /* Override any GCC internal prototype to avoid an error.
7876    Use char because int might match the return type of a GCC
7877    builtin and then its argument prototype would still apply.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 char gethostbyname_r ();
7882 int
7883 main ()
7884 {
7885 return gethostbyname_r ();
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 for ac_lib in '' nsl; do
7891   if test -z "$ac_lib"; then
7892     ac_res="none required"
7893   else
7894     ac_res=-l$ac_lib
7895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7896   fi
7897   rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905   (eval "$ac_link") 2>conftest.er1
7906   ac_status=$?
7907   grep -v '^ *+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } && {
7912          test -z "$ac_c_werror_flag" ||
7913          test ! -s conftest.err
7914        } && test -s conftest$ac_exeext && {
7915          test "$cross_compiling" = yes ||
7916          $as_test_x conftest$ac_exeext
7917        }; then
7918   ac_cv_search_gethostbyname_r=$ac_res
7919 else
7920   $as_echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923
7924 fi
7925
7926 rm -rf conftest.dSYM
7927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928       conftest$ac_exeext
7929   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7930   break
7931 fi
7932 done
7933 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7934   :
7935 else
7936   ac_cv_search_gethostbyname_r=no
7937 fi
7938 rm conftest.$ac_ext
7939 LIBS=$ac_func_search_save_LIBS
7940 fi
7941 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7942 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7943 ac_res=$ac_cv_search_gethostbyname_r
7944 if test "$ac_res" != no; then
7945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7946
7947 fi
7948
7949 # Cygwin:
7950 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7951 $as_echo_n "checking for library containing shmget... " >&6; }
7952 if test "${ac_cv_search_shmget+set}" = set; then
7953   $as_echo_n "(cached) " >&6
7954 else
7955   ac_func_search_save_LIBS=$LIBS
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 /* Override any GCC internal prototype to avoid an error.
7964    Use char because int might match the return type of a GCC
7965    builtin and then its argument prototype would still apply.  */
7966 #ifdef __cplusplus
7967 extern "C"
7968 #endif
7969 char shmget ();
7970 int
7971 main ()
7972 {
7973 return shmget ();
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 for ac_lib in '' cygipc; do
7979   if test -z "$ac_lib"; then
7980     ac_res="none required"
7981   else
7982     ac_res=-l$ac_lib
7983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7984   fi
7985   rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7987 case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993   (eval "$ac_link") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && {
8000          test -z "$ac_c_werror_flag" ||
8001          test ! -s conftest.err
8002        } && test -s conftest$ac_exeext && {
8003          test "$cross_compiling" = yes ||
8004          $as_test_x conftest$ac_exeext
8005        }; then
8006   ac_cv_search_shmget=$ac_res
8007 else
8008   $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011
8012 fi
8013
8014 rm -rf conftest.dSYM
8015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8016       conftest$ac_exeext
8017   if test "${ac_cv_search_shmget+set}" = set; then
8018   break
8019 fi
8020 done
8021 if test "${ac_cv_search_shmget+set}" = set; then
8022   :
8023 else
8024   ac_cv_search_shmget=no
8025 fi
8026 rm conftest.$ac_ext
8027 LIBS=$ac_func_search_save_LIBS
8028 fi
8029 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8030 $as_echo "$ac_cv_search_shmget" >&6; }
8031 ac_res=$ac_cv_search_shmget
8032 if test "$ac_res" != no; then
8033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8034
8035 fi
8036
8037
8038 if test "$with_readline" = yes; then
8039
8040
8041 if test "${pgac_cv_check_readline+set}" = set; then
8042   $as_echo_n "(cached) " >&6
8043 else
8044   pgac_cv_check_readline=no
8045 pgac_save_LIBS=$LIBS
8046 if test x"$with_libedit_preferred" != x"yes"
8047 then    READLINE_ORDER="-lreadline -ledit"
8048 else    READLINE_ORDER="-ledit -lreadline"
8049 fi
8050 for pgac_rllib in $READLINE_ORDER ; do
8051   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8052 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8053   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8054     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8055     cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061
8062 /* Override any GCC internal prototype to avoid an error.
8063    Use char because int might match the return type of a GCC
8064    builtin and then its argument prototype would still apply.  */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 char readline ();
8069 int
8070 main ()
8071 {
8072 return readline ();
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085   (eval "$ac_link") 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } && {
8092          test -z "$ac_c_werror_flag" ||
8093          test ! -s conftest.err
8094        } && test -s conftest$ac_exeext && {
8095          test "$cross_compiling" = yes ||
8096          $as_test_x conftest$ac_exeext
8097        }; then
8098
8099       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8100       # recognize dependent libraries; assume curses is needed if we didn't
8101       # find any dependency.
8102       case $host_os in
8103         netbsd* | openbsd* | irix*)
8104           if test x"$pgac_lib" = x"" ; then
8105             pgac_lib=" -lcurses"
8106           fi ;;
8107       esac
8108
8109       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8110       break
8111
8112 else
8113   $as_echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8115
8116
8117 fi
8118
8119 rm -rf conftest.dSYM
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121       conftest$ac_exeext conftest.$ac_ext
8122   done
8123   if test "$pgac_cv_check_readline" != no ; then
8124     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8125 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8126     break
8127   else
8128     { $as_echo "$as_me:$LINENO: result: no" >&5
8129 $as_echo "no" >&6; }
8130   fi
8131 done
8132 LIBS=$pgac_save_LIBS
8133
8134 fi
8135
8136 if test "$pgac_cv_check_readline" != no ; then
8137   LIBS="$pgac_cv_check_readline $LIBS"
8138
8139 cat >>confdefs.h <<\_ACEOF
8140 #define HAVE_LIBREADLINE 1
8141 _ACEOF
8142
8143 fi
8144
8145
8146   if test x"$pgac_cv_check_readline" = x"no"; then
8147     { { $as_echo "$as_me:$LINENO: error: readline library not found
8148 If you have readline already installed, see config.log for details on the
8149 failure.  It is possible the compiler isn't looking in the proper directory.
8150 Use --without-readline to disable readline support." >&5
8151 $as_echo "$as_me: error: readline library not found
8152 If you have readline already installed, see config.log for details on the
8153 failure.  It is possible the compiler isn't looking in the proper directory.
8154 Use --without-readline to disable readline support." >&2;}
8155    { (exit 1); exit 1; }; }
8156   fi
8157 fi
8158
8159 if test "$with_zlib" = yes; then
8160
8161 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8162 $as_echo_n "checking for inflate in -lz... " >&6; }
8163 if test "${ac_cv_lib_z_inflate+set}" = set; then
8164   $as_echo_n "(cached) " >&6
8165 else
8166   ac_check_lib_save_LIBS=$LIBS
8167 LIBS="-lz  $LIBS"
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174
8175 /* Override any GCC internal prototype to avoid an error.
8176    Use char because int might match the return type of a GCC
8177    builtin and then its argument prototype would still apply.  */
8178 #ifdef __cplusplus
8179 extern "C"
8180 #endif
8181 char inflate ();
8182 int
8183 main ()
8184 {
8185 return inflate ();
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8197 $as_echo "$ac_try_echo") >&5
8198   (eval "$ac_link") 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } && {
8205          test -z "$ac_c_werror_flag" ||
8206          test ! -s conftest.err
8207        } && test -s conftest$ac_exeext && {
8208          test "$cross_compiling" = yes ||
8209          $as_test_x conftest$ac_exeext
8210        }; then
8211   ac_cv_lib_z_inflate=yes
8212 else
8213   $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216         ac_cv_lib_z_inflate=no
8217 fi
8218
8219 rm -rf conftest.dSYM
8220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8221       conftest$ac_exeext conftest.$ac_ext
8222 LIBS=$ac_check_lib_save_LIBS
8223 fi
8224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8225 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8226 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8227   cat >>confdefs.h <<_ACEOF
8228 #define HAVE_LIBZ 1
8229 _ACEOF
8230
8231   LIBS="-lz $LIBS"
8232
8233 else
8234   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8235 If you have zlib already installed, see config.log for details on the
8236 failure.  It is possible the compiler isn't looking in the proper directory.
8237 Use --without-zlib to disable zlib support." >&5
8238 $as_echo "$as_me: error: zlib library not found
8239 If you have zlib already installed, see config.log for details on the
8240 failure.  It is possible the compiler isn't looking in the proper directory.
8241 Use --without-zlib to disable zlib support." >&2;}
8242    { (exit 1); exit 1; }; }
8243 fi
8244
8245 fi
8246
8247 if test "$enable_spinlocks" = yes; then
8248
8249 cat >>confdefs.h <<\_ACEOF
8250 #define HAVE_SPINLOCKS 1
8251 _ACEOF
8252
8253 else
8254   { $as_echo "$as_me:$LINENO: WARNING:
8255 *** Not using spinlocks will cause poor performance." >&5
8256 $as_echo "$as_me: WARNING:
8257 *** Not using spinlocks will cause poor performance." >&2;}
8258 fi
8259
8260 if test "$with_gssapi" = yes ; then
8261   if test "$PORTNAME" != "win32"; then
8262     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8263 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8264 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8265   $as_echo_n "(cached) " >&6
8266 else
8267   ac_func_search_save_LIBS=$LIBS
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274
8275 /* Override any GCC internal prototype to avoid an error.
8276    Use char because int might match the return type of a GCC
8277    builtin and then its argument prototype would still apply.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 #endif
8281 char gss_init_sec_context ();
8282 int
8283 main ()
8284 {
8285 return gss_init_sec_context ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8291   if test -z "$ac_lib"; then
8292     ac_res="none required"
8293   else
8294     ac_res=-l$ac_lib
8295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8296   fi
8297   rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8304 $as_echo "$ac_try_echo") >&5
8305   (eval "$ac_link") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && {
8312          test -z "$ac_c_werror_flag" ||
8313          test ! -s conftest.err
8314        } && test -s conftest$ac_exeext && {
8315          test "$cross_compiling" = yes ||
8316          $as_test_x conftest$ac_exeext
8317        }; then
8318   ac_cv_search_gss_init_sec_context=$ac_res
8319 else
8320   $as_echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323
8324 fi
8325
8326 rm -rf conftest.dSYM
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328       conftest$ac_exeext
8329   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8330   break
8331 fi
8332 done
8333 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8334   :
8335 else
8336   ac_cv_search_gss_init_sec_context=no
8337 fi
8338 rm conftest.$ac_ext
8339 LIBS=$ac_func_search_save_LIBS
8340 fi
8341 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8342 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8343 ac_res=$ac_cv_search_gss_init_sec_context
8344 if test "$ac_res" != no; then
8345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8346
8347 else
8348   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8349 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8350    { (exit 1); exit 1; }; }
8351 fi
8352
8353   else
8354     LIBS="$LIBS -lgssapi32"
8355   fi
8356 fi
8357
8358 if test "$with_krb5" = yes ; then
8359   if test "$PORTNAME" != "win32"; then
8360      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8361 $as_echo_n "checking for library containing com_err... " >&6; }
8362 if test "${ac_cv_search_com_err+set}" = set; then
8363   $as_echo_n "(cached) " >&6
8364 else
8365   ac_func_search_save_LIBS=$LIBS
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h.  */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h.  */
8372
8373 /* Override any GCC internal prototype to avoid an error.
8374    Use char because int might match the return type of a GCC
8375    builtin and then its argument prototype would still apply.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 char com_err ();
8380 int
8381 main ()
8382 {
8383 return com_err ();
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8389   if test -z "$ac_lib"; then
8390     ac_res="none required"
8391   else
8392     ac_res=-l$ac_lib
8393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8394   fi
8395   rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (ac_try="$ac_link"
8397 case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403   (eval "$ac_link") 2>conftest.er1
8404   ac_status=$?
8405   grep -v '^ *+' conftest.er1 >conftest.err
8406   rm -f conftest.er1
8407   cat conftest.err >&5
8408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); } && {
8410          test -z "$ac_c_werror_flag" ||
8411          test ! -s conftest.err
8412        } && test -s conftest$ac_exeext && {
8413          test "$cross_compiling" = yes ||
8414          $as_test_x conftest$ac_exeext
8415        }; then
8416   ac_cv_search_com_err=$ac_res
8417 else
8418   $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421
8422 fi
8423
8424 rm -rf conftest.dSYM
8425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8426       conftest$ac_exeext
8427   if test "${ac_cv_search_com_err+set}" = set; then
8428   break
8429 fi
8430 done
8431 if test "${ac_cv_search_com_err+set}" = set; then
8432   :
8433 else
8434   ac_cv_search_com_err=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8440 $as_echo "$ac_cv_search_com_err" >&6; }
8441 ac_res=$ac_cv_search_com_err
8442 if test "$ac_res" != no; then
8443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 else
8446   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8447 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8448    { (exit 1); exit 1; }; }
8449 fi
8450
8451      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8452 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8453 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8454   $as_echo_n "(cached) " >&6
8455 else
8456   ac_func_search_save_LIBS=$LIBS
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 /* Override any GCC internal prototype to avoid an error.
8465    Use char because int might match the return type of a GCC
8466    builtin and then its argument prototype would still apply.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 char krb5_sendauth ();
8471 int
8472 main ()
8473 {
8474 return krb5_sendauth ();
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8480   if test -z "$ac_lib"; then
8481     ac_res="none required"
8482   else
8483     ac_res=-l$ac_lib
8484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8485   fi
8486   rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8488 case "(($ac_try" in
8489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490   *) ac_try_echo=$ac_try;;
8491 esac
8492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8493 $as_echo "$ac_try_echo") >&5
8494   (eval "$ac_link") 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } && {
8501          test -z "$ac_c_werror_flag" ||
8502          test ! -s conftest.err
8503        } && test -s conftest$ac_exeext && {
8504          test "$cross_compiling" = yes ||
8505          $as_test_x conftest$ac_exeext
8506        }; then
8507   ac_cv_search_krb5_sendauth=$ac_res
8508 else
8509   $as_echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512
8513 fi
8514
8515 rm -rf conftest.dSYM
8516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517       conftest$ac_exeext
8518   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8519   break
8520 fi
8521 done
8522 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8523   :
8524 else
8525   ac_cv_search_krb5_sendauth=no
8526 fi
8527 rm conftest.$ac_ext
8528 LIBS=$ac_func_search_save_LIBS
8529 fi
8530 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8531 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8532 ac_res=$ac_cv_search_krb5_sendauth
8533 if test "$ac_res" != no; then
8534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8535
8536 else
8537   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8538 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8539    { (exit 1); exit 1; }; }
8540 fi
8541
8542   else
8543      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8544 $as_echo_n "checking for library containing com_err... " >&6; }
8545 if test "${ac_cv_search_com_err+set}" = set; then
8546   $as_echo_n "(cached) " >&6
8547 else
8548   ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555
8556 /* Override any GCC internal prototype to avoid an error.
8557    Use char because int might match the return type of a GCC
8558    builtin and then its argument prototype would still apply.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 char com_err ();
8563 int
8564 main ()
8565 {
8566 return com_err ();
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8572   if test -z "$ac_lib"; then
8573     ac_res="none required"
8574   else
8575     ac_res=-l$ac_lib
8576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8577   fi
8578   rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586   (eval "$ac_link") 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } && {
8593          test -z "$ac_c_werror_flag" ||
8594          test ! -s conftest.err
8595        } && test -s conftest$ac_exeext && {
8596          test "$cross_compiling" = yes ||
8597          $as_test_x conftest$ac_exeext
8598        }; then
8599   ac_cv_search_com_err=$ac_res
8600 else
8601   $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604
8605 fi
8606
8607 rm -rf conftest.dSYM
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609       conftest$ac_exeext
8610   if test "${ac_cv_search_com_err+set}" = set; then
8611   break
8612 fi
8613 done
8614 if test "${ac_cv_search_com_err+set}" = set; then
8615   :
8616 else
8617   ac_cv_search_com_err=no
8618 fi
8619 rm conftest.$ac_ext
8620 LIBS=$ac_func_search_save_LIBS
8621 fi
8622 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8623 $as_echo "$ac_cv_search_com_err" >&6; }
8624 ac_res=$ac_cv_search_com_err
8625 if test "$ac_res" != no; then
8626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627
8628 else
8629   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8630 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8631    { (exit 1); exit 1; }; }
8632 fi
8633
8634   fi
8635 fi
8636
8637 if test "$with_openssl" = yes ; then
8638     if test "$PORTNAME" != "win32"; then
8639
8640 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8641 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8642 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8643   $as_echo_n "(cached) " >&6
8644 else
8645   ac_check_lib_save_LIBS=$LIBS
8646 LIBS="-lcrypto  $LIBS"
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653
8654 /* Override any GCC internal prototype to avoid an error.
8655    Use char because int might match the return type of a GCC
8656    builtin and then its argument prototype would still apply.  */
8657 #ifdef __cplusplus
8658 extern "C"
8659 #endif
8660 char CRYPTO_new_ex_data ();
8661 int
8662 main ()
8663 {
8664 return CRYPTO_new_ex_data ();
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8671 case "(($ac_try" in
8672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673   *) ac_try_echo=$ac_try;;
8674 esac
8675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676 $as_echo "$ac_try_echo") >&5
8677   (eval "$ac_link") 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } && {
8684          test -z "$ac_c_werror_flag" ||
8685          test ! -s conftest.err
8686        } && test -s conftest$ac_exeext && {
8687          test "$cross_compiling" = yes ||
8688          $as_test_x conftest$ac_exeext
8689        }; then
8690   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8691 else
8692   $as_echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8696 fi
8697
8698 rm -rf conftest.dSYM
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700       conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8704 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8705 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8706   cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBCRYPTO 1
8708 _ACEOF
8709
8710   LIBS="-lcrypto $LIBS"
8711
8712 else
8713   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8714 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8715    { (exit 1); exit 1; }; }
8716 fi
8717
8718
8719 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8720 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8721 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8722   $as_echo_n "(cached) " >&6
8723 else
8724   ac_check_lib_save_LIBS=$LIBS
8725 LIBS="-lssl  $LIBS"
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h.  */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h.  */
8732
8733 /* Override any GCC internal prototype to avoid an error.
8734    Use char because int might match the return type of a GCC
8735    builtin and then its argument prototype would still apply.  */
8736 #ifdef __cplusplus
8737 extern "C"
8738 #endif
8739 char SSL_library_init ();
8740 int
8741 main ()
8742 {
8743 return SSL_library_init ();
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (ac_try="$ac_link"
8750 case "(($ac_try" in
8751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752   *) ac_try_echo=$ac_try;;
8753 esac
8754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8755 $as_echo "$ac_try_echo") >&5
8756   (eval "$ac_link") 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } && {
8763          test -z "$ac_c_werror_flag" ||
8764          test ! -s conftest.err
8765        } && test -s conftest$ac_exeext && {
8766          test "$cross_compiling" = yes ||
8767          $as_test_x conftest$ac_exeext
8768        }; then
8769   ac_cv_lib_ssl_SSL_library_init=yes
8770 else
8771   $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774         ac_cv_lib_ssl_SSL_library_init=no
8775 fi
8776
8777 rm -rf conftest.dSYM
8778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8779       conftest$ac_exeext conftest.$ac_ext
8780 LIBS=$ac_check_lib_save_LIBS
8781 fi
8782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8783 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8784 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8785   cat >>confdefs.h <<_ACEOF
8786 #define HAVE_LIBSSL 1
8787 _ACEOF
8788
8789   LIBS="-lssl $LIBS"
8790
8791 else
8792   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8793 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8794    { (exit 1); exit 1; }; }
8795 fi
8796
8797   else
8798
8799 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8800 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8801 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8802   $as_echo_n "(cached) " >&6
8803 else
8804   ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-leay32  $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812
8813 /* Override any GCC internal prototype to avoid an error.
8814    Use char because int might match the return type of a GCC
8815    builtin and then its argument prototype would still apply.  */
8816 #ifdef __cplusplus
8817 extern "C"
8818 #endif
8819 char CRYPTO_new_ex_data ();
8820 int
8821 main ()
8822 {
8823 return CRYPTO_new_ex_data ();
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (ac_try="$ac_link"
8830 case "(($ac_try" in
8831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832   *) ac_try_echo=$ac_try;;
8833 esac
8834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835 $as_echo "$ac_try_echo") >&5
8836   (eval "$ac_link") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } && {
8843          test -z "$ac_c_werror_flag" ||
8844          test ! -s conftest.err
8845        } && test -s conftest$ac_exeext && {
8846          test "$cross_compiling" = yes ||
8847          $as_test_x conftest$ac_exeext
8848        }; then
8849   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8850 else
8851   $as_echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8855 fi
8856
8857 rm -rf conftest.dSYM
8858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8859       conftest$ac_exeext conftest.$ac_ext
8860 LIBS=$ac_check_lib_save_LIBS
8861 fi
8862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8863 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8864 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8865   cat >>confdefs.h <<_ACEOF
8866 #define HAVE_LIBEAY32 1
8867 _ACEOF
8868
8869   LIBS="-leay32 $LIBS"
8870
8871 else
8872   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8873 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8874    { (exit 1); exit 1; }; }
8875 fi
8876
8877
8878 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8879 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8880 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8881   $as_echo_n "(cached) " >&6
8882 else
8883   ac_check_lib_save_LIBS=$LIBS
8884 LIBS="-lssleay32  $LIBS"
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891
8892 /* Override any GCC internal prototype to avoid an error.
8893    Use char because int might match the return type of a GCC
8894    builtin and then its argument prototype would still apply.  */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 char SSL_library_init ();
8899 int
8900 main ()
8901 {
8902 return SSL_library_init ();
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915   (eval "$ac_link") 2>conftest.er1
8916   ac_status=$?
8917   grep -v '^ *+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } && {
8922          test -z "$ac_c_werror_flag" ||
8923          test ! -s conftest.err
8924        } && test -s conftest$ac_exeext && {
8925          test "$cross_compiling" = yes ||
8926          $as_test_x conftest$ac_exeext
8927        }; then
8928   ac_cv_lib_ssleay32_SSL_library_init=yes
8929 else
8930   $as_echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933         ac_cv_lib_ssleay32_SSL_library_init=no
8934 fi
8935
8936 rm -rf conftest.dSYM
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938       conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8940 fi
8941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8942 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8943 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8944   cat >>confdefs.h <<_ACEOF
8945 #define HAVE_LIBSSLEAY32 1
8946 _ACEOF
8947
8948   LIBS="-lssleay32 $LIBS"
8949
8950 else
8951   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8952 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8953    { (exit 1); exit 1; }; }
8954 fi
8955
8956   fi
8957 fi
8958
8959 if test "$with_pam" = yes ; then
8960
8961 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8962 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8963 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8964   $as_echo_n "(cached) " >&6
8965 else
8966   ac_check_lib_save_LIBS=$LIBS
8967 LIBS="-lpam  $LIBS"
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h.  */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h.  */
8974
8975 /* Override any GCC internal prototype to avoid an error.
8976    Use char because int might match the return type of a GCC
8977    builtin and then its argument prototype would still apply.  */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 char pam_start ();
8982 int
8983 main ()
8984 {
8985 return pam_start ();
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8992 case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998   (eval "$ac_link") 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } && {
9005          test -z "$ac_c_werror_flag" ||
9006          test ! -s conftest.err
9007        } && test -s conftest$ac_exeext && {
9008          test "$cross_compiling" = yes ||
9009          $as_test_x conftest$ac_exeext
9010        }; then
9011   ac_cv_lib_pam_pam_start=yes
9012 else
9013   $as_echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016         ac_cv_lib_pam_pam_start=no
9017 fi
9018
9019 rm -rf conftest.dSYM
9020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021       conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9023 fi
9024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9025 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9026 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9027   cat >>confdefs.h <<_ACEOF
9028 #define HAVE_LIBPAM 1
9029 _ACEOF
9030
9031   LIBS="-lpam $LIBS"
9032
9033 else
9034   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9035 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9036    { (exit 1); exit 1; }; }
9037 fi
9038
9039 fi
9040
9041 if test "$with_libxml" = yes ; then
9042
9043 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9044 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9045 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9046   $as_echo_n "(cached) " >&6
9047 else
9048   ac_check_lib_save_LIBS=$LIBS
9049 LIBS="-lxml2  $LIBS"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056
9057 /* Override any GCC internal prototype to avoid an error.
9058    Use char because int might match the return type of a GCC
9059    builtin and then its argument prototype would still apply.  */
9060 #ifdef __cplusplus
9061 extern "C"
9062 #endif
9063 char xmlSaveToBuffer ();
9064 int
9065 main ()
9066 {
9067 return xmlSaveToBuffer ();
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9079 $as_echo "$ac_try_echo") >&5
9080   (eval "$ac_link") 2>conftest.er1
9081   ac_status=$?
9082   grep -v '^ *+' conftest.er1 >conftest.err
9083   rm -f conftest.er1
9084   cat conftest.err >&5
9085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } && {
9087          test -z "$ac_c_werror_flag" ||
9088          test ! -s conftest.err
9089        } && test -s conftest$ac_exeext && {
9090          test "$cross_compiling" = yes ||
9091          $as_test_x conftest$ac_exeext
9092        }; then
9093   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9094 else
9095   $as_echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098         ac_cv_lib_xml2_xmlSaveToBuffer=no
9099 fi
9100
9101 rm -rf conftest.dSYM
9102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103       conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9105 fi
9106 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9107 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9108 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9109   cat >>confdefs.h <<_ACEOF
9110 #define HAVE_LIBXML2 1
9111 _ACEOF
9112
9113   LIBS="-lxml2 $LIBS"
9114
9115 else
9116   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9117 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9118    { (exit 1); exit 1; }; }
9119 fi
9120
9121 fi
9122
9123 if test "$with_libxslt" = yes ; then
9124
9125 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9126 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9127 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9128   $as_echo_n "(cached) " >&6
9129 else
9130   ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-lxslt  $LIBS"
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138
9139 /* Override any GCC internal prototype to avoid an error.
9140    Use char because int might match the return type of a GCC
9141    builtin and then its argument prototype would still apply.  */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char xsltCleanupGlobals ();
9146 int
9147 main ()
9148 {
9149 return xsltCleanupGlobals ();
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9156 case "(($ac_try" in
9157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158   *) ac_try_echo=$ac_try;;
9159 esac
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162   (eval "$ac_link") 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } && {
9169          test -z "$ac_c_werror_flag" ||
9170          test ! -s conftest.err
9171        } && test -s conftest$ac_exeext && {
9172          test "$cross_compiling" = yes ||
9173          $as_test_x conftest$ac_exeext
9174        }; then
9175   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9176 else
9177   $as_echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9179
9180         ac_cv_lib_xslt_xsltCleanupGlobals=no
9181 fi
9182
9183 rm -rf conftest.dSYM
9184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9185       conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9187 fi
9188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9189 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9190 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9191   cat >>confdefs.h <<_ACEOF
9192 #define HAVE_LIBXSLT 1
9193 _ACEOF
9194
9195   LIBS="-lxslt $LIBS"
9196
9197 else
9198   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9199 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9200    { (exit 1); exit 1; }; }
9201 fi
9202
9203 fi
9204
9205 # for contrib/uuid-ossp
9206 if test "$with_ossp_uuid" = yes ; then
9207   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9208 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9209 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9210   $as_echo_n "(cached) " >&6
9211 else
9212   ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lossp-uuid  $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h.  */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h.  */
9220
9221 /* Override any GCC internal prototype to avoid an error.
9222    Use char because int might match the return type of a GCC
9223    builtin and then its argument prototype would still apply.  */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char uuid_export ();
9228 int
9229 main ()
9230 {
9231 return uuid_export ();
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9238 case "(($ac_try" in
9239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240   *) ac_try_echo=$ac_try;;
9241 esac
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244   (eval "$ac_link") 2>conftest.er1
9245   ac_status=$?
9246   grep -v '^ *+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } && {
9251          test -z "$ac_c_werror_flag" ||
9252          test ! -s conftest.err
9253        } && test -s conftest$ac_exeext && {
9254          test "$cross_compiling" = yes ||
9255          $as_test_x conftest$ac_exeext
9256        }; then
9257   ac_cv_lib_ossp_uuid_uuid_export=yes
9258 else
9259   $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262         ac_cv_lib_ossp_uuid_uuid_export=no
9263 fi
9264
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267       conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9271 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9272 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9273   OSSP_UUID_LIBS="-lossp-uuid"
9274 else
9275   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9276 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9277 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9278   $as_echo_n "(cached) " >&6
9279 else
9280   ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-luuid  $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290    Use char because int might match the return type of a GCC
9291    builtin and then its argument prototype would still apply.  */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char uuid_export ();
9296 int
9297 main ()
9298 {
9299 return uuid_export ();
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9306 case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312   (eval "$ac_link") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } && {
9319          test -z "$ac_c_werror_flag" ||
9320          test ! -s conftest.err
9321        } && test -s conftest$ac_exeext && {
9322          test "$cross_compiling" = yes ||
9323          $as_test_x conftest$ac_exeext
9324        }; then
9325   ac_cv_lib_uuid_uuid_export=yes
9326 else
9327   $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         ac_cv_lib_uuid_uuid_export=no
9331 fi
9332
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335       conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9339 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9340 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9341   OSSP_UUID_LIBS="-luuid"
9342 else
9343   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9344 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9345    { (exit 1); exit 1; }; }
9346 fi
9347
9348 fi
9349
9350 fi
9351
9352
9353
9354 ##
9355 ## Header files
9356 ##
9357
9358 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9359 $as_echo_n "checking for ANSI C header files... " >&6; }
9360 if test "${ac_cv_header_stdc+set}" = set; then
9361   $as_echo_n "(cached) " >&6
9362 else
9363   cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 #include <stdlib.h>
9370 #include <stdarg.h>
9371 #include <string.h>
9372 #include <float.h>
9373
9374 int
9375 main ()
9376 {
9377
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (ac_try="$ac_compile"
9384 case "(($ac_try" in
9385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386   *) ac_try_echo=$ac_try;;
9387 esac
9388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9389 $as_echo "$ac_try_echo") >&5
9390   (eval "$ac_compile") 2>conftest.er1
9391   ac_status=$?
9392   grep -v '^ *+' conftest.er1 >conftest.err
9393   rm -f conftest.er1
9394   cat conftest.err >&5
9395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } && {
9397          test -z "$ac_c_werror_flag" ||
9398          test ! -s conftest.err
9399        } && test -s conftest.$ac_objext; then
9400   ac_cv_header_stdc=yes
9401 else
9402   $as_echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405         ac_cv_header_stdc=no
9406 fi
9407
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409
9410 if test $ac_cv_header_stdc = yes; then
9411   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9412   cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418 #include <string.h>
9419
9420 _ACEOF
9421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9422   $EGREP "memchr" >/dev/null 2>&1; then
9423   :
9424 else
9425   ac_cv_header_stdc=no
9426 fi
9427 rm -f conftest*
9428
9429 fi
9430
9431 if test $ac_cv_header_stdc = yes; then
9432   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9433   cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 #include <stdlib.h>
9440
9441 _ACEOF
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443   $EGREP "free" >/dev/null 2>&1; then
9444   :
9445 else
9446   ac_cv_header_stdc=no
9447 fi
9448 rm -f conftest*
9449
9450 fi
9451
9452 if test $ac_cv_header_stdc = yes; then
9453   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9454   if test "$cross_compiling" = yes; then
9455   :
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463 #include <ctype.h>
9464 #include <stdlib.h>
9465 #if ((' ' & 0x0FF) == 0x020)
9466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9468 #else
9469 # define ISLOWER(c) \
9470                    (('a' <= (c) && (c) <= 'i') \
9471                      || ('j' <= (c) && (c) <= 'r') \
9472                      || ('s' <= (c) && (c) <= 'z'))
9473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9474 #endif
9475
9476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9477 int
9478 main ()
9479 {
9480   int i;
9481   for (i = 0; i < 256; i++)
9482     if (XOR (islower (i), ISLOWER (i))
9483         || toupper (i) != TOUPPER (i))
9484       return 2;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9495 $as_echo "$ac_try_echo") >&5
9496   (eval "$ac_link") 2>&5
9497   ac_status=$?
9498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9500   { (case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9505 $as_echo "$ac_try_echo") >&5
9506   (eval "$ac_try") 2>&5
9507   ac_status=$?
9508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; }; then
9510   :
9511 else
9512   $as_echo "$as_me: program exited with status $ac_status" >&5
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 ( exit $ac_status )
9517 ac_cv_header_stdc=no
9518 fi
9519 rm -rf conftest.dSYM
9520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9521 fi
9522
9523
9524 fi
9525 fi
9526 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9527 $as_echo "$ac_cv_header_stdc" >&6; }
9528 if test $ac_cv_header_stdc = yes; then
9529
9530 cat >>confdefs.h <<\_ACEOF
9531 #define STDC_HEADERS 1
9532 _ACEOF
9533
9534 fi
9535
9536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9547                   inttypes.h stdint.h unistd.h
9548 do
9549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 $as_echo_n "checking for $ac_header... " >&6; }
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553   $as_echo_n "(cached) " >&6
9554 else
9555   cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561 $ac_includes_default
9562
9563 #include <$ac_header>
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9567 case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9572 $as_echo "$ac_try_echo") >&5
9573   (eval "$ac_compile") 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } && {
9580          test -z "$ac_c_werror_flag" ||
9581          test ! -s conftest.err
9582        } && test -s conftest.$ac_objext; then
9583   eval "$as_ac_Header=yes"
9584 else
9585   $as_echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         eval "$as_ac_Header=no"
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 ac_res=`eval 'as_val=${'$as_ac_Header'}
9594                  $as_echo "$as_val"'`
9595                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9596 $as_echo "$ac_res" >&6; }
9597 as_val=`eval 'as_val=${'$as_ac_Header'}
9598                  $as_echo "$as_val"'`
9599    if test "x$as_val" = x""yes; then
9600   cat >>confdefs.h <<_ACEOF
9601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 fi
9605
9606 done
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9640 do
9641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9643   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9644 $as_echo_n "checking for $ac_header... " >&6; }
9645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9646   $as_echo_n "(cached) " >&6
9647 fi
9648 ac_res=`eval 'as_val=${'$as_ac_Header'}
9649                  $as_echo "$as_val"'`
9650                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9651 $as_echo "$ac_res" >&6; }
9652 else
9653   # Is the header compilable?
9654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 $as_echo_n "checking $ac_header usability... " >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9672 $as_echo "$ac_try_echo") >&5
9673   (eval "$ac_compile") 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && {
9680          test -z "$ac_c_werror_flag" ||
9681          test ! -s conftest.err
9682        } && test -s conftest.$ac_objext; then
9683   ac_header_compiler=yes
9684 else
9685   $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688         ac_header_compiler=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 $as_echo "$ac_header_compiler" >&6; }
9694
9695 # Is the header present?
9696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697 $as_echo_n "checking $ac_header presence... " >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704 #include <$ac_header>
9705 _ACEOF
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 case "(($ac_try" in
9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709   *) ac_try_echo=$ac_try;;
9710 esac
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } >/dev/null && {
9720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9721          test ! -s conftest.err
9722        }; then
9723   ac_header_preproc=yes
9724 else
9725   $as_echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728   ac_header_preproc=no
9729 fi
9730
9731 rm -f conftest.err conftest.$ac_ext
9732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733 $as_echo "$ac_header_preproc" >&6; }
9734
9735 # So?  What about this header?
9736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737   yes:no: )
9738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9742     ac_header_preproc=yes
9743     ;;
9744   no:yes:* )
9745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9748 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9752 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9757     ( cat <<\_ASBOX
9758 ## ---------------------------------------- ##
9759 ## Report this to pgsql-bugs@postgresql.org ##
9760 ## ---------------------------------------- ##
9761 _ASBOX
9762      ) | sed "s/^/$as_me: WARNING:     /" >&2
9763     ;;
9764 esac
9765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 $as_echo_n "checking for $ac_header... " >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768   $as_echo_n "(cached) " >&6
9769 else
9770   eval "$as_ac_Header=\$ac_header_preproc"
9771 fi
9772 ac_res=`eval 'as_val=${'$as_ac_Header'}
9773                  $as_echo "$as_val"'`
9774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9775 $as_echo "$ac_res" >&6; }
9776
9777 fi
9778 as_val=`eval 'as_val=${'$as_ac_Header'}
9779                  $as_echo "$as_val"'`
9780    if test "x$as_val" = x""yes; then
9781   cat >>confdefs.h <<_ACEOF
9782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 _ACEOF
9784
9785 fi
9786
9787 done
9788
9789
9790 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9791 # is included first.
9792
9793 for ac_header in net/if.h
9794 do
9795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9797 $as_echo_n "checking for $ac_header... " >&6; }
9798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9799   $as_echo_n "(cached) " >&6
9800 else
9801   cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h.  */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h.  */
9807 $ac_includes_default
9808 #ifdef HAVE_SYS_SOCKET_H
9809 #include <sys/socket.h>
9810 #endif
9811
9812
9813 #include <$ac_header>
9814 _ACEOF
9815 rm -f conftest.$ac_objext
9816 if { (ac_try="$ac_compile"
9817 case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9822 $as_echo "$ac_try_echo") >&5
9823   (eval "$ac_compile") 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } && {
9830          test -z "$ac_c_werror_flag" ||
9831          test ! -s conftest.err
9832        } && test -s conftest.$ac_objext; then
9833   eval "$as_ac_Header=yes"
9834 else
9835   $as_echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838         eval "$as_ac_Header=no"
9839 fi
9840
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 ac_res=`eval 'as_val=${'$as_ac_Header'}
9844                  $as_echo "$as_val"'`
9845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9846 $as_echo "$ac_res" >&6; }
9847 as_val=`eval 'as_val=${'$as_ac_Header'}
9848                  $as_echo "$as_val"'`
9849    if test "x$as_val" = x""yes; then
9850   cat >>confdefs.h <<_ACEOF
9851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9852 _ACEOF
9853
9854 fi
9855
9856 done
9857
9858
9859 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9860 # netinet/in.h is included first.
9861
9862 for ac_header in netinet/in.h
9863 do
9864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9866   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 $as_echo_n "checking for $ac_header... " >&6; }
9868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9869   $as_echo_n "(cached) " >&6
9870 fi
9871 ac_res=`eval 'as_val=${'$as_ac_Header'}
9872                  $as_echo "$as_val"'`
9873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9874 $as_echo "$ac_res" >&6; }
9875 else
9876   # Is the header compilable?
9877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9878 $as_echo_n "checking $ac_header usability... " >&6; }
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885 $ac_includes_default
9886 #include <$ac_header>
9887 _ACEOF
9888 rm -f conftest.$ac_objext
9889 if { (ac_try="$ac_compile"
9890 case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9895 $as_echo "$ac_try_echo") >&5
9896   (eval "$ac_compile") 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } && {
9903          test -z "$ac_c_werror_flag" ||
9904          test ! -s conftest.err
9905        } && test -s conftest.$ac_objext; then
9906   ac_header_compiler=yes
9907 else
9908   $as_echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911         ac_header_compiler=no
9912 fi
9913
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9916 $as_echo "$ac_header_compiler" >&6; }
9917
9918 # Is the header present?
9919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9920 $as_echo_n "checking $ac_header presence... " >&6; }
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927 #include <$ac_header>
9928 _ACEOF
9929 if { (ac_try="$ac_cpp conftest.$ac_ext"
9930 case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } >/dev/null && {
9943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9944          test ! -s conftest.err
9945        }; then
9946   ac_header_preproc=yes
9947 else
9948   $as_echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951   ac_header_preproc=no
9952 fi
9953
9954 rm -f conftest.err conftest.$ac_ext
9955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9956 $as_echo "$ac_header_preproc" >&6; }
9957
9958 # So?  What about this header?
9959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9960   yes:no: )
9961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9965     ac_header_preproc=yes
9966     ;;
9967   no:yes:* )
9968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9971 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9975 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9980     ( cat <<\_ASBOX
9981 ## ---------------------------------------- ##
9982 ## Report this to pgsql-bugs@postgresql.org ##
9983 ## ---------------------------------------- ##
9984 _ASBOX
9985      ) | sed "s/^/$as_me: WARNING:     /" >&2
9986     ;;
9987 esac
9988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 $as_echo_n "checking for $ac_header... " >&6; }
9990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9991   $as_echo_n "(cached) " >&6
9992 else
9993   eval "$as_ac_Header=\$ac_header_preproc"
9994 fi
9995 ac_res=`eval 'as_val=${'$as_ac_Header'}
9996                  $as_echo "$as_val"'`
9997                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9998 $as_echo "$ac_res" >&6; }
9999
10000 fi
10001 as_val=`eval 'as_val=${'$as_ac_Header'}
10002                  $as_echo "$as_val"'`
10003    if test "x$as_val" = x""yes; then
10004   cat >>confdefs.h <<_ACEOF
10005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10006 _ACEOF
10007
10008 fi
10009
10010 done
10011
10012
10013 for ac_header in netinet/tcp.h
10014 do
10015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 $as_echo_n "checking for $ac_header... " >&6; }
10018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019   $as_echo_n "(cached) " >&6
10020 else
10021   cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027 $ac_includes_default
10028 #ifdef HAVE_NETINET_IN_H
10029 #include <netinet/in.h>
10030 #endif
10031
10032
10033 #include <$ac_header>
10034 _ACEOF
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043   (eval "$ac_compile") 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } && {
10050          test -z "$ac_c_werror_flag" ||
10051          test ! -s conftest.err
10052        } && test -s conftest.$ac_objext; then
10053   eval "$as_ac_Header=yes"
10054 else
10055   $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         eval "$as_ac_Header=no"
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 ac_res=`eval 'as_val=${'$as_ac_Header'}
10064                  $as_echo "$as_val"'`
10065                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10066 $as_echo "$ac_res" >&6; }
10067 as_val=`eval 'as_val=${'$as_ac_Header'}
10068                  $as_echo "$as_val"'`
10069    if test "x$as_val" = x""yes; then
10070   cat >>confdefs.h <<_ACEOF
10071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072 _ACEOF
10073
10074 fi
10075
10076 done
10077
10078
10079 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10080
10081 for ac_header in readline/readline.h
10082 do
10083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10085   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 $as_echo_n "checking for $ac_header... " >&6; }
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088   $as_echo_n "(cached) " >&6
10089 fi
10090 ac_res=`eval 'as_val=${'$as_ac_Header'}
10091                  $as_echo "$as_val"'`
10092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10093 $as_echo "$ac_res" >&6; }
10094 else
10095   # Is the header compilable?
10096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10097 $as_echo_n "checking $ac_header usability... " >&6; }
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 $ac_includes_default
10105 #include <$ac_header>
10106 _ACEOF
10107 rm -f conftest.$ac_objext
10108 if { (ac_try="$ac_compile"
10109 case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10114 $as_echo "$ac_try_echo") >&5
10115   (eval "$ac_compile") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } && {
10122          test -z "$ac_c_werror_flag" ||
10123          test ! -s conftest.err
10124        } && test -s conftest.$ac_objext; then
10125   ac_header_compiler=yes
10126 else
10127   $as_echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130         ac_header_compiler=no
10131 fi
10132
10133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 $as_echo "$ac_header_compiler" >&6; }
10136
10137 # Is the header present?
10138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10139 $as_echo_n "checking $ac_header presence... " >&6; }
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146 #include <$ac_header>
10147 _ACEOF
10148 if { (ac_try="$ac_cpp conftest.$ac_ext"
10149 case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154 $as_echo "$ac_try_echo") >&5
10155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } >/dev/null && {
10162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163          test ! -s conftest.err
10164        }; then
10165   ac_header_preproc=yes
10166 else
10167   $as_echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170   ac_header_preproc=no
10171 fi
10172
10173 rm -f conftest.err conftest.$ac_ext
10174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 $as_echo "$ac_header_preproc" >&6; }
10176
10177 # So?  What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10179   yes:no: )
10180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184     ac_header_preproc=yes
10185     ;;
10186   no:yes:* )
10187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10190 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10194 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10199     ( cat <<\_ASBOX
10200 ## ---------------------------------------- ##
10201 ## Report this to pgsql-bugs@postgresql.org ##
10202 ## ---------------------------------------- ##
10203 _ASBOX
10204      ) | sed "s/^/$as_me: WARNING:     /" >&2
10205     ;;
10206 esac
10207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 $as_echo_n "checking for $ac_header... " >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210   $as_echo_n "(cached) " >&6
10211 else
10212   eval "$as_ac_Header=\$ac_header_preproc"
10213 fi
10214 ac_res=`eval 'as_val=${'$as_ac_Header'}
10215                  $as_echo "$as_val"'`
10216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10217 $as_echo "$ac_res" >&6; }
10218
10219 fi
10220 as_val=`eval 'as_val=${'$as_ac_Header'}
10221                  $as_echo "$as_val"'`
10222    if test "x$as_val" = x""yes; then
10223   cat >>confdefs.h <<_ACEOF
10224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10225 _ACEOF
10226
10227 else
10228
10229 for ac_header in readline.h
10230 do
10231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10234 $as_echo_n "checking for $ac_header... " >&6; }
10235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10236   $as_echo_n "(cached) " >&6
10237 fi
10238 ac_res=`eval 'as_val=${'$as_ac_Header'}
10239                  $as_echo "$as_val"'`
10240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10241 $as_echo "$ac_res" >&6; }
10242 else
10243   # Is the header compilable?
10244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10245 $as_echo_n "checking $ac_header usability... " >&6; }
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 $ac_includes_default
10253 #include <$ac_header>
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (ac_try="$ac_compile"
10257 case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263   (eval "$ac_compile") 2>conftest.er1
10264   ac_status=$?
10265   grep -v '^ *+' conftest.er1 >conftest.err
10266   rm -f conftest.er1
10267   cat conftest.err >&5
10268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } && {
10270          test -z "$ac_c_werror_flag" ||
10271          test ! -s conftest.err
10272        } && test -s conftest.$ac_objext; then
10273   ac_header_compiler=yes
10274 else
10275   $as_echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278         ac_header_compiler=no
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10283 $as_echo "$ac_header_compiler" >&6; }
10284
10285 # Is the header present?
10286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10287 $as_echo_n "checking $ac_header presence... " >&6; }
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 #include <$ac_header>
10295 _ACEOF
10296 if { (ac_try="$ac_cpp conftest.$ac_ext"
10297 case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10302 $as_echo "$ac_try_echo") >&5
10303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } >/dev/null && {
10310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10311          test ! -s conftest.err
10312        }; then
10313   ac_header_preproc=yes
10314 else
10315   $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318   ac_header_preproc=no
10319 fi
10320
10321 rm -f conftest.err conftest.$ac_ext
10322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10323 $as_echo "$ac_header_preproc" >&6; }
10324
10325 # So?  What about this header?
10326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10327   yes:no: )
10328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10332     ac_header_preproc=yes
10333     ;;
10334   no:yes:* )
10335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10338 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10342 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10347     ( cat <<\_ASBOX
10348 ## ---------------------------------------- ##
10349 ## Report this to pgsql-bugs@postgresql.org ##
10350 ## ---------------------------------------- ##
10351 _ASBOX
10352      ) | sed "s/^/$as_me: WARNING:     /" >&2
10353     ;;
10354 esac
10355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10356 $as_echo_n "checking for $ac_header... " >&6; }
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358   $as_echo_n "(cached) " >&6
10359 else
10360   eval "$as_ac_Header=\$ac_header_preproc"
10361 fi
10362 ac_res=`eval 'as_val=${'$as_ac_Header'}
10363                  $as_echo "$as_val"'`
10364                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10365 $as_echo "$ac_res" >&6; }
10366
10367 fi
10368 as_val=`eval 'as_val=${'$as_ac_Header'}
10369                  $as_echo "$as_val"'`
10370    if test "x$as_val" = x""yes; then
10371   cat >>confdefs.h <<_ACEOF
10372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10373 _ACEOF
10374
10375 else
10376   { { $as_echo "$as_me:$LINENO: error: readline header not found
10377 If you have readline already installed, see config.log for details on the
10378 failure.  It is possible the compiler isn't looking in the proper directory.
10379 Use --without-readline to disable readline support." >&5
10380 $as_echo "$as_me: error: readline header not found
10381 If you have readline already installed, see config.log for details on the
10382 failure.  It is possible the compiler isn't looking in the proper directory.
10383 Use --without-readline to disable readline support." >&2;}
10384    { (exit 1); exit 1; }; }
10385 fi
10386
10387 done
10388
10389 fi
10390
10391 done
10392
10393
10394 for ac_header in readline/history.h
10395 do
10396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401   $as_echo_n "(cached) " >&6
10402 fi
10403 ac_res=`eval 'as_val=${'$as_ac_Header'}
10404                  $as_echo "$as_val"'`
10405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10406 $as_echo "$ac_res" >&6; }
10407 else
10408   # Is the header compilable?
10409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10410 $as_echo_n "checking $ac_header usability... " >&6; }
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h.  */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h.  */
10417 $ac_includes_default
10418 #include <$ac_header>
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (ac_try="$ac_compile"
10422 case "(($ac_try" in
10423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424   *) ac_try_echo=$ac_try;;
10425 esac
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428   (eval "$ac_compile") 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } && {
10435          test -z "$ac_c_werror_flag" ||
10436          test ! -s conftest.err
10437        } && test -s conftest.$ac_objext; then
10438   ac_header_compiler=yes
10439 else
10440   $as_echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_header_compiler=no
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448 $as_echo "$ac_header_compiler" >&6; }
10449
10450 # Is the header present?
10451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10452 $as_echo_n "checking $ac_header presence... " >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #include <$ac_header>
10460 _ACEOF
10461 if { (ac_try="$ac_cpp conftest.$ac_ext"
10462 case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10467 $as_echo "$ac_try_echo") >&5
10468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } >/dev/null && {
10475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10476          test ! -s conftest.err
10477        }; then
10478   ac_header_preproc=yes
10479 else
10480   $as_echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483   ac_header_preproc=no
10484 fi
10485
10486 rm -f conftest.err conftest.$ac_ext
10487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 $as_echo "$ac_header_preproc" >&6; }
10489
10490 # So?  What about this header?
10491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10492   yes:no: )
10493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10497     ac_header_preproc=yes
10498     ;;
10499   no:yes:* )
10500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10503 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10507 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10512     ( cat <<\_ASBOX
10513 ## ---------------------------------------- ##
10514 ## Report this to pgsql-bugs@postgresql.org ##
10515 ## ---------------------------------------- ##
10516 _ASBOX
10517      ) | sed "s/^/$as_me: WARNING:     /" >&2
10518     ;;
10519 esac
10520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 $as_echo_n "checking for $ac_header... " >&6; }
10522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523   $as_echo_n "(cached) " >&6
10524 else
10525   eval "$as_ac_Header=\$ac_header_preproc"
10526 fi
10527 ac_res=`eval 'as_val=${'$as_ac_Header'}
10528                  $as_echo "$as_val"'`
10529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10530 $as_echo "$ac_res" >&6; }
10531
10532 fi
10533 as_val=`eval 'as_val=${'$as_ac_Header'}
10534                  $as_echo "$as_val"'`
10535    if test "x$as_val" = x""yes; then
10536   cat >>confdefs.h <<_ACEOF
10537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538 _ACEOF
10539
10540 else
10541
10542 for ac_header in history.h
10543 do
10544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 $as_echo_n "checking for $ac_header... " >&6; }
10548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549   $as_echo_n "(cached) " >&6
10550 fi
10551 ac_res=`eval 'as_val=${'$as_ac_Header'}
10552                  $as_echo "$as_val"'`
10553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10554 $as_echo "$ac_res" >&6; }
10555 else
10556   # Is the header compilable?
10557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 $as_echo_n "checking $ac_header usability... " >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 $ac_includes_default
10566 #include <$ac_header>
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576   (eval "$ac_compile") 2>conftest.er1
10577   ac_status=$?
10578   grep -v '^ *+' conftest.er1 >conftest.err
10579   rm -f conftest.er1
10580   cat conftest.err >&5
10581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } && {
10583          test -z "$ac_c_werror_flag" ||
10584          test ! -s conftest.err
10585        } && test -s conftest.$ac_objext; then
10586   ac_header_compiler=yes
10587 else
10588   $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591         ac_header_compiler=no
10592 fi
10593
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 $as_echo "$ac_header_compiler" >&6; }
10597
10598 # Is the header present?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 $as_echo_n "checking $ac_header presence... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h.  */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h.  */
10607 #include <$ac_header>
10608 _ACEOF
10609 if { (ac_try="$ac_cpp conftest.$ac_ext"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10617   ac_status=$?
10618   grep -v '^ *+' conftest.er1 >conftest.err
10619   rm -f conftest.er1
10620   cat conftest.err >&5
10621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } >/dev/null && {
10623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10624          test ! -s conftest.err
10625        }; then
10626   ac_header_preproc=yes
10627 else
10628   $as_echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631   ac_header_preproc=no
10632 fi
10633
10634 rm -f conftest.err conftest.$ac_ext
10635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 $as_echo "$ac_header_preproc" >&6; }
10637
10638 # So?  What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640   yes:no: )
10641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645     ac_header_preproc=yes
10646     ;;
10647   no:yes:* )
10648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10651 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10655 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10660     ( cat <<\_ASBOX
10661 ## ---------------------------------------- ##
10662 ## Report this to pgsql-bugs@postgresql.org ##
10663 ## ---------------------------------------- ##
10664 _ASBOX
10665      ) | sed "s/^/$as_me: WARNING:     /" >&2
10666     ;;
10667 esac
10668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 $as_echo_n "checking for $ac_header... " >&6; }
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671   $as_echo_n "(cached) " >&6
10672 else
10673   eval "$as_ac_Header=\$ac_header_preproc"
10674 fi
10675 ac_res=`eval 'as_val=${'$as_ac_Header'}
10676                  $as_echo "$as_val"'`
10677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10678 $as_echo "$ac_res" >&6; }
10679
10680 fi
10681 as_val=`eval 'as_val=${'$as_ac_Header'}
10682                  $as_echo "$as_val"'`
10683    if test "x$as_val" = x""yes; then
10684   cat >>confdefs.h <<_ACEOF
10685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686 _ACEOF
10687
10688 else
10689   { { $as_echo "$as_me:$LINENO: error: history header not found
10690 If you have readline already installed, see config.log for details on the
10691 failure.  It is possible the compiler isn't looking in the proper directory.
10692 Use --without-readline to disable readline support." >&5
10693 $as_echo "$as_me: error: history header not found
10694 If you have readline already installed, see config.log for details on the
10695 failure.  It is possible the compiler isn't looking in the proper directory.
10696 Use --without-readline to disable readline support." >&2;}
10697    { (exit 1); exit 1; }; }
10698 fi
10699
10700 done
10701
10702 fi
10703
10704 done
10705
10706 fi
10707
10708 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10709 # Some installations of libedit usurp /usr/include/readline/, which seems
10710 # bad practice, since in combined installations readline will have its headers
10711 # there.  We might have to resort to AC_EGREP checks to make sure we found
10712 # the proper header...
10713
10714 for ac_header in editline/readline.h
10715 do
10716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10719 $as_echo_n "checking for $ac_header... " >&6; }
10720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10721   $as_echo_n "(cached) " >&6
10722 fi
10723 ac_res=`eval 'as_val=${'$as_ac_Header'}
10724                  $as_echo "$as_val"'`
10725                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10726 $as_echo "$ac_res" >&6; }
10727 else
10728   # Is the header compilable?
10729 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10730 $as_echo_n "checking $ac_header usability... " >&6; }
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 $ac_includes_default
10738 #include <$ac_header>
10739 _ACEOF
10740 rm -f conftest.$ac_objext
10741 if { (ac_try="$ac_compile"
10742 case "(($ac_try" in
10743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744   *) ac_try_echo=$ac_try;;
10745 esac
10746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10747 $as_echo "$ac_try_echo") >&5
10748   (eval "$ac_compile") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } && {
10755          test -z "$ac_c_werror_flag" ||
10756          test ! -s conftest.err
10757        } && test -s conftest.$ac_objext; then
10758   ac_header_compiler=yes
10759 else
10760   $as_echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763         ac_header_compiler=no
10764 fi
10765
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10768 $as_echo "$ac_header_compiler" >&6; }
10769
10770 # Is the header present?
10771 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10772 $as_echo_n "checking $ac_header presence... " >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 #include <$ac_header>
10780 _ACEOF
10781 if { (ac_try="$ac_cpp conftest.$ac_ext"
10782 case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10787 $as_echo "$ac_try_echo") >&5
10788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } >/dev/null && {
10795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10796          test ! -s conftest.err
10797        }; then
10798   ac_header_preproc=yes
10799 else
10800   $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803   ac_header_preproc=no
10804 fi
10805
10806 rm -f conftest.err conftest.$ac_ext
10807 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 $as_echo "$ac_header_preproc" >&6; }
10809
10810 # So?  What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812   yes:no: )
10813     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817     ac_header_preproc=yes
10818     ;;
10819   no:yes:* )
10820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10823 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10827 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10832     ( cat <<\_ASBOX
10833 ## ---------------------------------------- ##
10834 ## Report this to pgsql-bugs@postgresql.org ##
10835 ## ---------------------------------------- ##
10836 _ASBOX
10837      ) | sed "s/^/$as_me: WARNING:     /" >&2
10838     ;;
10839 esac
10840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10841 $as_echo_n "checking for $ac_header... " >&6; }
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843   $as_echo_n "(cached) " >&6
10844 else
10845   eval "$as_ac_Header=\$ac_header_preproc"
10846 fi
10847 ac_res=`eval 'as_val=${'$as_ac_Header'}
10848                  $as_echo "$as_val"'`
10849                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10850 $as_echo "$ac_res" >&6; }
10851
10852 fi
10853 as_val=`eval 'as_val=${'$as_ac_Header'}
10854                  $as_echo "$as_val"'`
10855    if test "x$as_val" = x""yes; then
10856   cat >>confdefs.h <<_ACEOF
10857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 else
10861
10862 for ac_header in readline.h
10863 do
10864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 $as_echo_n "checking for $ac_header... " >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869   $as_echo_n "(cached) " >&6
10870 fi
10871 ac_res=`eval 'as_val=${'$as_ac_Header'}
10872                  $as_echo "$as_val"'`
10873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10874 $as_echo "$ac_res" >&6; }
10875 else
10876   # Is the header compilable?
10877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 $as_echo_n "checking $ac_header usability... " >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 $ac_includes_default
10886 #include <$ac_header>
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10895 $as_echo "$ac_try_echo") >&5
10896   (eval "$ac_compile") 2>conftest.er1
10897   ac_status=$?
10898   grep -v '^ *+' conftest.er1 >conftest.err
10899   rm -f conftest.er1
10900   cat conftest.err >&5
10901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } && {
10903          test -z "$ac_c_werror_flag" ||
10904          test ! -s conftest.err
10905        } && test -s conftest.$ac_objext; then
10906   ac_header_compiler=yes
10907 else
10908   $as_echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         ac_header_compiler=no
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10916 $as_echo "$ac_header_compiler" >&6; }
10917
10918 # Is the header present?
10919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10920 $as_echo_n "checking $ac_header presence... " >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 #include <$ac_header>
10928 _ACEOF
10929 if { (ac_try="$ac_cpp conftest.$ac_ext"
10930 case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } >/dev/null && {
10943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10944          test ! -s conftest.err
10945        }; then
10946   ac_header_preproc=yes
10947 else
10948   $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951   ac_header_preproc=no
10952 fi
10953
10954 rm -f conftest.err conftest.$ac_ext
10955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956 $as_echo "$ac_header_preproc" >&6; }
10957
10958 # So?  What about this header?
10959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960   yes:no: )
10961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10965     ac_header_preproc=yes
10966     ;;
10967   no:yes:* )
10968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10971 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10975 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10980     ( cat <<\_ASBOX
10981 ## ---------------------------------------- ##
10982 ## Report this to pgsql-bugs@postgresql.org ##
10983 ## ---------------------------------------- ##
10984 _ASBOX
10985      ) | sed "s/^/$as_me: WARNING:     /" >&2
10986     ;;
10987 esac
10988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 $as_echo_n "checking for $ac_header... " >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991   $as_echo_n "(cached) " >&6
10992 else
10993   eval "$as_ac_Header=\$ac_header_preproc"
10994 fi
10995 ac_res=`eval 'as_val=${'$as_ac_Header'}
10996                  $as_echo "$as_val"'`
10997                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998 $as_echo "$ac_res" >&6; }
10999
11000 fi
11001 as_val=`eval 'as_val=${'$as_ac_Header'}
11002                  $as_echo "$as_val"'`
11003    if test "x$as_val" = x""yes; then
11004   cat >>confdefs.h <<_ACEOF
11005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11006 _ACEOF
11007
11008 else
11009
11010 for ac_header in readline/readline.h
11011 do
11012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11015 $as_echo_n "checking for $ac_header... " >&6; }
11016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11017   $as_echo_n "(cached) " >&6
11018 fi
11019 ac_res=`eval 'as_val=${'$as_ac_Header'}
11020                  $as_echo "$as_val"'`
11021                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11022 $as_echo "$ac_res" >&6; }
11023 else
11024   # Is the header compilable?
11025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11026 $as_echo_n "checking $ac_header usability... " >&6; }
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033 $ac_includes_default
11034 #include <$ac_header>
11035 _ACEOF
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044   (eval "$ac_compile") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } && {
11051          test -z "$ac_c_werror_flag" ||
11052          test ! -s conftest.err
11053        } && test -s conftest.$ac_objext; then
11054   ac_header_compiler=yes
11055 else
11056   $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         ac_header_compiler=no
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064 $as_echo "$ac_header_compiler" >&6; }
11065
11066 # Is the header present?
11067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11068 $as_echo_n "checking $ac_header presence... " >&6; }
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <$ac_header>
11076 _ACEOF
11077 if { (ac_try="$ac_cpp conftest.$ac_ext"
11078 case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11083 $as_echo "$ac_try_echo") >&5
11084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } >/dev/null && {
11091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11092          test ! -s conftest.err
11093        }; then
11094   ac_header_preproc=yes
11095 else
11096   $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099   ac_header_preproc=no
11100 fi
11101
11102 rm -f conftest.err conftest.$ac_ext
11103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 $as_echo "$ac_header_preproc" >&6; }
11105
11106 # So?  What about this header?
11107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11108   yes:no: )
11109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11113     ac_header_preproc=yes
11114     ;;
11115   no:yes:* )
11116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11119 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11123 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11128     ( cat <<\_ASBOX
11129 ## ---------------------------------------- ##
11130 ## Report this to pgsql-bugs@postgresql.org ##
11131 ## ---------------------------------------- ##
11132 _ASBOX
11133      ) | sed "s/^/$as_me: WARNING:     /" >&2
11134     ;;
11135 esac
11136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 $as_echo_n "checking for $ac_header... " >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139   $as_echo_n "(cached) " >&6
11140 else
11141   eval "$as_ac_Header=\$ac_header_preproc"
11142 fi
11143 ac_res=`eval 'as_val=${'$as_ac_Header'}
11144                  $as_echo "$as_val"'`
11145                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11146 $as_echo "$ac_res" >&6; }
11147
11148 fi
11149 as_val=`eval 'as_val=${'$as_ac_Header'}
11150                  $as_echo "$as_val"'`
11151    if test "x$as_val" = x""yes; then
11152   cat >>confdefs.h <<_ACEOF
11153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11154 _ACEOF
11155
11156 else
11157   { { $as_echo "$as_me:$LINENO: error: readline header not found
11158 If you have libedit already installed, see config.log for details on the
11159 failure.  It is possible the compiler isn't looking in the proper directory.
11160 Use --without-readline to disable libedit support." >&5
11161 $as_echo "$as_me: error: readline header not found
11162 If you have libedit already installed, see config.log for details on the
11163 failure.  It is possible the compiler isn't looking in the proper directory.
11164 Use --without-readline to disable libedit support." >&2;}
11165    { (exit 1); exit 1; }; }
11166 fi
11167
11168 done
11169
11170 fi
11171
11172 done
11173
11174 fi
11175
11176 done
11177
11178 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11179 # not be there at all.  Hence, don't complain if not found.  We must check
11180 # though, since in yet other versions it is an independent header.
11181
11182 for ac_header in editline/history.h
11183 do
11184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 $as_echo_n "checking for $ac_header... " >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189   $as_echo_n "(cached) " >&6
11190 fi
11191 ac_res=`eval 'as_val=${'$as_ac_Header'}
11192                  $as_echo "$as_val"'`
11193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11194 $as_echo "$ac_res" >&6; }
11195 else
11196   # Is the header compilable?
11197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11198 $as_echo_n "checking $ac_header usability... " >&6; }
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 $ac_includes_default
11206 #include <$ac_header>
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216   (eval "$ac_compile") 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } && {
11223          test -z "$ac_c_werror_flag" ||
11224          test ! -s conftest.err
11225        } && test -s conftest.$ac_objext; then
11226   ac_header_compiler=yes
11227 else
11228   $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         ac_header_compiler=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 $as_echo "$ac_header_compiler" >&6; }
11237
11238 # Is the header present?
11239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 $as_echo_n "checking $ac_header presence... " >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252   *) ac_try_echo=$ac_try;;
11253 esac
11254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11255 $as_echo "$ac_try_echo") >&5
11256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } >/dev/null && {
11263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11264          test ! -s conftest.err
11265        }; then
11266   ac_header_preproc=yes
11267 else
11268   $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271   ac_header_preproc=no
11272 fi
11273
11274 rm -f conftest.err conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 $as_echo "$ac_header_preproc" >&6; }
11277
11278 # So?  What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280   yes:no: )
11281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285     ac_header_preproc=yes
11286     ;;
11287   no:yes:* )
11288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11291 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11295 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11300     ( cat <<\_ASBOX
11301 ## ---------------------------------------- ##
11302 ## Report this to pgsql-bugs@postgresql.org ##
11303 ## ---------------------------------------- ##
11304 _ASBOX
11305      ) | sed "s/^/$as_me: WARNING:     /" >&2
11306     ;;
11307 esac
11308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 $as_echo_n "checking for $ac_header... " >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311   $as_echo_n "(cached) " >&6
11312 else
11313   eval "$as_ac_Header=\$ac_header_preproc"
11314 fi
11315 ac_res=`eval 'as_val=${'$as_ac_Header'}
11316                  $as_echo "$as_val"'`
11317                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11318 $as_echo "$ac_res" >&6; }
11319
11320 fi
11321 as_val=`eval 'as_val=${'$as_ac_Header'}
11322                  $as_echo "$as_val"'`
11323    if test "x$as_val" = x""yes; then
11324   cat >>confdefs.h <<_ACEOF
11325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 _ACEOF
11327
11328 else
11329
11330 for ac_header in history.h
11331 do
11332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 $as_echo_n "checking for $ac_header... " >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337   $as_echo_n "(cached) " >&6
11338 fi
11339 ac_res=`eval 'as_val=${'$as_ac_Header'}
11340                  $as_echo "$as_val"'`
11341                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11342 $as_echo "$ac_res" >&6; }
11343 else
11344   # Is the header compilable?
11345 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346 $as_echo_n "checking $ac_header usability... " >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h.  */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h.  */
11353 $ac_includes_default
11354 #include <$ac_header>
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11363 $as_echo "$ac_try_echo") >&5
11364   (eval "$ac_compile") 2>conftest.er1
11365   ac_status=$?
11366   grep -v '^ *+' conftest.er1 >conftest.err
11367   rm -f conftest.er1
11368   cat conftest.err >&5
11369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); } && {
11371          test -z "$ac_c_werror_flag" ||
11372          test ! -s conftest.err
11373        } && test -s conftest.$ac_objext; then
11374   ac_header_compiler=yes
11375 else
11376   $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379         ac_header_compiler=no
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 $as_echo "$ac_header_compiler" >&6; }
11385
11386 # Is the header present?
11387 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 $as_echo_n "checking $ac_header presence... " >&6; }
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395 #include <$ac_header>
11396 _ACEOF
11397 if { (ac_try="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403 $as_echo "$ac_try_echo") >&5
11404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11405   ac_status=$?
11406   grep -v '^ *+' conftest.er1 >conftest.err
11407   rm -f conftest.er1
11408   cat conftest.err >&5
11409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); } >/dev/null && {
11411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11412          test ! -s conftest.err
11413        }; then
11414   ac_header_preproc=yes
11415 else
11416   $as_echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419   ac_header_preproc=no
11420 fi
11421
11422 rm -f conftest.err conftest.$ac_ext
11423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 $as_echo "$ac_header_preproc" >&6; }
11425
11426 # So?  What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428   yes:no: )
11429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433     ac_header_preproc=yes
11434     ;;
11435   no:yes:* )
11436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11439 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11443 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11448     ( cat <<\_ASBOX
11449 ## ---------------------------------------- ##
11450 ## Report this to pgsql-bugs@postgresql.org ##
11451 ## ---------------------------------------- ##
11452 _ASBOX
11453      ) | sed "s/^/$as_me: WARNING:     /" >&2
11454     ;;
11455 esac
11456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 $as_echo_n "checking for $ac_header... " >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459   $as_echo_n "(cached) " >&6
11460 else
11461   eval "$as_ac_Header=\$ac_header_preproc"
11462 fi
11463 ac_res=`eval 'as_val=${'$as_ac_Header'}
11464                  $as_echo "$as_val"'`
11465                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11466 $as_echo "$ac_res" >&6; }
11467
11468 fi
11469 as_val=`eval 'as_val=${'$as_ac_Header'}
11470                  $as_echo "$as_val"'`
11471    if test "x$as_val" = x""yes; then
11472   cat >>confdefs.h <<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 _ACEOF
11475
11476 else
11477
11478 for ac_header in readline/history.h
11479 do
11480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 $as_echo_n "checking for $ac_header... " >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485   $as_echo_n "(cached) " >&6
11486 fi
11487 ac_res=`eval 'as_val=${'$as_ac_Header'}
11488                  $as_echo "$as_val"'`
11489                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11490 $as_echo "$ac_res" >&6; }
11491 else
11492   # Is the header compilable?
11493 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 $as_echo_n "checking $ac_header usability... " >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 $ac_includes_default
11502 #include <$ac_header>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11511 $as_echo "$ac_try_echo") >&5
11512   (eval "$ac_compile") 2>conftest.er1
11513   ac_status=$?
11514   grep -v '^ *+' conftest.er1 >conftest.err
11515   rm -f conftest.er1
11516   cat conftest.err >&5
11517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } && {
11519          test -z "$ac_c_werror_flag" ||
11520          test ! -s conftest.err
11521        } && test -s conftest.$ac_objext; then
11522   ac_header_compiler=yes
11523 else
11524   $as_echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527         ac_header_compiler=no
11528 fi
11529
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 $as_echo "$ac_header_compiler" >&6; }
11533
11534 # Is the header present?
11535 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 $as_echo_n "checking $ac_header presence... " >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 #include <$ac_header>
11544 _ACEOF
11545 if { (ac_try="$ac_cpp conftest.$ac_ext"
11546 case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11551 $as_echo "$ac_try_echo") >&5
11552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } >/dev/null && {
11559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560          test ! -s conftest.err
11561        }; then
11562   ac_header_preproc=yes
11563 else
11564   $as_echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567   ac_header_preproc=no
11568 fi
11569
11570 rm -f conftest.err conftest.$ac_ext
11571 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 $as_echo "$ac_header_preproc" >&6; }
11573
11574 # So?  What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576   yes:no: )
11577     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581     ac_header_preproc=yes
11582     ;;
11583   no:yes:* )
11584     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11587 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11588     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11591 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11596     ( cat <<\_ASBOX
11597 ## ---------------------------------------- ##
11598 ## Report this to pgsql-bugs@postgresql.org ##
11599 ## ---------------------------------------- ##
11600 _ASBOX
11601      ) | sed "s/^/$as_me: WARNING:     /" >&2
11602     ;;
11603 esac
11604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 $as_echo_n "checking for $ac_header... " >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607   $as_echo_n "(cached) " >&6
11608 else
11609   eval "$as_ac_Header=\$ac_header_preproc"
11610 fi
11611 ac_res=`eval 'as_val=${'$as_ac_Header'}
11612                  $as_echo "$as_val"'`
11613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11614 $as_echo "$ac_res" >&6; }
11615
11616 fi
11617 as_val=`eval 'as_val=${'$as_ac_Header'}
11618                  $as_echo "$as_val"'`
11619    if test "x$as_val" = x""yes; then
11620   cat >>confdefs.h <<_ACEOF
11621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11622 _ACEOF
11623
11624 fi
11625
11626 done
11627
11628 fi
11629
11630 done
11631
11632 fi
11633
11634 done
11635
11636 fi
11637
11638 if test "$with_zlib" = yes; then
11639   if test "${ac_cv_header_zlib_h+set}" = set; then
11640   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11641 $as_echo_n "checking for zlib.h... " >&6; }
11642 if test "${ac_cv_header_zlib_h+set}" = set; then
11643   $as_echo_n "(cached) " >&6
11644 fi
11645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11646 $as_echo "$ac_cv_header_zlib_h" >&6; }
11647 else
11648   # Is the header compilable?
11649 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11650 $as_echo_n "checking zlib.h usability... " >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 $ac_includes_default
11658 #include <zlib.h>
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (ac_try="$ac_compile"
11662 case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668   (eval "$ac_compile") 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } && {
11675          test -z "$ac_c_werror_flag" ||
11676          test ! -s conftest.err
11677        } && test -s conftest.$ac_objext; then
11678   ac_header_compiler=yes
11679 else
11680   $as_echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683         ac_header_compiler=no
11684 fi
11685
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11688 $as_echo "$ac_header_compiler" >&6; }
11689
11690 # Is the header present?
11691 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11692 $as_echo_n "checking zlib.h presence... " >&6; }
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 #include <zlib.h>
11700 _ACEOF
11701 if { (ac_try="$ac_cpp conftest.$ac_ext"
11702 case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } >/dev/null && {
11715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11716          test ! -s conftest.err
11717        }; then
11718   ac_header_preproc=yes
11719 else
11720   $as_echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723   ac_header_preproc=no
11724 fi
11725
11726 rm -f conftest.err conftest.$ac_ext
11727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11728 $as_echo "$ac_header_preproc" >&6; }
11729
11730 # So?  What about this header?
11731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11732   yes:no: )
11733     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11734 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11735     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11736 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11737     ac_header_preproc=yes
11738     ;;
11739   no:yes:* )
11740     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11741 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11742     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11743 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11744     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11745 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11746     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11747 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11748     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11749 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11750     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11751 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11752     ( cat <<\_ASBOX
11753 ## ---------------------------------------- ##
11754 ## Report this to pgsql-bugs@postgresql.org ##
11755 ## ---------------------------------------- ##
11756 _ASBOX
11757      ) | sed "s/^/$as_me: WARNING:     /" >&2
11758     ;;
11759 esac
11760 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11761 $as_echo_n "checking for zlib.h... " >&6; }
11762 if test "${ac_cv_header_zlib_h+set}" = set; then
11763   $as_echo_n "(cached) " >&6
11764 else
11765   ac_cv_header_zlib_h=$ac_header_preproc
11766 fi
11767 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11768 $as_echo "$ac_cv_header_zlib_h" >&6; }
11769
11770 fi
11771 if test "x$ac_cv_header_zlib_h" = x""yes; then
11772   :
11773 else
11774   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11775 If you have zlib already installed, see config.log for details on the
11776 failure.  It is possible the compiler isn't looking in the proper directory.
11777 Use --without-zlib to disable zlib support." >&5
11778 $as_echo "$as_me: error: zlib header not found
11779 If you have zlib already installed, see config.log for details on the
11780 failure.  It is possible the compiler isn't looking in the proper directory.
11781 Use --without-zlib to disable zlib support." >&2;}
11782    { (exit 1); exit 1; }; }
11783 fi
11784
11785
11786 fi
11787
11788 if test "$with_gssapi" = yes ; then
11789
11790 for ac_header in gssapi/gssapi.h
11791 do
11792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 $as_echo_n "checking for $ac_header... " >&6; }
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797   $as_echo_n "(cached) " >&6
11798 fi
11799 ac_res=`eval 'as_val=${'$as_ac_Header'}
11800                  $as_echo "$as_val"'`
11801                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11802 $as_echo "$ac_res" >&6; }
11803 else
11804   # Is the header compilable?
11805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 $as_echo_n "checking $ac_header usability... " >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 $ac_includes_default
11814 #include <$ac_header>
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (ac_try="$ac_compile"
11818 case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824   (eval "$ac_compile") 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } && {
11831          test -z "$ac_c_werror_flag" ||
11832          test ! -s conftest.err
11833        } && test -s conftest.$ac_objext; then
11834   ac_header_compiler=yes
11835 else
11836   $as_echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839         ac_header_compiler=no
11840 fi
11841
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 $as_echo "$ac_header_compiler" >&6; }
11845
11846 # Is the header present?
11847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 $as_echo_n "checking $ac_header presence... " >&6; }
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (ac_try="$ac_cpp conftest.$ac_ext"
11858 case "(($ac_try" in
11859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860   *) ac_try_echo=$ac_try;;
11861 esac
11862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11863 $as_echo "$ac_try_echo") >&5
11864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } >/dev/null && {
11871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872          test ! -s conftest.err
11873        }; then
11874   ac_header_preproc=yes
11875 else
11876   $as_echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879   ac_header_preproc=no
11880 fi
11881
11882 rm -f conftest.err conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 $as_echo "$ac_header_preproc" >&6; }
11885
11886 # So?  What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888   yes:no: )
11889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893     ac_header_preproc=yes
11894     ;;
11895   no:yes:* )
11896     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11899 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11903 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908     ( cat <<\_ASBOX
11909 ## ---------------------------------------- ##
11910 ## Report this to pgsql-bugs@postgresql.org ##
11911 ## ---------------------------------------- ##
11912 _ASBOX
11913      ) | sed "s/^/$as_me: WARNING:     /" >&2
11914     ;;
11915 esac
11916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 $as_echo_n "checking for $ac_header... " >&6; }
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919   $as_echo_n "(cached) " >&6
11920 else
11921   eval "$as_ac_Header=\$ac_header_preproc"
11922 fi
11923 ac_res=`eval 'as_val=${'$as_ac_Header'}
11924                  $as_echo "$as_val"'`
11925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11926 $as_echo "$ac_res" >&6; }
11927
11928 fi
11929 as_val=`eval 'as_val=${'$as_ac_Header'}
11930                  $as_echo "$as_val"'`
11931    if test "x$as_val" = x""yes; then
11932   cat >>confdefs.h <<_ACEOF
11933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11934 _ACEOF
11935
11936 else
11937
11938 for ac_header in gssapi.h
11939 do
11940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11942   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11943 $as_echo_n "checking for $ac_header... " >&6; }
11944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11945   $as_echo_n "(cached) " >&6
11946 fi
11947 ac_res=`eval 'as_val=${'$as_ac_Header'}
11948                  $as_echo "$as_val"'`
11949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11950 $as_echo "$ac_res" >&6; }
11951 else
11952   # Is the header compilable?
11953 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11954 $as_echo_n "checking $ac_header usability... " >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961 $ac_includes_default
11962 #include <$ac_header>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972   (eval "$ac_compile") 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } && {
11979          test -z "$ac_c_werror_flag" ||
11980          test ! -s conftest.err
11981        } && test -s conftest.$ac_objext; then
11982   ac_header_compiler=yes
11983 else
11984   $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         ac_header_compiler=no
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 $as_echo "$ac_header_compiler" >&6; }
11993
11994 # Is the header present?
11995 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11996 $as_echo_n "checking $ac_header presence... " >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003 #include <$ac_header>
12004 _ACEOF
12005 if { (ac_try="$ac_cpp conftest.$ac_ext"
12006 case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } >/dev/null && {
12019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020          test ! -s conftest.err
12021        }; then
12022   ac_header_preproc=yes
12023 else
12024   $as_echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027   ac_header_preproc=no
12028 fi
12029
12030 rm -f conftest.err conftest.$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 $as_echo "$ac_header_preproc" >&6; }
12033
12034 # So?  What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036   yes:no: )
12037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041     ac_header_preproc=yes
12042     ;;
12043   no:yes:* )
12044     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12047 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12051 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056     ( cat <<\_ASBOX
12057 ## ---------------------------------------- ##
12058 ## Report this to pgsql-bugs@postgresql.org ##
12059 ## ---------------------------------------- ##
12060 _ASBOX
12061      ) | sed "s/^/$as_me: WARNING:     /" >&2
12062     ;;
12063 esac
12064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12065 $as_echo_n "checking for $ac_header... " >&6; }
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067   $as_echo_n "(cached) " >&6
12068 else
12069   eval "$as_ac_Header=\$ac_header_preproc"
12070 fi
12071 ac_res=`eval 'as_val=${'$as_ac_Header'}
12072                  $as_echo "$as_val"'`
12073                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12074 $as_echo "$ac_res" >&6; }
12075
12076 fi
12077 as_val=`eval 'as_val=${'$as_ac_Header'}
12078                  $as_echo "$as_val"'`
12079    if test "x$as_val" = x""yes; then
12080   cat >>confdefs.h <<_ACEOF
12081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 else
12085   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12086 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12087    { (exit 1); exit 1; }; }
12088 fi
12089
12090 done
12091
12092 fi
12093
12094 done
12095
12096 fi
12097
12098 if test "$with_krb5" = yes ; then
12099   if test "${ac_cv_header_krb5_h+set}" = set; then
12100   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12101 $as_echo_n "checking for krb5.h... " >&6; }
12102 if test "${ac_cv_header_krb5_h+set}" = set; then
12103   $as_echo_n "(cached) " >&6
12104 fi
12105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12106 $as_echo "$ac_cv_header_krb5_h" >&6; }
12107 else
12108   # Is the header compilable?
12109 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12110 $as_echo_n "checking krb5.h usability... " >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117 $ac_includes_default
12118 #include <krb5.h>
12119 _ACEOF
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128   (eval "$ac_compile") 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } && {
12135          test -z "$ac_c_werror_flag" ||
12136          test ! -s conftest.err
12137        } && test -s conftest.$ac_objext; then
12138   ac_header_compiler=yes
12139 else
12140   $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143         ac_header_compiler=no
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 $as_echo "$ac_header_compiler" >&6; }
12149
12150 # Is the header present?
12151 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12152 $as_echo_n "checking krb5.h presence... " >&6; }
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159 #include <krb5.h>
12160 _ACEOF
12161 if { (ac_try="$ac_cpp conftest.$ac_ext"
12162 case "(($ac_try" in
12163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164   *) ac_try_echo=$ac_try;;
12165 esac
12166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$ac_try_echo") >&5
12168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } >/dev/null && {
12175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12176          test ! -s conftest.err
12177        }; then
12178   ac_header_preproc=yes
12179 else
12180   $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183   ac_header_preproc=no
12184 fi
12185
12186 rm -f conftest.err conftest.$ac_ext
12187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12188 $as_echo "$ac_header_preproc" >&6; }
12189
12190 # So?  What about this header?
12191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12192   yes:no: )
12193     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12194 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12195     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12196 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12197     ac_header_preproc=yes
12198     ;;
12199   no:yes:* )
12200     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12201 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12202     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12203 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12204     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12205 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12206     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12207 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12208     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12209 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12210     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12211 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12212     ( cat <<\_ASBOX
12213 ## ---------------------------------------- ##
12214 ## Report this to pgsql-bugs@postgresql.org ##
12215 ## ---------------------------------------- ##
12216 _ASBOX
12217      ) | sed "s/^/$as_me: WARNING:     /" >&2
12218     ;;
12219 esac
12220 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12221 $as_echo_n "checking for krb5.h... " >&6; }
12222 if test "${ac_cv_header_krb5_h+set}" = set; then
12223   $as_echo_n "(cached) " >&6
12224 else
12225   ac_cv_header_krb5_h=$ac_header_preproc
12226 fi
12227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12228 $as_echo "$ac_cv_header_krb5_h" >&6; }
12229
12230 fi
12231 if test "x$ac_cv_header_krb5_h" = x""yes; then
12232   :
12233 else
12234   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12235 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12236    { (exit 1); exit 1; }; }
12237 fi
12238
12239
12240 fi
12241
12242 if test "$with_openssl" = yes ; then
12243   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12244   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12245 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12246 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12247   $as_echo_n "(cached) " >&6
12248 fi
12249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12250 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12251 else
12252   # Is the header compilable?
12253 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12254 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 $ac_includes_default
12262 #include <openssl/ssl.h>
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12271 $as_echo "$ac_try_echo") >&5
12272   (eval "$ac_compile") 2>conftest.er1
12273   ac_status=$?
12274   grep -v '^ *+' conftest.er1 >conftest.err
12275   rm -f conftest.er1
12276   cat conftest.err >&5
12277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } && {
12279          test -z "$ac_c_werror_flag" ||
12280          test ! -s conftest.err
12281        } && test -s conftest.$ac_objext; then
12282   ac_header_compiler=yes
12283 else
12284   $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287         ac_header_compiler=no
12288 fi
12289
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12292 $as_echo "$ac_header_compiler" >&6; }
12293
12294 # Is the header present?
12295 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12296 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303 #include <openssl/ssl.h>
12304 _ACEOF
12305 if { (ac_try="$ac_cpp conftest.$ac_ext"
12306 case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12311 $as_echo "$ac_try_echo") >&5
12312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } >/dev/null && {
12319          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12320          test ! -s conftest.err
12321        }; then
12322   ac_header_preproc=yes
12323 else
12324   $as_echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327   ac_header_preproc=no
12328 fi
12329
12330 rm -f conftest.err conftest.$ac_ext
12331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 $as_echo "$ac_header_preproc" >&6; }
12333
12334 # So?  What about this header?
12335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336   yes:no: )
12337     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12338 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12340 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12341     ac_header_preproc=yes
12342     ;;
12343   no:yes:* )
12344     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12345 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12346     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12347 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12348     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12349 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12350     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12351 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12352     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12353 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12354     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12355 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12356     ( cat <<\_ASBOX
12357 ## ---------------------------------------- ##
12358 ## Report this to pgsql-bugs@postgresql.org ##
12359 ## ---------------------------------------- ##
12360 _ASBOX
12361      ) | sed "s/^/$as_me: WARNING:     /" >&2
12362     ;;
12363 esac
12364 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12365 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12366 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12367   $as_echo_n "(cached) " >&6
12368 else
12369   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12370 fi
12371 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12372 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12373
12374 fi
12375 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12376   :
12377 else
12378   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12379 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12380    { (exit 1); exit 1; }; }
12381 fi
12382
12383
12384   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12385   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12386 $as_echo_n "checking for openssl/err.h... " >&6; }
12387 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12388   $as_echo_n "(cached) " >&6
12389 fi
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12391 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12392 else
12393   # Is the header compilable?
12394 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12395 $as_echo_n "checking openssl/err.h usability... " >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402 $ac_includes_default
12403 #include <openssl/err.h>
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412 $as_echo "$ac_try_echo") >&5
12413   (eval "$ac_compile") 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } && {
12420          test -z "$ac_c_werror_flag" ||
12421          test ! -s conftest.err
12422        } && test -s conftest.$ac_objext; then
12423   ac_header_compiler=yes
12424 else
12425   $as_echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12427
12428         ac_header_compiler=no
12429 fi
12430
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12433 $as_echo "$ac_header_compiler" >&6; }
12434
12435 # Is the header present?
12436 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12437 $as_echo_n "checking openssl/err.h presence... " >&6; }
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 #include <openssl/err.h>
12445 _ACEOF
12446 if { (ac_try="$ac_cpp conftest.$ac_ext"
12447 case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } >/dev/null && {
12460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12461          test ! -s conftest.err
12462        }; then
12463   ac_header_preproc=yes
12464 else
12465   $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468   ac_header_preproc=no
12469 fi
12470
12471 rm -f conftest.err conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12473 $as_echo "$ac_header_preproc" >&6; }
12474
12475 # So?  What about this header?
12476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12477   yes:no: )
12478     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12479 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12480     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12481 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12482     ac_header_preproc=yes
12483     ;;
12484   no:yes:* )
12485     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12486 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12487     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12488 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12489     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12490 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12491     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12492 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12493     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12494 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12495     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12496 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12497     ( cat <<\_ASBOX
12498 ## ---------------------------------------- ##
12499 ## Report this to pgsql-bugs@postgresql.org ##
12500 ## ---------------------------------------- ##
12501 _ASBOX
12502      ) | sed "s/^/$as_me: WARNING:     /" >&2
12503     ;;
12504 esac
12505 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12506 $as_echo_n "checking for openssl/err.h... " >&6; }
12507 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12508   $as_echo_n "(cached) " >&6
12509 else
12510   ac_cv_header_openssl_err_h=$ac_header_preproc
12511 fi
12512 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12513 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12514
12515 fi
12516 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12517   :
12518 else
12519   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12520 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12521    { (exit 1); exit 1; }; }
12522 fi
12523
12524
12525
12526 for ac_func in ERR_set_mark
12527 do
12528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12530 $as_echo_n "checking for $ac_func... " >&6; }
12531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12532   $as_echo_n "(cached) " >&6
12533 else
12534   cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12542 #define $ac_func innocuous_$ac_func
12543
12544 /* System header to define __stub macros and hopefully few prototypes,
12545     which can conflict with char $ac_func (); below.
12546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12547     <limits.h> exists even on freestanding compilers.  */
12548
12549 #ifdef __STDC__
12550 # include <limits.h>
12551 #else
12552 # include <assert.h>
12553 #endif
12554
12555 #undef $ac_func
12556
12557 /* Override any GCC internal prototype to avoid an error.
12558    Use char because int might match the return type of a GCC
12559    builtin and then its argument prototype would still apply.  */
12560 #ifdef __cplusplus
12561 extern "C"
12562 #endif
12563 char $ac_func ();
12564 /* The GNU C library defines this for functions which it implements
12565     to always fail with ENOSYS.  Some functions are actually named
12566     something starting with __ and the normal name is an alias.  */
12567 #if defined __stub_$ac_func || defined __stub___$ac_func
12568 choke me
12569 #endif
12570
12571 int
12572 main ()
12573 {
12574 return $ac_func ();
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12586 $as_echo "$ac_try_echo") >&5
12587   (eval "$ac_link") 2>conftest.er1
12588   ac_status=$?
12589   grep -v '^ *+' conftest.er1 >conftest.err
12590   rm -f conftest.er1
12591   cat conftest.err >&5
12592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } && {
12594          test -z "$ac_c_werror_flag" ||
12595          test ! -s conftest.err
12596        } && test -s conftest$ac_exeext && {
12597          test "$cross_compiling" = yes ||
12598          $as_test_x conftest$ac_exeext
12599        }; then
12600   eval "$as_ac_var=yes"
12601 else
12602   $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605         eval "$as_ac_var=no"
12606 fi
12607
12608 rm -rf conftest.dSYM
12609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12610       conftest$ac_exeext conftest.$ac_ext
12611 fi
12612 ac_res=`eval 'as_val=${'$as_ac_var'}
12613                  $as_echo "$as_val"'`
12614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12615 $as_echo "$ac_res" >&6; }
12616 as_val=`eval 'as_val=${'$as_ac_var'}
12617                  $as_echo "$as_val"'`
12618    if test "x$as_val" = x""yes; then
12619   cat >>confdefs.h <<_ACEOF
12620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12621 _ACEOF
12622
12623 fi
12624 done
12625
12626 fi
12627
12628 if test "$with_pam" = yes ; then
12629
12630 for ac_header in security/pam_appl.h
12631 do
12632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637   $as_echo_n "(cached) " >&6
12638 fi
12639 ac_res=`eval 'as_val=${'$as_ac_Header'}
12640                  $as_echo "$as_val"'`
12641                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12642 $as_echo "$ac_res" >&6; }
12643 else
12644   # Is the header compilable?
12645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646 $as_echo_n "checking $ac_header usability... " >&6; }
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 $ac_includes_default
12654 #include <$ac_header>
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (ac_try="$ac_compile"
12658 case "(($ac_try" in
12659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660   *) ac_try_echo=$ac_try;;
12661 esac
12662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663 $as_echo "$ac_try_echo") >&5
12664   (eval "$ac_compile") 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } && {
12671          test -z "$ac_c_werror_flag" ||
12672          test ! -s conftest.err
12673        } && test -s conftest.$ac_objext; then
12674   ac_header_compiler=yes
12675 else
12676   $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679         ac_header_compiler=no
12680 fi
12681
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 $as_echo "$ac_header_compiler" >&6; }
12685
12686 # Is the header present?
12687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688 $as_echo_n "checking $ac_header presence... " >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695 #include <$ac_header>
12696 _ACEOF
12697 if { (ac_try="$ac_cpp conftest.$ac_ext"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703 $as_echo "$ac_try_echo") >&5
12704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } >/dev/null && {
12711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12712          test ! -s conftest.err
12713        }; then
12714   ac_header_preproc=yes
12715 else
12716   $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719   ac_header_preproc=no
12720 fi
12721
12722 rm -f conftest.err conftest.$ac_ext
12723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 $as_echo "$ac_header_preproc" >&6; }
12725
12726 # So?  What about this header?
12727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12728   yes:no: )
12729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733     ac_header_preproc=yes
12734     ;;
12735   no:yes:* )
12736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12739 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12743 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12748     ( cat <<\_ASBOX
12749 ## ---------------------------------------- ##
12750 ## Report this to pgsql-bugs@postgresql.org ##
12751 ## ---------------------------------------- ##
12752 _ASBOX
12753      ) | sed "s/^/$as_me: WARNING:     /" >&2
12754     ;;
12755 esac
12756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12757 $as_echo_n "checking for $ac_header... " >&6; }
12758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12759   $as_echo_n "(cached) " >&6
12760 else
12761   eval "$as_ac_Header=\$ac_header_preproc"
12762 fi
12763 ac_res=`eval 'as_val=${'$as_ac_Header'}
12764                  $as_echo "$as_val"'`
12765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12766 $as_echo "$ac_res" >&6; }
12767
12768 fi
12769 as_val=`eval 'as_val=${'$as_ac_Header'}
12770                  $as_echo "$as_val"'`
12771    if test "x$as_val" = x""yes; then
12772   cat >>confdefs.h <<_ACEOF
12773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12774 _ACEOF
12775
12776 else
12777
12778 for ac_header in pam/pam_appl.h
12779 do
12780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12782   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 $as_echo_n "checking for $ac_header... " >&6; }
12784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12785   $as_echo_n "(cached) " >&6
12786 fi
12787 ac_res=`eval 'as_val=${'$as_ac_Header'}
12788                  $as_echo "$as_val"'`
12789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12791 else
12792   # Is the header compilable?
12793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794 $as_echo_n "checking $ac_header usability... " >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 $ac_includes_default
12802 #include <$ac_header>
12803 _ACEOF
12804 rm -f conftest.$ac_objext
12805 if { (ac_try="$ac_compile"
12806 case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12811 $as_echo "$ac_try_echo") >&5
12812   (eval "$ac_compile") 2>conftest.er1
12813   ac_status=$?
12814   grep -v '^ *+' conftest.er1 >conftest.err
12815   rm -f conftest.er1
12816   cat conftest.err >&5
12817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } && {
12819          test -z "$ac_c_werror_flag" ||
12820          test ! -s conftest.err
12821        } && test -s conftest.$ac_objext; then
12822   ac_header_compiler=yes
12823 else
12824   $as_echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827         ac_header_compiler=no
12828 fi
12829
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12832 $as_echo "$ac_header_compiler" >&6; }
12833
12834 # Is the header present?
12835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12836 $as_echo_n "checking $ac_header presence... " >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 #include <$ac_header>
12844 _ACEOF
12845 if { (ac_try="$ac_cpp conftest.$ac_ext"
12846 case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12853   ac_status=$?
12854   grep -v '^ *+' conftest.er1 >conftest.err
12855   rm -f conftest.er1
12856   cat conftest.err >&5
12857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } >/dev/null && {
12859          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12860          test ! -s conftest.err
12861        }; then
12862   ac_header_preproc=yes
12863 else
12864   $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867   ac_header_preproc=no
12868 fi
12869
12870 rm -f conftest.err conftest.$ac_ext
12871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12872 $as_echo "$ac_header_preproc" >&6; }
12873
12874 # So?  What about this header?
12875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12876   yes:no: )
12877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12881     ac_header_preproc=yes
12882     ;;
12883   no:yes:* )
12884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12887 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12890     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12891 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12894     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12896     ( cat <<\_ASBOX
12897 ## ---------------------------------------- ##
12898 ## Report this to pgsql-bugs@postgresql.org ##
12899 ## ---------------------------------------- ##
12900 _ASBOX
12901      ) | sed "s/^/$as_me: WARNING:     /" >&2
12902     ;;
12903 esac
12904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 $as_echo_n "checking for $ac_header... " >&6; }
12906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12907   $as_echo_n "(cached) " >&6
12908 else
12909   eval "$as_ac_Header=\$ac_header_preproc"
12910 fi
12911 ac_res=`eval 'as_val=${'$as_ac_Header'}
12912                  $as_echo "$as_val"'`
12913                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12914 $as_echo "$ac_res" >&6; }
12915
12916 fi
12917 as_val=`eval 'as_val=${'$as_ac_Header'}
12918                  $as_echo "$as_val"'`
12919    if test "x$as_val" = x""yes; then
12920   cat >>confdefs.h <<_ACEOF
12921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12922 _ACEOF
12923
12924 else
12925   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12926 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12927    { (exit 1); exit 1; }; }
12928 fi
12929
12930 done
12931
12932 fi
12933
12934 done
12935
12936 fi
12937
12938 if test "$with_libxml" = yes ; then
12939   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12940   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12941 $as_echo_n "checking for libxml/parser.h... " >&6; }
12942 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12943   $as_echo_n "(cached) " >&6
12944 fi
12945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12946 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12947 else
12948   # Is the header compilable?
12949 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12950 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957 $ac_includes_default
12958 #include <libxml/parser.h>
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (ac_try="$ac_compile"
12962 case "(($ac_try" in
12963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964   *) ac_try_echo=$ac_try;;
12965 esac
12966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12967 $as_echo "$ac_try_echo") >&5
12968   (eval "$ac_compile") 2>conftest.er1
12969   ac_status=$?
12970   grep -v '^ *+' conftest.er1 >conftest.err
12971   rm -f conftest.er1
12972   cat conftest.err >&5
12973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } && {
12975          test -z "$ac_c_werror_flag" ||
12976          test ! -s conftest.err
12977        } && test -s conftest.$ac_objext; then
12978   ac_header_compiler=yes
12979 else
12980   $as_echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983         ac_header_compiler=no
12984 fi
12985
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12988 $as_echo "$ac_header_compiler" >&6; }
12989
12990 # Is the header present?
12991 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12992 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h.  */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h.  */
12999 #include <libxml/parser.h>
13000 _ACEOF
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004   *) ac_try_echo=$ac_try;;
13005 esac
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13009   ac_status=$?
13010   grep -v '^ *+' conftest.er1 >conftest.err
13011   rm -f conftest.er1
13012   cat conftest.err >&5
13013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } >/dev/null && {
13015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13016          test ! -s conftest.err
13017        }; then
13018   ac_header_preproc=yes
13019 else
13020   $as_echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023   ac_header_preproc=no
13024 fi
13025
13026 rm -f conftest.err conftest.$ac_ext
13027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13028 $as_echo "$ac_header_preproc" >&6; }
13029
13030 # So?  What about this header?
13031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13032   yes:no: )
13033     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13034 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13035     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13036 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13037     ac_header_preproc=yes
13038     ;;
13039   no:yes:* )
13040     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13041 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13042     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13043 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13044     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13045 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13046     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13047 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13048     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13049 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13050     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13051 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13052     ( cat <<\_ASBOX
13053 ## ---------------------------------------- ##
13054 ## Report this to pgsql-bugs@postgresql.org ##
13055 ## ---------------------------------------- ##
13056 _ASBOX
13057      ) | sed "s/^/$as_me: WARNING:     /" >&2
13058     ;;
13059 esac
13060 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13061 $as_echo_n "checking for libxml/parser.h... " >&6; }
13062 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13063   $as_echo_n "(cached) " >&6
13064 else
13065   ac_cv_header_libxml_parser_h=$ac_header_preproc
13066 fi
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13068 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13069
13070 fi
13071 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13072   :
13073 else
13074   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13075 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13076    { (exit 1); exit 1; }; }
13077 fi
13078
13079
13080 fi
13081
13082 if test "$with_libxslt" = yes ; then
13083   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13084   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13085 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13086 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13087   $as_echo_n "(cached) " >&6
13088 fi
13089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13090 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13091 else
13092   # Is the header compilable?
13093 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13094 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h.  */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h.  */
13101 $ac_includes_default
13102 #include <libxslt/xslt.h>
13103 _ACEOF
13104 rm -f conftest.$ac_objext
13105 if { (ac_try="$ac_compile"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13111 $as_echo "$ac_try_echo") >&5
13112   (eval "$ac_compile") 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } && {
13119          test -z "$ac_c_werror_flag" ||
13120          test ! -s conftest.err
13121        } && test -s conftest.$ac_objext; then
13122   ac_header_compiler=yes
13123 else
13124   $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127         ac_header_compiler=no
13128 fi
13129
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13132 $as_echo "$ac_header_compiler" >&6; }
13133
13134 # Is the header present?
13135 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13136 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h.  */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h.  */
13143 #include <libxslt/xslt.h>
13144 _ACEOF
13145 if { (ac_try="$ac_cpp conftest.$ac_ext"
13146 case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13151 $as_echo "$ac_try_echo") >&5
13152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13153   ac_status=$?
13154   grep -v '^ *+' conftest.er1 >conftest.err
13155   rm -f conftest.er1
13156   cat conftest.err >&5
13157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } >/dev/null && {
13159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13160          test ! -s conftest.err
13161        }; then
13162   ac_header_preproc=yes
13163 else
13164   $as_echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167   ac_header_preproc=no
13168 fi
13169
13170 rm -f conftest.err conftest.$ac_ext
13171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13172 $as_echo "$ac_header_preproc" >&6; }
13173
13174 # So?  What about this header?
13175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13176   yes:no: )
13177     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13178 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13179     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13180 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13181     ac_header_preproc=yes
13182     ;;
13183   no:yes:* )
13184     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13185 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13186     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13187 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13188     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13189 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13190     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13191 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13192     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13193 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13194     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13195 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13196     ( cat <<\_ASBOX
13197 ## ---------------------------------------- ##
13198 ## Report this to pgsql-bugs@postgresql.org ##
13199 ## ---------------------------------------- ##
13200 _ASBOX
13201      ) | sed "s/^/$as_me: WARNING:     /" >&2
13202     ;;
13203 esac
13204 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13205 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13206 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13207   $as_echo_n "(cached) " >&6
13208 else
13209   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13210 fi
13211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13212 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13213
13214 fi
13215 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13216   :
13217 else
13218   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13219 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13220    { (exit 1); exit 1; }; }
13221 fi
13222
13223
13224 fi
13225
13226 if test "$with_ldap" = yes ; then
13227   if test "$PORTNAME" != "win32"; then
13228
13229 for ac_header in ldap.h
13230 do
13231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 $as_echo_n "checking for $ac_header... " >&6; }
13235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236   $as_echo_n "(cached) " >&6
13237 fi
13238 ac_res=`eval 'as_val=${'$as_ac_Header'}
13239                  $as_echo "$as_val"'`
13240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13241 $as_echo "$ac_res" >&6; }
13242 else
13243   # Is the header compilable?
13244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13245 $as_echo_n "checking $ac_header usability... " >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 $ac_includes_default
13253 #include <$ac_header>
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263   (eval "$ac_compile") 2>conftest.er1
13264   ac_status=$?
13265   grep -v '^ *+' conftest.er1 >conftest.err
13266   rm -f conftest.er1
13267   cat conftest.err >&5
13268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } && {
13270          test -z "$ac_c_werror_flag" ||
13271          test ! -s conftest.err
13272        } && test -s conftest.$ac_objext; then
13273   ac_header_compiler=yes
13274 else
13275   $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278         ac_header_compiler=no
13279 fi
13280
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283 $as_echo "$ac_header_compiler" >&6; }
13284
13285 # Is the header present?
13286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13287 $as_echo_n "checking $ac_header presence... " >&6; }
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 #include <$ac_header>
13295 _ACEOF
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13302 $as_echo "$ac_try_echo") >&5
13303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13304   ac_status=$?
13305   grep -v '^ *+' conftest.er1 >conftest.err
13306   rm -f conftest.er1
13307   cat conftest.err >&5
13308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } >/dev/null && {
13310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13311          test ! -s conftest.err
13312        }; then
13313   ac_header_preproc=yes
13314 else
13315   $as_echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318   ac_header_preproc=no
13319 fi
13320
13321 rm -f conftest.err conftest.$ac_ext
13322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323 $as_echo "$ac_header_preproc" >&6; }
13324
13325 # So?  What about this header?
13326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13327   yes:no: )
13328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13332     ac_header_preproc=yes
13333     ;;
13334   no:yes:* )
13335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13338 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13342 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13347     ( cat <<\_ASBOX
13348 ## ---------------------------------------- ##
13349 ## Report this to pgsql-bugs@postgresql.org ##
13350 ## ---------------------------------------- ##
13351 _ASBOX
13352      ) | sed "s/^/$as_me: WARNING:     /" >&2
13353     ;;
13354 esac
13355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 $as_echo_n "checking for $ac_header... " >&6; }
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358   $as_echo_n "(cached) " >&6
13359 else
13360   eval "$as_ac_Header=\$ac_header_preproc"
13361 fi
13362 ac_res=`eval 'as_val=${'$as_ac_Header'}
13363                  $as_echo "$as_val"'`
13364                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13365 $as_echo "$ac_res" >&6; }
13366
13367 fi
13368 as_val=`eval 'as_val=${'$as_ac_Header'}
13369                  $as_echo "$as_val"'`
13370    if test "x$as_val" = x""yes; then
13371   cat >>confdefs.h <<_ACEOF
13372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13373 _ACEOF
13374
13375 else
13376   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13377 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13378    { (exit 1); exit 1; }; }
13379 fi
13380
13381 done
13382
13383   else
13384
13385 for ac_header in winldap.h
13386 do
13387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13389 $as_echo_n "checking for $ac_header... " >&6; }
13390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13391   $as_echo_n "(cached) " >&6
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 $ac_includes_default
13400 #include <windows.h>
13401
13402
13403 #include <$ac_header>
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
13413   (eval "$ac_compile") 2>conftest.er1
13414   ac_status=$?
13415   grep -v '^ *+' conftest.er1 >conftest.err
13416   rm -f conftest.er1
13417   cat conftest.err >&5
13418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } && {
13420          test -z "$ac_c_werror_flag" ||
13421          test ! -s conftest.err
13422        } && test -s conftest.$ac_objext; then
13423   eval "$as_ac_Header=yes"
13424 else
13425   $as_echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13427
13428         eval "$as_ac_Header=no"
13429 fi
13430
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 ac_res=`eval 'as_val=${'$as_ac_Header'}
13434                  $as_echo "$as_val"'`
13435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13436 $as_echo "$ac_res" >&6; }
13437 as_val=`eval 'as_val=${'$as_ac_Header'}
13438                  $as_echo "$as_val"'`
13439    if test "x$as_val" = x""yes; then
13440   cat >>confdefs.h <<_ACEOF
13441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13442 _ACEOF
13443
13444 else
13445   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13446 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13447    { (exit 1); exit 1; }; }
13448 fi
13449
13450 done
13451
13452   fi
13453 fi
13454
13455 if test "$with_bonjour" = yes ; then
13456   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13457   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13458 $as_echo_n "checking for dns_sd.h... " >&6; }
13459 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13460   $as_echo_n "(cached) " >&6
13461 fi
13462 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13463 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13464 else
13465   # Is the header compilable?
13466 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13467 $as_echo_n "checking dns_sd.h usability... " >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 $ac_includes_default
13475 #include <dns_sd.h>
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485   (eval "$ac_compile") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } && {
13492          test -z "$ac_c_werror_flag" ||
13493          test ! -s conftest.err
13494        } && test -s conftest.$ac_objext; then
13495   ac_header_compiler=yes
13496 else
13497   $as_echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500         ac_header_compiler=no
13501 fi
13502
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 $as_echo "$ac_header_compiler" >&6; }
13506
13507 # Is the header present?
13508 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13509 $as_echo_n "checking dns_sd.h presence... " >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516 #include <dns_sd.h>
13517 _ACEOF
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } >/dev/null && {
13532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13533          test ! -s conftest.err
13534        }; then
13535   ac_header_preproc=yes
13536 else
13537   $as_echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540   ac_header_preproc=no
13541 fi
13542
13543 rm -f conftest.err conftest.$ac_ext
13544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 $as_echo "$ac_header_preproc" >&6; }
13546
13547 # So?  What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549   yes:no: )
13550     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13551 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13553 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13554     ac_header_preproc=yes
13555     ;;
13556   no:yes:* )
13557     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13558 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13559     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13560 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13561     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13562 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13563     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13564 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13565     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13566 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13567     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13568 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13569     ( cat <<\_ASBOX
13570 ## ---------------------------------------- ##
13571 ## Report this to pgsql-bugs@postgresql.org ##
13572 ## ---------------------------------------- ##
13573 _ASBOX
13574      ) | sed "s/^/$as_me: WARNING:     /" >&2
13575     ;;
13576 esac
13577 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13578 $as_echo_n "checking for dns_sd.h... " >&6; }
13579 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13580   $as_echo_n "(cached) " >&6
13581 else
13582   ac_cv_header_dns_sd_h=$ac_header_preproc
13583 fi
13584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13585 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13586
13587 fi
13588 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13589   :
13590 else
13591   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13592 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13593    { (exit 1); exit 1; }; }
13594 fi
13595
13596
13597 fi
13598
13599 # for contrib/uuid-ossp
13600 if test "$with_ossp_uuid" = yes ; then
13601
13602 for ac_header in ossp/uuid.h
13603 do
13604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13606   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 $as_echo_n "checking for $ac_header... " >&6; }
13608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13609   $as_echo_n "(cached) " >&6
13610 fi
13611 ac_res=`eval 'as_val=${'$as_ac_Header'}
13612                  $as_echo "$as_val"'`
13613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13614 $as_echo "$ac_res" >&6; }
13615 else
13616   # Is the header compilable?
13617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13618 $as_echo_n "checking $ac_header usability... " >&6; }
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 $ac_includes_default
13626 #include <$ac_header>
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13635 $as_echo "$ac_try_echo") >&5
13636   (eval "$ac_compile") 2>conftest.er1
13637   ac_status=$?
13638   grep -v '^ *+' conftest.er1 >conftest.err
13639   rm -f conftest.er1
13640   cat conftest.err >&5
13641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } && {
13643          test -z "$ac_c_werror_flag" ||
13644          test ! -s conftest.err
13645        } && test -s conftest.$ac_objext; then
13646   ac_header_compiler=yes
13647 else
13648   $as_echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651         ac_header_compiler=no
13652 fi
13653
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13656 $as_echo "$ac_header_compiler" >&6; }
13657
13658 # Is the header present?
13659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13660 $as_echo_n "checking $ac_header presence... " >&6; }
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 #include <$ac_header>
13668 _ACEOF
13669 if { (ac_try="$ac_cpp conftest.$ac_ext"
13670 case "(($ac_try" in
13671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672   *) ac_try_echo=$ac_try;;
13673 esac
13674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13675 $as_echo "$ac_try_echo") >&5
13676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13677   ac_status=$?
13678   grep -v '^ *+' conftest.er1 >conftest.err
13679   rm -f conftest.er1
13680   cat conftest.err >&5
13681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } >/dev/null && {
13683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13684          test ! -s conftest.err
13685        }; then
13686   ac_header_preproc=yes
13687 else
13688   $as_echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691   ac_header_preproc=no
13692 fi
13693
13694 rm -f conftest.err conftest.$ac_ext
13695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13696 $as_echo "$ac_header_preproc" >&6; }
13697
13698 # So?  What about this header?
13699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13700   yes:no: )
13701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13705     ac_header_preproc=yes
13706     ;;
13707   no:yes:* )
13708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13711 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13712     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13715 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13720     ( cat <<\_ASBOX
13721 ## ---------------------------------------- ##
13722 ## Report this to pgsql-bugs@postgresql.org ##
13723 ## ---------------------------------------- ##
13724 _ASBOX
13725      ) | sed "s/^/$as_me: WARNING:     /" >&2
13726     ;;
13727 esac
13728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13729 $as_echo_n "checking for $ac_header... " >&6; }
13730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13731   $as_echo_n "(cached) " >&6
13732 else
13733   eval "$as_ac_Header=\$ac_header_preproc"
13734 fi
13735 ac_res=`eval 'as_val=${'$as_ac_Header'}
13736                  $as_echo "$as_val"'`
13737                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13738 $as_echo "$ac_res" >&6; }
13739
13740 fi
13741 as_val=`eval 'as_val=${'$as_ac_Header'}
13742                  $as_echo "$as_val"'`
13743    if test "x$as_val" = x""yes; then
13744   cat >>confdefs.h <<_ACEOF
13745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13746 _ACEOF
13747
13748 else
13749
13750
13751 for ac_header in uuid.h
13752 do
13753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13756 $as_echo_n "checking for $ac_header... " >&6; }
13757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13758   $as_echo_n "(cached) " >&6
13759 fi
13760 ac_res=`eval 'as_val=${'$as_ac_Header'}
13761                  $as_echo "$as_val"'`
13762                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13763 $as_echo "$ac_res" >&6; }
13764 else
13765   # Is the header compilable?
13766 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13767 $as_echo_n "checking $ac_header usability... " >&6; }
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 $ac_includes_default
13775 #include <$ac_header>
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781   *) ac_try_echo=$ac_try;;
13782 esac
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785   (eval "$ac_compile") 2>conftest.er1
13786   ac_status=$?
13787   grep -v '^ *+' conftest.er1 >conftest.err
13788   rm -f conftest.er1
13789   cat conftest.err >&5
13790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); } && {
13792          test -z "$ac_c_werror_flag" ||
13793          test ! -s conftest.err
13794        } && test -s conftest.$ac_objext; then
13795   ac_header_compiler=yes
13796 else
13797   $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800         ac_header_compiler=no
13801 fi
13802
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 $as_echo "$ac_header_compiler" >&6; }
13806
13807 # Is the header present?
13808 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13809 $as_echo_n "checking $ac_header presence... " >&6; }
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816 #include <$ac_header>
13817 _ACEOF
13818 if { (ac_try="$ac_cpp conftest.$ac_ext"
13819 case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13824 $as_echo "$ac_try_echo") >&5
13825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } >/dev/null && {
13832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13833          test ! -s conftest.err
13834        }; then
13835   ac_header_preproc=yes
13836 else
13837   $as_echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840   ac_header_preproc=no
13841 fi
13842
13843 rm -f conftest.err conftest.$ac_ext
13844 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13845 $as_echo "$ac_header_preproc" >&6; }
13846
13847 # So?  What about this header?
13848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13849   yes:no: )
13850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13851 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13852     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13854     ac_header_preproc=yes
13855     ;;
13856   no:yes:* )
13857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13858 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13860 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13862 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13864 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13868 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13869     ( cat <<\_ASBOX
13870 ## ---------------------------------------- ##
13871 ## Report this to pgsql-bugs@postgresql.org ##
13872 ## ---------------------------------------- ##
13873 _ASBOX
13874      ) | sed "s/^/$as_me: WARNING:     /" >&2
13875     ;;
13876 esac
13877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13878 $as_echo_n "checking for $ac_header... " >&6; }
13879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13880   $as_echo_n "(cached) " >&6
13881 else
13882   eval "$as_ac_Header=\$ac_header_preproc"
13883 fi
13884 ac_res=`eval 'as_val=${'$as_ac_Header'}
13885                  $as_echo "$as_val"'`
13886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13887 $as_echo "$ac_res" >&6; }
13888
13889 fi
13890 as_val=`eval 'as_val=${'$as_ac_Header'}
13891                  $as_echo "$as_val"'`
13892    if test "x$as_val" = x""yes; then
13893   cat >>confdefs.h <<_ACEOF
13894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 _ACEOF
13896
13897 else
13898   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13899 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13900    { (exit 1); exit 1; }; }
13901 fi
13902
13903 done
13904
13905 fi
13906
13907 done
13908
13909 fi
13910
13911
13912 ##
13913 ## Types, structures, compiler characteristics
13914 ##
13915
13916
13917  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13919 if test "${ac_cv_c_bigendian+set}" = set; then
13920   $as_echo_n "(cached) " >&6
13921 else
13922   ac_cv_c_bigendian=unknown
13923     # See if we're dealing with a universal compiler.
13924     cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h.  */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h.  */
13930 #ifndef __APPLE_CC__
13931                not a universal capable compiler
13932              #endif
13933              typedef int dummy;
13934
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13943 $as_echo "$ac_try_echo") >&5
13944   (eval "$ac_compile") 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } && {
13951          test -z "$ac_c_werror_flag" ||
13952          test ! -s conftest.err
13953        } && test -s conftest.$ac_objext; then
13954
13955         # Check for potential -arch flags.  It is not universal unless
13956         # there are some -arch flags.  Note that *ppc* also matches
13957         # ppc64.  This check is also rather less than ideal.
13958         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13959           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13960         esac
13961 else
13962   $as_echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965
13966 fi
13967
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969     if test $ac_cv_c_bigendian = unknown; then
13970       # See if sys/param.h defines the BYTE_ORDER macro.
13971       cat >conftest.$ac_ext <<_ACEOF
13972 /* confdefs.h.  */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h.  */
13977 #include <sys/types.h>
13978              #include <sys/param.h>
13979
13980 int
13981 main ()
13982 {
13983 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13984                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13985                      && LITTLE_ENDIAN)
13986               bogus endian macros
13987              #endif
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14000 $as_echo "$ac_try_echo") >&5
14001   (eval "$ac_compile") 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } && {
14008          test -z "$ac_c_werror_flag" ||
14009          test ! -s conftest.err
14010        } && test -s conftest.$ac_objext; then
14011   # It does; now see whether it defined to BIG_ENDIAN or not.
14012          cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018 #include <sys/types.h>
14019                 #include <sys/param.h>
14020
14021 int
14022 main ()
14023 {
14024 #if BYTE_ORDER != BIG_ENDIAN
14025                  not big endian
14026                 #endif
14027
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040   (eval "$ac_compile") 2>conftest.er1
14041   ac_status=$?
14042   grep -v '^ *+' conftest.er1 >conftest.err
14043   rm -f conftest.er1
14044   cat conftest.err >&5
14045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } && {
14047          test -z "$ac_c_werror_flag" ||
14048          test ! -s conftest.err
14049        } && test -s conftest.$ac_objext; then
14050   ac_cv_c_bigendian=yes
14051 else
14052   $as_echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055         ac_cv_c_bigendian=no
14056 fi
14057
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 else
14060   $as_echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063
14064 fi
14065
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067     fi
14068     if test $ac_cv_c_bigendian = unknown; then
14069       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14070       cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076 #include <limits.h>
14077
14078 int
14079 main ()
14080 {
14081 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14082               bogus endian macros
14083              #endif
14084
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext
14090 if { (ac_try="$ac_compile"
14091 case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097   (eval "$ac_compile") 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } && {
14104          test -z "$ac_c_werror_flag" ||
14105          test ! -s conftest.err
14106        } && test -s conftest.$ac_objext; then
14107   # It does; now see whether it defined to _BIG_ENDIAN or not.
14108          cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 #include <limits.h>
14115
14116 int
14117 main ()
14118 {
14119 #ifndef _BIG_ENDIAN
14120                  not big endian
14121                 #endif
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } && {
14142          test -z "$ac_c_werror_flag" ||
14143          test ! -s conftest.err
14144        } && test -s conftest.$ac_objext; then
14145   ac_cv_c_bigendian=yes
14146 else
14147   $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150         ac_cv_c_bigendian=no
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 else
14155   $as_echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158
14159 fi
14160
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162     fi
14163     if test $ac_cv_c_bigendian = unknown; then
14164       # Compile a test program.
14165       if test "$cross_compiling" = yes; then
14166   # Try to guess by grepping values from an object file.
14167          cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h.  */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h.  */
14173 short int ascii_mm[] =
14174                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14175                 short int ascii_ii[] =
14176                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14177                 int use_ascii (int i) {
14178                   return ascii_mm[i] + ascii_ii[i];
14179                 }
14180                 short int ebcdic_ii[] =
14181                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14182                 short int ebcdic_mm[] =
14183                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14184                 int use_ebcdic (int i) {
14185                   return ebcdic_mm[i] + ebcdic_ii[i];
14186                 }
14187                 extern int foo;
14188
14189 int
14190 main ()
14191 {
14192 return use_ascii (foo) == use_ebcdic (foo);
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205   (eval "$ac_compile") 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } && {
14212          test -z "$ac_c_werror_flag" ||
14213          test ! -s conftest.err
14214        } && test -s conftest.$ac_objext; then
14215   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14216               ac_cv_c_bigendian=yes
14217             fi
14218             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14219               if test "$ac_cv_c_bigendian" = unknown; then
14220                 ac_cv_c_bigendian=no
14221               else
14222                 # finding both strings is unlikely to happen, but who knows?
14223                 ac_cv_c_bigendian=unknown
14224               fi
14225             fi
14226 else
14227   $as_echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230
14231 fi
14232
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241 $ac_includes_default
14242 int
14243 main ()
14244 {
14245
14246              /* Are we little or big endian?  From Harbison&Steele.  */
14247              union
14248              {
14249                long int l;
14250                char c[sizeof (long int)];
14251              } u;
14252              u.l = 1;
14253              return u.c[sizeof (long int) - 1] == 1;
14254
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14266 $as_echo "$ac_try_echo") >&5
14267   (eval "$ac_link") 2>&5
14268   ac_status=$?
14269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   ac_cv_c_bigendian=no
14282 else
14283   $as_echo "$as_me: program exited with status $ac_status" >&5
14284 $as_echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ( exit $ac_status )
14288 ac_cv_c_bigendian=yes
14289 fi
14290 rm -rf conftest.dSYM
14291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14292 fi
14293
14294
14295     fi
14296 fi
14297 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14298 $as_echo "$ac_cv_c_bigendian" >&6; }
14299  case $ac_cv_c_bigendian in #(
14300    yes)
14301      cat >>confdefs.h <<\_ACEOF
14302 #define WORDS_BIGENDIAN 1
14303 _ACEOF
14304 ;; #(
14305    no)
14306       ;; #(
14307    universal)
14308
14309 cat >>confdefs.h <<\_ACEOF
14310 #define AC_APPLE_UNIVERSAL_BUILD 1
14311 _ACEOF
14312
14313      ;; #(
14314    *)
14315      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14316  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14317 $as_echo "$as_me: error: unknown endianness
14318  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14319    { (exit 1); exit 1; }; } ;;
14320  esac
14321
14322 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14324 if test "${ac_cv_c_const+set}" = set; then
14325   $as_echo_n "(cached) " >&6
14326 else
14327   cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333
14334 int
14335 main ()
14336 {
14337 /* FIXME: Include the comments suggested by Paul. */
14338 #ifndef __cplusplus
14339   /* Ultrix mips cc rejects this.  */
14340   typedef int charset[2];
14341   const charset cs;
14342   /* SunOS 4.1.1 cc rejects this.  */
14343   char const *const *pcpcc;
14344   char **ppc;
14345   /* NEC SVR4.0.2 mips cc rejects this.  */
14346   struct point {int x, y;};
14347   static struct point const zero = {0,0};
14348   /* AIX XL C 1.02.0.0 rejects this.
14349      It does not let you subtract one const X* pointer from another in
14350      an arm of an if-expression whose if-part is not a constant
14351      expression */
14352   const char *g = "string";
14353   pcpcc = &g + (g ? g-g : 0);
14354   /* HPUX 7.0 cc rejects these. */
14355   ++pcpcc;
14356   ppc = (char**) pcpcc;
14357   pcpcc = (char const *const *) ppc;
14358   { /* SCO 3.2v4 cc rejects this.  */
14359     char *t;
14360     char const *s = 0 ? (char *) 0 : (char const *) 0;
14361
14362     *t++ = 0;
14363     if (s) return 0;
14364   }
14365   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14366     int x[] = {25, 17};
14367     const int *foo = &x[0];
14368     ++foo;
14369   }
14370   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14371     typedef const int *iptr;
14372     iptr p = 0;
14373     ++p;
14374   }
14375   { /* AIX XL C 1.02.0.0 rejects this saying
14376        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14377     struct s { int j; const int *ap[3]; };
14378     struct s *b; b->j = 5;
14379   }
14380   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14381     const int foo = 10;
14382     if (!foo) return 0;
14383   }
14384   return !cs[0] && !zero.x;
14385 #endif
14386
14387   ;
14388   return 0;
14389 }
14390 _ACEOF
14391 rm -f conftest.$ac_objext
14392 if { (ac_try="$ac_compile"
14393 case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399   (eval "$ac_compile") 2>conftest.er1
14400   ac_status=$?
14401   grep -v '^ *+' conftest.er1 >conftest.err
14402   rm -f conftest.er1
14403   cat conftest.err >&5
14404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); } && {
14406          test -z "$ac_c_werror_flag" ||
14407          test ! -s conftest.err
14408        } && test -s conftest.$ac_objext; then
14409   ac_cv_c_const=yes
14410 else
14411   $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414         ac_cv_c_const=no
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14420 $as_echo "$ac_cv_c_const" >&6; }
14421 if test $ac_cv_c_const = no; then
14422
14423 cat >>confdefs.h <<\_ACEOF
14424 #define const /**/
14425 _ACEOF
14426
14427 fi
14428
14429 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14430 $as_echo_n "checking for inline... " >&6; }
14431 if test "${ac_cv_c_inline+set}" = set; then
14432   $as_echo_n "(cached) " >&6
14433 else
14434   ac_cv_c_inline=no
14435 for ac_kw in inline __inline__ __inline; do
14436   cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 #ifndef __cplusplus
14443 typedef int foo_t;
14444 static $ac_kw foo_t static_foo () {return 0; }
14445 $ac_kw foo_t foo () {return 0; }
14446 #endif
14447
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453   *) ac_try_echo=$ac_try;;
14454 esac
14455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14456 $as_echo "$ac_try_echo") >&5
14457   (eval "$ac_compile") 2>conftest.er1
14458   ac_status=$?
14459   grep -v '^ *+' conftest.er1 >conftest.err
14460   rm -f conftest.er1
14461   cat conftest.err >&5
14462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } && {
14464          test -z "$ac_c_werror_flag" ||
14465          test ! -s conftest.err
14466        } && test -s conftest.$ac_objext; then
14467   ac_cv_c_inline=$ac_kw
14468 else
14469   $as_echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472
14473 fi
14474
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476   test "$ac_cv_c_inline" != no && break
14477 done
14478
14479 fi
14480 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14481 $as_echo "$ac_cv_c_inline" >&6; }
14482
14483
14484 case $ac_cv_c_inline in
14485   inline | yes) ;;
14486   *)
14487     case $ac_cv_c_inline in
14488       no) ac_val=;;
14489       *) ac_val=$ac_cv_c_inline;;
14490     esac
14491     cat >>confdefs.h <<_ACEOF
14492 #ifndef __cplusplus
14493 #define inline $ac_val
14494 #endif
14495 _ACEOF
14496     ;;
14497 esac
14498
14499 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14500 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14501 if test "${ac_cv_c_stringize+set}" = set; then
14502   $as_echo_n "(cached) " >&6
14503 else
14504   cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 #define x(y) #y
14511
14512 char *s = x(teststring);
14513 _ACEOF
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515   $EGREP "#teststring" >/dev/null 2>&1; then
14516   ac_cv_c_stringize=no
14517 else
14518   ac_cv_c_stringize=yes
14519 fi
14520 rm -f conftest*
14521
14522 fi
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14524 $as_echo "$ac_cv_c_stringize" >&6; }
14525 if test $ac_cv_c_stringize = yes; then
14526
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_STRINGIZE 1
14529 _ACEOF
14530
14531 fi
14532
14533 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14534 $as_echo_n "checking for signed types... " >&6; }
14535 if test "${pgac_cv_c_signed+set}" = set; then
14536   $as_echo_n "(cached) " >&6
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544
14545 int
14546 main ()
14547 {
14548 signed char c; signed short s; signed int i;
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14560 $as_echo "$ac_try_echo") >&5
14561   (eval "$ac_compile") 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } && {
14568          test -z "$ac_c_werror_flag" ||
14569          test ! -s conftest.err
14570        } && test -s conftest.$ac_objext; then
14571   pgac_cv_c_signed=yes
14572 else
14573   $as_echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576         pgac_cv_c_signed=no
14577 fi
14578
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14582 $as_echo "$pgac_cv_c_signed" >&6; }
14583 if test x"$pgac_cv_c_signed" = xno ; then
14584
14585 cat >>confdefs.h <<\_ACEOF
14586 #define signed /**/
14587 _ACEOF
14588
14589 fi
14590 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14591 $as_echo_n "checking for working volatile... " >&6; }
14592 if test "${ac_cv_c_volatile+set}" = set; then
14593   $as_echo_n "(cached) " >&6
14594 else
14595   cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h.  */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h.  */
14601
14602 int
14603 main ()
14604 {
14605
14606 volatile int x;
14607 int * volatile y = (int *) 0;
14608 return !x && !y;
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621   (eval "$ac_compile") 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } && {
14628          test -z "$ac_c_werror_flag" ||
14629          test ! -s conftest.err
14630        } && test -s conftest.$ac_objext; then
14631   ac_cv_c_volatile=yes
14632 else
14633   $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636         ac_cv_c_volatile=no
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14642 $as_echo "$ac_cv_c_volatile" >&6; }
14643 if test $ac_cv_c_volatile = no; then
14644
14645 cat >>confdefs.h <<\_ACEOF
14646 #define volatile /**/
14647 _ACEOF
14648
14649 fi
14650
14651 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14652 $as_echo_n "checking for __func__... " >&6; }
14653 if test "${pgac_cv_funcname_func_support+set}" = set; then
14654   $as_echo_n "(cached) " >&6
14655 else
14656   cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h.  */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h.  */
14662 #include <stdio.h>
14663 int
14664 main ()
14665 {
14666 printf("%s\n", __func__);
14667   ;
14668   return 0;
14669 }
14670 _ACEOF
14671 rm -f conftest.$ac_objext
14672 if { (ac_try="$ac_compile"
14673 case "(($ac_try" in
14674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675   *) ac_try_echo=$ac_try;;
14676 esac
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679   (eval "$ac_compile") 2>conftest.er1
14680   ac_status=$?
14681   grep -v '^ *+' conftest.er1 >conftest.err
14682   rm -f conftest.er1
14683   cat conftest.err >&5
14684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } && {
14686          test -z "$ac_c_werror_flag" ||
14687          test ! -s conftest.err
14688        } && test -s conftest.$ac_objext; then
14689   pgac_cv_funcname_func_support=yes
14690 else
14691   $as_echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694         pgac_cv_funcname_func_support=no
14695 fi
14696
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14700 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14701 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14702
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_FUNCNAME__FUNC 1
14705 _ACEOF
14706
14707 else
14708 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14709 $as_echo_n "checking for __FUNCTION__... " >&6; }
14710 if test "${pgac_cv_funcname_function_support+set}" = set; then
14711   $as_echo_n "(cached) " >&6
14712 else
14713   cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719 #include <stdio.h>
14720 int
14721 main ()
14722 {
14723 printf("%s\n", __FUNCTION__);
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736   (eval "$ac_compile") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } && {
14743          test -z "$ac_c_werror_flag" ||
14744          test ! -s conftest.err
14745        } && test -s conftest.$ac_objext; then
14746   pgac_cv_funcname_function_support=yes
14747 else
14748   $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751         pgac_cv_funcname_function_support=no
14752 fi
14753
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 fi
14756 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14757 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14758 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14759
14760 cat >>confdefs.h <<\_ACEOF
14761 #define HAVE_FUNCNAME__FUNCTION 1
14762 _ACEOF
14763
14764 fi
14765 fi
14766 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14767 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14768 if test "${ac_cv_struct_tm+set}" = set; then
14769   $as_echo_n "(cached) " >&6
14770 else
14771   cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h.  */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h.  */
14777 #include <sys/types.h>
14778 #include <time.h>
14779
14780 int
14781 main ()
14782 {
14783 struct tm tm;
14784                                      int *p = &tm.tm_sec;
14785                                      return !p;
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798   (eval "$ac_compile") 2>conftest.er1
14799   ac_status=$?
14800   grep -v '^ *+' conftest.er1 >conftest.err
14801   rm -f conftest.er1
14802   cat conftest.err >&5
14803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } && {
14805          test -z "$ac_c_werror_flag" ||
14806          test ! -s conftest.err
14807        } && test -s conftest.$ac_objext; then
14808   ac_cv_struct_tm=time.h
14809 else
14810   $as_echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813         ac_cv_struct_tm=sys/time.h
14814 fi
14815
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14819 $as_echo "$ac_cv_struct_tm" >&6; }
14820 if test $ac_cv_struct_tm = sys/time.h; then
14821
14822 cat >>confdefs.h <<\_ACEOF
14823 #define TM_IN_SYS_TIME 1
14824 _ACEOF
14825
14826 fi
14827
14828 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14829 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14830 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14831   $as_echo_n "(cached) " >&6
14832 else
14833   cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 #include <sys/types.h>
14840 #include <$ac_cv_struct_tm>
14841
14842
14843 int
14844 main ()
14845 {
14846 static struct tm ac_aggr;
14847 if (ac_aggr.tm_zone)
14848 return 0;
14849   ;
14850   return 0;
14851 }
14852 _ACEOF
14853 rm -f conftest.$ac_objext
14854 if { (ac_try="$ac_compile"
14855 case "(($ac_try" in
14856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857   *) ac_try_echo=$ac_try;;
14858 esac
14859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14860 $as_echo "$ac_try_echo") >&5
14861   (eval "$ac_compile") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } && {
14868          test -z "$ac_c_werror_flag" ||
14869          test ! -s conftest.err
14870        } && test -s conftest.$ac_objext; then
14871   ac_cv_member_struct_tm_tm_zone=yes
14872 else
14873   $as_echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14875
14876         cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 #include <sys/types.h>
14883 #include <$ac_cv_struct_tm>
14884
14885
14886 int
14887 main ()
14888 {
14889 static struct tm ac_aggr;
14890 if (sizeof ac_aggr.tm_zone)
14891 return 0;
14892   ;
14893   return 0;
14894 }
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14903 $as_echo "$ac_try_echo") >&5
14904   (eval "$ac_compile") 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } && {
14911          test -z "$ac_c_werror_flag" ||
14912          test ! -s conftest.err
14913        } && test -s conftest.$ac_objext; then
14914   ac_cv_member_struct_tm_tm_zone=yes
14915 else
14916   $as_echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919         ac_cv_member_struct_tm_tm_zone=no
14920 fi
14921
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 fi
14924
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 fi
14927 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14928 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14929 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14930
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_STRUCT_TM_TM_ZONE 1
14933 _ACEOF
14934
14935
14936 fi
14937
14938 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14939
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_TM_ZONE 1
14942 _ACEOF
14943
14944 fi
14945 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14946 $as_echo_n "checking for tzname... " >&6; }
14947 if test "${ac_cv_var_tzname+set}" = set; then
14948   $as_echo_n "(cached) " >&6
14949 else
14950   cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 #include <time.h>
14957 #ifndef tzname /* For SGI.  */
14958 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14959 #endif
14960
14961 int
14962 main ()
14963 {
14964 atoi(*tzname);
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973   *) ac_try_echo=$ac_try;;
14974 esac
14975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14976 $as_echo "$ac_try_echo") >&5
14977   (eval "$ac_link") 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } && {
14984          test -z "$ac_c_werror_flag" ||
14985          test ! -s conftest.err
14986        } && test -s conftest$ac_exeext && {
14987          test "$cross_compiling" = yes ||
14988          $as_test_x conftest$ac_exeext
14989        }; then
14990   ac_cv_var_tzname=yes
14991 else
14992   $as_echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995         ac_cv_var_tzname=no
14996 fi
14997
14998 rm -rf conftest.dSYM
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000       conftest$ac_exeext conftest.$ac_ext
15001 fi
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15003 $as_echo "$ac_cv_var_tzname" >&6; }
15004 if test $ac_cv_var_tzname = yes; then
15005
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_TZNAME 1
15008 _ACEOF
15009
15010 fi
15011
15012 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15013 $as_echo_n "checking for union semun... " >&6; }
15014 if test "${ac_cv_type_union_semun+set}" = set; then
15015   $as_echo_n "(cached) " >&6
15016 else
15017   ac_cv_type_union_semun=no
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #include <sys/types.h>
15025 #include <sys/ipc.h>
15026 #include <sys/sem.h>
15027
15028 int
15029 main ()
15030 {
15031 if (sizeof (union semun))
15032        return 0;
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15044 $as_echo "$ac_try_echo") >&5
15045   (eval "$ac_compile") 2>conftest.er1
15046   ac_status=$?
15047   grep -v '^ *+' conftest.er1 >conftest.err
15048   rm -f conftest.er1
15049   cat conftest.err >&5
15050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); } && {
15052          test -z "$ac_c_werror_flag" ||
15053          test ! -s conftest.err
15054        } && test -s conftest.$ac_objext; then
15055   cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 #include <sys/types.h>
15062 #include <sys/ipc.h>
15063 #include <sys/sem.h>
15064
15065 int
15066 main ()
15067 {
15068 if (sizeof ((union semun)))
15069           return 0;
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext
15075 if { (ac_try="$ac_compile"
15076 case "(($ac_try" in
15077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078   *) ac_try_echo=$ac_try;;
15079 esac
15080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15081 $as_echo "$ac_try_echo") >&5
15082   (eval "$ac_compile") 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } && {
15089          test -z "$ac_c_werror_flag" ||
15090          test ! -s conftest.err
15091        } && test -s conftest.$ac_objext; then
15092   :
15093 else
15094   $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097         ac_cv_type_union_semun=yes
15098 fi
15099
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 else
15102   $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 fi
15110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15111 $as_echo "$ac_cv_type_union_semun" >&6; }
15112 if test "x$ac_cv_type_union_semun" = x""yes; then
15113
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_UNION_SEMUN 1
15116 _ACEOF
15117
15118
15119 fi
15120
15121 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15122 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15123 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15124   $as_echo_n "(cached) " >&6
15125 else
15126   ac_cv_type_struct_sockaddr_un=no
15127 cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 #include <sys/types.h>
15134 #ifdef HAVE_SYS_UN_H
15135 #include <sys/un.h>
15136 #endif
15137
15138
15139 int
15140 main ()
15141 {
15142 if (sizeof (struct sockaddr_un))
15143        return 0;
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext
15149 if { (ac_try="$ac_compile"
15150 case "(($ac_try" in
15151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152   *) ac_try_echo=$ac_try;;
15153 esac
15154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155 $as_echo "$ac_try_echo") >&5
15156   (eval "$ac_compile") 2>conftest.er1
15157   ac_status=$?
15158   grep -v '^ *+' conftest.er1 >conftest.err
15159   rm -f conftest.er1
15160   cat conftest.err >&5
15161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } && {
15163          test -z "$ac_c_werror_flag" ||
15164          test ! -s conftest.err
15165        } && test -s conftest.$ac_objext; then
15166   cat >conftest.$ac_ext <<_ACEOF
15167 /* confdefs.h.  */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h.  */
15172 #include <sys/types.h>
15173 #ifdef HAVE_SYS_UN_H
15174 #include <sys/un.h>
15175 #endif
15176
15177
15178 int
15179 main ()
15180 {
15181 if (sizeof ((struct sockaddr_un)))
15182           return 0;
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext
15188 if { (ac_try="$ac_compile"
15189 case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15194 $as_echo "$ac_try_echo") >&5
15195   (eval "$ac_compile") 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } && {
15202          test -z "$ac_c_werror_flag" ||
15203          test ! -s conftest.err
15204        } && test -s conftest.$ac_objext; then
15205   :
15206 else
15207   $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210         ac_cv_type_struct_sockaddr_un=yes
15211 fi
15212
15213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 else
15215   $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218
15219 fi
15220
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 fi
15223 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15224 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15225 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15226
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_STRUCT_SOCKADDR_UN 1
15229 _ACEOF
15230
15231
15232 cat >>confdefs.h <<\_ACEOF
15233 #define HAVE_UNIX_SOCKETS 1
15234 _ACEOF
15235
15236 fi
15237
15238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15239 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15240 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15241   $as_echo_n "(cached) " >&6
15242 else
15243   ac_cv_type_struct_sockaddr_storage=no
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 #include <sys/types.h>
15251 #ifdef HAVE_SYS_SOCKET_H
15252 #include <sys/socket.h>
15253 #endif
15254
15255
15256 int
15257 main ()
15258 {
15259 if (sizeof (struct sockaddr_storage))
15260        return 0;
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (ac_try="$ac_compile"
15267 case "(($ac_try" in
15268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269   *) ac_try_echo=$ac_try;;
15270 esac
15271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15272 $as_echo "$ac_try_echo") >&5
15273   (eval "$ac_compile") 2>conftest.er1
15274   ac_status=$?
15275   grep -v '^ *+' conftest.er1 >conftest.err
15276   rm -f conftest.er1
15277   cat conftest.err >&5
15278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } && {
15280          test -z "$ac_c_werror_flag" ||
15281          test ! -s conftest.err
15282        } && test -s conftest.$ac_objext; then
15283   cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 #include <sys/types.h>
15290 #ifdef HAVE_SYS_SOCKET_H
15291 #include <sys/socket.h>
15292 #endif
15293
15294
15295 int
15296 main ()
15297 {
15298 if (sizeof ((struct sockaddr_storage)))
15299           return 0;
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } && {
15319          test -z "$ac_c_werror_flag" ||
15320          test ! -s conftest.err
15321        } && test -s conftest.$ac_objext; then
15322   :
15323 else
15324   $as_echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327         ac_cv_type_struct_sockaddr_storage=yes
15328 fi
15329
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 else
15332   $as_echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335
15336 fi
15337
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15341 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15342 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15343
15344 cat >>confdefs.h <<_ACEOF
15345 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15346 _ACEOF
15347
15348
15349 fi
15350
15351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15352 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15353 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15354   $as_echo_n "(cached) " >&6
15355 else
15356   cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h.  */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h.  */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15365 #endif
15366
15367
15368 int
15369 main ()
15370 {
15371 static struct sockaddr_storage ac_aggr;
15372 if (ac_aggr.ss_family)
15373 return 0;
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386   (eval "$ac_compile") 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } && {
15393          test -z "$ac_c_werror_flag" ||
15394          test ! -s conftest.err
15395        } && test -s conftest.$ac_objext; then
15396   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15397 else
15398   $as_echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401         cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407 #include <sys/types.h>
15408 #ifdef HAVE_SYS_SOCKET_H
15409 #include <sys/socket.h>
15410 #endif
15411
15412
15413 int
15414 main ()
15415 {
15416 static struct sockaddr_storage ac_aggr;
15417 if (sizeof ac_aggr.ss_family)
15418 return 0;
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (ac_try="$ac_compile"
15425 case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430 $as_echo "$ac_try_echo") >&5
15431   (eval "$ac_compile") 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } && {
15438          test -z "$ac_c_werror_flag" ||
15439          test ! -s conftest.err
15440        } && test -s conftest.$ac_objext; then
15441   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15442 else
15443   $as_echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446         ac_cv_member_struct_sockaddr_storage_ss_family=no
15447 fi
15448
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 fi
15451
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 fi
15454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15457
15458 cat >>confdefs.h <<_ACEOF
15459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15460 _ACEOF
15461
15462
15463 fi
15464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15465 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15466 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15467   $as_echo_n "(cached) " >&6
15468 else
15469   cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475 #include <sys/types.h>
15476 #ifdef HAVE_SYS_SOCKET_H
15477 #include <sys/socket.h>
15478 #endif
15479
15480
15481 int
15482 main ()
15483 {
15484 static struct sockaddr_storage ac_aggr;
15485 if (ac_aggr.__ss_family)
15486 return 0;
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (ac_try="$ac_compile"
15493 case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498 $as_echo "$ac_try_echo") >&5
15499   (eval "$ac_compile") 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } && {
15506          test -z "$ac_c_werror_flag" ||
15507          test ! -s conftest.err
15508        } && test -s conftest.$ac_objext; then
15509   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15510 else
15511   $as_echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 #include <sys/types.h>
15521 #ifdef HAVE_SYS_SOCKET_H
15522 #include <sys/socket.h>
15523 #endif
15524
15525
15526 int
15527 main ()
15528 {
15529 static struct sockaddr_storage ac_aggr;
15530 if (sizeof ac_aggr.__ss_family)
15531 return 0;
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15543 $as_echo "$ac_try_echo") >&5
15544   (eval "$ac_compile") 2>conftest.er1
15545   ac_status=$?
15546   grep -v '^ *+' conftest.er1 >conftest.err
15547   rm -f conftest.er1
15548   cat conftest.err >&5
15549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } && {
15551          test -z "$ac_c_werror_flag" ||
15552          test ! -s conftest.err
15553        } && test -s conftest.$ac_objext; then
15554   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15555 else
15556   $as_echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559         ac_cv_member_struct_sockaddr_storage___ss_family=no
15560 fi
15561
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 fi
15564
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 fi
15567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15573 _ACEOF
15574
15575
15576 fi
15577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15578 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15579 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15580   $as_echo_n "(cached) " >&6
15581 else
15582   cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588 #include <sys/types.h>
15589 #ifdef HAVE_SYS_SOCKET_H
15590 #include <sys/socket.h>
15591 #endif
15592
15593
15594 int
15595 main ()
15596 {
15597 static struct sockaddr_storage ac_aggr;
15598 if (ac_aggr.ss_len)
15599 return 0;
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608   *) ac_try_echo=$ac_try;;
15609 esac
15610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15611 $as_echo "$ac_try_echo") >&5
15612   (eval "$ac_compile") 2>conftest.er1
15613   ac_status=$?
15614   grep -v '^ *+' conftest.er1 >conftest.err
15615   rm -f conftest.er1
15616   cat conftest.err >&5
15617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } && {
15619          test -z "$ac_c_werror_flag" ||
15620          test ! -s conftest.err
15621        } && test -s conftest.$ac_objext; then
15622   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15623 else
15624   $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627         cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633 #include <sys/types.h>
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15636 #endif
15637
15638
15639 int
15640 main ()
15641 {
15642 static struct sockaddr_storage ac_aggr;
15643 if (sizeof ac_aggr.ss_len)
15644 return 0;
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext
15650 if { (ac_try="$ac_compile"
15651 case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657   (eval "$ac_compile") 2>conftest.er1
15658   ac_status=$?
15659   grep -v '^ *+' conftest.er1 >conftest.err
15660   rm -f conftest.er1
15661   cat conftest.err >&5
15662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } && {
15664          test -z "$ac_c_werror_flag" ||
15665          test ! -s conftest.err
15666        } && test -s conftest.$ac_objext; then
15667   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15668 else
15669   $as_echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672         ac_cv_member_struct_sockaddr_storage_ss_len=no
15673 fi
15674
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 fi
15680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15681 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15682 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15683
15684 cat >>confdefs.h <<_ACEOF
15685 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15686 _ACEOF
15687
15688
15689 fi
15690 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15691 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15692 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15693   $as_echo_n "(cached) " >&6
15694 else
15695   cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h.  */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h.  */
15701 #include <sys/types.h>
15702 #ifdef HAVE_SYS_SOCKET_H
15703 #include <sys/socket.h>
15704 #endif
15705
15706
15707 int
15708 main ()
15709 {
15710 static struct sockaddr_storage ac_aggr;
15711 if (ac_aggr.__ss_len)
15712 return 0;
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725   (eval "$ac_compile") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } && {
15732          test -z "$ac_c_werror_flag" ||
15733          test ! -s conftest.err
15734        } && test -s conftest.$ac_objext; then
15735   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15736 else
15737   $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740         cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746 #include <sys/types.h>
15747 #ifdef HAVE_SYS_SOCKET_H
15748 #include <sys/socket.h>
15749 #endif
15750
15751
15752 int
15753 main ()
15754 {
15755 static struct sockaddr_storage ac_aggr;
15756 if (sizeof ac_aggr.__ss_len)
15757 return 0;
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766   *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770   (eval "$ac_compile") 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } && {
15777          test -z "$ac_c_werror_flag" ||
15778          test ! -s conftest.err
15779        } && test -s conftest.$ac_objext; then
15780   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15781 else
15782   $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785         ac_cv_member_struct_sockaddr_storage___ss_len=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 fi
15790
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 fi
15793 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15794 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15795 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15796
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15799 _ACEOF
15800
15801
15802 fi
15803 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15804 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15805 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15806   $as_echo_n "(cached) " >&6
15807 else
15808   cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 #include <sys/types.h>
15815 #ifdef HAVE_SYS_SOCKET_H
15816 #include <sys/socket.h>
15817 #endif
15818
15819
15820 int
15821 main ()
15822 {
15823 static struct sockaddr ac_aggr;
15824 if (ac_aggr.sa_len)
15825 return 0;
15826   ;
15827   return 0;
15828 }
15829 _ACEOF
15830 rm -f conftest.$ac_objext
15831 if { (ac_try="$ac_compile"
15832 case "(($ac_try" in
15833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834   *) ac_try_echo=$ac_try;;
15835 esac
15836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15837 $as_echo "$ac_try_echo") >&5
15838   (eval "$ac_compile") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } && {
15845          test -z "$ac_c_werror_flag" ||
15846          test ! -s conftest.err
15847        } && test -s conftest.$ac_objext; then
15848   ac_cv_member_struct_sockaddr_sa_len=yes
15849 else
15850   $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853         cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 #include <sys/types.h>
15860 #ifdef HAVE_SYS_SOCKET_H
15861 #include <sys/socket.h>
15862 #endif
15863
15864
15865 int
15866 main ()
15867 {
15868 static struct sockaddr ac_aggr;
15869 if (sizeof ac_aggr.sa_len)
15870 return 0;
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15882 $as_echo "$ac_try_echo") >&5
15883   (eval "$ac_compile") 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } && {
15890          test -z "$ac_c_werror_flag" ||
15891          test ! -s conftest.err
15892        } && test -s conftest.$ac_objext; then
15893   ac_cv_member_struct_sockaddr_sa_len=yes
15894 else
15895   $as_echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898         ac_cv_member_struct_sockaddr_sa_len=no
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 fi
15906 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15907 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15908 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15909
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15912 _ACEOF
15913
15914
15915 fi
15916
15917 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15918 $as_echo_n "checking for struct addrinfo... " >&6; }
15919 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15920   $as_echo_n "(cached) " >&6
15921 else
15922   ac_cv_type_struct_addrinfo=no
15923 cat >conftest.$ac_ext <<_ACEOF
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929 #include <sys/types.h>
15930 #include <sys/socket.h>
15931 #include <netdb.h>
15932
15933
15934 int
15935 main ()
15936 {
15937 if (sizeof (struct addrinfo))
15938        return 0;
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15950 $as_echo "$ac_try_echo") >&5
15951   (eval "$ac_compile") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } && {
15958          test -z "$ac_c_werror_flag" ||
15959          test ! -s conftest.err
15960        } && test -s conftest.$ac_objext; then
15961   cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 #include <sys/types.h>
15968 #include <sys/socket.h>
15969 #include <netdb.h>
15970
15971
15972 int
15973 main ()
15974 {
15975 if (sizeof ((struct addrinfo)))
15976           return 0;
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15988 $as_echo "$ac_try_echo") >&5
15989   (eval "$ac_compile") 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } && {
15996          test -z "$ac_c_werror_flag" ||
15997          test ! -s conftest.err
15998        } && test -s conftest.$ac_objext; then
15999   :
16000 else
16001   $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004         ac_cv_type_struct_addrinfo=yes
16005 fi
16006
16007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008 else
16009   $as_echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012
16013 fi
16014
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 fi
16017 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16018 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16019 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16020
16021 cat >>confdefs.h <<_ACEOF
16022 #define HAVE_STRUCT_ADDRINFO 1
16023 _ACEOF
16024
16025
16026 fi
16027
16028
16029 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16030 $as_echo_n "checking for struct cmsgcred... " >&6; }
16031 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16032   $as_echo_n "(cached) " >&6
16033 else
16034   ac_cv_type_struct_cmsgcred=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/param.h>
16042 #include <sys/types.h>
16043 #include <sys/socket.h>
16044 #include <sys/ucred.h>
16045
16046 int
16047 main ()
16048 {
16049 if (sizeof (struct cmsgcred))
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/param.h>
16080 #include <sys/types.h>
16081 #include <sys/socket.h>
16082 #include <sys/ucred.h>
16083
16084 int
16085 main ()
16086 {
16087 if (sizeof ((struct cmsgcred)))
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_cmsgcred=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_cmsgcred" >&5
16130 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16131 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_CMSGCRED 1
16135 _ACEOF
16136
16137
16138 fi
16139 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16140 $as_echo_n "checking for struct fcred... " >&6; }
16141 if test "${ac_cv_type_struct_fcred+set}" = set; then
16142   $as_echo_n "(cached) " >&6
16143 else
16144   ac_cv_type_struct_fcred=no
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 #include <sys/param.h>
16152 #include <sys/types.h>
16153 #include <sys/socket.h>
16154 #include <sys/ucred.h>
16155
16156 int
16157 main ()
16158 {
16159 if (sizeof (struct fcred))
16160        return 0;
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (ac_try="$ac_compile"
16167 case "(($ac_try" in
16168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169   *) ac_try_echo=$ac_try;;
16170 esac
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173   (eval "$ac_compile") 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } && {
16180          test -z "$ac_c_werror_flag" ||
16181          test ! -s conftest.err
16182        } && test -s conftest.$ac_objext; then
16183   cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189 #include <sys/param.h>
16190 #include <sys/types.h>
16191 #include <sys/socket.h>
16192 #include <sys/ucred.h>
16193
16194 int
16195 main ()
16196 {
16197 if (sizeof ((struct fcred)))
16198           return 0;
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
16205 case "(($ac_try" in
16206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207   *) ac_try_echo=$ac_try;;
16208 esac
16209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16210 $as_echo "$ac_try_echo") >&5
16211   (eval "$ac_compile") 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } && {
16218          test -z "$ac_c_werror_flag" ||
16219          test ! -s conftest.err
16220        } && test -s conftest.$ac_objext; then
16221   :
16222 else
16223   $as_echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226         ac_cv_type_struct_fcred=yes
16227 fi
16228
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 else
16231   $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234
16235 fi
16236
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 fi
16239 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16240 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16241 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16242
16243 cat >>confdefs.h <<_ACEOF
16244 #define HAVE_STRUCT_FCRED 1
16245 _ACEOF
16246
16247
16248 fi
16249 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16250 $as_echo_n "checking for struct sockcred... " >&6; }
16251 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16252   $as_echo_n "(cached) " >&6
16253 else
16254   ac_cv_type_struct_sockcred=no
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261 #include <sys/param.h>
16262 #include <sys/types.h>
16263 #include <sys/socket.h>
16264 #include <sys/ucred.h>
16265
16266 int
16267 main ()
16268 {
16269 if (sizeof (struct sockcred))
16270        return 0;
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (ac_try="$ac_compile"
16277 case "(($ac_try" in
16278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279   *) ac_try_echo=$ac_try;;
16280 esac
16281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16282 $as_echo "$ac_try_echo") >&5
16283   (eval "$ac_compile") 2>conftest.er1
16284   ac_status=$?
16285   grep -v '^ *+' conftest.er1 >conftest.err
16286   rm -f conftest.er1
16287   cat conftest.err >&5
16288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); } && {
16290          test -z "$ac_c_werror_flag" ||
16291          test ! -s conftest.err
16292        } && test -s conftest.$ac_objext; then
16293   cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299 #include <sys/param.h>
16300 #include <sys/types.h>
16301 #include <sys/socket.h>
16302 #include <sys/ucred.h>
16303
16304 int
16305 main ()
16306 {
16307 if (sizeof ((struct sockcred)))
16308           return 0;
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (ac_try="$ac_compile"
16315 case "(($ac_try" in
16316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317   *) ac_try_echo=$ac_try;;
16318 esac
16319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16320 $as_echo "$ac_try_echo") >&5
16321   (eval "$ac_compile") 2>conftest.er1
16322   ac_status=$?
16323   grep -v '^ *+' conftest.er1 >conftest.err
16324   rm -f conftest.er1
16325   cat conftest.err >&5
16326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } && {
16328          test -z "$ac_c_werror_flag" ||
16329          test ! -s conftest.err
16330        } && test -s conftest.$ac_objext; then
16331   :
16332 else
16333   $as_echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336         ac_cv_type_struct_sockcred=yes
16337 fi
16338
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 else
16341   $as_echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344
16345 fi
16346
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348 fi
16349 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16350 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16351 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16352
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_STRUCT_SOCKCRED 1
16355 _ACEOF
16356
16357
16358 fi
16359
16360
16361 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16362 $as_echo_n "checking for struct option... " >&6; }
16363 if test "${ac_cv_type_struct_option+set}" = set; then
16364   $as_echo_n "(cached) " >&6
16365 else
16366   ac_cv_type_struct_option=no
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 #ifdef HAVE_GETOPT_H
16374 #include <getopt.h>
16375 #endif
16376
16377 int
16378 main ()
16379 {
16380 if (sizeof (struct option))
16381        return 0;
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390   *) ac_try_echo=$ac_try;;
16391 esac
16392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16393 $as_echo "$ac_try_echo") >&5
16394   (eval "$ac_compile") 2>conftest.er1
16395   ac_status=$?
16396   grep -v '^ *+' conftest.er1 >conftest.err
16397   rm -f conftest.er1
16398   cat conftest.err >&5
16399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } && {
16401          test -z "$ac_c_werror_flag" ||
16402          test ! -s conftest.err
16403        } && test -s conftest.$ac_objext; then
16404   cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 #ifdef HAVE_GETOPT_H
16411 #include <getopt.h>
16412 #endif
16413
16414 int
16415 main ()
16416 {
16417 if (sizeof ((struct option)))
16418           return 0;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431   (eval "$ac_compile") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } && {
16438          test -z "$ac_c_werror_flag" ||
16439          test ! -s conftest.err
16440        } && test -s conftest.$ac_objext; then
16441   :
16442 else
16443   $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446         ac_cv_type_struct_option=yes
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 else
16451   $as_echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458 fi
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16460 $as_echo "$ac_cv_type_struct_option" >&6; }
16461 if test "x$ac_cv_type_struct_option" = x""yes; then
16462
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_STRUCT_OPTION 1
16465 _ACEOF
16466
16467
16468 fi
16469
16470
16471 if test "$with_zlib" = yes; then
16472   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16473   # did not).  While we could work around the lack of z_streamp, it
16474   # seems unwise to encourage people to use such old zlib versions...
16475   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16476 $as_echo_n "checking for z_streamp... " >&6; }
16477 if test "${ac_cv_type_z_streamp+set}" = set; then
16478   $as_echo_n "(cached) " >&6
16479 else
16480   ac_cv_type_z_streamp=no
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487 #include <zlib.h>
16488
16489 int
16490 main ()
16491 {
16492 if (sizeof (z_streamp))
16493        return 0;
16494   ;
16495   return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505 $as_echo "$ac_try_echo") >&5
16506   (eval "$ac_compile") 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } && {
16513          test -z "$ac_c_werror_flag" ||
16514          test ! -s conftest.err
16515        } && test -s conftest.$ac_objext; then
16516   cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 #include <zlib.h>
16523
16524 int
16525 main ()
16526 {
16527 if (sizeof ((z_streamp)))
16528           return 0;
16529   ;
16530   return 0;
16531 }
16532 _ACEOF
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
16535 case "(($ac_try" in
16536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537   *) ac_try_echo=$ac_try;;
16538 esac
16539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541   (eval "$ac_compile") 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } && {
16548          test -z "$ac_c_werror_flag" ||
16549          test ! -s conftest.err
16550        } && test -s conftest.$ac_objext; then
16551   :
16552 else
16553   $as_echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556         ac_cv_type_z_streamp=yes
16557 fi
16558
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 else
16561   $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564
16565 fi
16566
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568 fi
16569 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16570 $as_echo "$ac_cv_type_z_streamp" >&6; }
16571 if test "x$ac_cv_type_z_streamp" = x""yes; then
16572   :
16573 else
16574   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16575 Use --without-zlib to disable zlib support." >&5
16576 $as_echo "$as_me: error: zlib version is too old
16577 Use --without-zlib to disable zlib support." >&2;}
16578    { (exit 1); exit 1; }; }
16579 fi
16580
16581 fi
16582
16583 if test "$with_krb5" = yes; then
16584 # Check for differences between MIT and Heimdal (KTH) releases
16585   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16586 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16587 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16588   $as_echo_n "(cached) " >&6
16589 else
16590   cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596 #include <krb5.h>
16597
16598 int
16599 main ()
16600 {
16601 static krb5_ticket ac_aggr;
16602 if (ac_aggr.enc_part2)
16603 return 0;
16604   ;
16605   return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext
16609 if { (ac_try="$ac_compile"
16610 case "(($ac_try" in
16611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612   *) ac_try_echo=$ac_try;;
16613 esac
16614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16615 $as_echo "$ac_try_echo") >&5
16616   (eval "$ac_compile") 2>conftest.er1
16617   ac_status=$?
16618   grep -v '^ *+' conftest.er1 >conftest.err
16619   rm -f conftest.er1
16620   cat conftest.err >&5
16621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } && {
16623          test -z "$ac_c_werror_flag" ||
16624          test ! -s conftest.err
16625        } && test -s conftest.$ac_objext; then
16626   ac_cv_member_krb5_ticket_enc_part2=yes
16627 else
16628   $as_echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637 #include <krb5.h>
16638
16639 int
16640 main ()
16641 {
16642 static krb5_ticket ac_aggr;
16643 if (sizeof ac_aggr.enc_part2)
16644 return 0;
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } && {
16664          test -z "$ac_c_werror_flag" ||
16665          test ! -s conftest.err
16666        } && test -s conftest.$ac_objext; then
16667   ac_cv_member_krb5_ticket_enc_part2=yes
16668 else
16669   $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_member_krb5_ticket_enc_part2=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679 fi
16680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16681 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16682 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16683
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_KRB5_TICKET_ENC_PART2 1
16686 _ACEOF
16687
16688
16689 else
16690   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16691 $as_echo_n "checking for krb5_ticket.client... " >&6; }
16692 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16693   $as_echo_n "(cached) " >&6
16694 else
16695   cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h.  */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h.  */
16701 #include <krb5.h>
16702
16703 int
16704 main ()
16705 {
16706 static krb5_ticket ac_aggr;
16707 if (ac_aggr.client)
16708 return 0;
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16720 $as_echo "$ac_try_echo") >&5
16721   (eval "$ac_compile") 2>conftest.er1
16722   ac_status=$?
16723   grep -v '^ *+' conftest.er1 >conftest.err
16724   rm -f conftest.er1
16725   cat conftest.err >&5
16726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } && {
16728          test -z "$ac_c_werror_flag" ||
16729          test ! -s conftest.err
16730        } && test -s conftest.$ac_objext; then
16731   ac_cv_member_krb5_ticket_client=yes
16732 else
16733   $as_echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736         cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742 #include <krb5.h>
16743
16744 int
16745 main ()
16746 {
16747 static krb5_ticket ac_aggr;
16748 if (sizeof ac_aggr.client)
16749 return 0;
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext
16755 if { (ac_try="$ac_compile"
16756 case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16761 $as_echo "$ac_try_echo") >&5
16762   (eval "$ac_compile") 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } && {
16769          test -z "$ac_c_werror_flag" ||
16770          test ! -s conftest.err
16771        } && test -s conftest.$ac_objext; then
16772   ac_cv_member_krb5_ticket_client=yes
16773 else
16774   $as_echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777         ac_cv_member_krb5_ticket_client=no
16778 fi
16779
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 fi
16782
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 fi
16785 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16786 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
16787 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
16788
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_KRB5_TICKET_CLIENT 1
16791 _ACEOF
16792
16793
16794 else
16795   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16796 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16797    { (exit 1); exit 1; }; }
16798 fi
16799
16800 fi
16801
16802   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16803 $as_echo_n "checking for krb5_error.text.data... " >&6; }
16804 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16805   $as_echo_n "(cached) " >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 #include <krb5.h>
16814
16815 int
16816 main ()
16817 {
16818 static krb5_error ac_aggr;
16819 if (ac_aggr.text.data)
16820 return 0;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } && {
16840          test -z "$ac_c_werror_flag" ||
16841          test ! -s conftest.err
16842        } && test -s conftest.$ac_objext; then
16843   ac_cv_member_krb5_error_text_data=yes
16844 else
16845   $as_echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848         cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h.  */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h.  */
16854 #include <krb5.h>
16855
16856 int
16857 main ()
16858 {
16859 static krb5_error ac_aggr;
16860 if (sizeof ac_aggr.text.data)
16861 return 0;
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (ac_try="$ac_compile"
16868 case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16873 $as_echo "$ac_try_echo") >&5
16874   (eval "$ac_compile") 2>conftest.er1
16875   ac_status=$?
16876   grep -v '^ *+' conftest.er1 >conftest.err
16877   rm -f conftest.er1
16878   cat conftest.err >&5
16879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } && {
16881          test -z "$ac_c_werror_flag" ||
16882          test ! -s conftest.err
16883        } && test -s conftest.$ac_objext; then
16884   ac_cv_member_krb5_error_text_data=yes
16885 else
16886   $as_echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889         ac_cv_member_krb5_error_text_data=no
16890 fi
16891
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 fi
16894
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 fi
16897 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16898 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
16899 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
16900
16901 cat >>confdefs.h <<_ACEOF
16902 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16903 _ACEOF
16904
16905
16906 else
16907   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16908 $as_echo_n "checking for krb5_error.e_data... " >&6; }
16909 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16910   $as_echo_n "(cached) " >&6
16911 else
16912   cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h.  */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h.  */
16918 #include <krb5.h>
16919
16920 int
16921 main ()
16922 {
16923 static krb5_error ac_aggr;
16924 if (ac_aggr.e_data)
16925 return 0;
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16937 $as_echo "$ac_try_echo") >&5
16938   (eval "$ac_compile") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } && {
16945          test -z "$ac_c_werror_flag" ||
16946          test ! -s conftest.err
16947        } && test -s conftest.$ac_objext; then
16948   ac_cv_member_krb5_error_e_data=yes
16949 else
16950   $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953         cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959 #include <krb5.h>
16960
16961 int
16962 main ()
16963 {
16964 static krb5_error ac_aggr;
16965 if (sizeof ac_aggr.e_data)
16966 return 0;
16967   ;
16968   return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext
16972 if { (ac_try="$ac_compile"
16973 case "(($ac_try" in
16974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975   *) ac_try_echo=$ac_try;;
16976 esac
16977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16978 $as_echo "$ac_try_echo") >&5
16979   (eval "$ac_compile") 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } && {
16986          test -z "$ac_c_werror_flag" ||
16987          test ! -s conftest.err
16988        } && test -s conftest.$ac_objext; then
16989   ac_cv_member_krb5_error_e_data=yes
16990 else
16991   $as_echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994         ac_cv_member_krb5_error_e_data=no
16995 fi
16996
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998 fi
16999
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 fi
17002 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17003 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17004 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17005
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_KRB5_ERROR_E_DATA 1
17008 _ACEOF
17009
17010
17011 else
17012   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17013 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17014    { (exit 1); exit 1; }; }
17015 fi
17016
17017 fi
17018
17019
17020 # Win32 requires headers to be loaded for __stdcall, so can't use
17021 # AC_CHECK_FUNCS here.
17022   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17023 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17024   cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h.  */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h.  */
17030 #include <krb5.h>
17031 int
17032 main ()
17033 {
17034 krb5_free_unparsed_name(NULL,NULL);
17035   ;
17036   return 0;
17037 }
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043   *) ac_try_echo=$ac_try;;
17044 esac
17045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17046 $as_echo "$ac_try_echo") >&5
17047   (eval "$ac_link") 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } && {
17054          test -z "$ac_c_werror_flag" ||
17055          test ! -s conftest.err
17056        } && test -s conftest$ac_exeext && {
17057          test "$cross_compiling" = yes ||
17058          $as_test_x conftest$ac_exeext
17059        }; then
17060
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17063 _ACEOF
17064
17065 { $as_echo "$as_me:$LINENO: result: yes" >&5
17066 $as_echo "yes" >&6; }
17067 else
17068   $as_echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071         { $as_echo "$as_me:$LINENO: result: no" >&5
17072 $as_echo "no" >&6; }
17073 fi
17074
17075 rm -rf conftest.dSYM
17076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17077       conftest$ac_exeext conftest.$ac_ext
17078 fi
17079
17080
17081 ##
17082 ## Functions, global variables
17083 ##
17084
17085 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17086 $as_echo_n "checking for int timezone... " >&6; }
17087 if test "${pgac_cv_var_int_timezone+set}" = set; then
17088   $as_echo_n "(cached) " >&6
17089 else
17090   cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096 #include <time.h>
17097 int res;
17098 int
17099 main ()
17100 {
17101 #ifndef __CYGWIN__
17102 res = timezone / 60;
17103 #else
17104 res = _timezone / 60;
17105 #endif
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114   *) ac_try_echo=$ac_try;;
17115 esac
17116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17117 $as_echo "$ac_try_echo") >&5
17118   (eval "$ac_link") 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } && {
17125          test -z "$ac_c_werror_flag" ||
17126          test ! -s conftest.err
17127        } && test -s conftest$ac_exeext && {
17128          test "$cross_compiling" = yes ||
17129          $as_test_x conftest$ac_exeext
17130        }; then
17131   pgac_cv_var_int_timezone=yes
17132 else
17133   $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136         pgac_cv_var_int_timezone=no
17137 fi
17138
17139 rm -rf conftest.dSYM
17140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17141       conftest$ac_exeext conftest.$ac_ext
17142 fi
17143 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17144 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17145 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17146
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_INT_TIMEZONE /**/
17149 _ACEOF
17150
17151 fi
17152 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17153 $as_echo_n "checking types of arguments for accept()... " >&6; }
17154  if test "${ac_cv_func_accept_return+set}" = set; then
17155   $as_echo_n "(cached) " >&6
17156 else
17157    if test "${ac_cv_func_accept_arg1+set}" = set; then
17158   $as_echo_n "(cached) " >&6
17159 else
17160     if test "${ac_cv_func_accept_arg2+set}" = set; then
17161   $as_echo_n "(cached) " >&6
17162 else
17163      if test "${ac_cv_func_accept_arg3+set}" = set; then
17164   $as_echo_n "(cached) " >&6
17165 else
17166       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17167       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17168        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17169         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
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 #ifdef HAVE_SYS_TYPES_H
17177 #include <sys/types.h>
17178 #endif
17179 #ifdef HAVE_SYS_SOCKET_H
17180 #include <sys/socket.h>
17181 #endif
17182 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17183 int
17184 main ()
17185 {
17186
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199   (eval "$ac_compile") 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && {
17206          test -z "$ac_c_werror_flag" ||
17207          test ! -s conftest.err
17208        } && test -s conftest.$ac_objext; then
17209   ac_not_found=no; break 4
17210 else
17211   $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214         ac_not_found=yes
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218        done
17219       done
17220      done
17221     done
17222     if test "$ac_not_found" = yes; then
17223       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17224 $as_echo "$as_me: error: could not determine argument types" >&2;}
17225    { (exit 1); exit 1; }; }
17226     fi
17227     if test "$ac_cv_func_accept_arg3" = "void"; then
17228       ac_cv_func_accept_arg3=int
17229     fi
17230
17231 fi
17232
17233 fi
17234
17235 fi
17236
17237 fi
17238  { $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
17239 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17240
17241 cat >>confdefs.h <<_ACEOF
17242 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17243 _ACEOF
17244
17245
17246 cat >>confdefs.h <<_ACEOF
17247 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17248 _ACEOF
17249
17250
17251 cat >>confdefs.h <<_ACEOF
17252 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17253 _ACEOF
17254
17255
17256 cat >>confdefs.h <<_ACEOF
17257 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17258 _ACEOF
17259
17260
17261 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17262 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17263 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17264   $as_echo_n "(cached) " >&6
17265 else
17266   cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272 #include <sys/time.h>
17273 int
17274 main ()
17275 {
17276 struct timeval *tp;
17277 struct timezone *tzp;
17278 gettimeofday(tp,tzp);
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext
17284 if { (ac_try="$ac_compile"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17290 $as_echo "$ac_try_echo") >&5
17291   (eval "$ac_compile") 2>conftest.er1
17292   ac_status=$?
17293   grep -v '^ *+' conftest.er1 >conftest.err
17294   rm -f conftest.er1
17295   cat conftest.err >&5
17296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } && {
17298          test -z "$ac_c_werror_flag" ||
17299          test ! -s conftest.err
17300        } && test -s conftest.$ac_objext; then
17301   pgac_cv_func_gettimeofday_1arg=no
17302 else
17303   $as_echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306         pgac_cv_func_gettimeofday_1arg=yes
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 fi
17311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17312 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17313 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17314
17315 cat >>confdefs.h <<\_ACEOF
17316 #define GETTIMEOFDAY_1ARG /**/
17317 _ACEOF
17318
17319 fi
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17346 do
17347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17348 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17349 $as_echo_n "checking for $ac_func... " >&6; }
17350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17351   $as_echo_n "(cached) " >&6
17352 else
17353   cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17361 #define $ac_func innocuous_$ac_func
17362
17363 /* System header to define __stub macros and hopefully few prototypes,
17364     which can conflict with char $ac_func (); below.
17365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17366     <limits.h> exists even on freestanding compilers.  */
17367
17368 #ifdef __STDC__
17369 # include <limits.h>
17370 #else
17371 # include <assert.h>
17372 #endif
17373
17374 #undef $ac_func
17375
17376 /* Override any GCC internal prototype to avoid an error.
17377    Use char because int might match the return type of a GCC
17378    builtin and then its argument prototype would still apply.  */
17379 #ifdef __cplusplus
17380 extern "C"
17381 #endif
17382 char $ac_func ();
17383 /* The GNU C library defines this for functions which it implements
17384     to always fail with ENOSYS.  Some functions are actually named
17385     something starting with __ and the normal name is an alias.  */
17386 #if defined __stub_$ac_func || defined __stub___$ac_func
17387 choke me
17388 #endif
17389
17390 int
17391 main ()
17392 {
17393 return $ac_func ();
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (ac_try="$ac_link"
17400 case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17405 $as_echo "$ac_try_echo") >&5
17406   (eval "$ac_link") 2>conftest.er1
17407   ac_status=$?
17408   grep -v '^ *+' conftest.er1 >conftest.err
17409   rm -f conftest.er1
17410   cat conftest.err >&5
17411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); } && {
17413          test -z "$ac_c_werror_flag" ||
17414          test ! -s conftest.err
17415        } && test -s conftest$ac_exeext && {
17416          test "$cross_compiling" = yes ||
17417          $as_test_x conftest$ac_exeext
17418        }; then
17419   eval "$as_ac_var=yes"
17420 else
17421   $as_echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424         eval "$as_ac_var=no"
17425 fi
17426
17427 rm -rf conftest.dSYM
17428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17429       conftest$ac_exeext conftest.$ac_ext
17430 fi
17431 ac_res=`eval 'as_val=${'$as_ac_var'}
17432                  $as_echo "$as_val"'`
17433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17434 $as_echo "$ac_res" >&6; }
17435 as_val=`eval 'as_val=${'$as_ac_var'}
17436                  $as_echo "$as_val"'`
17437    if test "x$as_val" = x""yes; then
17438   cat >>confdefs.h <<_ACEOF
17439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17440 _ACEOF
17441
17442 fi
17443 done
17444
17445
17446 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17447 # by calling it, 2009-04-02
17448 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17449 if test "$PORTNAME" != "solaris"; then
17450
17451 for ac_func in posix_fadvise
17452 do
17453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17455 $as_echo_n "checking for $ac_func... " >&6; }
17456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17457   $as_echo_n "(cached) " >&6
17458 else
17459   cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h.  */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h.  */
17465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17467 #define $ac_func innocuous_$ac_func
17468
17469 /* System header to define __stub macros and hopefully few prototypes,
17470     which can conflict with char $ac_func (); below.
17471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17472     <limits.h> exists even on freestanding compilers.  */
17473
17474 #ifdef __STDC__
17475 # include <limits.h>
17476 #else
17477 # include <assert.h>
17478 #endif
17479
17480 #undef $ac_func
17481
17482 /* Override any GCC internal prototype to avoid an error.
17483    Use char because int might match the return type of a GCC
17484    builtin and then its argument prototype would still apply.  */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 char $ac_func ();
17489 /* The GNU C library defines this for functions which it implements
17490     to always fail with ENOSYS.  Some functions are actually named
17491     something starting with __ and the normal name is an alias.  */
17492 #if defined __stub_$ac_func || defined __stub___$ac_func
17493 choke me
17494 #endif
17495
17496 int
17497 main ()
17498 {
17499 return $ac_func ();
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17511 $as_echo "$ac_try_echo") >&5
17512   (eval "$ac_link") 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } && {
17519          test -z "$ac_c_werror_flag" ||
17520          test ! -s conftest.err
17521        } && test -s conftest$ac_exeext && {
17522          test "$cross_compiling" = yes ||
17523          $as_test_x conftest$ac_exeext
17524        }; then
17525   eval "$as_ac_var=yes"
17526 else
17527   $as_echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530         eval "$as_ac_var=no"
17531 fi
17532
17533 rm -rf conftest.dSYM
17534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17535       conftest$ac_exeext conftest.$ac_ext
17536 fi
17537 ac_res=`eval 'as_val=${'$as_ac_var'}
17538                  $as_echo "$as_val"'`
17539                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17540 $as_echo "$ac_res" >&6; }
17541 as_val=`eval 'as_val=${'$as_ac_var'}
17542                  $as_echo "$as_val"'`
17543    if test "x$as_val" = x""yes; then
17544   cat >>confdefs.h <<_ACEOF
17545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17546 _ACEOF
17547
17548 fi
17549 done
17550
17551 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17552 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17553 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17554   $as_echo_n "(cached) " >&6
17555 else
17556   cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h.  */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h.  */
17562 #include <fcntl.h>
17563
17564 int
17565 main ()
17566 {
17567 #ifndef posix_fadvise
17568   (void) posix_fadvise;
17569 #endif
17570
17571   ;
17572   return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext
17576 if { (ac_try="$ac_compile"
17577 case "(($ac_try" in
17578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579   *) ac_try_echo=$ac_try;;
17580 esac
17581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17582 $as_echo "$ac_try_echo") >&5
17583   (eval "$ac_compile") 2>conftest.er1
17584   ac_status=$?
17585   grep -v '^ *+' conftest.er1 >conftest.err
17586   rm -f conftest.er1
17587   cat conftest.err >&5
17588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } && {
17590          test -z "$ac_c_werror_flag" ||
17591          test ! -s conftest.err
17592        } && test -s conftest.$ac_objext; then
17593   ac_cv_have_decl_posix_fadvise=yes
17594 else
17595   $as_echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598         ac_cv_have_decl_posix_fadvise=no
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 fi
17603 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17604 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17605 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_DECL_POSIX_FADVISE 1
17609 _ACEOF
17610
17611
17612 else
17613   cat >>confdefs.h <<_ACEOF
17614 #define HAVE_DECL_POSIX_FADVISE 0
17615 _ACEOF
17616
17617
17618 fi
17619
17620
17621 fi
17622
17623 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17624 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17625 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17626   $as_echo_n "(cached) " >&6
17627 else
17628   cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h.  */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h.  */
17634 #include <unistd.h>
17635
17636 int
17637 main ()
17638 {
17639 #ifndef fdatasync
17640   (void) fdatasync;
17641 #endif
17642
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655   (eval "$ac_compile") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } && {
17662          test -z "$ac_c_werror_flag" ||
17663          test ! -s conftest.err
17664        } && test -s conftest.$ac_objext; then
17665   ac_cv_have_decl_fdatasync=yes
17666 else
17667   $as_echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670         ac_cv_have_decl_fdatasync=no
17671 fi
17672
17673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 fi
17675 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17676 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17677 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17678
17679 cat >>confdefs.h <<_ACEOF
17680 #define HAVE_DECL_FDATASYNC 1
17681 _ACEOF
17682
17683
17684 else
17685   cat >>confdefs.h <<_ACEOF
17686 #define HAVE_DECL_FDATASYNC 0
17687 _ACEOF
17688
17689
17690 fi
17691
17692
17693 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
17694 $as_echo_n "checking whether strlcat is declared... " >&6; }
17695 if test "${ac_cv_have_decl_strlcat+set}" = set; then
17696   $as_echo_n "(cached) " >&6
17697 else
17698   cat >conftest.$ac_ext <<_ACEOF
17699 /* confdefs.h.  */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h.  */
17704 $ac_includes_default
17705 int
17706 main ()
17707 {
17708 #ifndef strlcat
17709   (void) strlcat;
17710 #endif
17711
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (ac_try="$ac_compile"
17718 case "(($ac_try" in
17719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720   *) ac_try_echo=$ac_try;;
17721 esac
17722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17723 $as_echo "$ac_try_echo") >&5
17724   (eval "$ac_compile") 2>conftest.er1
17725   ac_status=$?
17726   grep -v '^ *+' conftest.er1 >conftest.err
17727   rm -f conftest.er1
17728   cat conftest.err >&5
17729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); } && {
17731          test -z "$ac_c_werror_flag" ||
17732          test ! -s conftest.err
17733        } && test -s conftest.$ac_objext; then
17734   ac_cv_have_decl_strlcat=yes
17735 else
17736   $as_echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739         ac_cv_have_decl_strlcat=no
17740 fi
17741
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 fi
17744 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
17745 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
17746 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
17747
17748 cat >>confdefs.h <<_ACEOF
17749 #define HAVE_DECL_STRLCAT 1
17750 _ACEOF
17751
17752
17753 else
17754   cat >>confdefs.h <<_ACEOF
17755 #define HAVE_DECL_STRLCAT 0
17756 _ACEOF
17757
17758
17759 fi
17760 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
17761 $as_echo_n "checking whether strlcpy is declared... " >&6; }
17762 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
17763   $as_echo_n "(cached) " >&6
17764 else
17765   cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771 $ac_includes_default
17772 int
17773 main ()
17774 {
17775 #ifndef strlcpy
17776   (void) strlcpy;
17777 #endif
17778
17779   ;
17780   return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (ac_try="$ac_compile"
17785 case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17790 $as_echo "$ac_try_echo") >&5
17791   (eval "$ac_compile") 2>conftest.er1
17792   ac_status=$?
17793   grep -v '^ *+' conftest.er1 >conftest.err
17794   rm -f conftest.er1
17795   cat conftest.err >&5
17796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } && {
17798          test -z "$ac_c_werror_flag" ||
17799          test ! -s conftest.err
17800        } && test -s conftest.$ac_objext; then
17801   ac_cv_have_decl_strlcpy=yes
17802 else
17803   $as_echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806         ac_cv_have_decl_strlcpy=no
17807 fi
17808
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 fi
17811 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17812 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
17813 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
17814
17815 cat >>confdefs.h <<_ACEOF
17816 #define HAVE_DECL_STRLCPY 1
17817 _ACEOF
17818
17819
17820 else
17821   cat >>confdefs.h <<_ACEOF
17822 #define HAVE_DECL_STRLCPY 0
17823 _ACEOF
17824
17825
17826 fi
17827
17828
17829 # This is probably only present on Darwin, but may as well check always
17830 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17831 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
17832 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17833   $as_echo_n "(cached) " >&6
17834 else
17835   cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h.  */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h.  */
17841 #include <fcntl.h>
17842
17843 int
17844 main ()
17845 {
17846 #ifndef F_FULLFSYNC
17847   (void) F_FULLFSYNC;
17848 #endif
17849
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext
17855 if { (ac_try="$ac_compile"
17856 case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862   (eval "$ac_compile") 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } && {
17869          test -z "$ac_c_werror_flag" ||
17870          test ! -s conftest.err
17871        } && test -s conftest.$ac_objext; then
17872   ac_cv_have_decl_F_FULLFSYNC=yes
17873 else
17874   $as_echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877         ac_cv_have_decl_F_FULLFSYNC=no
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 fi
17882 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17883 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17884 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
17885
17886 cat >>confdefs.h <<_ACEOF
17887 #define HAVE_DECL_F_FULLFSYNC 1
17888 _ACEOF
17889
17890
17891 else
17892   cat >>confdefs.h <<_ACEOF
17893 #define HAVE_DECL_F_FULLFSYNC 0
17894 _ACEOF
17895
17896
17897 fi
17898
17899
17900
17901 HAVE_IPV6=no
17902 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17903 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
17904 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17905   $as_echo_n "(cached) " >&6
17906 else
17907   ac_cv_type_struct_sockaddr_in6=no
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914 $ac_includes_default
17915 #include <netinet/in.h>
17916
17917 int
17918 main ()
17919 {
17920 if (sizeof (struct sockaddr_in6))
17921        return 0;
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934   (eval "$ac_compile") 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } && {
17941          test -z "$ac_c_werror_flag" ||
17942          test ! -s conftest.err
17943        } && test -s conftest.$ac_objext; then
17944   cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950 $ac_includes_default
17951 #include <netinet/in.h>
17952
17953 int
17954 main ()
17955 {
17956 if (sizeof ((struct sockaddr_in6)))
17957           return 0;
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17969 $as_echo "$ac_try_echo") >&5
17970   (eval "$ac_compile") 2>conftest.er1
17971   ac_status=$?
17972   grep -v '^ *+' conftest.er1 >conftest.err
17973   rm -f conftest.er1
17974   cat conftest.err >&5
17975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } && {
17977          test -z "$ac_c_werror_flag" ||
17978          test ! -s conftest.err
17979        } && test -s conftest.$ac_objext; then
17980   :
17981 else
17982   $as_echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985         ac_cv_type_struct_sockaddr_in6=yes
17986 fi
17987
17988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 else
17990   $as_echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993
17994 fi
17995
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 fi
17998 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17999 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
18000 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
18001
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_IPV6 1
18004 _ACEOF
18005
18006          HAVE_IPV6=yes
18007 fi
18008
18009
18010
18011 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
18012 $as_echo_n "checking for PS_STRINGS... " >&6; }
18013 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
18014   $as_echo_n "(cached) " >&6
18015 else
18016   cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022 #include <machine/vmparam.h>
18023 #include <sys/exec.h>
18024
18025 int
18026 main ()
18027 {
18028 PS_STRINGS->ps_nargvstr = 1;
18029 PS_STRINGS->ps_argvstr = "foo";
18030   ;
18031   return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (ac_try="$ac_link"
18036 case "(($ac_try" in
18037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038   *) ac_try_echo=$ac_try;;
18039 esac
18040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18041 $as_echo "$ac_try_echo") >&5
18042   (eval "$ac_link") 2>conftest.er1
18043   ac_status=$?
18044   grep -v '^ *+' conftest.er1 >conftest.err
18045   rm -f conftest.er1
18046   cat conftest.err >&5
18047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } && {
18049          test -z "$ac_c_werror_flag" ||
18050          test ! -s conftest.err
18051        } && test -s conftest$ac_exeext && {
18052          test "$cross_compiling" = yes ||
18053          $as_test_x conftest$ac_exeext
18054        }; then
18055   pgac_cv_var_PS_STRINGS=yes
18056 else
18057   $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060         pgac_cv_var_PS_STRINGS=no
18061 fi
18062
18063 rm -rf conftest.dSYM
18064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18065       conftest$ac_exeext conftest.$ac_ext
18066 fi
18067 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18068 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18069 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18070
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE_PS_STRINGS /**/
18073 _ACEOF
18074
18075 fi
18076
18077
18078 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18079 # is missing.  Yes, there are machines that have only one.  We may
18080 # also decide to use snprintf.c if snprintf() is present but does not
18081 # have all the features we need --- see below.
18082
18083 if test "$PORTNAME" = "win32"; then
18084   # Win32 gets snprintf.c built unconditionally.
18085   #
18086   # To properly translate all NLS languages strings, we must support the
18087   # *printf() %$ format, which allows *printf() arguments to be selected
18088   # by position in the translated string.
18089   #
18090   # libintl versions < 0.13 use the native *printf() functions, and Win32
18091   # *printf() doesn't understand %$, so we must use our /port versions,
18092   # which do understand %$. libintl versions >= 0.13 include their own
18093   # *printf versions on Win32.  The libintl 0.13 release note text is:
18094   #
18095   #   C format strings with positions, as they arise when a translator
18096   #   needs to reorder a sentence, are now supported on all platforms.
18097   #   On those few platforms (NetBSD and Woe32) for which the native
18098   #   printf()/fprintf()/... functions don't support such format
18099   #   strings, replacements are provided through <libintl.h>.
18100   #
18101   # We could use libintl >= 0.13's *printf() if we were sure that we had
18102   # a litint >= 0.13 at runtime, but seeing that there is no clean way
18103   # to guarantee that, it is best to just use our own, so we are sure to
18104   # get %$ support. In include/port.h we disable the *printf() macros
18105   # that might have been defined by libintl.
18106   #
18107   # We do this unconditionally whether NLS is used or not so we are sure
18108   # that all Win32 libraries and binaries behave the same.
18109   pgac_need_repl_snprintf=yes
18110 else
18111   pgac_need_repl_snprintf=no
18112
18113 for ac_func in snprintf
18114 do
18115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18116 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18117 $as_echo_n "checking for $ac_func... " >&6; }
18118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18119   $as_echo_n "(cached) " >&6
18120 else
18121   cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h.  */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h.  */
18127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18129 #define $ac_func innocuous_$ac_func
18130
18131 /* System header to define __stub macros and hopefully few prototypes,
18132     which can conflict with char $ac_func (); below.
18133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18134     <limits.h> exists even on freestanding compilers.  */
18135
18136 #ifdef __STDC__
18137 # include <limits.h>
18138 #else
18139 # include <assert.h>
18140 #endif
18141
18142 #undef $ac_func
18143
18144 /* Override any GCC internal prototype to avoid an error.
18145    Use char because int might match the return type of a GCC
18146    builtin and then its argument prototype would still apply.  */
18147 #ifdef __cplusplus
18148 extern "C"
18149 #endif
18150 char $ac_func ();
18151 /* The GNU C library defines this for functions which it implements
18152     to always fail with ENOSYS.  Some functions are actually named
18153     something starting with __ and the normal name is an alias.  */
18154 #if defined __stub_$ac_func || defined __stub___$ac_func
18155 choke me
18156 #endif
18157
18158 int
18159 main ()
18160 {
18161 return $ac_func ();
18162   ;
18163   return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18173 $as_echo "$ac_try_echo") >&5
18174   (eval "$ac_link") 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } && {
18181          test -z "$ac_c_werror_flag" ||
18182          test ! -s conftest.err
18183        } && test -s conftest$ac_exeext && {
18184          test "$cross_compiling" = yes ||
18185          $as_test_x conftest$ac_exeext
18186        }; then
18187   eval "$as_ac_var=yes"
18188 else
18189   $as_echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192         eval "$as_ac_var=no"
18193 fi
18194
18195 rm -rf conftest.dSYM
18196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18197       conftest$ac_exeext conftest.$ac_ext
18198 fi
18199 ac_res=`eval 'as_val=${'$as_ac_var'}
18200                  $as_echo "$as_val"'`
18201                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18202 $as_echo "$ac_res" >&6; }
18203 as_val=`eval 'as_val=${'$as_ac_var'}
18204                  $as_echo "$as_val"'`
18205    if test "x$as_val" = x""yes; then
18206   cat >>confdefs.h <<_ACEOF
18207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18208 _ACEOF
18209
18210 else
18211   pgac_need_repl_snprintf=yes
18212 fi
18213 done
18214
18215
18216 for ac_func in vsnprintf
18217 do
18218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18219 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18220 $as_echo_n "checking for $ac_func... " >&6; }
18221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18222   $as_echo_n "(cached) " >&6
18223 else
18224   cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h.  */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h.  */
18230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18232 #define $ac_func innocuous_$ac_func
18233
18234 /* System header to define __stub macros and hopefully few prototypes,
18235     which can conflict with char $ac_func (); below.
18236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18237     <limits.h> exists even on freestanding compilers.  */
18238
18239 #ifdef __STDC__
18240 # include <limits.h>
18241 #else
18242 # include <assert.h>
18243 #endif
18244
18245 #undef $ac_func
18246
18247 /* Override any GCC internal prototype to avoid an error.
18248    Use char because int might match the return type of a GCC
18249    builtin and then its argument prototype would still apply.  */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 char $ac_func ();
18254 /* The GNU C library defines this for functions which it implements
18255     to always fail with ENOSYS.  Some functions are actually named
18256     something starting with __ and the normal name is an alias.  */
18257 #if defined __stub_$ac_func || defined __stub___$ac_func
18258 choke me
18259 #endif
18260
18261 int
18262 main ()
18263 {
18264 return $ac_func ();
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
18271 case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18276 $as_echo "$ac_try_echo") >&5
18277   (eval "$ac_link") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && {
18284          test -z "$ac_c_werror_flag" ||
18285          test ! -s conftest.err
18286        } && test -s conftest$ac_exeext && {
18287          test "$cross_compiling" = yes ||
18288          $as_test_x conftest$ac_exeext
18289        }; then
18290   eval "$as_ac_var=yes"
18291 else
18292   $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18294
18295         eval "$as_ac_var=no"
18296 fi
18297
18298 rm -rf conftest.dSYM
18299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18300       conftest$ac_exeext conftest.$ac_ext
18301 fi
18302 ac_res=`eval 'as_val=${'$as_ac_var'}
18303                  $as_echo "$as_val"'`
18304                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18305 $as_echo "$ac_res" >&6; }
18306 as_val=`eval 'as_val=${'$as_ac_var'}
18307                  $as_echo "$as_val"'`
18308    if test "x$as_val" = x""yes; then
18309   cat >>confdefs.h <<_ACEOF
18310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18311 _ACEOF
18312
18313 else
18314   pgac_need_repl_snprintf=yes
18315 fi
18316 done
18317
18318 fi
18319
18320
18321 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18322 # include/c.h will provide declarations.  Note this is a separate test
18323 # from whether the functions exist in the C library --- there are
18324 # systems that have the functions but don't bother to declare them :-(
18325
18326 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18327 $as_echo_n "checking whether snprintf is declared... " >&6; }
18328 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18329   $as_echo_n "(cached) " >&6
18330 else
18331   cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337 $ac_includes_default
18338 int
18339 main ()
18340 {
18341 #ifndef snprintf
18342   (void) snprintf;
18343 #endif
18344
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353   *) ac_try_echo=$ac_try;;
18354 esac
18355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18356 $as_echo "$ac_try_echo") >&5
18357   (eval "$ac_compile") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } && {
18364          test -z "$ac_c_werror_flag" ||
18365          test ! -s conftest.err
18366        } && test -s conftest.$ac_objext; then
18367   ac_cv_have_decl_snprintf=yes
18368 else
18369   $as_echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372         ac_cv_have_decl_snprintf=no
18373 fi
18374
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18376 fi
18377 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18378 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18379 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18380
18381 cat >>confdefs.h <<_ACEOF
18382 #define HAVE_DECL_SNPRINTF 1
18383 _ACEOF
18384
18385
18386 else
18387   cat >>confdefs.h <<_ACEOF
18388 #define HAVE_DECL_SNPRINTF 0
18389 _ACEOF
18390
18391
18392 fi
18393 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18394 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18395 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18396   $as_echo_n "(cached) " >&6
18397 else
18398   cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404 $ac_includes_default
18405 int
18406 main ()
18407 {
18408 #ifndef vsnprintf
18409   (void) vsnprintf;
18410 #endif
18411
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420   *) ac_try_echo=$ac_try;;
18421 esac
18422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18423 $as_echo "$ac_try_echo") >&5
18424   (eval "$ac_compile") 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } && {
18431          test -z "$ac_c_werror_flag" ||
18432          test ! -s conftest.err
18433        } && test -s conftest.$ac_objext; then
18434   ac_cv_have_decl_vsnprintf=yes
18435 else
18436   $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439         ac_cv_have_decl_vsnprintf=no
18440 fi
18441
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443 fi
18444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18445 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18446 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18447
18448 cat >>confdefs.h <<_ACEOF
18449 #define HAVE_DECL_VSNPRINTF 1
18450 _ACEOF
18451
18452
18453 else
18454   cat >>confdefs.h <<_ACEOF
18455 #define HAVE_DECL_VSNPRINTF 0
18456 _ACEOF
18457
18458
18459 fi
18460
18461
18462
18463
18464 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18465 $as_echo_n "checking for isinf... " >&6; }
18466 if test "${ac_cv_func_isinf+set}" = set; then
18467   $as_echo_n "(cached) " >&6
18468 else
18469   cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h.  */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h.  */
18475
18476 #include <math.h>
18477 double glob_double;
18478
18479 int
18480 main ()
18481 {
18482 return isinf(glob_double) ? 0 : 1;
18483   ;
18484   return 0;
18485 }
18486 _ACEOF
18487 rm -f conftest.$ac_objext conftest$ac_exeext
18488 if { (ac_try="$ac_link"
18489 case "(($ac_try" in
18490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491   *) ac_try_echo=$ac_try;;
18492 esac
18493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18494 $as_echo "$ac_try_echo") >&5
18495   (eval "$ac_link") 2>conftest.er1
18496   ac_status=$?
18497   grep -v '^ *+' conftest.er1 >conftest.err
18498   rm -f conftest.er1
18499   cat conftest.err >&5
18500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); } && {
18502          test -z "$ac_c_werror_flag" ||
18503          test ! -s conftest.err
18504        } && test -s conftest$ac_exeext && {
18505          test "$cross_compiling" = yes ||
18506          $as_test_x conftest$ac_exeext
18507        }; then
18508   ac_cv_func_isinf=yes
18509 else
18510   $as_echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513         ac_cv_func_isinf=no
18514 fi
18515
18516 rm -rf conftest.dSYM
18517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18518       conftest$ac_exeext conftest.$ac_ext
18519 fi
18520 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18521 $as_echo "$ac_cv_func_isinf" >&6; }
18522
18523 if test $ac_cv_func_isinf = yes ; then
18524
18525 cat >>confdefs.h <<\_ACEOF
18526 #define HAVE_ISINF 1
18527 _ACEOF
18528
18529 else
18530   case " $LIBOBJS " in
18531   *" isinf.$ac_objext "* ) ;;
18532   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18533  ;;
18534 esac
18535
18536   # Look for a way to implement a substitute for isinf()
18537
18538
18539
18540
18541 for ac_func in fpclass fp_class fp_class_d class
18542 do
18543 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18544 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18545 $as_echo_n "checking for $ac_func... " >&6; }
18546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18547   $as_echo_n "(cached) " >&6
18548 else
18549   cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18557 #define $ac_func innocuous_$ac_func
18558
18559 /* System header to define __stub macros and hopefully few prototypes,
18560     which can conflict with char $ac_func (); below.
18561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562     <limits.h> exists even on freestanding compilers.  */
18563
18564 #ifdef __STDC__
18565 # include <limits.h>
18566 #else
18567 # include <assert.h>
18568 #endif
18569
18570 #undef $ac_func
18571
18572 /* Override any GCC internal prototype to avoid an error.
18573    Use char because int might match the return type of a GCC
18574    builtin and then its argument prototype would still apply.  */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char $ac_func ();
18579 /* The GNU C library defines this for functions which it implements
18580     to always fail with ENOSYS.  Some functions are actually named
18581     something starting with __ and the normal name is an alias.  */
18582 #if defined __stub_$ac_func || defined __stub___$ac_func
18583 choke me
18584 #endif
18585
18586 int
18587 main ()
18588 {
18589 return $ac_func ();
18590   ;
18591   return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18601 $as_echo "$ac_try_echo") >&5
18602   (eval "$ac_link") 2>conftest.er1
18603   ac_status=$?
18604   grep -v '^ *+' conftest.er1 >conftest.err
18605   rm -f conftest.er1
18606   cat conftest.err >&5
18607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } && {
18609          test -z "$ac_c_werror_flag" ||
18610          test ! -s conftest.err
18611        } && test -s conftest$ac_exeext && {
18612          test "$cross_compiling" = yes ||
18613          $as_test_x conftest$ac_exeext
18614        }; then
18615   eval "$as_ac_var=yes"
18616 else
18617   $as_echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620         eval "$as_ac_var=no"
18621 fi
18622
18623 rm -rf conftest.dSYM
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625       conftest$ac_exeext conftest.$ac_ext
18626 fi
18627 ac_res=`eval 'as_val=${'$as_ac_var'}
18628                  $as_echo "$as_val"'`
18629                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18630 $as_echo "$ac_res" >&6; }
18631 as_val=`eval 'as_val=${'$as_ac_var'}
18632                  $as_echo "$as_val"'`
18633    if test "x$as_val" = x""yes; then
18634   cat >>confdefs.h <<_ACEOF
18635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18636 _ACEOF
18637  break
18638 fi
18639 done
18640
18641 fi
18642
18643 # Some versions of libedit contain strlcpy(); so disregard that library while
18644 # checking for these standard libc functions.
18645 pgac_save_LIBS="$LIBS"
18646 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18663 do
18664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18666 $as_echo_n "checking for $ac_func... " >&6; }
18667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18668   $as_echo_n "(cached) " >&6
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18678 #define $ac_func innocuous_$ac_func
18679
18680 /* System header to define __stub macros and hopefully few prototypes,
18681     which can conflict with char $ac_func (); below.
18682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18683     <limits.h> exists even on freestanding compilers.  */
18684
18685 #ifdef __STDC__
18686 # include <limits.h>
18687 #else
18688 # include <assert.h>
18689 #endif
18690
18691 #undef $ac_func
18692
18693 /* Override any GCC internal prototype to avoid an error.
18694    Use char because int might match the return type of a GCC
18695    builtin and then its argument prototype would still apply.  */
18696 #ifdef __cplusplus
18697 extern "C"
18698 #endif
18699 char $ac_func ();
18700 /* The GNU C library defines this for functions which it implements
18701     to always fail with ENOSYS.  Some functions are actually named
18702     something starting with __ and the normal name is an alias.  */
18703 #if defined __stub_$ac_func || defined __stub___$ac_func
18704 choke me
18705 #endif
18706
18707 int
18708 main ()
18709 {
18710 return $ac_func ();
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719   *) ac_try_echo=$ac_try;;
18720 esac
18721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18722 $as_echo "$ac_try_echo") >&5
18723   (eval "$ac_link") 2>conftest.er1
18724   ac_status=$?
18725   grep -v '^ *+' conftest.er1 >conftest.err
18726   rm -f conftest.er1
18727   cat conftest.err >&5
18728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } && {
18730          test -z "$ac_c_werror_flag" ||
18731          test ! -s conftest.err
18732        } && test -s conftest$ac_exeext && {
18733          test "$cross_compiling" = yes ||
18734          $as_test_x conftest$ac_exeext
18735        }; then
18736   eval "$as_ac_var=yes"
18737 else
18738   $as_echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741         eval "$as_ac_var=no"
18742 fi
18743
18744 rm -rf conftest.dSYM
18745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18746       conftest$ac_exeext conftest.$ac_ext
18747 fi
18748 ac_res=`eval 'as_val=${'$as_ac_var'}
18749                  $as_echo "$as_val"'`
18750                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18751 $as_echo "$ac_res" >&6; }
18752 as_val=`eval 'as_val=${'$as_ac_var'}
18753                  $as_echo "$as_val"'`
18754    if test "x$as_val" = x""yes; then
18755   cat >>confdefs.h <<_ACEOF
18756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18757 _ACEOF
18758
18759 else
18760   case " $LIBOBJS " in
18761   *" $ac_func.$ac_objext "* ) ;;
18762   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18763  ;;
18764 esac
18765
18766 fi
18767 done
18768
18769
18770
18771 case $host_os in
18772
18773         # Windows uses a specialised env handler
18774         mingw*)
18775
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE_UNSETENV 1
18778 _ACEOF
18779
18780                 ac_cv_func_unsetenv=yes;;
18781         *)
18782
18783 for ac_func in unsetenv
18784 do
18785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18786 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18787 $as_echo_n "checking for $ac_func... " >&6; }
18788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18789   $as_echo_n "(cached) " >&6
18790 else
18791   cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18799 #define $ac_func innocuous_$ac_func
18800
18801 /* System header to define __stub macros and hopefully few prototypes,
18802     which can conflict with char $ac_func (); below.
18803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18804     <limits.h> exists even on freestanding compilers.  */
18805
18806 #ifdef __STDC__
18807 # include <limits.h>
18808 #else
18809 # include <assert.h>
18810 #endif
18811
18812 #undef $ac_func
18813
18814 /* Override any GCC internal prototype to avoid an error.
18815    Use char because int might match the return type of a GCC
18816    builtin and then its argument prototype would still apply.  */
18817 #ifdef __cplusplus
18818 extern "C"
18819 #endif
18820 char $ac_func ();
18821 /* The GNU C library defines this for functions which it implements
18822     to always fail with ENOSYS.  Some functions are actually named
18823     something starting with __ and the normal name is an alias.  */
18824 #if defined __stub_$ac_func || defined __stub___$ac_func
18825 choke me
18826 #endif
18827
18828 int
18829 main ()
18830 {
18831 return $ac_func ();
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844   (eval "$ac_link") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } && {
18851          test -z "$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        } && test -s conftest$ac_exeext && {
18854          test "$cross_compiling" = yes ||
18855          $as_test_x conftest$ac_exeext
18856        }; then
18857   eval "$as_ac_var=yes"
18858 else
18859   $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         eval "$as_ac_var=no"
18863 fi
18864
18865 rm -rf conftest.dSYM
18866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18867       conftest$ac_exeext conftest.$ac_ext
18868 fi
18869 ac_res=`eval 'as_val=${'$as_ac_var'}
18870                  $as_echo "$as_val"'`
18871                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18872 $as_echo "$ac_res" >&6; }
18873 as_val=`eval 'as_val=${'$as_ac_var'}
18874                  $as_echo "$as_val"'`
18875    if test "x$as_val" = x""yes; then
18876   cat >>confdefs.h <<_ACEOF
18877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18878 _ACEOF
18879
18880 else
18881   case " $LIBOBJS " in
18882   *" $ac_func.$ac_objext "* ) ;;
18883   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18884  ;;
18885 esac
18886
18887 fi
18888 done
18889
18890
18891                 ;;
18892 esac
18893
18894
18895 LIBS="$pgac_save_LIBS"
18896
18897 # System's version of getaddrinfo(), if any, may be used only if we found
18898 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
18899 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
18900 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
18901 # because we want to use our own getaddrinfo.c on Windows anyway.)
18902 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
18903
18904 for ac_func in getaddrinfo
18905 do
18906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18907 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18908 $as_echo_n "checking for $ac_func... " >&6; }
18909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18910   $as_echo_n "(cached) " >&6
18911 else
18912   cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18920 #define $ac_func innocuous_$ac_func
18921
18922 /* System header to define __stub macros and hopefully few prototypes,
18923     which can conflict with char $ac_func (); below.
18924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925     <limits.h> exists even on freestanding compilers.  */
18926
18927 #ifdef __STDC__
18928 # include <limits.h>
18929 #else
18930 # include <assert.h>
18931 #endif
18932
18933 #undef $ac_func
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936    Use char because int might match the return type of a GCC
18937    builtin and then its argument prototype would still apply.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char $ac_func ();
18942 /* The GNU C library defines this for functions which it implements
18943     to always fail with ENOSYS.  Some functions are actually named
18944     something starting with __ and the normal name is an alias.  */
18945 #if defined __stub_$ac_func || defined __stub___$ac_func
18946 choke me
18947 #endif
18948
18949 int
18950 main ()
18951 {
18952 return $ac_func ();
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961   *) ac_try_echo=$ac_try;;
18962 esac
18963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964 $as_echo "$ac_try_echo") >&5
18965   (eval "$ac_link") 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } && {
18972          test -z "$ac_c_werror_flag" ||
18973          test ! -s conftest.err
18974        } && test -s conftest$ac_exeext && {
18975          test "$cross_compiling" = yes ||
18976          $as_test_x conftest$ac_exeext
18977        }; then
18978   eval "$as_ac_var=yes"
18979 else
18980   $as_echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983         eval "$as_ac_var=no"
18984 fi
18985
18986 rm -rf conftest.dSYM
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988       conftest$ac_exeext conftest.$ac_ext
18989 fi
18990 ac_res=`eval 'as_val=${'$as_ac_var'}
18991                  $as_echo "$as_val"'`
18992                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18993 $as_echo "$ac_res" >&6; }
18994 as_val=`eval 'as_val=${'$as_ac_var'}
18995                  $as_echo "$as_val"'`
18996    if test "x$as_val" = x""yes; then
18997   cat >>confdefs.h <<_ACEOF
18998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18999 _ACEOF
19000
19001 else
19002   case " $LIBOBJS " in
19003   *" $ac_func.$ac_objext "* ) ;;
19004   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19005  ;;
19006 esac
19007
19008 fi
19009 done
19010
19011
19012 else
19013   case " $LIBOBJS " in
19014   *" getaddrinfo.$ac_objext "* ) ;;
19015   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
19016  ;;
19017 esac
19018
19019 fi
19020
19021 # Similarly, use system's getopt_long() only if system provides struct option.
19022 if test x"$ac_cv_type_struct_option" = xyes ; then
19023
19024 for ac_func in getopt_long
19025 do
19026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19028 $as_echo_n "checking for $ac_func... " >&6; }
19029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19030   $as_echo_n "(cached) " >&6
19031 else
19032   cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h.  */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h.  */
19038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19040 #define $ac_func innocuous_$ac_func
19041
19042 /* System header to define __stub macros and hopefully few prototypes,
19043     which can conflict with char $ac_func (); below.
19044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19045     <limits.h> exists even on freestanding compilers.  */
19046
19047 #ifdef __STDC__
19048 # include <limits.h>
19049 #else
19050 # include <assert.h>
19051 #endif
19052
19053 #undef $ac_func
19054
19055 /* Override any GCC internal prototype to avoid an error.
19056    Use char because int might match the return type of a GCC
19057    builtin and then its argument prototype would still apply.  */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char $ac_func ();
19062 /* The GNU C library defines this for functions which it implements
19063     to always fail with ENOSYS.  Some functions are actually named
19064     something starting with __ and the normal name is an alias.  */
19065 #if defined __stub_$ac_func || defined __stub___$ac_func
19066 choke me
19067 #endif
19068
19069 int
19070 main ()
19071 {
19072 return $ac_func ();
19073   ;
19074   return 0;
19075 }
19076 _ACEOF
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19084 $as_echo "$ac_try_echo") >&5
19085   (eval "$ac_link") 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } && {
19092          test -z "$ac_c_werror_flag" ||
19093          test ! -s conftest.err
19094        } && test -s conftest$ac_exeext && {
19095          test "$cross_compiling" = yes ||
19096          $as_test_x conftest$ac_exeext
19097        }; then
19098   eval "$as_ac_var=yes"
19099 else
19100   $as_echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103         eval "$as_ac_var=no"
19104 fi
19105
19106 rm -rf conftest.dSYM
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108       conftest$ac_exeext conftest.$ac_ext
19109 fi
19110 ac_res=`eval 'as_val=${'$as_ac_var'}
19111                  $as_echo "$as_val"'`
19112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19114 as_val=`eval 'as_val=${'$as_ac_var'}
19115                  $as_echo "$as_val"'`
19116    if test "x$as_val" = x""yes; then
19117   cat >>confdefs.h <<_ACEOF
19118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19119 _ACEOF
19120
19121 else
19122   case " $LIBOBJS " in
19123   *" $ac_func.$ac_objext "* ) ;;
19124   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19125  ;;
19126 esac
19127
19128 fi
19129 done
19130
19131
19132 else
19133   case " $LIBOBJS " in
19134   *" getopt_long.$ac_objext "* ) ;;
19135   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19136  ;;
19137 esac
19138
19139 fi
19140
19141 # Solaris' getopt() doesn't do what we want for long options, so always use
19142 # our version on that platform.
19143 if test "$PORTNAME" = "solaris"; then
19144   case " $LIBOBJS " in
19145   *" getopt.$ac_objext "* ) ;;
19146   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19147  ;;
19148 esac
19149
19150 fi
19151
19152 # Cygwin's erand48() is broken (always returns zero) in some releases,
19153 # so force use of ours.
19154 if test "$PORTNAME" = "cygwin"; then
19155   case " $LIBOBJS " in
19156   *" erand48.$ac_objext "* ) ;;
19157   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19158  ;;
19159 esac
19160
19161 fi
19162
19163 # Win32 support
19164 if test "$PORTNAME" = "win32"; then
19165
19166 for ac_func in gettimeofday
19167 do
19168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19169 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19170 $as_echo_n "checking for $ac_func... " >&6; }
19171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19172   $as_echo_n "(cached) " >&6
19173 else
19174   cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19182 #define $ac_func innocuous_$ac_func
19183
19184 /* System header to define __stub macros and hopefully few prototypes,
19185     which can conflict with char $ac_func (); below.
19186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19187     <limits.h> exists even on freestanding compilers.  */
19188
19189 #ifdef __STDC__
19190 # include <limits.h>
19191 #else
19192 # include <assert.h>
19193 #endif
19194
19195 #undef $ac_func
19196
19197 /* Override any GCC internal prototype to avoid an error.
19198    Use char because int might match the return type of a GCC
19199    builtin and then its argument prototype would still apply.  */
19200 #ifdef __cplusplus
19201 extern "C"
19202 #endif
19203 char $ac_func ();
19204 /* The GNU C library defines this for functions which it implements
19205     to always fail with ENOSYS.  Some functions are actually named
19206     something starting with __ and the normal name is an alias.  */
19207 #if defined __stub_$ac_func || defined __stub___$ac_func
19208 choke me
19209 #endif
19210
19211 int
19212 main ()
19213 {
19214 return $ac_func ();
19215   ;
19216   return 0;
19217 }
19218 _ACEOF
19219 rm -f conftest.$ac_objext conftest$ac_exeext
19220 if { (ac_try="$ac_link"
19221 case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19226 $as_echo "$ac_try_echo") >&5
19227   (eval "$ac_link") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } && {
19234          test -z "$ac_c_werror_flag" ||
19235          test ! -s conftest.err
19236        } && test -s conftest$ac_exeext && {
19237          test "$cross_compiling" = yes ||
19238          $as_test_x conftest$ac_exeext
19239        }; then
19240   eval "$as_ac_var=yes"
19241 else
19242   $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245         eval "$as_ac_var=no"
19246 fi
19247
19248 rm -rf conftest.dSYM
19249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19250       conftest$ac_exeext conftest.$ac_ext
19251 fi
19252 ac_res=`eval 'as_val=${'$as_ac_var'}
19253                  $as_echo "$as_val"'`
19254                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19255 $as_echo "$ac_res" >&6; }
19256 as_val=`eval 'as_val=${'$as_ac_var'}
19257                  $as_echo "$as_val"'`
19258    if test "x$as_val" = x""yes; then
19259   cat >>confdefs.h <<_ACEOF
19260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19261 _ACEOF
19262
19263 else
19264   case " $LIBOBJS " in
19265   *" $ac_func.$ac_objext "* ) ;;
19266   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19267  ;;
19268 esac
19269
19270 fi
19271 done
19272
19273
19274 case " $LIBOBJS " in
19275   *" kill.$ac_objext "* ) ;;
19276   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19277  ;;
19278 esac
19279
19280 case " $LIBOBJS " in
19281   *" open.$ac_objext "* ) ;;
19282   *) LIBOBJS="$LIBOBJS open.$ac_objext"
19283  ;;
19284 esac
19285
19286 case " $LIBOBJS " in
19287   *" win32env.$ac_objext "* ) ;;
19288   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19289  ;;
19290 esac
19291
19292 case " $LIBOBJS " in
19293   *" win32error.$ac_objext "* ) ;;
19294   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19295  ;;
19296 esac
19297
19298
19299 cat >>confdefs.h <<\_ACEOF
19300 #define HAVE_SYMLINK 1
19301 _ACEOF
19302
19303 fi
19304
19305 if test "$with_readline" = yes; then
19306   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19307 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19314 #include <stdio.h>
19315 #ifdef HAVE_READLINE_READLINE_H
19316 # include <readline/readline.h>
19317 #elif defined(HAVE_READLINE_H)
19318 # include <readline.h>
19319 #endif
19320
19321 int
19322 main ()
19323 {
19324 rl_completion_append_character = 'x';
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (ac_try="$ac_link"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337   (eval "$ac_link") 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } && {
19344          test -z "$ac_c_werror_flag" ||
19345          test ! -s conftest.err
19346        } && test -s conftest$ac_exeext && {
19347          test "$cross_compiling" = yes ||
19348          $as_test_x conftest$ac_exeext
19349        }; then
19350   { $as_echo "$as_me:$LINENO: result: yes" >&5
19351 $as_echo "yes" >&6; }
19352
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19355 _ACEOF
19356
19357 else
19358   $as_echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361         { $as_echo "$as_me:$LINENO: result: no" >&5
19362 $as_echo "no" >&6; }
19363 fi
19364
19365 rm -rf conftest.dSYM
19366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19367       conftest$ac_exeext conftest.$ac_ext
19368
19369
19370 for ac_func in rl_completion_matches rl_filename_completion_function
19371 do
19372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19373 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19374 $as_echo_n "checking for $ac_func... " >&6; }
19375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19376   $as_echo_n "(cached) " >&6
19377 else
19378   cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19386 #define $ac_func innocuous_$ac_func
19387
19388 /* System header to define __stub macros and hopefully few prototypes,
19389     which can conflict with char $ac_func (); below.
19390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19391     <limits.h> exists even on freestanding compilers.  */
19392
19393 #ifdef __STDC__
19394 # include <limits.h>
19395 #else
19396 # include <assert.h>
19397 #endif
19398
19399 #undef $ac_func
19400
19401 /* Override any GCC internal prototype to avoid an error.
19402    Use char because int might match the return type of a GCC
19403    builtin and then its argument prototype would still apply.  */
19404 #ifdef __cplusplus
19405 extern "C"
19406 #endif
19407 char $ac_func ();
19408 /* The GNU C library defines this for functions which it implements
19409     to always fail with ENOSYS.  Some functions are actually named
19410     something starting with __ and the normal name is an alias.  */
19411 #if defined __stub_$ac_func || defined __stub___$ac_func
19412 choke me
19413 #endif
19414
19415 int
19416 main ()
19417 {
19418 return $ac_func ();
19419   ;
19420   return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427   *) ac_try_echo=$ac_try;;
19428 esac
19429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430 $as_echo "$ac_try_echo") >&5
19431   (eval "$ac_link") 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } && {
19438          test -z "$ac_c_werror_flag" ||
19439          test ! -s conftest.err
19440        } && test -s conftest$ac_exeext && {
19441          test "$cross_compiling" = yes ||
19442          $as_test_x conftest$ac_exeext
19443        }; then
19444   eval "$as_ac_var=yes"
19445 else
19446   $as_echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449         eval "$as_ac_var=no"
19450 fi
19451
19452 rm -rf conftest.dSYM
19453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454       conftest$ac_exeext conftest.$ac_ext
19455 fi
19456 ac_res=`eval 'as_val=${'$as_ac_var'}
19457                  $as_echo "$as_val"'`
19458                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19459 $as_echo "$ac_res" >&6; }
19460 as_val=`eval 'as_val=${'$as_ac_var'}
19461                  $as_echo "$as_val"'`
19462    if test "x$as_val" = x""yes; then
19463   cat >>confdefs.h <<_ACEOF
19464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19465 _ACEOF
19466
19467 fi
19468 done
19469
19470
19471
19472 for ac_func in append_history history_truncate_file
19473 do
19474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19475 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19476 $as_echo_n "checking for $ac_func... " >&6; }
19477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19478   $as_echo_n "(cached) " >&6
19479 else
19480   cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h.  */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h.  */
19486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19488 #define $ac_func innocuous_$ac_func
19489
19490 /* System header to define __stub macros and hopefully few prototypes,
19491     which can conflict with char $ac_func (); below.
19492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19493     <limits.h> exists even on freestanding compilers.  */
19494
19495 #ifdef __STDC__
19496 # include <limits.h>
19497 #else
19498 # include <assert.h>
19499 #endif
19500
19501 #undef $ac_func
19502
19503 /* Override any GCC internal prototype to avoid an error.
19504    Use char because int might match the return type of a GCC
19505    builtin and then its argument prototype would still apply.  */
19506 #ifdef __cplusplus
19507 extern "C"
19508 #endif
19509 char $ac_func ();
19510 /* The GNU C library defines this for functions which it implements
19511     to always fail with ENOSYS.  Some functions are actually named
19512     something starting with __ and the normal name is an alias.  */
19513 #if defined __stub_$ac_func || defined __stub___$ac_func
19514 choke me
19515 #endif
19516
19517 int
19518 main ()
19519 {
19520 return $ac_func ();
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19532 $as_echo "$ac_try_echo") >&5
19533   (eval "$ac_link") 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } && {
19540          test -z "$ac_c_werror_flag" ||
19541          test ! -s conftest.err
19542        } && test -s conftest$ac_exeext && {
19543          test "$cross_compiling" = yes ||
19544          $as_test_x conftest$ac_exeext
19545        }; then
19546   eval "$as_ac_var=yes"
19547 else
19548   $as_echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         eval "$as_ac_var=no"
19552 fi
19553
19554 rm -rf conftest.dSYM
19555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19556       conftest$ac_exeext conftest.$ac_ext
19557 fi
19558 ac_res=`eval 'as_val=${'$as_ac_var'}
19559                  $as_echo "$as_val"'`
19560                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19561 $as_echo "$ac_res" >&6; }
19562 as_val=`eval 'as_val=${'$as_ac_var'}
19563                  $as_echo "$as_val"'`
19564    if test "x$as_val" = x""yes; then
19565   cat >>confdefs.h <<_ACEOF
19566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19567 _ACEOF
19568
19569 fi
19570 done
19571
19572 fi
19573
19574
19575 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19576 $as_echo_n "checking for sigsetjmp... " >&6; }
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 #include <setjmp.h>
19584 int
19585 main ()
19586 {
19587 sigjmp_buf x; sigsetjmp(x, 1);
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (ac_try="$ac_link"
19594 case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19599 $as_echo "$ac_try_echo") >&5
19600   (eval "$ac_link") 2>conftest.er1
19601   ac_status=$?
19602   grep -v '^ *+' conftest.er1 >conftest.err
19603   rm -f conftest.er1
19604   cat conftest.err >&5
19605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); } && {
19607          test -z "$ac_c_werror_flag" ||
19608          test ! -s conftest.err
19609        } && test -s conftest$ac_exeext && {
19610          test "$cross_compiling" = yes ||
19611          $as_test_x conftest$ac_exeext
19612        }; then
19613
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_SIGSETJMP 1
19616 _ACEOF
19617
19618 { $as_echo "$as_me:$LINENO: result: yes" >&5
19619 $as_echo "yes" >&6; }
19620 else
19621   $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624         { $as_echo "$as_me:$LINENO: result: no" >&5
19625 $as_echo "no" >&6; }
19626 fi
19627
19628 rm -rf conftest.dSYM
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630       conftest$ac_exeext conftest.$ac_ext
19631
19632 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19633 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19634 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19635   $as_echo_n "(cached) " >&6
19636 else
19637   cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643 #include <signal.h>
19644 /* NetBSD declares sys_siglist in unistd.h.  */
19645 #ifdef HAVE_UNISTD_H
19646 # include <unistd.h>
19647 #endif
19648
19649
19650 int
19651 main ()
19652 {
19653 #ifndef sys_siglist
19654   (void) sys_siglist;
19655 #endif
19656
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (ac_try="$ac_compile"
19663 case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19668 $as_echo "$ac_try_echo") >&5
19669   (eval "$ac_compile") 2>conftest.er1
19670   ac_status=$?
19671   grep -v '^ *+' conftest.er1 >conftest.err
19672   rm -f conftest.er1
19673   cat conftest.err >&5
19674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); } && {
19676          test -z "$ac_c_werror_flag" ||
19677          test ! -s conftest.err
19678        } && test -s conftest.$ac_objext; then
19679   ac_cv_have_decl_sys_siglist=yes
19680 else
19681   $as_echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684         ac_cv_have_decl_sys_siglist=no
19685 fi
19686
19687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19688 fi
19689 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19690 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19691 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19692
19693 cat >>confdefs.h <<_ACEOF
19694 #define HAVE_DECL_SYS_SIGLIST 1
19695 _ACEOF
19696
19697
19698 else
19699   cat >>confdefs.h <<_ACEOF
19700 #define HAVE_DECL_SYS_SIGLIST 0
19701 _ACEOF
19702
19703
19704 fi
19705
19706
19707
19708
19709 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
19710 $as_echo_n "checking for syslog... " >&6; }
19711 if test "${ac_cv_func_syslog+set}" = set; then
19712   $as_echo_n "(cached) " >&6
19713 else
19714   cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19722 #define syslog innocuous_syslog
19723
19724 /* System header to define __stub macros and hopefully few prototypes,
19725     which can conflict with char syslog (); below.
19726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727     <limits.h> exists even on freestanding compilers.  */
19728
19729 #ifdef __STDC__
19730 # include <limits.h>
19731 #else
19732 # include <assert.h>
19733 #endif
19734
19735 #undef syslog
19736
19737 /* Override any GCC internal prototype to avoid an error.
19738    Use char because int might match the return type of a GCC
19739    builtin and then its argument prototype would still apply.  */
19740 #ifdef __cplusplus
19741 extern "C"
19742 #endif
19743 char syslog ();
19744 /* The GNU C library defines this for functions which it implements
19745     to always fail with ENOSYS.  Some functions are actually named
19746     something starting with __ and the normal name is an alias.  */
19747 #if defined __stub_syslog || defined __stub___syslog
19748 choke me
19749 #endif
19750
19751 int
19752 main ()
19753 {
19754 return syslog ();
19755   ;
19756   return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (ac_try="$ac_link"
19761 case "(($ac_try" in
19762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763   *) ac_try_echo=$ac_try;;
19764 esac
19765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19766 $as_echo "$ac_try_echo") >&5
19767   (eval "$ac_link") 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } && {
19774          test -z "$ac_c_werror_flag" ||
19775          test ! -s conftest.err
19776        } && test -s conftest$ac_exeext && {
19777          test "$cross_compiling" = yes ||
19778          $as_test_x conftest$ac_exeext
19779        }; then
19780   ac_cv_func_syslog=yes
19781 else
19782   $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         ac_cv_func_syslog=no
19786 fi
19787
19788 rm -rf conftest.dSYM
19789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19790       conftest$ac_exeext conftest.$ac_ext
19791 fi
19792 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19793 $as_echo "$ac_cv_func_syslog" >&6; }
19794 if test "x$ac_cv_func_syslog" = x""yes; then
19795   if test "${ac_cv_header_syslog_h+set}" = set; then
19796   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19797 $as_echo_n "checking for syslog.h... " >&6; }
19798 if test "${ac_cv_header_syslog_h+set}" = set; then
19799   $as_echo_n "(cached) " >&6
19800 fi
19801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19802 $as_echo "$ac_cv_header_syslog_h" >&6; }
19803 else
19804   # Is the header compilable?
19805 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
19806 $as_echo_n "checking syslog.h usability... " >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h.  */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h.  */
19813 $ac_includes_default
19814 #include <syslog.h>
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19823 $as_echo "$ac_try_echo") >&5
19824   (eval "$ac_compile") 2>conftest.er1
19825   ac_status=$?
19826   grep -v '^ *+' conftest.er1 >conftest.err
19827   rm -f conftest.er1
19828   cat conftest.err >&5
19829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } && {
19831          test -z "$ac_c_werror_flag" ||
19832          test ! -s conftest.err
19833        } && test -s conftest.$ac_objext; then
19834   ac_header_compiler=yes
19835 else
19836   $as_echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19838
19839         ac_header_compiler=no
19840 fi
19841
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19844 $as_echo "$ac_header_compiler" >&6; }
19845
19846 # Is the header present?
19847 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
19848 $as_echo_n "checking syslog.h presence... " >&6; }
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 #include <syslog.h>
19856 _ACEOF
19857 if { (ac_try="$ac_cpp conftest.$ac_ext"
19858 case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } >/dev/null && {
19871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19872          test ! -s conftest.err
19873        }; then
19874   ac_header_preproc=yes
19875 else
19876   $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879   ac_header_preproc=no
19880 fi
19881
19882 rm -f conftest.err conftest.$ac_ext
19883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19884 $as_echo "$ac_header_preproc" >&6; }
19885
19886 # So?  What about this header?
19887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19888   yes:no: )
19889     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
19890 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19891     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
19892 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
19893     ac_header_preproc=yes
19894     ;;
19895   no:yes:* )
19896     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
19897 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
19898     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
19899 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
19900     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
19901 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
19902     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
19903 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19904     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
19905 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
19906     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
19907 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
19908     ( cat <<\_ASBOX
19909 ## ---------------------------------------- ##
19910 ## Report this to pgsql-bugs@postgresql.org ##
19911 ## ---------------------------------------- ##
19912 _ASBOX
19913      ) | sed "s/^/$as_me: WARNING:     /" >&2
19914     ;;
19915 esac
19916 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19917 $as_echo_n "checking for syslog.h... " >&6; }
19918 if test "${ac_cv_header_syslog_h+set}" = set; then
19919   $as_echo_n "(cached) " >&6
19920 else
19921   ac_cv_header_syslog_h=$ac_header_preproc
19922 fi
19923 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19924 $as_echo "$ac_cv_header_syslog_h" >&6; }
19925
19926 fi
19927 if test "x$ac_cv_header_syslog_h" = x""yes; then
19928
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_SYSLOG 1
19931 _ACEOF
19932
19933 fi
19934
19935
19936 fi
19937
19938
19939 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
19940 $as_echo_n "checking for opterr... " >&6; }
19941 if test "${pgac_cv_var_int_opterr+set}" = set; then
19942   $as_echo_n "(cached) " >&6
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <unistd.h>
19951 int
19952 main ()
19953 {
19954 extern int opterr; opterr = 1;
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19966 $as_echo "$ac_try_echo") >&5
19967   (eval "$ac_link") 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } && {
19974          test -z "$ac_c_werror_flag" ||
19975          test ! -s conftest.err
19976        } && test -s conftest$ac_exeext && {
19977          test "$cross_compiling" = yes ||
19978          $as_test_x conftest$ac_exeext
19979        }; then
19980   pgac_cv_var_int_opterr=yes
19981 else
19982   $as_echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985         pgac_cv_var_int_opterr=no
19986 fi
19987
19988 rm -rf conftest.dSYM
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990       conftest$ac_exeext conftest.$ac_ext
19991 fi
19992 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
19993 $as_echo "$pgac_cv_var_int_opterr" >&6; }
19994 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
19995
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_INT_OPTERR 1
19998 _ACEOF
19999
20000 fi
20001
20002 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
20003 $as_echo_n "checking for optreset... " >&6; }
20004 if test "${pgac_cv_var_int_optreset+set}" = set; then
20005   $as_echo_n "(cached) " >&6
20006 else
20007   cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 #include <unistd.h>
20014 int
20015 main ()
20016 {
20017 extern int optreset; optreset = 1;
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20029 $as_echo "$ac_try_echo") >&5
20030   (eval "$ac_link") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } && {
20037          test -z "$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        } && test -s conftest$ac_exeext && {
20040          test "$cross_compiling" = yes ||
20041          $as_test_x conftest$ac_exeext
20042        }; then
20043   pgac_cv_var_int_optreset=yes
20044 else
20045   $as_echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048         pgac_cv_var_int_optreset=no
20049 fi
20050
20051 rm -rf conftest.dSYM
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053       conftest$ac_exeext conftest.$ac_ext
20054 fi
20055 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
20056 $as_echo "$pgac_cv_var_int_optreset" >&6; }
20057 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
20058
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_INT_OPTRESET 1
20061 _ACEOF
20062
20063 fi
20064
20065
20066
20067 for ac_func in strtoll strtoq
20068 do
20069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20071 $as_echo_n "checking for $ac_func... " >&6; }
20072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20073   $as_echo_n "(cached) " >&6
20074 else
20075   cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20083 #define $ac_func innocuous_$ac_func
20084
20085 /* System header to define __stub macros and hopefully few prototypes,
20086     which can conflict with char $ac_func (); below.
20087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20088     <limits.h> exists even on freestanding compilers.  */
20089
20090 #ifdef __STDC__
20091 # include <limits.h>
20092 #else
20093 # include <assert.h>
20094 #endif
20095
20096 #undef $ac_func
20097
20098 /* Override any GCC internal prototype to avoid an error.
20099    Use char because int might match the return type of a GCC
20100    builtin and then its argument prototype would still apply.  */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char $ac_func ();
20105 /* The GNU C library defines this for functions which it implements
20106     to always fail with ENOSYS.  Some functions are actually named
20107     something starting with __ and the normal name is an alias.  */
20108 #if defined __stub_$ac_func || defined __stub___$ac_func
20109 choke me
20110 #endif
20111
20112 int
20113 main ()
20114 {
20115 return $ac_func ();
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124   *) ac_try_echo=$ac_try;;
20125 esac
20126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20127 $as_echo "$ac_try_echo") >&5
20128   (eval "$ac_link") 2>conftest.er1
20129   ac_status=$?
20130   grep -v '^ *+' conftest.er1 >conftest.err
20131   rm -f conftest.er1
20132   cat conftest.err >&5
20133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); } && {
20135          test -z "$ac_c_werror_flag" ||
20136          test ! -s conftest.err
20137        } && test -s conftest$ac_exeext && {
20138          test "$cross_compiling" = yes ||
20139          $as_test_x conftest$ac_exeext
20140        }; then
20141   eval "$as_ac_var=yes"
20142 else
20143   $as_echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146         eval "$as_ac_var=no"
20147 fi
20148
20149 rm -rf conftest.dSYM
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151       conftest$ac_exeext conftest.$ac_ext
20152 fi
20153 ac_res=`eval 'as_val=${'$as_ac_var'}
20154                  $as_echo "$as_val"'`
20155                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20156 $as_echo "$ac_res" >&6; }
20157 as_val=`eval 'as_val=${'$as_ac_var'}
20158                  $as_echo "$as_val"'`
20159    if test "x$as_val" = x""yes; then
20160   cat >>confdefs.h <<_ACEOF
20161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20162 _ACEOF
20163  break
20164 fi
20165 done
20166
20167
20168
20169 for ac_func in strtoull strtouq
20170 do
20171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20173 $as_echo_n "checking for $ac_func... " >&6; }
20174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20175   $as_echo_n "(cached) " >&6
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20185 #define $ac_func innocuous_$ac_func
20186
20187 /* System header to define __stub macros and hopefully few prototypes,
20188     which can conflict with char $ac_func (); below.
20189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20190     <limits.h> exists even on freestanding compilers.  */
20191
20192 #ifdef __STDC__
20193 # include <limits.h>
20194 #else
20195 # include <assert.h>
20196 #endif
20197
20198 #undef $ac_func
20199
20200 /* Override any GCC internal prototype to avoid an error.
20201    Use char because int might match the return type of a GCC
20202    builtin and then its argument prototype would still apply.  */
20203 #ifdef __cplusplus
20204 extern "C"
20205 #endif
20206 char $ac_func ();
20207 /* The GNU C library defines this for functions which it implements
20208     to always fail with ENOSYS.  Some functions are actually named
20209     something starting with __ and the normal name is an alias.  */
20210 #if defined __stub_$ac_func || defined __stub___$ac_func
20211 choke me
20212 #endif
20213
20214 int
20215 main ()
20216 {
20217 return $ac_func ();
20218   ;
20219   return 0;
20220 }
20221 _ACEOF
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (ac_try="$ac_link"
20224 case "(($ac_try" in
20225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226   *) ac_try_echo=$ac_try;;
20227 esac
20228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20229 $as_echo "$ac_try_echo") >&5
20230   (eval "$ac_link") 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } && {
20237          test -z "$ac_c_werror_flag" ||
20238          test ! -s conftest.err
20239        } && test -s conftest$ac_exeext && {
20240          test "$cross_compiling" = yes ||
20241          $as_test_x conftest$ac_exeext
20242        }; then
20243   eval "$as_ac_var=yes"
20244 else
20245   $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248         eval "$as_ac_var=no"
20249 fi
20250
20251 rm -rf conftest.dSYM
20252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20253       conftest$ac_exeext conftest.$ac_ext
20254 fi
20255 ac_res=`eval 'as_val=${'$as_ac_var'}
20256                  $as_echo "$as_val"'`
20257                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20258 $as_echo "$ac_res" >&6; }
20259 as_val=`eval 'as_val=${'$as_ac_var'}
20260                  $as_echo "$as_val"'`
20261    if test "x$as_val" = x""yes; then
20262   cat >>confdefs.h <<_ACEOF
20263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20264 _ACEOF
20265  break
20266 fi
20267 done
20268
20269
20270 # Check for one of atexit() or on_exit()
20271
20272 for ac_func in atexit
20273 do
20274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20276 $as_echo_n "checking for $ac_func... " >&6; }
20277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20278   $as_echo_n "(cached) " >&6
20279 else
20280   cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20288 #define $ac_func innocuous_$ac_func
20289
20290 /* System header to define __stub macros and hopefully few prototypes,
20291     which can conflict with char $ac_func (); below.
20292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293     <limits.h> exists even on freestanding compilers.  */
20294
20295 #ifdef __STDC__
20296 # include <limits.h>
20297 #else
20298 # include <assert.h>
20299 #endif
20300
20301 #undef $ac_func
20302
20303 /* Override any GCC internal prototype to avoid an error.
20304    Use char because int might match the return type of a GCC
20305    builtin and then its argument prototype would still apply.  */
20306 #ifdef __cplusplus
20307 extern "C"
20308 #endif
20309 char $ac_func ();
20310 /* The GNU C library defines this for functions which it implements
20311     to always fail with ENOSYS.  Some functions are actually named
20312     something starting with __ and the normal name is an alias.  */
20313 #if defined __stub_$ac_func || defined __stub___$ac_func
20314 choke me
20315 #endif
20316
20317 int
20318 main ()
20319 {
20320 return $ac_func ();
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333   (eval "$ac_link") 2>conftest.er1
20334   ac_status=$?
20335   grep -v '^ *+' conftest.er1 >conftest.err
20336   rm -f conftest.er1
20337   cat conftest.err >&5
20338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } && {
20340          test -z "$ac_c_werror_flag" ||
20341          test ! -s conftest.err
20342        } && test -s conftest$ac_exeext && {
20343          test "$cross_compiling" = yes ||
20344          $as_test_x conftest$ac_exeext
20345        }; then
20346   eval "$as_ac_var=yes"
20347 else
20348   $as_echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351         eval "$as_ac_var=no"
20352 fi
20353
20354 rm -rf conftest.dSYM
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356       conftest$ac_exeext conftest.$ac_ext
20357 fi
20358 ac_res=`eval 'as_val=${'$as_ac_var'}
20359                  $as_echo "$as_val"'`
20360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20361 $as_echo "$ac_res" >&6; }
20362 as_val=`eval 'as_val=${'$as_ac_var'}
20363                  $as_echo "$as_val"'`
20364    if test "x$as_val" = x""yes; then
20365   cat >>confdefs.h <<_ACEOF
20366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20367 _ACEOF
20368
20369 else
20370
20371 for ac_func in on_exit
20372 do
20373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20375 $as_echo_n "checking for $ac_func... " >&6; }
20376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20377   $as_echo_n "(cached) " >&6
20378 else
20379   cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20387 #define $ac_func innocuous_$ac_func
20388
20389 /* System header to define __stub macros and hopefully few prototypes,
20390     which can conflict with char $ac_func (); below.
20391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20392     <limits.h> exists even on freestanding compilers.  */
20393
20394 #ifdef __STDC__
20395 # include <limits.h>
20396 #else
20397 # include <assert.h>
20398 #endif
20399
20400 #undef $ac_func
20401
20402 /* Override any GCC internal prototype to avoid an error.
20403    Use char because int might match the return type of a GCC
20404    builtin and then its argument prototype would still apply.  */
20405 #ifdef __cplusplus
20406 extern "C"
20407 #endif
20408 char $ac_func ();
20409 /* The GNU C library defines this for functions which it implements
20410     to always fail with ENOSYS.  Some functions are actually named
20411     something starting with __ and the normal name is an alias.  */
20412 #if defined __stub_$ac_func || defined __stub___$ac_func
20413 choke me
20414 #endif
20415
20416 int
20417 main ()
20418 {
20419 return $ac_func ();
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432   (eval "$ac_link") 2>conftest.er1
20433   ac_status=$?
20434   grep -v '^ *+' conftest.er1 >conftest.err
20435   rm -f conftest.er1
20436   cat conftest.err >&5
20437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } && {
20439          test -z "$ac_c_werror_flag" ||
20440          test ! -s conftest.err
20441        } && test -s conftest$ac_exeext && {
20442          test "$cross_compiling" = yes ||
20443          $as_test_x conftest$ac_exeext
20444        }; then
20445   eval "$as_ac_var=yes"
20446 else
20447   $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450         eval "$as_ac_var=no"
20451 fi
20452
20453 rm -rf conftest.dSYM
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455       conftest$ac_exeext conftest.$ac_ext
20456 fi
20457 ac_res=`eval 'as_val=${'$as_ac_var'}
20458                  $as_echo "$as_val"'`
20459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20460 $as_echo "$ac_res" >&6; }
20461 as_val=`eval 'as_val=${'$as_ac_var'}
20462                  $as_echo "$as_val"'`
20463    if test "x$as_val" = x""yes; then
20464   cat >>confdefs.h <<_ACEOF
20465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20466 _ACEOF
20467
20468 else
20469   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20470 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20471    { (exit 1); exit 1; }; }
20472 fi
20473 done
20474
20475 fi
20476 done
20477
20478
20479
20480 for ac_func in fseeko
20481 do
20482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20483 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20484 $as_echo_n "checking for $ac_func... " >&6; }
20485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20486   $as_echo_n "(cached) " >&6
20487 else
20488   cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20496 #define $ac_func innocuous_$ac_func
20497
20498 /* System header to define __stub macros and hopefully few prototypes,
20499     which can conflict with char $ac_func (); below.
20500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20501     <limits.h> exists even on freestanding compilers.  */
20502
20503 #ifdef __STDC__
20504 # include <limits.h>
20505 #else
20506 # include <assert.h>
20507 #endif
20508
20509 #undef $ac_func
20510
20511 /* Override any GCC internal prototype to avoid an error.
20512    Use char because int might match the return type of a GCC
20513    builtin and then its argument prototype would still apply.  */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char $ac_func ();
20518 /* The GNU C library defines this for functions which it implements
20519     to always fail with ENOSYS.  Some functions are actually named
20520     something starting with __ and the normal name is an alias.  */
20521 #if defined __stub_$ac_func || defined __stub___$ac_func
20522 choke me
20523 #endif
20524
20525 int
20526 main ()
20527 {
20528 return $ac_func ();
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (ac_try="$ac_link"
20535 case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541   (eval "$ac_link") 2>conftest.er1
20542   ac_status=$?
20543   grep -v '^ *+' conftest.er1 >conftest.err
20544   rm -f conftest.er1
20545   cat conftest.err >&5
20546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } && {
20548          test -z "$ac_c_werror_flag" ||
20549          test ! -s conftest.err
20550        } && test -s conftest$ac_exeext && {
20551          test "$cross_compiling" = yes ||
20552          $as_test_x conftest$ac_exeext
20553        }; then
20554   eval "$as_ac_var=yes"
20555 else
20556   $as_echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559         eval "$as_ac_var=no"
20560 fi
20561
20562 rm -rf conftest.dSYM
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564       conftest$ac_exeext conftest.$ac_ext
20565 fi
20566 ac_res=`eval 'as_val=${'$as_ac_var'}
20567                  $as_echo "$as_val"'`
20568                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20569 $as_echo "$ac_res" >&6; }
20570 as_val=`eval 'as_val=${'$as_ac_var'}
20571                  $as_echo "$as_val"'`
20572    if test "x$as_val" = x""yes; then
20573   cat >>confdefs.h <<_ACEOF
20574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20575 _ACEOF
20576
20577 else
20578   case " $LIBOBJS " in
20579   *" $ac_func.$ac_objext "* ) ;;
20580   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20581  ;;
20582 esac
20583
20584 fi
20585 done
20586
20587
20588 case $host_os in
20589         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20590         # Mingw uses macros to access Win32 API calls
20591         bsdi*|netbsd*|mingw*)
20592
20593 cat >>confdefs.h <<\_ACEOF
20594 #define HAVE_FSEEKO 1
20595 _ACEOF
20596
20597                 ac_cv_func_fseeko=yes;;
20598         *)
20599                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20600 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20601 if test "${ac_cv_sys_largefile_source+set}" = set; then
20602   $as_echo_n "(cached) " >&6
20603 else
20604   while :; do
20605   cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611 #include <sys/types.h> /* for off_t */
20612      #include <stdio.h>
20613 int
20614 main ()
20615 {
20616 int (*fp) (FILE *, off_t, int) = fseeko;
20617      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20618   ;
20619   return 0;
20620 }
20621 _ACEOF
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20629 $as_echo "$ac_try_echo") >&5
20630   (eval "$ac_link") 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } && {
20637          test -z "$ac_c_werror_flag" ||
20638          test ! -s conftest.err
20639        } && test -s conftest$ac_exeext && {
20640          test "$cross_compiling" = yes ||
20641          $as_test_x conftest$ac_exeext
20642        }; then
20643   ac_cv_sys_largefile_source=no; break
20644 else
20645   $as_echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648
20649 fi
20650
20651 rm -rf conftest.dSYM
20652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20653       conftest$ac_exeext conftest.$ac_ext
20654   cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 #define _LARGEFILE_SOURCE 1
20661 #include <sys/types.h> /* for off_t */
20662      #include <stdio.h>
20663 int
20664 main ()
20665 {
20666 int (*fp) (FILE *, off_t, int) = fseeko;
20667      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20668   ;
20669   return 0;
20670 }
20671 _ACEOF
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20679 $as_echo "$ac_try_echo") >&5
20680   (eval "$ac_link") 2>conftest.er1
20681   ac_status=$?
20682   grep -v '^ *+' conftest.er1 >conftest.err
20683   rm -f conftest.er1
20684   cat conftest.err >&5
20685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); } && {
20687          test -z "$ac_c_werror_flag" ||
20688          test ! -s conftest.err
20689        } && test -s conftest$ac_exeext && {
20690          test "$cross_compiling" = yes ||
20691          $as_test_x conftest$ac_exeext
20692        }; then
20693   ac_cv_sys_largefile_source=1; break
20694 else
20695   $as_echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698
20699 fi
20700
20701 rm -rf conftest.dSYM
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703       conftest$ac_exeext conftest.$ac_ext
20704   ac_cv_sys_largefile_source=unknown
20705   break
20706 done
20707 fi
20708 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20709 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20710 case $ac_cv_sys_largefile_source in #(
20711   no | unknown) ;;
20712   *)
20713 cat >>confdefs.h <<_ACEOF
20714 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20715 _ACEOF
20716 ;;
20717 esac
20718 rm -rf conftest*
20719
20720 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20721 # in glibc 2.1.3, but that breaks too many other things.
20722 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20723 if test $ac_cv_sys_largefile_source != unknown; then
20724
20725 cat >>confdefs.h <<\_ACEOF
20726 #define HAVE_FSEEKO 1
20727 _ACEOF
20728
20729 fi
20730 ;;
20731 esac
20732
20733
20734 #
20735 # Pthreads
20736 #
20737 # For each platform, we need to know about any special compile and link
20738 # libraries, and whether the normal C function names are thread-safe.
20739 # See the comment at the top of src/port/thread.c for more information.
20740 # WIN32 doesn't need the pthread tests;  it always uses threads
20741 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
20742
20743
20744
20745 ac_ext=c
20746 ac_cpp='$CPP $CPPFLAGS'
20747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20750
20751 acx_pthread_ok=no
20752
20753 # We used to check for pthread.h first, but this fails if pthread.h
20754 # requires special compiler flags (e.g. on True64 or Sequent).
20755 # It gets checked for in the link test anyway.
20756
20757 # First of all, check if the user has set any of the PTHREAD_LIBS,
20758 # etcetera environment variables, and if threads linking works using
20759 # them:
20760 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20761         save_CFLAGS="$CFLAGS"
20762         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20763         save_LIBS="$LIBS"
20764         LIBS="$PTHREAD_LIBS $LIBS"
20765         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20766 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20767         cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773
20774 /* Override any GCC internal prototype to avoid an error.
20775    Use char because int might match the return type of a GCC
20776    builtin and then its argument prototype would still apply.  */
20777 #ifdef __cplusplus
20778 extern "C"
20779 #endif
20780 char pthread_join ();
20781 int
20782 main ()
20783 {
20784 return pthread_join ();
20785   ;
20786   return 0;
20787 }
20788 _ACEOF
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793   *) ac_try_echo=$ac_try;;
20794 esac
20795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20796 $as_echo "$ac_try_echo") >&5
20797   (eval "$ac_link") 2>conftest.er1
20798   ac_status=$?
20799   grep -v '^ *+' conftest.er1 >conftest.err
20800   rm -f conftest.er1
20801   cat conftest.err >&5
20802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); } && {
20804          test -z "$ac_c_werror_flag" ||
20805          test ! -s conftest.err
20806        } && test -s conftest$ac_exeext && {
20807          test "$cross_compiling" = yes ||
20808          $as_test_x conftest$ac_exeext
20809        }; then
20810   acx_pthread_ok=yes
20811 else
20812   $as_echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815
20816 fi
20817
20818 rm -rf conftest.dSYM
20819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20820       conftest$ac_exeext conftest.$ac_ext
20821         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20822 $as_echo "$acx_pthread_ok" >&6; }
20823         if test x"$acx_pthread_ok" = xno; then
20824                 PTHREAD_LIBS=""
20825                 PTHREAD_CFLAGS=""
20826         fi
20827         LIBS="$save_LIBS"
20828         CFLAGS="$save_CFLAGS"
20829 fi
20830
20831 # We must check for the threads library under a number of different
20832 # names; the ordering is very important because some systems
20833 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20834 # libraries is broken (non-POSIX).
20835
20836 # Create a list of thread flags to try.  Items starting with a "-" are
20837 # C compiler flags, and other items are library names, except for "none"
20838 # which indicates that we try without any flags at all, and "pthread-config"
20839 # which is a program returning the flags for the Pth emulation library.
20840
20841 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
20842
20843 # The ordering *is* (sometimes) important.  Some notes on the
20844 # individual items follow:
20845
20846 # pthreads: AIX (must check this before -lpthread)
20847 # none: in case threads are in libc; should be tried before -Kthread and
20848 #       other compiler flags to prevent continual compiler warnings
20849 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20850 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20851 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20852 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20853 # -pthreads: Solaris/gcc
20854 # -mthreads: Mingw32/gcc, Lynx/gcc
20855 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20856 #      doesn't hurt to check since this sometimes defines pthreads too;
20857 #      also defines -D_REENTRANT)
20858 # pthread: Linux, etcetera
20859 # --thread-safe: KAI C++
20860 # pthread-config: use pthread-config program (for GNU Pth library)
20861
20862 case "${host_cpu}-${host_os}" in
20863         *solaris*)
20864
20865         # On Solaris (at least, for some versions), libc contains stubbed
20866         # (non-functional) versions of the pthreads routines, so link-based
20867         # tests will erroneously succeed.  (We need to link with -pthread or
20868         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20869         # a function called by this macro, so we could check for that, but
20870         # who knows whether they'll stub that too in a future libc.)  So,
20871         # we'll just look for -pthreads and -lpthread first:
20872
20873         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20874         ;;
20875 esac
20876
20877 if test x"$acx_pthread_ok" = xno; then
20878 for flag in $acx_pthread_flags; do
20879
20880         tryPTHREAD_CFLAGS=""
20881         tryPTHREAD_LIBS=""
20882         case $flag in
20883                 none)
20884                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20885 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20886                 ;;
20887
20888                 -*)
20889                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20890 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20891                 tryPTHREAD_CFLAGS="$flag"
20892                 ;;
20893
20894                 pthread-config)
20895                 # skip this if we already have flags defined, for PostgreSQL
20896                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
20897                 # Extract the first word of "pthread-config", so it can be a program name with args.
20898 set dummy pthread-config; ac_word=$2
20899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20900 $as_echo_n "checking for $ac_word... " >&6; }
20901 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20902   $as_echo_n "(cached) " >&6
20903 else
20904   if test -n "$acx_pthread_config"; then
20905   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20906 else
20907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20908 for as_dir in $PATH
20909 do
20910   IFS=$as_save_IFS
20911   test -z "$as_dir" && as_dir=.
20912   for ac_exec_ext in '' $ac_executable_extensions; do
20913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20914     ac_cv_prog_acx_pthread_config="yes"
20915     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20916     break 2
20917   fi
20918 done
20919 done
20920 IFS=$as_save_IFS
20921
20922   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20923 fi
20924 fi
20925 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20926 if test -n "$acx_pthread_config"; then
20927   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20928 $as_echo "$acx_pthread_config" >&6; }
20929 else
20930   { $as_echo "$as_me:$LINENO: result: no" >&5
20931 $as_echo "no" >&6; }
20932 fi
20933
20934
20935                 if test x"$acx_pthread_config" = xno; then continue; fi
20936                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
20937                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20938                 ;;
20939
20940                 *)
20941                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20942 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20943                 tryPTHREAD_LIBS="-l$flag"
20944                 ;;
20945         esac
20946
20947         save_LIBS="$LIBS"
20948         save_CFLAGS="$CFLAGS"
20949         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
20950         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20951
20952         # Check for various functions.  We must include pthread.h,
20953         # since some functions may be macros.  (On the Sequent, we
20954         # need a special flag -Kthread to make this header compile.)
20955         # We check for pthread_join because it is in -lpthread on IRIX
20956         # while pthread_create is in libc.  We check for pthread_attr_init
20957         # due to DEC craziness with -lpthreads.  We check for
20958         # pthread_cleanup_push because it is one of the few pthread
20959         # functions on Solaris that doesn't have a non-functional libc stub.
20960         # We try pthread_create on general principles.
20961         cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h.  */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h.  */
20967 #include <pthread.h>
20968 int
20969 main ()
20970 {
20971 pthread_t th; pthread_join(th, 0);
20972                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20973                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20985 $as_echo "$ac_try_echo") >&5
20986   (eval "$ac_link") 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } && {
20993          test -z "$ac_c_werror_flag" ||
20994          test ! -s conftest.err
20995        } && test -s conftest$ac_exeext && {
20996          test "$cross_compiling" = yes ||
20997          $as_test_x conftest$ac_exeext
20998        }; then
20999   acx_pthread_ok=yes
21000 else
21001   $as_echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004         acx_pthread_ok=no
21005 fi
21006
21007 rm -rf conftest.dSYM
21008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21009       conftest$ac_exeext conftest.$ac_ext
21010
21011         if test "x$acx_pthread_ok" = xyes; then
21012             # Don't use options that are ignored by the compiler.
21013             # We find them by checking stderror.
21014             cat >conftest.$ac_ext <<_ACEOF
21015 int
21016 main (int argc, char **argv)
21017 {
21018   (void) argc;
21019   (void) argv;
21020   return 0;
21021 }
21022 _ACEOF
21023             rm -f conftest.$ac_objext conftest$ac_exeext
21024             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
21025                 # we continue with more flags because Linux needs -lpthread
21026                 # for libpq builds on PostgreSQL.  The test above only
21027                 # tests for building binaries, not shared libraries.
21028                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
21029                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21030             else   acx_pthread_ok=no
21031             fi
21032         fi
21033
21034         LIBS="$save_LIBS"
21035         CFLAGS="$save_CFLAGS"
21036
21037         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21038 $as_echo "$acx_pthread_ok" >&6; }
21039 done
21040 fi
21041
21042 # Various other checks:
21043 if test "x$acx_pthread_ok" = xyes; then
21044         save_LIBS="$LIBS"
21045         LIBS="$PTHREAD_LIBS $LIBS"
21046         save_CFLAGS="$CFLAGS"
21047         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21048
21049         # Detect AIX lossage: threads are created detached by default
21050         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21051         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21052 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21053         cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 #include <pthread.h>
21060 int
21061 main ()
21062 {
21063 int attr=PTHREAD_CREATE_JOINABLE;
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076   (eval "$ac_link") 2>conftest.er1
21077   ac_status=$?
21078   grep -v '^ *+' conftest.er1 >conftest.err
21079   rm -f conftest.er1
21080   cat conftest.err >&5
21081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); } && {
21083          test -z "$ac_c_werror_flag" ||
21084          test ! -s conftest.err
21085        } && test -s conftest$ac_exeext && {
21086          test "$cross_compiling" = yes ||
21087          $as_test_x conftest$ac_exeext
21088        }; then
21089   ok=PTHREAD_CREATE_JOINABLE
21090 else
21091   $as_echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ok=unknown
21095 fi
21096
21097 rm -rf conftest.dSYM
21098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21099       conftest$ac_exeext conftest.$ac_ext
21100         if test x"$ok" = xunknown; then
21101                 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107 #include <pthread.h>
21108 int
21109 main ()
21110 {
21111 int attr=PTHREAD_CREATE_UNDETACHED;
21112   ;
21113   return 0;
21114 }
21115 _ACEOF
21116 rm -f conftest.$ac_objext conftest$ac_exeext
21117 if { (ac_try="$ac_link"
21118 case "(($ac_try" in
21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120   *) ac_try_echo=$ac_try;;
21121 esac
21122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21123 $as_echo "$ac_try_echo") >&5
21124   (eval "$ac_link") 2>conftest.er1
21125   ac_status=$?
21126   grep -v '^ *+' conftest.er1 >conftest.err
21127   rm -f conftest.er1
21128   cat conftest.err >&5
21129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); } && {
21131          test -z "$ac_c_werror_flag" ||
21132          test ! -s conftest.err
21133        } && test -s conftest$ac_exeext && {
21134          test "$cross_compiling" = yes ||
21135          $as_test_x conftest$ac_exeext
21136        }; then
21137   ok=PTHREAD_CREATE_UNDETACHED
21138 else
21139   $as_echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142         ok=unknown
21143 fi
21144
21145 rm -rf conftest.dSYM
21146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21147       conftest$ac_exeext conftest.$ac_ext
21148         fi
21149         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21150
21151 cat >>confdefs.h <<\_ACEOF
21152 #define PTHREAD_CREATE_JOINABLE $ok
21153 _ACEOF
21154
21155         fi
21156         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21157 $as_echo "${ok}" >&6; }
21158         if test x"$ok" = xunknown; then
21159                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21160 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21161         fi
21162
21163         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21164 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21165         flag=no
21166 # We always add these in PostgreSQL
21167 #       case "${host_cpu}-${host_os}" in
21168 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21169 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21170 #       esac
21171         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21172 $as_echo "${flag}" >&6; }
21173         if test "x$flag" != xno; then
21174                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21175         fi
21176
21177         LIBS="$save_LIBS"
21178         CFLAGS="$save_CFLAGS"
21179
21180 # Supporting cc_r would require a special CC in all places that
21181 # use libpq, and that is ugly, so we don't do it.  Users can still
21182 # define their compiler as cc_r to do thread builds of everything.
21183         # More AIX lossage: must compile with cc_r
21184         # Extract the first word of "cc_r", so it can be a program name with args.
21185 set dummy cc_r; ac_word=$2
21186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21187 $as_echo_n "checking for $ac_word... " >&6; }
21188 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21189   $as_echo_n "(cached) " >&6
21190 else
21191   if test -n "$PTHREAD_CC"; then
21192   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21193 else
21194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21196 do
21197   IFS=$as_save_IFS
21198   test -z "$as_dir" && as_dir=.
21199   for ac_exec_ext in '' $ac_executable_extensions; do
21200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21201     ac_cv_prog_PTHREAD_CC="cc_r"
21202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21203     break 2
21204   fi
21205 done
21206 done
21207 IFS=$as_save_IFS
21208
21209   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21210 fi
21211 fi
21212 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21213 if test -n "$PTHREAD_CC"; then
21214   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21215 $as_echo "$PTHREAD_CC" >&6; }
21216 else
21217   { $as_echo "$as_me:$LINENO: result: no" >&5
21218 $as_echo "no" >&6; }
21219 fi
21220
21221
21222 else
21223         PTHREAD_CC="$CC"
21224 fi
21225
21226
21227
21228
21229
21230 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21231 if test x"$acx_pthread_ok" = xyes; then
21232
21233 cat >>confdefs.h <<\_ACEOF
21234 #define HAVE_PTHREAD 1
21235 _ACEOF
21236
21237         :
21238 else
21239         acx_pthread_ok=no
21240
21241 fi
21242 ac_ext=c
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21247
21248         # set thread flags
21249
21250 # Some platforms use these, so just define them.  They can't hurt if they
21251 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21252 # enables 5-arg getpwuid_r, among other things.
21253 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21254
21255
21256 # At this point, we don't want to muck with the compiler name for threading.
21257 # Let's see who fails, perhaps AIX.  2004-04-23
21258 if test "$PTHREAD_CC" != "$CC"; then
21259 { { $as_echo "$as_me:$LINENO: error:
21260 PostgreSQL does not support platforms that require a special compiler
21261 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
21262 $as_echo "$as_me: error:
21263 PostgreSQL does not support platforms that require a special compiler
21264 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
21265    { (exit 1); exit 1; }; }
21266 fi
21267
21268 # Check for *_r functions
21269 _CFLAGS="$CFLAGS"
21270 _LIBS="$LIBS"
21271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21272 LIBS="$LIBS $PTHREAD_LIBS"
21273
21274 if test "$PORTNAME" != "win32"; then
21275 if test "${ac_cv_header_pthread_h+set}" = set; then
21276   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21277 $as_echo_n "checking for pthread.h... " >&6; }
21278 if test "${ac_cv_header_pthread_h+set}" = set; then
21279   $as_echo_n "(cached) " >&6
21280 fi
21281 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21282 $as_echo "$ac_cv_header_pthread_h" >&6; }
21283 else
21284   # Is the header compilable?
21285 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21286 $as_echo_n "checking pthread.h usability... " >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 $ac_includes_default
21294 #include <pthread.h>
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21303 $as_echo "$ac_try_echo") >&5
21304   (eval "$ac_compile") 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } && {
21311          test -z "$ac_c_werror_flag" ||
21312          test ! -s conftest.err
21313        } && test -s conftest.$ac_objext; then
21314   ac_header_compiler=yes
21315 else
21316   $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         ac_header_compiler=no
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21324 $as_echo "$ac_header_compiler" >&6; }
21325
21326 # Is the header present?
21327 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21328 $as_echo_n "checking pthread.h presence... " >&6; }
21329 cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 #include <pthread.h>
21336 _ACEOF
21337 if { (ac_try="$ac_cpp conftest.$ac_ext"
21338 case "(($ac_try" in
21339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340   *) ac_try_echo=$ac_try;;
21341 esac
21342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21343 $as_echo "$ac_try_echo") >&5
21344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21345   ac_status=$?
21346   grep -v '^ *+' conftest.er1 >conftest.err
21347   rm -f conftest.er1
21348   cat conftest.err >&5
21349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); } >/dev/null && {
21351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21352          test ! -s conftest.err
21353        }; then
21354   ac_header_preproc=yes
21355 else
21356   $as_echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21358
21359   ac_header_preproc=no
21360 fi
21361
21362 rm -f conftest.err conftest.$ac_ext
21363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21364 $as_echo "$ac_header_preproc" >&6; }
21365
21366 # So?  What about this header?
21367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21368   yes:no: )
21369     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21370 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21371     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21372 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21373     ac_header_preproc=yes
21374     ;;
21375   no:yes:* )
21376     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21377 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21378     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21379 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21380     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21381 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21382     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21383 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21384     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21385 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21386     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21387 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21388     ( cat <<\_ASBOX
21389 ## ---------------------------------------- ##
21390 ## Report this to pgsql-bugs@postgresql.org ##
21391 ## ---------------------------------------- ##
21392 _ASBOX
21393      ) | sed "s/^/$as_me: WARNING:     /" >&2
21394     ;;
21395 esac
21396 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21397 $as_echo_n "checking for pthread.h... " >&6; }
21398 if test "${ac_cv_header_pthread_h+set}" = set; then
21399   $as_echo_n "(cached) " >&6
21400 else
21401   ac_cv_header_pthread_h=$ac_header_preproc
21402 fi
21403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21404 $as_echo "$ac_cv_header_pthread_h" >&6; }
21405
21406 fi
21407 if test "x$ac_cv_header_pthread_h" = x""yes; then
21408   :
21409 else
21410   { { $as_echo "$as_me:$LINENO: error:
21411 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
21412 $as_echo "$as_me: error:
21413 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
21414    { (exit 1); exit 1; }; }
21415 fi
21416
21417
21418 fi
21419
21420
21421
21422
21423 for ac_func in strerror_r getpwuid_r gethostbyname_r
21424 do
21425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21427 $as_echo_n "checking for $ac_func... " >&6; }
21428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21429   $as_echo_n "(cached) " >&6
21430 else
21431   cat >conftest.$ac_ext <<_ACEOF
21432 /* confdefs.h.  */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h.  */
21437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21439 #define $ac_func innocuous_$ac_func
21440
21441 /* System header to define __stub macros and hopefully few prototypes,
21442     which can conflict with char $ac_func (); below.
21443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21444     <limits.h> exists even on freestanding compilers.  */
21445
21446 #ifdef __STDC__
21447 # include <limits.h>
21448 #else
21449 # include <assert.h>
21450 #endif
21451
21452 #undef $ac_func
21453
21454 /* Override any GCC internal prototype to avoid an error.
21455    Use char because int might match the return type of a GCC
21456    builtin and then its argument prototype would still apply.  */
21457 #ifdef __cplusplus
21458 extern "C"
21459 #endif
21460 char $ac_func ();
21461 /* The GNU C library defines this for functions which it implements
21462     to always fail with ENOSYS.  Some functions are actually named
21463     something starting with __ and the normal name is an alias.  */
21464 #if defined __stub_$ac_func || defined __stub___$ac_func
21465 choke me
21466 #endif
21467
21468 int
21469 main ()
21470 {
21471 return $ac_func ();
21472   ;
21473   return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest.$ac_objext conftest$ac_exeext
21477 if { (ac_try="$ac_link"
21478 case "(($ac_try" in
21479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480   *) ac_try_echo=$ac_try;;
21481 esac
21482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483 $as_echo "$ac_try_echo") >&5
21484   (eval "$ac_link") 2>conftest.er1
21485   ac_status=$?
21486   grep -v '^ *+' conftest.er1 >conftest.err
21487   rm -f conftest.er1
21488   cat conftest.err >&5
21489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); } && {
21491          test -z "$ac_c_werror_flag" ||
21492          test ! -s conftest.err
21493        } && test -s conftest$ac_exeext && {
21494          test "$cross_compiling" = yes ||
21495          $as_test_x conftest$ac_exeext
21496        }; then
21497   eval "$as_ac_var=yes"
21498 else
21499   $as_echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502         eval "$as_ac_var=no"
21503 fi
21504
21505 rm -rf conftest.dSYM
21506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21507       conftest$ac_exeext conftest.$ac_ext
21508 fi
21509 ac_res=`eval 'as_val=${'$as_ac_var'}
21510                  $as_echo "$as_val"'`
21511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21512 $as_echo "$ac_res" >&6; }
21513 as_val=`eval 'as_val=${'$as_ac_var'}
21514                  $as_echo "$as_val"'`
21515    if test "x$as_val" = x""yes; then
21516   cat >>confdefs.h <<_ACEOF
21517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21518 _ACEOF
21519
21520 fi
21521 done
21522
21523
21524 # Do test here with the proper thread flags
21525 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21526 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21527 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21528   $as_echo_n "(cached) " >&6
21529 else
21530   cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h.  */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h.  */
21536 #include <sys/types.h>
21537 #include <pwd.h>
21538 int
21539 main ()
21540 {
21541 uid_t uid;
21542 struct passwd *space;
21543 char *buf;
21544 size_t bufsize;
21545 struct passwd **result;
21546 getpwuid_r(uid, space, buf, bufsize, result);
21547   ;
21548   return 0;
21549 }
21550 _ACEOF
21551 rm -f conftest.$ac_objext
21552 if { (ac_try="$ac_compile"
21553 case "(($ac_try" in
21554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555   *) ac_try_echo=$ac_try;;
21556 esac
21557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21558 $as_echo "$ac_try_echo") >&5
21559   (eval "$ac_compile") 2>conftest.er1
21560   ac_status=$?
21561   grep -v '^ *+' conftest.er1 >conftest.err
21562   rm -f conftest.er1
21563   cat conftest.err >&5
21564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } && {
21566          test -z "$ac_c_werror_flag" ||
21567          test ! -s conftest.err
21568        } && test -s conftest.$ac_objext; then
21569   pgac_cv_func_getpwuid_r_5arg=yes
21570 else
21571   $as_echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574         pgac_cv_func_getpwuid_r_5arg=no
21575 fi
21576
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 fi
21579 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21580 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21581 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21582
21583 cat >>confdefs.h <<\_ACEOF
21584 #define GETPWUID_R_5ARG /**/
21585 _ACEOF
21586
21587 fi
21588
21589 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21590 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21591 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21592   $as_echo_n "(cached) " >&6
21593 else
21594   cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 #include <string.h>
21601 int
21602 main ()
21603 {
21604 #ifndef _AIX
21605 int strerror_r(int, char *, size_t);
21606 #else
21607 /* Older AIX has 'int' for the third argument so we don't test the args. */
21608 int strerror_r();
21609 #endif
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext
21615 if { (ac_try="$ac_compile"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21621 $as_echo "$ac_try_echo") >&5
21622   (eval "$ac_compile") 2>conftest.er1
21623   ac_status=$?
21624   grep -v '^ *+' conftest.er1 >conftest.err
21625   rm -f conftest.er1
21626   cat conftest.err >&5
21627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } && {
21629          test -z "$ac_c_werror_flag" ||
21630          test ! -s conftest.err
21631        } && test -s conftest.$ac_objext; then
21632   pgac_cv_func_strerror_r_int=yes
21633 else
21634   $as_echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637         pgac_cv_func_strerror_r_int=no
21638 fi
21639
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 fi
21642 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21643 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21644 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21645
21646 cat >>confdefs.h <<\_ACEOF
21647 #define STRERROR_R_INT /**/
21648 _ACEOF
21649
21650 fi
21651
21652
21653 CFLAGS="$_CFLAGS"
21654 LIBS="$_LIBS"
21655
21656 else
21657 # do not use values from template file
21658 PTHREAD_CFLAGS=
21659 PTHREAD_LIBS=
21660 fi
21661
21662
21663
21664
21665
21666 # We can test for libldap_r only after we know PTHREAD_LIBS
21667 if test "$with_ldap" = yes ; then
21668   _LIBS="$LIBS"
21669   if test "$PORTNAME" != "win32"; then
21670
21671 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21672 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21673 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21674   $as_echo_n "(cached) " >&6
21675 else
21676   ac_check_lib_save_LIBS=$LIBS
21677 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21678 cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684
21685 /* Override any GCC internal prototype to avoid an error.
21686    Use char because int might match the return type of a GCC
21687    builtin and then its argument prototype would still apply.  */
21688 #ifdef __cplusplus
21689 extern "C"
21690 #endif
21691 char ldap_bind ();
21692 int
21693 main ()
21694 {
21695 return ldap_bind ();
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext conftest$ac_exeext
21701 if { (ac_try="$ac_link"
21702 case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21707 $as_echo "$ac_try_echo") >&5
21708   (eval "$ac_link") 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } && {
21715          test -z "$ac_c_werror_flag" ||
21716          test ! -s conftest.err
21717        } && test -s conftest$ac_exeext && {
21718          test "$cross_compiling" = yes ||
21719          $as_test_x conftest$ac_exeext
21720        }; then
21721   ac_cv_lib_ldap_ldap_bind=yes
21722 else
21723   $as_echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726         ac_cv_lib_ldap_ldap_bind=no
21727 fi
21728
21729 rm -rf conftest.dSYM
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731       conftest$ac_exeext conftest.$ac_ext
21732 LIBS=$ac_check_lib_save_LIBS
21733 fi
21734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
21735 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
21736 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
21737   cat >>confdefs.h <<_ACEOF
21738 #define HAVE_LIBLDAP 1
21739 _ACEOF
21740
21741   LIBS="-lldap $LIBS"
21742
21743 else
21744   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
21745 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
21746    { (exit 1); exit 1; }; }
21747 fi
21748
21749     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
21750     if test "$enable_thread_safety" = yes; then
21751       # on some platforms ldap_r fails to link without PTHREAD_LIBS
21752
21753 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
21754 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
21755 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
21756   $as_echo_n "(cached) " >&6
21757 else
21758   ac_check_lib_save_LIBS=$LIBS
21759 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
21760 cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h.  */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h.  */
21766
21767 /* Override any GCC internal prototype to avoid an error.
21768    Use char because int might match the return type of a GCC
21769    builtin and then its argument prototype would still apply.  */
21770 #ifdef __cplusplus
21771 extern "C"
21772 #endif
21773 char ldap_simple_bind ();
21774 int
21775 main ()
21776 {
21777 return ldap_simple_bind ();
21778   ;
21779   return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext conftest$ac_exeext
21783 if { (ac_try="$ac_link"
21784 case "(($ac_try" in
21785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786   *) ac_try_echo=$ac_try;;
21787 esac
21788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21789 $as_echo "$ac_try_echo") >&5
21790   (eval "$ac_link") 2>conftest.er1
21791   ac_status=$?
21792   grep -v '^ *+' conftest.er1 >conftest.err
21793   rm -f conftest.er1
21794   cat conftest.err >&5
21795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796   (exit $ac_status); } && {
21797          test -z "$ac_c_werror_flag" ||
21798          test ! -s conftest.err
21799        } && test -s conftest$ac_exeext && {
21800          test "$cross_compiling" = yes ||
21801          $as_test_x conftest$ac_exeext
21802        }; then
21803   ac_cv_lib_ldap_r_ldap_simple_bind=yes
21804 else
21805   $as_echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808         ac_cv_lib_ldap_r_ldap_simple_bind=no
21809 fi
21810
21811 rm -rf conftest.dSYM
21812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21813       conftest$ac_exeext conftest.$ac_ext
21814 LIBS=$ac_check_lib_save_LIBS
21815 fi
21816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
21817 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
21818 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
21819   cat >>confdefs.h <<_ACEOF
21820 #define HAVE_LIBLDAP_R 1
21821 _ACEOF
21822
21823   LIBS="-lldap_r $LIBS"
21824
21825 else
21826   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
21827 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
21828    { (exit 1); exit 1; }; }
21829 fi
21830
21831       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
21832     else
21833       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
21834     fi
21835   else
21836
21837 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
21838 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
21839 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
21840   $as_echo_n "(cached) " >&6
21841 else
21842   ac_check_lib_save_LIBS=$LIBS
21843 LIBS="-lwldap32  $LIBS"
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
21851 /* Override any GCC internal prototype to avoid an error.
21852    Use char because int might match the return type of a GCC
21853    builtin and then its argument prototype would still apply.  */
21854 #ifdef __cplusplus
21855 extern "C"
21856 #endif
21857 char ldap_bind ();
21858 int
21859 main ()
21860 {
21861 return ldap_bind ();
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (ac_try="$ac_link"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21873 $as_echo "$ac_try_echo") >&5
21874   (eval "$ac_link") 2>conftest.er1
21875   ac_status=$?
21876   grep -v '^ *+' conftest.er1 >conftest.err
21877   rm -f conftest.er1
21878   cat conftest.err >&5
21879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); } && {
21881          test -z "$ac_c_werror_flag" ||
21882          test ! -s conftest.err
21883        } && test -s conftest$ac_exeext && {
21884          test "$cross_compiling" = yes ||
21885          $as_test_x conftest$ac_exeext
21886        }; then
21887   ac_cv_lib_wldap32_ldap_bind=yes
21888 else
21889   $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892         ac_cv_lib_wldap32_ldap_bind=no
21893 fi
21894
21895 rm -rf conftest.dSYM
21896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21897       conftest$ac_exeext conftest.$ac_ext
21898 LIBS=$ac_check_lib_save_LIBS
21899 fi
21900 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
21901 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
21902 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
21903   cat >>confdefs.h <<_ACEOF
21904 #define HAVE_LIBWLDAP32 1
21905 _ACEOF
21906
21907   LIBS="-lwldap32 $LIBS"
21908
21909 else
21910   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
21911 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
21912    { (exit 1); exit 1; }; }
21913 fi
21914
21915     LDAP_LIBS_FE="-lwldap32"
21916     LDAP_LIBS_BE="-lwldap32"
21917   fi
21918   LIBS="$_LIBS"
21919 fi
21920
21921
21922
21923
21924 # This test makes sure that run tests work at all.  Sometimes a shared
21925 # library is found by the linker, but the runtime linker can't find it.
21926 # This check should come after all modifications of compiler or linker
21927 # variables, and before any other run tests.
21928 { $as_echo "$as_me:$LINENO: checking test program" >&5
21929 $as_echo_n "checking test program... " >&6; }
21930 if test "$cross_compiling" = yes; then
21931   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
21932 $as_echo "cross-compiling" >&6; }
21933 else
21934   cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940 int main() { return 0; }
21941 _ACEOF
21942 rm -f conftest$ac_exeext
21943 if { (ac_try="$ac_link"
21944 case "(($ac_try" in
21945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946   *) ac_try_echo=$ac_try;;
21947 esac
21948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21949 $as_echo "$ac_try_echo") >&5
21950   (eval "$ac_link") 2>&5
21951   ac_status=$?
21952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21954   { (case "(($ac_try" in
21955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956   *) ac_try_echo=$ac_try;;
21957 esac
21958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21959 $as_echo "$ac_try_echo") >&5
21960   (eval "$ac_try") 2>&5
21961   ac_status=$?
21962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; }; then
21964   { $as_echo "$as_me:$LINENO: result: ok" >&5
21965 $as_echo "ok" >&6; }
21966 else
21967   $as_echo "$as_me: program exited with status $ac_status" >&5
21968 $as_echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21970
21971 ( exit $ac_status )
21972 { $as_echo "$as_me:$LINENO: result: failed" >&5
21973 $as_echo "failed" >&6; }
21974 { { $as_echo "$as_me:$LINENO: error:
21975 Could not execute a simple test program.  This may be a problem
21976 related to locating shared libraries.  Check the file 'config.log'
21977 for the exact reason." >&5
21978 $as_echo "$as_me: error:
21979 Could not execute a simple test program.  This may be a problem
21980 related to locating shared libraries.  Check the file 'config.log'
21981 for the exact reason." >&2;}
21982    { (exit 1); exit 1; }; }
21983 fi
21984 rm -rf conftest.dSYM
21985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21986 fi
21987
21988
21989
21990 # --------------------
21991 # Run tests below here
21992 # --------------------
21993
21994 # Force use of our snprintf if system's doesn't do arg control
21995 # See comment above at snprintf test for details.
21996 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
21997   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
21998 $as_echo_n "checking whether printf supports argument control... " >&6; }
21999 if test "${pgac_cv_printf_arg_control+set}" = set; then
22000   $as_echo_n "(cached) " >&6
22001 else
22002   if test "$cross_compiling" = yes; then
22003   pgac_cv_printf_arg_control=cross
22004 else
22005   cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h.  */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h.  */
22011 #include <stdio.h>
22012 #include <string.h>
22013
22014 int main()
22015 {
22016   char buf[100];
22017
22018   /* can it swap arguments? */
22019   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
22020   if (strcmp(buf, "4 3") != 0)
22021     return 1;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033   (eval "$ac_link") 2>&5
22034   ac_status=$?
22035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22037   { (case "(($ac_try" in
22038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039   *) ac_try_echo=$ac_try;;
22040 esac
22041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22042 $as_echo "$ac_try_echo") >&5
22043   (eval "$ac_try") 2>&5
22044   ac_status=$?
22045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   pgac_cv_printf_arg_control=yes
22048 else
22049   $as_echo "$as_me: program exited with status $ac_status" >&5
22050 $as_echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053 ( exit $ac_status )
22054 pgac_cv_printf_arg_control=no
22055 fi
22056 rm -rf conftest.dSYM
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22058 fi
22059
22060
22061
22062 fi
22063 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22064 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22065
22066   if test $pgac_cv_printf_arg_control != yes ; then
22067     pgac_need_repl_snprintf=yes
22068   fi
22069 fi
22070
22071
22072
22073 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22074 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22075 if test "${pgac_cv_type_long_int_64+set}" = set; then
22076   $as_echo_n "(cached) " >&6
22077 else
22078   if test "$cross_compiling" = yes; then
22079   # If cross-compiling, check the size reported by the compiler and
22080 # trust that the arithmetic works.
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087
22088 int
22089 main ()
22090 {
22091 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22092 test_array [0] = 0
22093
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22105 $as_echo "$ac_try_echo") >&5
22106   (eval "$ac_compile") 2>conftest.er1
22107   ac_status=$?
22108   grep -v '^ *+' conftest.er1 >conftest.err
22109   rm -f conftest.er1
22110   cat conftest.err >&5
22111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } && {
22113          test -z "$ac_c_werror_flag" ||
22114          test ! -s conftest.err
22115        } && test -s conftest.$ac_objext; then
22116   pgac_cv_type_long_int_64=yes
22117 else
22118   $as_echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121         pgac_cv_type_long_int_64=no
22122 fi
22123
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 else
22126   cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h.  */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h.  */
22132 typedef long int ac_int64;
22133
22134 /*
22135  * These are globals to discourage the compiler from folding all the
22136  * arithmetic tests down to compile-time constants.
22137  */
22138 ac_int64 a = 20000001;
22139 ac_int64 b = 40000005;
22140
22141 int does_int64_work()
22142 {
22143   ac_int64 c,d;
22144
22145   if (sizeof(ac_int64) != 8)
22146     return 0;                   /* definitely not the right size */
22147
22148   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22149   c = a * b;
22150   d = (c + b) / b;
22151   if (d != a+1)
22152     return 0;
22153   return 1;
22154 }
22155 main() {
22156   exit(! does_int64_work());
22157 }
22158 _ACEOF
22159 rm -f conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163   *) ac_try_echo=$ac_try;;
22164 esac
22165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167   (eval "$ac_link") 2>&5
22168   ac_status=$?
22169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171   { (case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177   (eval "$ac_try") 2>&5
22178   ac_status=$?
22179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); }; }; then
22181   pgac_cv_type_long_int_64=yes
22182 else
22183   $as_echo "$as_me: program exited with status $ac_status" >&5
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ( exit $ac_status )
22188 pgac_cv_type_long_int_64=no
22189 fi
22190 rm -rf conftest.dSYM
22191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22192 fi
22193
22194
22195 fi
22196 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22197 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22198
22199 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22200 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22201
22202 cat >>confdefs.h <<\_ACEOF
22203 #define HAVE_LONG_INT_64 1
22204 _ACEOF
22205
22206 fi
22207
22208
22209 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22210   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22211 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22212 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22213   $as_echo_n "(cached) " >&6
22214 else
22215   if test "$cross_compiling" = yes; then
22216   # If cross-compiling, check the size reported by the compiler and
22217 # trust that the arithmetic works.
22218 cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h.  */
22220 _ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h.  */
22224
22225 int
22226 main ()
22227 {
22228 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22229 test_array [0] = 0
22230
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22242 $as_echo "$ac_try_echo") >&5
22243   (eval "$ac_compile") 2>conftest.er1
22244   ac_status=$?
22245   grep -v '^ *+' conftest.er1 >conftest.err
22246   rm -f conftest.er1
22247   cat conftest.err >&5
22248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } && {
22250          test -z "$ac_c_werror_flag" ||
22251          test ! -s conftest.err
22252        } && test -s conftest.$ac_objext; then
22253   pgac_cv_type_long_long_int_64=yes
22254 else
22255   $as_echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258         pgac_cv_type_long_long_int_64=no
22259 fi
22260
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 else
22263   cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h.  */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h.  */
22269 typedef long long int ac_int64;
22270
22271 /*
22272  * These are globals to discourage the compiler from folding all the
22273  * arithmetic tests down to compile-time constants.
22274  */
22275 ac_int64 a = 20000001;
22276 ac_int64 b = 40000005;
22277
22278 int does_int64_work()
22279 {
22280   ac_int64 c,d;
22281
22282   if (sizeof(ac_int64) != 8)
22283     return 0;                   /* definitely not the right size */
22284
22285   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22286   c = a * b;
22287   d = (c + b) / b;
22288   if (d != a+1)
22289     return 0;
22290   return 1;
22291 }
22292 main() {
22293   exit(! does_int64_work());
22294 }
22295 _ACEOF
22296 rm -f conftest$ac_exeext
22297 if { (ac_try="$ac_link"
22298 case "(($ac_try" in
22299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300   *) ac_try_echo=$ac_try;;
22301 esac
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304   (eval "$ac_link") 2>&5
22305   ac_status=$?
22306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22308   { (case "(($ac_try" in
22309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310   *) ac_try_echo=$ac_try;;
22311 esac
22312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22313 $as_echo "$ac_try_echo") >&5
22314   (eval "$ac_try") 2>&5
22315   ac_status=$?
22316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318   pgac_cv_type_long_long_int_64=yes
22319 else
22320   $as_echo "$as_me: program exited with status $ac_status" >&5
22321 $as_echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ( exit $ac_status )
22325 pgac_cv_type_long_long_int_64=no
22326 fi
22327 rm -rf conftest.dSYM
22328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22329 fi
22330
22331
22332 fi
22333 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22334 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22335
22336 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22337 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22338
22339 cat >>confdefs.h <<\_ACEOF
22340 #define HAVE_LONG_LONG_INT_64 1
22341 _ACEOF
22342
22343 fi
22344
22345 fi
22346
22347
22348
22349 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22350   cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356
22357 #define INT64CONST(x)  x##LL
22358 long long int foo = INT64CONST(0x1234567890123456);
22359
22360 int
22361 main ()
22362 {
22363
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest.$ac_objext
22369 if { (ac_try="$ac_compile"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22375 $as_echo "$ac_try_echo") >&5
22376   (eval "$ac_compile") 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
22380   cat conftest.err >&5
22381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } && {
22383          test -z "$ac_c_werror_flag" ||
22384          test ! -s conftest.err
22385        } && test -s conftest.$ac_objext; then
22386
22387 cat >>confdefs.h <<\_ACEOF
22388 #define HAVE_LL_CONSTANTS 1
22389 _ACEOF
22390
22391 else
22392   $as_echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395
22396 fi
22397
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399 fi
22400
22401
22402 # If we found "long int" is 64 bits, assume snprintf handles it.  If
22403 # we found we need to use "long long int", better check.  We cope with
22404 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
22405 # work, fall back to our own snprintf emulation (which we know uses %lld).
22406
22407 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22408   if test $pgac_need_repl_snprintf = no; then
22409     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22410 $as_echo_n "checking snprintf format for long long int... " >&6; }
22411 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22412   $as_echo_n "(cached) " >&6
22413 else
22414   for pgac_format in '%lld' '%qd' '%I64d'; do
22415 if test "$cross_compiling" = yes; then
22416   pgac_cv_snprintf_long_long_int_format=cross; break
22417 else
22418   cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424 #include <stdio.h>
22425 typedef long long int ac_int64;
22426 #define INT64_FORMAT "$pgac_format"
22427
22428 ac_int64 a = 20000001;
22429 ac_int64 b = 40000005;
22430
22431 int does_int64_snprintf_work()
22432 {
22433   ac_int64 c;
22434   char buf[100];
22435
22436   if (sizeof(ac_int64) != 8)
22437     return 0;                   /* doesn't look like the right size */
22438
22439   c = a * b;
22440   snprintf(buf, 100, INT64_FORMAT, c);
22441   if (strcmp(buf, "800000140000005") != 0)
22442     return 0;                   /* either multiply or snprintf is busted */
22443   return 1;
22444 }
22445 main() {
22446   exit(! does_int64_snprintf_work());
22447 }
22448 _ACEOF
22449 rm -f conftest$ac_exeext
22450 if { (ac_try="$ac_link"
22451 case "(($ac_try" in
22452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453   *) ac_try_echo=$ac_try;;
22454 esac
22455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22456 $as_echo "$ac_try_echo") >&5
22457   (eval "$ac_link") 2>&5
22458   ac_status=$?
22459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22461   { (case "(($ac_try" in
22462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463   *) ac_try_echo=$ac_try;;
22464 esac
22465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22466 $as_echo "$ac_try_echo") >&5
22467   (eval "$ac_try") 2>&5
22468   ac_status=$?
22469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); }; }; then
22471   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22472 else
22473   $as_echo "$as_me: program exited with status $ac_status" >&5
22474 $as_echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477 fi
22478 rm -rf conftest.dSYM
22479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22480 fi
22481
22482
22483 done
22484 fi
22485
22486 LONG_LONG_INT_FORMAT=''
22487
22488 case $pgac_cv_snprintf_long_long_int_format in
22489   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22490 $as_echo "cannot test (not on host machine)" >&6; };;
22491   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22492 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22493          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22494   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
22495 $as_echo "none" >&6; };;
22496 esac
22497     if test "$LONG_LONG_INT_FORMAT" = ""; then
22498       # Force usage of our own snprintf, since system snprintf is broken
22499       pgac_need_repl_snprintf=yes
22500       LONG_LONG_INT_FORMAT='%lld'
22501     fi
22502   else
22503     # Here if we previously decided we needed to use our own snprintf
22504     LONG_LONG_INT_FORMAT='%lld'
22505   fi
22506   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22507   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22508   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22509 else
22510   # Here if we are not using 'long long int' at all
22511   INT64_FORMAT='"%ld"'
22512   UINT64_FORMAT='"%lu"'
22513 fi
22514
22515
22516 cat >>confdefs.h <<_ACEOF
22517 #define INT64_FORMAT $INT64_FORMAT
22518 _ACEOF
22519
22520
22521
22522 cat >>confdefs.h <<_ACEOF
22523 #define UINT64_FORMAT $UINT64_FORMAT
22524 _ACEOF
22525
22526
22527 # Now we have checked all the reasons to replace snprintf
22528 if test $pgac_need_repl_snprintf = yes; then
22529
22530 cat >>confdefs.h <<\_ACEOF
22531 #define USE_REPL_SNPRINTF 1
22532 _ACEOF
22533
22534   case " $LIBOBJS " in
22535   *" snprintf.$ac_objext "* ) ;;
22536   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22537  ;;
22538 esac
22539
22540 fi
22541
22542 # Need a #define for the size of Datum (unsigned long)
22543 # The cast to long int works around a bug in the HP C Compiler
22544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22546 # This bug is HP SR number 8606223364.
22547 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
22548 $as_echo_n "checking size of unsigned long... " >&6; }
22549 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22550   $as_echo_n "(cached) " >&6
22551 else
22552   if test "$cross_compiling" = yes; then
22553   # Depending upon the size, compute the lo and hi bounds.
22554 cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h.  */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h.  */
22560 $ac_includes_default
22561 int
22562 main ()
22563 {
22564 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
22565 test_array [0] = 0
22566
22567   ;
22568   return 0;
22569 }
22570 _ACEOF
22571 rm -f conftest.$ac_objext
22572 if { (ac_try="$ac_compile"
22573 case "(($ac_try" in
22574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575   *) ac_try_echo=$ac_try;;
22576 esac
22577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22578 $as_echo "$ac_try_echo") >&5
22579   (eval "$ac_compile") 2>conftest.er1
22580   ac_status=$?
22581   grep -v '^ *+' conftest.er1 >conftest.err
22582   rm -f conftest.er1
22583   cat conftest.err >&5
22584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); } && {
22586          test -z "$ac_c_werror_flag" ||
22587          test ! -s conftest.err
22588        } && test -s conftest.$ac_objext; then
22589   ac_lo=0 ac_mid=0
22590   while :; do
22591     cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597 $ac_includes_default
22598 int
22599 main ()
22600 {
22601 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22602 test_array [0] = 0
22603
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22615 $as_echo "$ac_try_echo") >&5
22616   (eval "$ac_compile") 2>conftest.er1
22617   ac_status=$?
22618   grep -v '^ *+' conftest.er1 >conftest.err
22619   rm -f conftest.er1
22620   cat conftest.err >&5
22621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); } && {
22623          test -z "$ac_c_werror_flag" ||
22624          test ! -s conftest.err
22625        } && test -s conftest.$ac_objext; then
22626   ac_hi=$ac_mid; break
22627 else
22628   $as_echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631         ac_lo=`expr $ac_mid + 1`
22632                         if test $ac_lo -le $ac_mid; then
22633                           ac_lo= ac_hi=
22634                           break
22635                         fi
22636                         ac_mid=`expr 2 '*' $ac_mid + 1`
22637 fi
22638
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640   done
22641 else
22642   $as_echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645         cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h.  */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h.  */
22651 $ac_includes_default
22652 int
22653 main ()
22654 {
22655 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
22656 test_array [0] = 0
22657
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666   *) ac_try_echo=$ac_try;;
22667 esac
22668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22669 $as_echo "$ac_try_echo") >&5
22670   (eval "$ac_compile") 2>conftest.er1
22671   ac_status=$?
22672   grep -v '^ *+' conftest.er1 >conftest.err
22673   rm -f conftest.er1
22674   cat conftest.err >&5
22675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } && {
22677          test -z "$ac_c_werror_flag" ||
22678          test ! -s conftest.err
22679        } && test -s conftest.$ac_objext; then
22680   ac_hi=-1 ac_mid=-1
22681   while :; do
22682     cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 $ac_includes_default
22689 int
22690 main ()
22691 {
22692 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
22693 test_array [0] = 0
22694
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 rm -f conftest.$ac_objext
22700 if { (ac_try="$ac_compile"
22701 case "(($ac_try" in
22702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703   *) ac_try_echo=$ac_try;;
22704 esac
22705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22706 $as_echo "$ac_try_echo") >&5
22707   (eval "$ac_compile") 2>conftest.er1
22708   ac_status=$?
22709   grep -v '^ *+' conftest.er1 >conftest.err
22710   rm -f conftest.er1
22711   cat conftest.err >&5
22712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } && {
22714          test -z "$ac_c_werror_flag" ||
22715          test ! -s conftest.err
22716        } && test -s conftest.$ac_objext; then
22717   ac_lo=$ac_mid; break
22718 else
22719   $as_echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722         ac_hi=`expr '(' $ac_mid ')' - 1`
22723                         if test $ac_mid -le $ac_hi; then
22724                           ac_lo= ac_hi=
22725                           break
22726                         fi
22727                         ac_mid=`expr 2 '*' $ac_mid`
22728 fi
22729
22730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731   done
22732 else
22733   $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736         ac_lo= ac_hi=
22737 fi
22738
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 fi
22741
22742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743 # Binary search between lo and hi bounds.
22744 while test "x$ac_lo" != "x$ac_hi"; do
22745   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22746   cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h.  */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h.  */
22752 $ac_includes_default
22753 int
22754 main ()
22755 {
22756 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22757 test_array [0] = 0
22758
22759   ;
22760   return 0;
22761 }
22762 _ACEOF
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767   *) ac_try_echo=$ac_try;;
22768 esac
22769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22770 $as_echo "$ac_try_echo") >&5
22771   (eval "$ac_compile") 2>conftest.er1
22772   ac_status=$?
22773   grep -v '^ *+' conftest.er1 >conftest.err
22774   rm -f conftest.er1
22775   cat conftest.err >&5
22776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } && {
22778          test -z "$ac_c_werror_flag" ||
22779          test ! -s conftest.err
22780        } && test -s conftest.$ac_objext; then
22781   ac_hi=$ac_mid
22782 else
22783   $as_echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786         ac_lo=`expr '(' $ac_mid ')' + 1`
22787 fi
22788
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22790 done
22791 case $ac_lo in
22792 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22793 '') if test "$ac_cv_type_unsigned_long" = yes; then
22794      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22796 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22797 See \`config.log' for more details." >&5
22798 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22799 See \`config.log' for more details." >&2;}
22800    { (exit 77); exit 77; }; }; }
22801    else
22802      ac_cv_sizeof_unsigned_long=0
22803    fi ;;
22804 esac
22805 else
22806   cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812 $ac_includes_default
22813 static long int longval () { return (long int) (sizeof (unsigned long)); }
22814 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
22815 #include <stdio.h>
22816 #include <stdlib.h>
22817 int
22818 main ()
22819 {
22820
22821   FILE *f = fopen ("conftest.val", "w");
22822   if (! f)
22823     return 1;
22824   if (((long int) (sizeof (unsigned long))) < 0)
22825     {
22826       long int i = longval ();
22827       if (i != ((long int) (sizeof (unsigned long))))
22828         return 1;
22829       fprintf (f, "%ld", i);
22830     }
22831   else
22832     {
22833       unsigned long int i = ulongval ();
22834       if (i != ((long int) (sizeof (unsigned long))))
22835         return 1;
22836       fprintf (f, "%lu", i);
22837     }
22838   /* Do not output a trailing newline, as this causes \r\n confusion
22839      on some platforms.  */
22840   return ferror (f) || fclose (f) != 0;
22841
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22853 $as_echo "$ac_try_echo") >&5
22854   (eval "$ac_link") 2>&5
22855   ac_status=$?
22856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22858   { (case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22863 $as_echo "$ac_try_echo") >&5
22864   (eval "$ac_try") 2>&5
22865   ac_status=$?
22866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; }; then
22868   ac_cv_sizeof_unsigned_long=`cat conftest.val`
22869 else
22870   $as_echo "$as_me: program exited with status $ac_status" >&5
22871 $as_echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874 ( exit $ac_status )
22875 if test "$ac_cv_type_unsigned_long" = yes; then
22876      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22878 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22879 See \`config.log' for more details." >&5
22880 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22881 See \`config.log' for more details." >&2;}
22882    { (exit 77); exit 77; }; }; }
22883    else
22884      ac_cv_sizeof_unsigned_long=0
22885    fi
22886 fi
22887 rm -rf conftest.dSYM
22888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22889 fi
22890 rm -f conftest.val
22891 fi
22892 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22893 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22894
22895
22896
22897 cat >>confdefs.h <<_ACEOF
22898 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22899 _ACEOF
22900
22901
22902
22903 # And check size of void *, size_t (enables tweaks for > 32bit address space)
22904 # The cast to long int works around a bug in the HP C Compiler
22905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22907 # This bug is HP SR number 8606223364.
22908 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22909 $as_echo_n "checking size of void *... " >&6; }
22910 if test "${ac_cv_sizeof_void_p+set}" = set; then
22911   $as_echo_n "(cached) " >&6
22912 else
22913   if test "$cross_compiling" = yes; then
22914   # Depending upon the size, compute the lo and hi bounds.
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h.  */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h.  */
22921 $ac_includes_default
22922 int
22923 main ()
22924 {
22925 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22926 test_array [0] = 0
22927
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22939 $as_echo "$ac_try_echo") >&5
22940   (eval "$ac_compile") 2>conftest.er1
22941   ac_status=$?
22942   grep -v '^ *+' conftest.er1 >conftest.err
22943   rm -f conftest.er1
22944   cat conftest.err >&5
22945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); } && {
22947          test -z "$ac_c_werror_flag" ||
22948          test ! -s conftest.err
22949        } && test -s conftest.$ac_objext; then
22950   ac_lo=0 ac_mid=0
22951   while :; do
22952     cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h.  */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h.  */
22958 $ac_includes_default
22959 int
22960 main ()
22961 {
22962 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22963 test_array [0] = 0
22964
22965   ;
22966   return 0;
22967 }
22968 _ACEOF
22969 rm -f conftest.$ac_objext
22970 if { (ac_try="$ac_compile"
22971 case "(($ac_try" in
22972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973   *) ac_try_echo=$ac_try;;
22974 esac
22975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22976 $as_echo "$ac_try_echo") >&5
22977   (eval "$ac_compile") 2>conftest.er1
22978   ac_status=$?
22979   grep -v '^ *+' conftest.er1 >conftest.err
22980   rm -f conftest.er1
22981   cat conftest.err >&5
22982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); } && {
22984          test -z "$ac_c_werror_flag" ||
22985          test ! -s conftest.err
22986        } && test -s conftest.$ac_objext; then
22987   ac_hi=$ac_mid; break
22988 else
22989   $as_echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992         ac_lo=`expr $ac_mid + 1`
22993                         if test $ac_lo -le $ac_mid; then
22994                           ac_lo= ac_hi=
22995                           break
22996                         fi
22997                         ac_mid=`expr 2 '*' $ac_mid + 1`
22998 fi
22999
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001   done
23002 else
23003   $as_echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23005
23006         cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h.  */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h.  */
23012 $ac_includes_default
23013 int
23014 main ()
23015 {
23016 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23017 test_array [0] = 0
23018
23019   ;
23020   return 0;
23021 }
23022 _ACEOF
23023 rm -f conftest.$ac_objext
23024 if { (ac_try="$ac_compile"
23025 case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23030 $as_echo "$ac_try_echo") >&5
23031   (eval "$ac_compile") 2>conftest.er1
23032   ac_status=$?
23033   grep -v '^ *+' conftest.er1 >conftest.err
23034   rm -f conftest.er1
23035   cat conftest.err >&5
23036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); } && {
23038          test -z "$ac_c_werror_flag" ||
23039          test ! -s conftest.err
23040        } && test -s conftest.$ac_objext; then
23041   ac_hi=-1 ac_mid=-1
23042   while :; do
23043     cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049 $ac_includes_default
23050 int
23051 main ()
23052 {
23053 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23054 test_array [0] = 0
23055
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064   *) ac_try_echo=$ac_try;;
23065 esac
23066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23067 $as_echo "$ac_try_echo") >&5
23068   (eval "$ac_compile") 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } && {
23075          test -z "$ac_c_werror_flag" ||
23076          test ! -s conftest.err
23077        } && test -s conftest.$ac_objext; then
23078   ac_lo=$ac_mid; break
23079 else
23080   $as_echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083         ac_hi=`expr '(' $ac_mid ')' - 1`
23084                         if test $ac_mid -le $ac_hi; then
23085                           ac_lo= ac_hi=
23086                           break
23087                         fi
23088                         ac_mid=`expr 2 '*' $ac_mid`
23089 fi
23090
23091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23092   done
23093 else
23094   $as_echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23096
23097         ac_lo= ac_hi=
23098 fi
23099
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 # Binary search between lo and hi bounds.
23105 while test "x$ac_lo" != "x$ac_hi"; do
23106   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23107   cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113 $ac_includes_default
23114 int
23115 main ()
23116 {
23117 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23118 test_array [0] = 0
23119
23120   ;
23121   return 0;
23122 }
23123 _ACEOF
23124 rm -f conftest.$ac_objext
23125 if { (ac_try="$ac_compile"
23126 case "(($ac_try" in
23127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128   *) ac_try_echo=$ac_try;;
23129 esac
23130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23131 $as_echo "$ac_try_echo") >&5
23132   (eval "$ac_compile") 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } && {
23139          test -z "$ac_c_werror_flag" ||
23140          test ! -s conftest.err
23141        } && test -s conftest.$ac_objext; then
23142   ac_hi=$ac_mid
23143 else
23144   $as_echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23146
23147         ac_lo=`expr '(' $ac_mid ')' + 1`
23148 fi
23149
23150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 done
23152 case $ac_lo in
23153 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23154 '') if test "$ac_cv_type_void_p" = yes; then
23155      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23157 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23158 See \`config.log' for more details." >&5
23159 $as_echo "$as_me: error: cannot compute sizeof (void *)
23160 See \`config.log' for more details." >&2;}
23161    { (exit 77); exit 77; }; }; }
23162    else
23163      ac_cv_sizeof_void_p=0
23164    fi ;;
23165 esac
23166 else
23167   cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h.  */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h.  */
23173 $ac_includes_default
23174 static long int longval () { return (long int) (sizeof (void *)); }
23175 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23176 #include <stdio.h>
23177 #include <stdlib.h>
23178 int
23179 main ()
23180 {
23181
23182   FILE *f = fopen ("conftest.val", "w");
23183   if (! f)
23184     return 1;
23185   if (((long int) (sizeof (void *))) < 0)
23186     {
23187       long int i = longval ();
23188       if (i != ((long int) (sizeof (void *))))
23189         return 1;
23190       fprintf (f, "%ld", i);
23191     }
23192   else
23193     {
23194       unsigned long int i = ulongval ();
23195       if (i != ((long int) (sizeof (void *))))
23196         return 1;
23197       fprintf (f, "%lu", i);
23198     }
23199   /* Do not output a trailing newline, as this causes \r\n confusion
23200      on some platforms.  */
23201   return ferror (f) || fclose (f) != 0;
23202
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211   *) ac_try_echo=$ac_try;;
23212 esac
23213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23214 $as_echo "$ac_try_echo") >&5
23215   (eval "$ac_link") 2>&5
23216   ac_status=$?
23217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23219   { (case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23224 $as_echo "$ac_try_echo") >&5
23225   (eval "$ac_try") 2>&5
23226   ac_status=$?
23227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); }; }; then
23229   ac_cv_sizeof_void_p=`cat conftest.val`
23230 else
23231   $as_echo "$as_me: program exited with status $ac_status" >&5
23232 $as_echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235 ( exit $ac_status )
23236 if test "$ac_cv_type_void_p" = yes; then
23237      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23239 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23240 See \`config.log' for more details." >&5
23241 $as_echo "$as_me: error: cannot compute sizeof (void *)
23242 See \`config.log' for more details." >&2;}
23243    { (exit 77); exit 77; }; }; }
23244    else
23245      ac_cv_sizeof_void_p=0
23246    fi
23247 fi
23248 rm -rf conftest.dSYM
23249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23250 fi
23251 rm -f conftest.val
23252 fi
23253 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23254 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23255
23256
23257
23258 cat >>confdefs.h <<_ACEOF
23259 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23260 _ACEOF
23261
23262
23263 # The cast to long int works around a bug in the HP C Compiler
23264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23266 # This bug is HP SR number 8606223364.
23267 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23268 $as_echo_n "checking size of size_t... " >&6; }
23269 if test "${ac_cv_sizeof_size_t+set}" = set; then
23270   $as_echo_n "(cached) " >&6
23271 else
23272   if test "$cross_compiling" = yes; then
23273   # Depending upon the size, compute the lo and hi bounds.
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h.  */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h.  */
23280 $ac_includes_default
23281 int
23282 main ()
23283 {
23284 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23285 test_array [0] = 0
23286
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295   *) ac_try_echo=$ac_try;;
23296 esac
23297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23298 $as_echo "$ac_try_echo") >&5
23299   (eval "$ac_compile") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && {
23306          test -z "$ac_c_werror_flag" ||
23307          test ! -s conftest.err
23308        } && test -s conftest.$ac_objext; then
23309   ac_lo=0 ac_mid=0
23310   while :; do
23311     cat >conftest.$ac_ext <<_ACEOF
23312 /* confdefs.h.  */
23313 _ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h.  */
23317 $ac_includes_default
23318 int
23319 main ()
23320 {
23321 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23322 test_array [0] = 0
23323
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (ac_try="$ac_compile"
23330 case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23335 $as_echo "$ac_try_echo") >&5
23336   (eval "$ac_compile") 2>conftest.er1
23337   ac_status=$?
23338   grep -v '^ *+' conftest.er1 >conftest.err
23339   rm -f conftest.er1
23340   cat conftest.err >&5
23341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); } && {
23343          test -z "$ac_c_werror_flag" ||
23344          test ! -s conftest.err
23345        } && test -s conftest.$ac_objext; then
23346   ac_hi=$ac_mid; break
23347 else
23348   $as_echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351         ac_lo=`expr $ac_mid + 1`
23352                         if test $ac_lo -le $ac_mid; then
23353                           ac_lo= ac_hi=
23354                           break
23355                         fi
23356                         ac_mid=`expr 2 '*' $ac_mid + 1`
23357 fi
23358
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360   done
23361 else
23362   $as_echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365         cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371 $ac_includes_default
23372 int
23373 main ()
23374 {
23375 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23376 test_array [0] = 0
23377
23378   ;
23379   return 0;
23380 }
23381 _ACEOF
23382 rm -f conftest.$ac_objext
23383 if { (ac_try="$ac_compile"
23384 case "(($ac_try" in
23385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386   *) ac_try_echo=$ac_try;;
23387 esac
23388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23389 $as_echo "$ac_try_echo") >&5
23390   (eval "$ac_compile") 2>conftest.er1
23391   ac_status=$?
23392   grep -v '^ *+' conftest.er1 >conftest.err
23393   rm -f conftest.er1
23394   cat conftest.err >&5
23395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396   (exit $ac_status); } && {
23397          test -z "$ac_c_werror_flag" ||
23398          test ! -s conftest.err
23399        } && test -s conftest.$ac_objext; then
23400   ac_hi=-1 ac_mid=-1
23401   while :; do
23402     cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h.  */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h.  */
23408 $ac_includes_default
23409 int
23410 main ()
23411 {
23412 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23413 test_array [0] = 0
23414
23415   ;
23416   return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423   *) ac_try_echo=$ac_try;;
23424 esac
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427   (eval "$ac_compile") 2>conftest.er1
23428   ac_status=$?
23429   grep -v '^ *+' conftest.er1 >conftest.err
23430   rm -f conftest.er1
23431   cat conftest.err >&5
23432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } && {
23434          test -z "$ac_c_werror_flag" ||
23435          test ! -s conftest.err
23436        } && test -s conftest.$ac_objext; then
23437   ac_lo=$ac_mid; break
23438 else
23439   $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23441
23442         ac_hi=`expr '(' $ac_mid ')' - 1`
23443                         if test $ac_mid -le $ac_hi; then
23444                           ac_lo= ac_hi=
23445                           break
23446                         fi
23447                         ac_mid=`expr 2 '*' $ac_mid`
23448 fi
23449
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451   done
23452 else
23453   $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456         ac_lo= ac_hi=
23457 fi
23458
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 fi
23461
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 # Binary search between lo and hi bounds.
23464 while test "x$ac_lo" != "x$ac_hi"; do
23465   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23466   cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h.  */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h.  */
23472 $ac_includes_default
23473 int
23474 main ()
23475 {
23476 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23477 test_array [0] = 0
23478
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487   *) ac_try_echo=$ac_try;;
23488 esac
23489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23490 $as_echo "$ac_try_echo") >&5
23491   (eval "$ac_compile") 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } && {
23498          test -z "$ac_c_werror_flag" ||
23499          test ! -s conftest.err
23500        } && test -s conftest.$ac_objext; then
23501   ac_hi=$ac_mid
23502 else
23503   $as_echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23505
23506         ac_lo=`expr '(' $ac_mid ')' + 1`
23507 fi
23508
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510 done
23511 case $ac_lo in
23512 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23513 '') if test "$ac_cv_type_size_t" = yes; then
23514      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23516 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23517 See \`config.log' for more details." >&5
23518 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23519 See \`config.log' for more details." >&2;}
23520    { (exit 77); exit 77; }; }; }
23521    else
23522      ac_cv_sizeof_size_t=0
23523    fi ;;
23524 esac
23525 else
23526   cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h.  */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h.  */
23532 $ac_includes_default
23533 static long int longval () { return (long int) (sizeof (size_t)); }
23534 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23535 #include <stdio.h>
23536 #include <stdlib.h>
23537 int
23538 main ()
23539 {
23540
23541   FILE *f = fopen ("conftest.val", "w");
23542   if (! f)
23543     return 1;
23544   if (((long int) (sizeof (size_t))) < 0)
23545     {
23546       long int i = longval ();
23547       if (i != ((long int) (sizeof (size_t))))
23548         return 1;
23549       fprintf (f, "%ld", i);
23550     }
23551   else
23552     {
23553       unsigned long int i = ulongval ();
23554       if (i != ((long int) (sizeof (size_t))))
23555         return 1;
23556       fprintf (f, "%lu", i);
23557     }
23558   /* Do not output a trailing newline, as this causes \r\n confusion
23559      on some platforms.  */
23560   return ferror (f) || fclose (f) != 0;
23561
23562   ;
23563   return 0;
23564 }
23565 _ACEOF
23566 rm -f conftest$ac_exeext
23567 if { (ac_try="$ac_link"
23568 case "(($ac_try" in
23569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570   *) ac_try_echo=$ac_try;;
23571 esac
23572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23573 $as_echo "$ac_try_echo") >&5
23574   (eval "$ac_link") 2>&5
23575   ac_status=$?
23576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23578   { (case "(($ac_try" in
23579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580   *) ac_try_echo=$ac_try;;
23581 esac
23582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23583 $as_echo "$ac_try_echo") >&5
23584   (eval "$ac_try") 2>&5
23585   ac_status=$?
23586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587   (exit $ac_status); }; }; then
23588   ac_cv_sizeof_size_t=`cat conftest.val`
23589 else
23590   $as_echo "$as_me: program exited with status $ac_status" >&5
23591 $as_echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
23594 ( exit $ac_status )
23595 if test "$ac_cv_type_size_t" = yes; then
23596      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23598 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23599 See \`config.log' for more details." >&5
23600 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23601 See \`config.log' for more details." >&2;}
23602    { (exit 77); exit 77; }; }; }
23603    else
23604      ac_cv_sizeof_size_t=0
23605    fi
23606 fi
23607 rm -rf conftest.dSYM
23608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23609 fi
23610 rm -f conftest.val
23611 fi
23612 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23613 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23614
23615
23616
23617 cat >>confdefs.h <<_ACEOF
23618 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23619 _ACEOF
23620
23621
23622
23623 # Decide whether float4 is passed by value: user-selectable, enabled by default
23624 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23625 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23626
23627
23628 # Check whether --enable-float4-byval was given.
23629 if test "${enable_float4_byval+set}" = set; then
23630   enableval=$enable_float4_byval;
23631   case $enableval in
23632     yes)
23633
23634 cat >>confdefs.h <<\_ACEOF
23635 #define USE_FLOAT4_BYVAL 1
23636 _ACEOF
23637
23638                float4passbyval=true
23639       ;;
23640     no)
23641       float4passbyval=false
23642       ;;
23643     *)
23644       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23645 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23646    { (exit 1); exit 1; }; }
23647       ;;
23648   esac
23649
23650 else
23651   enable_float4_byval=yes
23652
23653 cat >>confdefs.h <<\_ACEOF
23654 #define USE_FLOAT4_BYVAL 1
23655 _ACEOF
23656
23657                float4passbyval=true
23658 fi
23659
23660
23661 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23662 $as_echo "$enable_float4_byval" >&6; }
23663
23664 cat >>confdefs.h <<_ACEOF
23665 #define FLOAT4PASSBYVAL $float4passbyval
23666 _ACEOF
23667
23668
23669 # Decide whether float8 is passed by value.
23670 # Note: this setting also controls int8 and related types such as timestamp.
23671 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23672 # If not, trying to select it is an error.
23673 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23674 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23675 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
23676
23677
23678 # Check whether --enable-float8-byval was given.
23679 if test "${enable_float8_byval+set}" = set; then
23680   enableval=$enable_float8_byval;
23681   case $enableval in
23682     yes)
23683       :
23684       ;;
23685     no)
23686       :
23687       ;;
23688     *)
23689       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23690 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23691    { (exit 1); exit 1; }; }
23692       ;;
23693   esac
23694
23695 else
23696   enable_float8_byval=yes
23697
23698 fi
23699
23700
23701 else
23702
23703
23704 # Check whether --enable-float8-byval was given.
23705 if test "${enable_float8_byval+set}" = set; then
23706   enableval=$enable_float8_byval;
23707   case $enableval in
23708     yes)
23709       :
23710       ;;
23711     no)
23712       :
23713       ;;
23714     *)
23715       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23716 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23717    { (exit 1); exit 1; }; }
23718       ;;
23719   esac
23720
23721 else
23722   enable_float8_byval=no
23723
23724 fi
23725
23726
23727   if test "$enable_float8_byval" = yes ; then
23728     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
23729 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
23730    { (exit 1); exit 1; }; }
23731   fi
23732 fi
23733 if test "$enable_float8_byval" = yes ; then
23734
23735 cat >>confdefs.h <<\_ACEOF
23736 #define USE_FLOAT8_BYVAL 1
23737 _ACEOF
23738
23739   float8passbyval=true
23740 else
23741   float8passbyval=false
23742 fi
23743 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
23744 $as_echo "$enable_float8_byval" >&6; }
23745
23746 cat >>confdefs.h <<_ACEOF
23747 #define FLOAT8PASSBYVAL $float8passbyval
23748 _ACEOF
23749
23750
23751 # Determine memory alignment requirements for the basic C data types.
23752
23753 # The cast to long int works around a bug in the HP C Compiler,
23754 # see AC_CHECK_SIZEOF for more information.
23755 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
23756 $as_echo_n "checking alignment of short... " >&6; }
23757 if test "${ac_cv_alignof_short+set}" = set; then
23758   $as_echo_n "(cached) " >&6
23759 else
23760   if test "$cross_compiling" = yes; then
23761   # Depending upon the size, compute the lo and hi bounds.
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h.  */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h.  */
23768 $ac_includes_default
23769 #ifndef offsetof
23770 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23771 #endif
23772 typedef struct { char x; short y; } ac__type_alignof_;
23773 int
23774 main ()
23775 {
23776 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23777 test_array [0] = 0
23778
23779   ;
23780   return 0;
23781 }
23782 _ACEOF
23783 rm -f conftest.$ac_objext
23784 if { (ac_try="$ac_compile"
23785 case "(($ac_try" in
23786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787   *) ac_try_echo=$ac_try;;
23788 esac
23789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23790 $as_echo "$ac_try_echo") >&5
23791   (eval "$ac_compile") 2>conftest.er1
23792   ac_status=$?
23793   grep -v '^ *+' conftest.er1 >conftest.err
23794   rm -f conftest.er1
23795   cat conftest.err >&5
23796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } && {
23798          test -z "$ac_c_werror_flag" ||
23799          test ! -s conftest.err
23800        } && test -s conftest.$ac_objext; then
23801   ac_lo=0 ac_mid=0
23802   while :; do
23803     cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h.  */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h.  */
23809 $ac_includes_default
23810 #ifndef offsetof
23811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23812 #endif
23813 typedef struct { char x; short y; } ac__type_alignof_;
23814 int
23815 main ()
23816 {
23817 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23818 test_array [0] = 0
23819
23820   ;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest.$ac_objext
23825 if { (ac_try="$ac_compile"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832   (eval "$ac_compile") 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } && {
23839          test -z "$ac_c_werror_flag" ||
23840          test ! -s conftest.err
23841        } && test -s conftest.$ac_objext; then
23842   ac_hi=$ac_mid; break
23843 else
23844   $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847         ac_lo=`expr $ac_mid + 1`
23848                         if test $ac_lo -le $ac_mid; then
23849                           ac_lo= ac_hi=
23850                           break
23851                         fi
23852                         ac_mid=`expr 2 '*' $ac_mid + 1`
23853 fi
23854
23855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856   done
23857 else
23858   $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23860
23861         cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867 $ac_includes_default
23868 #ifndef offsetof
23869 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23870 #endif
23871 typedef struct { char x; short y; } ac__type_alignof_;
23872 int
23873 main ()
23874 {
23875 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23876 test_array [0] = 0
23877
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 rm -f conftest.$ac_objext
23883 if { (ac_try="$ac_compile"
23884 case "(($ac_try" in
23885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886   *) ac_try_echo=$ac_try;;
23887 esac
23888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23889 $as_echo "$ac_try_echo") >&5
23890   (eval "$ac_compile") 2>conftest.er1
23891   ac_status=$?
23892   grep -v '^ *+' conftest.er1 >conftest.err
23893   rm -f conftest.er1
23894   cat conftest.err >&5
23895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } && {
23897          test -z "$ac_c_werror_flag" ||
23898          test ! -s conftest.err
23899        } && test -s conftest.$ac_objext; then
23900   ac_hi=-1 ac_mid=-1
23901   while :; do
23902     cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h.  */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h.  */
23908 $ac_includes_default
23909 #ifndef offsetof
23910 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23911 #endif
23912 typedef struct { char x; short y; } ac__type_alignof_;
23913 int
23914 main ()
23915 {
23916 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23917 test_array [0] = 0
23918
23919   ;
23920   return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927   *) ac_try_echo=$ac_try;;
23928 esac
23929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23930 $as_echo "$ac_try_echo") >&5
23931   (eval "$ac_compile") 2>conftest.er1
23932   ac_status=$?
23933   grep -v '^ *+' conftest.er1 >conftest.err
23934   rm -f conftest.er1
23935   cat conftest.err >&5
23936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); } && {
23938          test -z "$ac_c_werror_flag" ||
23939          test ! -s conftest.err
23940        } && test -s conftest.$ac_objext; then
23941   ac_lo=$ac_mid; break
23942 else
23943   $as_echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946         ac_hi=`expr '(' $ac_mid ')' - 1`
23947                         if test $ac_mid -le $ac_hi; then
23948                           ac_lo= ac_hi=
23949                           break
23950                         fi
23951                         ac_mid=`expr 2 '*' $ac_mid`
23952 fi
23953
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955   done
23956 else
23957   $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960         ac_lo= ac_hi=
23961 fi
23962
23963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23964 fi
23965
23966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23967 # Binary search between lo and hi bounds.
23968 while test "x$ac_lo" != "x$ac_hi"; do
23969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23970   cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h.  */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h.  */
23976 $ac_includes_default
23977 #ifndef offsetof
23978 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23979 #endif
23980 typedef struct { char x; short y; } ac__type_alignof_;
23981 int
23982 main ()
23983 {
23984 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23985 test_array [0] = 0
23986
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 rm -f conftest.$ac_objext
23992 if { (ac_try="$ac_compile"
23993 case "(($ac_try" in
23994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995   *) ac_try_echo=$ac_try;;
23996 esac
23997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23998 $as_echo "$ac_try_echo") >&5
23999   (eval "$ac_compile") 2>conftest.er1
24000   ac_status=$?
24001   grep -v '^ *+' conftest.er1 >conftest.err
24002   rm -f conftest.er1
24003   cat conftest.err >&5
24004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); } && {
24006          test -z "$ac_c_werror_flag" ||
24007          test ! -s conftest.err
24008        } && test -s conftest.$ac_objext; then
24009   ac_hi=$ac_mid
24010 else
24011   $as_echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24013
24014         ac_lo=`expr '(' $ac_mid ')' + 1`
24015 fi
24016
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018 done
24019 case $ac_lo in
24020 ?*) ac_cv_alignof_short=$ac_lo;;
24021 '') if test "$ac_cv_type_short" = yes; then
24022      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24024 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24025 See \`config.log' for more details." >&5
24026 $as_echo "$as_me: error: cannot compute alignment of short
24027 See \`config.log' for more details." >&2;}
24028    { (exit 77); exit 77; }; }; }
24029    else
24030      ac_cv_alignof_short=0
24031    fi ;;
24032 esac
24033 else
24034   cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040 $ac_includes_default
24041 #ifndef offsetof
24042 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24043 #endif
24044 typedef struct { char x; short y; } ac__type_alignof_;
24045 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24046 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24047 #include <stdio.h>
24048 #include <stdlib.h>
24049 int
24050 main ()
24051 {
24052
24053   FILE *f = fopen ("conftest.val", "w");
24054   if (! f)
24055     return 1;
24056   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24057     {
24058       long int i = longval ();
24059       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24060         return 1;
24061       fprintf (f, "%ld", i);
24062     }
24063   else
24064     {
24065       unsigned long int i = ulongval ();
24066       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24067         return 1;
24068       fprintf (f, "%lu", i);
24069     }
24070   /* Do not output a trailing newline, as this causes \r\n confusion
24071      on some platforms.  */
24072   return ferror (f) || fclose (f) != 0;
24073
24074   ;
24075   return 0;
24076 }
24077 _ACEOF
24078 rm -f conftest$ac_exeext
24079 if { (ac_try="$ac_link"
24080 case "(($ac_try" in
24081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082   *) ac_try_echo=$ac_try;;
24083 esac
24084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24085 $as_echo "$ac_try_echo") >&5
24086   (eval "$ac_link") 2>&5
24087   ac_status=$?
24088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24090   { (case "(($ac_try" in
24091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092   *) ac_try_echo=$ac_try;;
24093 esac
24094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095 $as_echo "$ac_try_echo") >&5
24096   (eval "$ac_try") 2>&5
24097   ac_status=$?
24098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100   ac_cv_alignof_short=`cat conftest.val`
24101 else
24102   $as_echo "$as_me: program exited with status $ac_status" >&5
24103 $as_echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24105
24106 ( exit $ac_status )
24107 if test "$ac_cv_type_short" = yes; then
24108      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24110 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24111 See \`config.log' for more details." >&5
24112 $as_echo "$as_me: error: cannot compute alignment of short
24113 See \`config.log' for more details." >&2;}
24114    { (exit 77); exit 77; }; }; }
24115    else
24116      ac_cv_alignof_short=0
24117    fi
24118 fi
24119 rm -rf conftest.dSYM
24120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24121 fi
24122 rm -f conftest.val
24123 fi
24124 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24125 $as_echo "$ac_cv_alignof_short" >&6; }
24126
24127
24128
24129 cat >>confdefs.h <<_ACEOF
24130 #define ALIGNOF_SHORT $ac_cv_alignof_short
24131 _ACEOF
24132
24133
24134 # The cast to long int works around a bug in the HP C Compiler,
24135 # see AC_CHECK_SIZEOF for more information.
24136 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24137 $as_echo_n "checking alignment of int... " >&6; }
24138 if test "${ac_cv_alignof_int+set}" = set; then
24139   $as_echo_n "(cached) " >&6
24140 else
24141   if test "$cross_compiling" = yes; then
24142   # Depending upon the size, compute the lo and hi bounds.
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h.  */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h.  */
24149 $ac_includes_default
24150 #ifndef offsetof
24151 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24152 #endif
24153 typedef struct { char x; int y; } ac__type_alignof_;
24154 int
24155 main ()
24156 {
24157 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24158 test_array [0] = 0
24159
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24171 $as_echo "$ac_try_echo") >&5
24172   (eval "$ac_compile") 2>conftest.er1
24173   ac_status=$?
24174   grep -v '^ *+' conftest.er1 >conftest.err
24175   rm -f conftest.er1
24176   cat conftest.err >&5
24177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); } && {
24179          test -z "$ac_c_werror_flag" ||
24180          test ! -s conftest.err
24181        } && test -s conftest.$ac_objext; then
24182   ac_lo=0 ac_mid=0
24183   while :; do
24184     cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h.  */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h.  */
24190 $ac_includes_default
24191 #ifndef offsetof
24192 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24193 #endif
24194 typedef struct { char x; int y; } ac__type_alignof_;
24195 int
24196 main ()
24197 {
24198 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24199 test_array [0] = 0
24200
24201   ;
24202   return 0;
24203 }
24204 _ACEOF
24205 rm -f conftest.$ac_objext
24206 if { (ac_try="$ac_compile"
24207 case "(($ac_try" in
24208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24209   *) ac_try_echo=$ac_try;;
24210 esac
24211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24212 $as_echo "$ac_try_echo") >&5
24213   (eval "$ac_compile") 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } && {
24220          test -z "$ac_c_werror_flag" ||
24221          test ! -s conftest.err
24222        } && test -s conftest.$ac_objext; then
24223   ac_hi=$ac_mid; break
24224 else
24225   $as_echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24227
24228         ac_lo=`expr $ac_mid + 1`
24229                         if test $ac_lo -le $ac_mid; then
24230                           ac_lo= ac_hi=
24231                           break
24232                         fi
24233                         ac_mid=`expr 2 '*' $ac_mid + 1`
24234 fi
24235
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237   done
24238 else
24239   $as_echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24241
24242         cat >conftest.$ac_ext <<_ACEOF
24243 /* confdefs.h.  */
24244 _ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h.  */
24248 $ac_includes_default
24249 #ifndef offsetof
24250 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24251 #endif
24252 typedef struct { char x; int y; } ac__type_alignof_;
24253 int
24254 main ()
24255 {
24256 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24257 test_array [0] = 0
24258
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24270 $as_echo "$ac_try_echo") >&5
24271   (eval "$ac_compile") 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } && {
24278          test -z "$ac_c_werror_flag" ||
24279          test ! -s conftest.err
24280        } && test -s conftest.$ac_objext; then
24281   ac_hi=-1 ac_mid=-1
24282   while :; do
24283     cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h.  */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h.  */
24289 $ac_includes_default
24290 #ifndef offsetof
24291 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24292 #endif
24293 typedef struct { char x; int y; } ac__type_alignof_;
24294 int
24295 main ()
24296 {
24297 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24298 test_array [0] = 0
24299
24300   ;
24301   return 0;
24302 }
24303 _ACEOF
24304 rm -f conftest.$ac_objext
24305 if { (ac_try="$ac_compile"
24306 case "(($ac_try" in
24307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308   *) ac_try_echo=$ac_try;;
24309 esac
24310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312   (eval "$ac_compile") 2>conftest.er1
24313   ac_status=$?
24314   grep -v '^ *+' conftest.er1 >conftest.err
24315   rm -f conftest.er1
24316   cat conftest.err >&5
24317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } && {
24319          test -z "$ac_c_werror_flag" ||
24320          test ! -s conftest.err
24321        } && test -s conftest.$ac_objext; then
24322   ac_lo=$ac_mid; break
24323 else
24324   $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327         ac_hi=`expr '(' $ac_mid ')' - 1`
24328                         if test $ac_mid -le $ac_hi; then
24329                           ac_lo= ac_hi=
24330                           break
24331                         fi
24332                         ac_mid=`expr 2 '*' $ac_mid`
24333 fi
24334
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336   done
24337 else
24338   $as_echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341         ac_lo= ac_hi=
24342 fi
24343
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 fi
24346
24347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348 # Binary search between lo and hi bounds.
24349 while test "x$ac_lo" != "x$ac_hi"; do
24350   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24351   cat >conftest.$ac_ext <<_ACEOF
24352 /* confdefs.h.  */
24353 _ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h.  */
24357 $ac_includes_default
24358 #ifndef offsetof
24359 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24360 #endif
24361 typedef struct { char x; int y; } ac__type_alignof_;
24362 int
24363 main ()
24364 {
24365 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24366 test_array [0] = 0
24367
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext
24373 if { (ac_try="$ac_compile"
24374 case "(($ac_try" in
24375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376   *) ac_try_echo=$ac_try;;
24377 esac
24378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24379 $as_echo "$ac_try_echo") >&5
24380   (eval "$ac_compile") 2>conftest.er1
24381   ac_status=$?
24382   grep -v '^ *+' conftest.er1 >conftest.err
24383   rm -f conftest.er1
24384   cat conftest.err >&5
24385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); } && {
24387          test -z "$ac_c_werror_flag" ||
24388          test ! -s conftest.err
24389        } && test -s conftest.$ac_objext; then
24390   ac_hi=$ac_mid
24391 else
24392   $as_echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24394
24395         ac_lo=`expr '(' $ac_mid ')' + 1`
24396 fi
24397
24398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24399 done
24400 case $ac_lo in
24401 ?*) ac_cv_alignof_int=$ac_lo;;
24402 '') if test "$ac_cv_type_int" = yes; then
24403      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24405 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24406 See \`config.log' for more details." >&5
24407 $as_echo "$as_me: error: cannot compute alignment of int
24408 See \`config.log' for more details." >&2;}
24409    { (exit 77); exit 77; }; }; }
24410    else
24411      ac_cv_alignof_int=0
24412    fi ;;
24413 esac
24414 else
24415   cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 $ac_includes_default
24422 #ifndef offsetof
24423 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24424 #endif
24425 typedef struct { char x; int y; } ac__type_alignof_;
24426 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24427 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24428 #include <stdio.h>
24429 #include <stdlib.h>
24430 int
24431 main ()
24432 {
24433
24434   FILE *f = fopen ("conftest.val", "w");
24435   if (! f)
24436     return 1;
24437   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24438     {
24439       long int i = longval ();
24440       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24441         return 1;
24442       fprintf (f, "%ld", i);
24443     }
24444   else
24445     {
24446       unsigned long int i = ulongval ();
24447       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24448         return 1;
24449       fprintf (f, "%lu", i);
24450     }
24451   /* Do not output a trailing newline, as this causes \r\n confusion
24452      on some platforms.  */
24453   return ferror (f) || fclose (f) != 0;
24454
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24466 $as_echo "$ac_try_echo") >&5
24467   (eval "$ac_link") 2>&5
24468   ac_status=$?
24469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24471   { (case "(($ac_try" in
24472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473   *) ac_try_echo=$ac_try;;
24474 esac
24475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24476 $as_echo "$ac_try_echo") >&5
24477   (eval "$ac_try") 2>&5
24478   ac_status=$?
24479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); }; }; then
24481   ac_cv_alignof_int=`cat conftest.val`
24482 else
24483   $as_echo "$as_me: program exited with status $ac_status" >&5
24484 $as_echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24486
24487 ( exit $ac_status )
24488 if test "$ac_cv_type_int" = yes; then
24489      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24491 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24492 See \`config.log' for more details." >&5
24493 $as_echo "$as_me: error: cannot compute alignment of int
24494 See \`config.log' for more details." >&2;}
24495    { (exit 77); exit 77; }; }; }
24496    else
24497      ac_cv_alignof_int=0
24498    fi
24499 fi
24500 rm -rf conftest.dSYM
24501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24502 fi
24503 rm -f conftest.val
24504 fi
24505 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24506 $as_echo "$ac_cv_alignof_int" >&6; }
24507
24508
24509
24510 cat >>confdefs.h <<_ACEOF
24511 #define ALIGNOF_INT $ac_cv_alignof_int
24512 _ACEOF
24513
24514
24515 # The cast to long int works around a bug in the HP C Compiler,
24516 # see AC_CHECK_SIZEOF for more information.
24517 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24518 $as_echo_n "checking alignment of long... " >&6; }
24519 if test "${ac_cv_alignof_long+set}" = set; then
24520   $as_echo_n "(cached) " >&6
24521 else
24522   if test "$cross_compiling" = yes; then
24523   # Depending upon the size, compute the lo and hi bounds.
24524 cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 $ac_includes_default
24531 #ifndef offsetof
24532 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24533 #endif
24534 typedef struct { char x; long y; } ac__type_alignof_;
24535 int
24536 main ()
24537 {
24538 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24539 test_array [0] = 0
24540
24541   ;
24542   return 0;
24543 }
24544 _ACEOF
24545 rm -f conftest.$ac_objext
24546 if { (ac_try="$ac_compile"
24547 case "(($ac_try" in
24548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549   *) ac_try_echo=$ac_try;;
24550 esac
24551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24552 $as_echo "$ac_try_echo") >&5
24553   (eval "$ac_compile") 2>conftest.er1
24554   ac_status=$?
24555   grep -v '^ *+' conftest.er1 >conftest.err
24556   rm -f conftest.er1
24557   cat conftest.err >&5
24558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); } && {
24560          test -z "$ac_c_werror_flag" ||
24561          test ! -s conftest.err
24562        } && test -s conftest.$ac_objext; then
24563   ac_lo=0 ac_mid=0
24564   while :; do
24565     cat >conftest.$ac_ext <<_ACEOF
24566 /* confdefs.h.  */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h.  */
24571 $ac_includes_default
24572 #ifndef offsetof
24573 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24574 #endif
24575 typedef struct { char x; long y; } ac__type_alignof_;
24576 int
24577 main ()
24578 {
24579 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24580 test_array [0] = 0
24581
24582   ;
24583   return 0;
24584 }
24585 _ACEOF
24586 rm -f conftest.$ac_objext
24587 if { (ac_try="$ac_compile"
24588 case "(($ac_try" in
24589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590   *) ac_try_echo=$ac_try;;
24591 esac
24592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593 $as_echo "$ac_try_echo") >&5
24594   (eval "$ac_compile") 2>conftest.er1
24595   ac_status=$?
24596   grep -v '^ *+' conftest.er1 >conftest.err
24597   rm -f conftest.er1
24598   cat conftest.err >&5
24599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600   (exit $ac_status); } && {
24601          test -z "$ac_c_werror_flag" ||
24602          test ! -s conftest.err
24603        } && test -s conftest.$ac_objext; then
24604   ac_hi=$ac_mid; break
24605 else
24606   $as_echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24608
24609         ac_lo=`expr $ac_mid + 1`
24610                         if test $ac_lo -le $ac_mid; then
24611                           ac_lo= ac_hi=
24612                           break
24613                         fi
24614                         ac_mid=`expr 2 '*' $ac_mid + 1`
24615 fi
24616
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618   done
24619 else
24620   $as_echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623         cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h.  */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h.  */
24629 $ac_includes_default
24630 #ifndef offsetof
24631 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24632 #endif
24633 typedef struct { char x; long y; } ac__type_alignof_;
24634 int
24635 main ()
24636 {
24637 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24638 test_array [0] = 0
24639
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24651 $as_echo "$ac_try_echo") >&5
24652   (eval "$ac_compile") 2>conftest.er1
24653   ac_status=$?
24654   grep -v '^ *+' conftest.er1 >conftest.err
24655   rm -f conftest.er1
24656   cat conftest.err >&5
24657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658   (exit $ac_status); } && {
24659          test -z "$ac_c_werror_flag" ||
24660          test ! -s conftest.err
24661        } && test -s conftest.$ac_objext; then
24662   ac_hi=-1 ac_mid=-1
24663   while :; do
24664     cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h.  */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h.  */
24670 $ac_includes_default
24671 #ifndef offsetof
24672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24673 #endif
24674 typedef struct { char x; long y; } ac__type_alignof_;
24675 int
24676 main ()
24677 {
24678 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24679 test_array [0] = 0
24680
24681   ;
24682   return 0;
24683 }
24684 _ACEOF
24685 rm -f conftest.$ac_objext
24686 if { (ac_try="$ac_compile"
24687 case "(($ac_try" in
24688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689   *) ac_try_echo=$ac_try;;
24690 esac
24691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24692 $as_echo "$ac_try_echo") >&5
24693   (eval "$ac_compile") 2>conftest.er1
24694   ac_status=$?
24695   grep -v '^ *+' conftest.er1 >conftest.err
24696   rm -f conftest.er1
24697   cat conftest.err >&5
24698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } && {
24700          test -z "$ac_c_werror_flag" ||
24701          test ! -s conftest.err
24702        } && test -s conftest.$ac_objext; then
24703   ac_lo=$ac_mid; break
24704 else
24705   $as_echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708         ac_hi=`expr '(' $ac_mid ')' - 1`
24709                         if test $ac_mid -le $ac_hi; then
24710                           ac_lo= ac_hi=
24711                           break
24712                         fi
24713                         ac_mid=`expr 2 '*' $ac_mid`
24714 fi
24715
24716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717   done
24718 else
24719   $as_echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24721
24722         ac_lo= ac_hi=
24723 fi
24724
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 fi
24727
24728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24729 # Binary search between lo and hi bounds.
24730 while test "x$ac_lo" != "x$ac_hi"; do
24731   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24732   cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h.  */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h.  */
24738 $ac_includes_default
24739 #ifndef offsetof
24740 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24741 #endif
24742 typedef struct { char x; long y; } ac__type_alignof_;
24743 int
24744 main ()
24745 {
24746 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24747 test_array [0] = 0
24748
24749   ;
24750   return 0;
24751 }
24752 _ACEOF
24753 rm -f conftest.$ac_objext
24754 if { (ac_try="$ac_compile"
24755 case "(($ac_try" in
24756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757   *) ac_try_echo=$ac_try;;
24758 esac
24759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761   (eval "$ac_compile") 2>conftest.er1
24762   ac_status=$?
24763   grep -v '^ *+' conftest.er1 >conftest.err
24764   rm -f conftest.er1
24765   cat conftest.err >&5
24766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); } && {
24768          test -z "$ac_c_werror_flag" ||
24769          test ! -s conftest.err
24770        } && test -s conftest.$ac_objext; then
24771   ac_hi=$ac_mid
24772 else
24773   $as_echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776         ac_lo=`expr '(' $ac_mid ')' + 1`
24777 fi
24778
24779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24780 done
24781 case $ac_lo in
24782 ?*) ac_cv_alignof_long=$ac_lo;;
24783 '') if test "$ac_cv_type_long" = yes; then
24784      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24786 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24787 See \`config.log' for more details." >&5
24788 $as_echo "$as_me: error: cannot compute alignment of long
24789 See \`config.log' for more details." >&2;}
24790    { (exit 77); exit 77; }; }; }
24791    else
24792      ac_cv_alignof_long=0
24793    fi ;;
24794 esac
24795 else
24796   cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802 $ac_includes_default
24803 #ifndef offsetof
24804 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24805 #endif
24806 typedef struct { char x; long y; } ac__type_alignof_;
24807 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24808 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24809 #include <stdio.h>
24810 #include <stdlib.h>
24811 int
24812 main ()
24813 {
24814
24815   FILE *f = fopen ("conftest.val", "w");
24816   if (! f)
24817     return 1;
24818   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24819     {
24820       long int i = longval ();
24821       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24822         return 1;
24823       fprintf (f, "%ld", i);
24824     }
24825   else
24826     {
24827       unsigned long int i = ulongval ();
24828       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24829         return 1;
24830       fprintf (f, "%lu", i);
24831     }
24832   /* Do not output a trailing newline, as this causes \r\n confusion
24833      on some platforms.  */
24834   return ferror (f) || fclose (f) != 0;
24835
24836   ;
24837   return 0;
24838 }
24839 _ACEOF
24840 rm -f conftest$ac_exeext
24841 if { (ac_try="$ac_link"
24842 case "(($ac_try" in
24843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844   *) ac_try_echo=$ac_try;;
24845 esac
24846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24847 $as_echo "$ac_try_echo") >&5
24848   (eval "$ac_link") 2>&5
24849   ac_status=$?
24850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24852   { (case "(($ac_try" in
24853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854   *) ac_try_echo=$ac_try;;
24855 esac
24856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857 $as_echo "$ac_try_echo") >&5
24858   (eval "$ac_try") 2>&5
24859   ac_status=$?
24860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); }; }; then
24862   ac_cv_alignof_long=`cat conftest.val`
24863 else
24864   $as_echo "$as_me: program exited with status $ac_status" >&5
24865 $as_echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 ( exit $ac_status )
24869 if test "$ac_cv_type_long" = yes; then
24870      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24872 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24873 See \`config.log' for more details." >&5
24874 $as_echo "$as_me: error: cannot compute alignment of long
24875 See \`config.log' for more details." >&2;}
24876    { (exit 77); exit 77; }; }; }
24877    else
24878      ac_cv_alignof_long=0
24879    fi
24880 fi
24881 rm -rf conftest.dSYM
24882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24883 fi
24884 rm -f conftest.val
24885 fi
24886 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
24887 $as_echo "$ac_cv_alignof_long" >&6; }
24888
24889
24890
24891 cat >>confdefs.h <<_ACEOF
24892 #define ALIGNOF_LONG $ac_cv_alignof_long
24893 _ACEOF
24894
24895
24896 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24897   # The cast to long int works around a bug in the HP C Compiler,
24898 # see AC_CHECK_SIZEOF for more information.
24899 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
24900 $as_echo_n "checking alignment of long long int... " >&6; }
24901 if test "${ac_cv_alignof_long_long_int+set}" = set; then
24902   $as_echo_n "(cached) " >&6
24903 else
24904   if test "$cross_compiling" = yes; then
24905   # Depending upon the size, compute the lo and hi bounds.
24906 cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h.  */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h.  */
24912 $ac_includes_default
24913 #ifndef offsetof
24914 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24915 #endif
24916 typedef struct { char x; long long int y; } ac__type_alignof_;
24917 int
24918 main ()
24919 {
24920 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24921 test_array [0] = 0
24922
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934 $as_echo "$ac_try_echo") >&5
24935   (eval "$ac_compile") 2>conftest.er1
24936   ac_status=$?
24937   grep -v '^ *+' conftest.er1 >conftest.err
24938   rm -f conftest.er1
24939   cat conftest.err >&5
24940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); } && {
24942          test -z "$ac_c_werror_flag" ||
24943          test ! -s conftest.err
24944        } && test -s conftest.$ac_objext; then
24945   ac_lo=0 ac_mid=0
24946   while :; do
24947     cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h.  */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h.  */
24953 $ac_includes_default
24954 #ifndef offsetof
24955 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24956 #endif
24957 typedef struct { char x; long long int y; } ac__type_alignof_;
24958 int
24959 main ()
24960 {
24961 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24962 test_array [0] = 0
24963
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972   *) ac_try_echo=$ac_try;;
24973 esac
24974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24975 $as_echo "$ac_try_echo") >&5
24976   (eval "$ac_compile") 2>conftest.er1
24977   ac_status=$?
24978   grep -v '^ *+' conftest.er1 >conftest.err
24979   rm -f conftest.er1
24980   cat conftest.err >&5
24981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); } && {
24983          test -z "$ac_c_werror_flag" ||
24984          test ! -s conftest.err
24985        } && test -s conftest.$ac_objext; then
24986   ac_hi=$ac_mid; break
24987 else
24988   $as_echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24990
24991         ac_lo=`expr $ac_mid + 1`
24992                         if test $ac_lo -le $ac_mid; then
24993                           ac_lo= ac_hi=
24994                           break
24995                         fi
24996                         ac_mid=`expr 2 '*' $ac_mid + 1`
24997 fi
24998
24999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000   done
25001 else
25002   $as_echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005         cat >conftest.$ac_ext <<_ACEOF
25006 /* confdefs.h.  */
25007 _ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h.  */
25011 $ac_includes_default
25012 #ifndef offsetof
25013 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25014 #endif
25015 typedef struct { char x; long long int y; } ac__type_alignof_;
25016 int
25017 main ()
25018 {
25019 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25020 test_array [0] = 0
25021
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033 $as_echo "$ac_try_echo") >&5
25034   (eval "$ac_compile") 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } && {
25041          test -z "$ac_c_werror_flag" ||
25042          test ! -s conftest.err
25043        } && test -s conftest.$ac_objext; then
25044   ac_hi=-1 ac_mid=-1
25045   while :; do
25046     cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h.  */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h.  */
25052 $ac_includes_default
25053 #ifndef offsetof
25054 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25055 #endif
25056 typedef struct { char x; long long int y; } ac__type_alignof_;
25057 int
25058 main ()
25059 {
25060 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25061 test_array [0] = 0
25062
25063   ;
25064   return 0;
25065 }
25066 _ACEOF
25067 rm -f conftest.$ac_objext
25068 if { (ac_try="$ac_compile"
25069 case "(($ac_try" in
25070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071   *) ac_try_echo=$ac_try;;
25072 esac
25073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25074 $as_echo "$ac_try_echo") >&5
25075   (eval "$ac_compile") 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } && {
25082          test -z "$ac_c_werror_flag" ||
25083          test ! -s conftest.err
25084        } && test -s conftest.$ac_objext; then
25085   ac_lo=$ac_mid; break
25086 else
25087   $as_echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25089
25090         ac_hi=`expr '(' $ac_mid ')' - 1`
25091                         if test $ac_mid -le $ac_hi; then
25092                           ac_lo= ac_hi=
25093                           break
25094                         fi
25095                         ac_mid=`expr 2 '*' $ac_mid`
25096 fi
25097
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25099   done
25100 else
25101   $as_echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104         ac_lo= ac_hi=
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108 fi
25109
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111 # Binary search between lo and hi bounds.
25112 while test "x$ac_lo" != "x$ac_hi"; do
25113   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25114   cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h.  */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h.  */
25120 $ac_includes_default
25121 #ifndef offsetof
25122 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25123 #endif
25124 typedef struct { char x; long long int y; } ac__type_alignof_;
25125 int
25126 main ()
25127 {
25128 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25129 test_array [0] = 0
25130
25131   ;
25132   return 0;
25133 }
25134 _ACEOF
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139   *) ac_try_echo=$ac_try;;
25140 esac
25141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25142 $as_echo "$ac_try_echo") >&5
25143   (eval "$ac_compile") 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } && {
25150          test -z "$ac_c_werror_flag" ||
25151          test ! -s conftest.err
25152        } && test -s conftest.$ac_objext; then
25153   ac_hi=$ac_mid
25154 else
25155   $as_echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25157
25158         ac_lo=`expr '(' $ac_mid ')' + 1`
25159 fi
25160
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162 done
25163 case $ac_lo in
25164 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25165 '') if test "$ac_cv_type_long_long_int" = yes; then
25166      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25168 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25169 See \`config.log' for more details." >&5
25170 $as_echo "$as_me: error: cannot compute alignment of long long int
25171 See \`config.log' for more details." >&2;}
25172    { (exit 77); exit 77; }; }; }
25173    else
25174      ac_cv_alignof_long_long_int=0
25175    fi ;;
25176 esac
25177 else
25178   cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h.  */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h.  */
25184 $ac_includes_default
25185 #ifndef offsetof
25186 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25187 #endif
25188 typedef struct { char x; long long int y; } ac__type_alignof_;
25189 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25190 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25191 #include <stdio.h>
25192 #include <stdlib.h>
25193 int
25194 main ()
25195 {
25196
25197   FILE *f = fopen ("conftest.val", "w");
25198   if (! f)
25199     return 1;
25200   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25201     {
25202       long int i = longval ();
25203       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25204         return 1;
25205       fprintf (f, "%ld", i);
25206     }
25207   else
25208     {
25209       unsigned long int i = ulongval ();
25210       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25211         return 1;
25212       fprintf (f, "%lu", i);
25213     }
25214   /* Do not output a trailing newline, as this causes \r\n confusion
25215      on some platforms.  */
25216   return ferror (f) || fclose (f) != 0;
25217
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 rm -f conftest$ac_exeext
25223 if { (ac_try="$ac_link"
25224 case "(($ac_try" in
25225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226   *) ac_try_echo=$ac_try;;
25227 esac
25228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25229 $as_echo "$ac_try_echo") >&5
25230   (eval "$ac_link") 2>&5
25231   ac_status=$?
25232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234   { (case "(($ac_try" in
25235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236   *) ac_try_echo=$ac_try;;
25237 esac
25238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25239 $as_echo "$ac_try_echo") >&5
25240   (eval "$ac_try") 2>&5
25241   ac_status=$?
25242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); }; }; then
25244   ac_cv_alignof_long_long_int=`cat conftest.val`
25245 else
25246   $as_echo "$as_me: program exited with status $ac_status" >&5
25247 $as_echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 ( exit $ac_status )
25251 if test "$ac_cv_type_long_long_int" = yes; then
25252      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25254 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25255 See \`config.log' for more details." >&5
25256 $as_echo "$as_me: error: cannot compute alignment of long long int
25257 See \`config.log' for more details." >&2;}
25258    { (exit 77); exit 77; }; }; }
25259    else
25260      ac_cv_alignof_long_long_int=0
25261    fi
25262 fi
25263 rm -rf conftest.dSYM
25264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25265 fi
25266 rm -f conftest.val
25267 fi
25268 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25269 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25270
25271
25272
25273 cat >>confdefs.h <<_ACEOF
25274 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25275 _ACEOF
25276
25277
25278 fi
25279 # The cast to long int works around a bug in the HP C Compiler,
25280 # see AC_CHECK_SIZEOF for more information.
25281 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25282 $as_echo_n "checking alignment of double... " >&6; }
25283 if test "${ac_cv_alignof_double+set}" = set; then
25284   $as_echo_n "(cached) " >&6
25285 else
25286   if test "$cross_compiling" = yes; then
25287   # Depending upon the size, compute the lo and hi bounds.
25288 cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294 $ac_includes_default
25295 #ifndef offsetof
25296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25297 #endif
25298 typedef struct { char x; double y; } ac__type_alignof_;
25299 int
25300 main ()
25301 {
25302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25303 test_array [0] = 0
25304
25305   ;
25306   return 0;
25307 }
25308 _ACEOF
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313   *) ac_try_echo=$ac_try;;
25314 esac
25315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25316 $as_echo "$ac_try_echo") >&5
25317   (eval "$ac_compile") 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } && {
25324          test -z "$ac_c_werror_flag" ||
25325          test ! -s conftest.err
25326        } && test -s conftest.$ac_objext; then
25327   ac_lo=0 ac_mid=0
25328   while :; do
25329     cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h.  */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h.  */
25335 $ac_includes_default
25336 #ifndef offsetof
25337 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25338 #endif
25339 typedef struct { char x; double y; } ac__type_alignof_;
25340 int
25341 main ()
25342 {
25343 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25344 test_array [0] = 0
25345
25346   ;
25347   return 0;
25348 }
25349 _ACEOF
25350 rm -f conftest.$ac_objext
25351 if { (ac_try="$ac_compile"
25352 case "(($ac_try" in
25353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354   *) ac_try_echo=$ac_try;;
25355 esac
25356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25357 $as_echo "$ac_try_echo") >&5
25358   (eval "$ac_compile") 2>conftest.er1
25359   ac_status=$?
25360   grep -v '^ *+' conftest.er1 >conftest.err
25361   rm -f conftest.er1
25362   cat conftest.err >&5
25363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); } && {
25365          test -z "$ac_c_werror_flag" ||
25366          test ! -s conftest.err
25367        } && test -s conftest.$ac_objext; then
25368   ac_hi=$ac_mid; break
25369 else
25370   $as_echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25372
25373         ac_lo=`expr $ac_mid + 1`
25374                         if test $ac_lo -le $ac_mid; then
25375                           ac_lo= ac_hi=
25376                           break
25377                         fi
25378                         ac_mid=`expr 2 '*' $ac_mid + 1`
25379 fi
25380
25381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382   done
25383 else
25384   $as_echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25386
25387         cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h.  */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h.  */
25393 $ac_includes_default
25394 #ifndef offsetof
25395 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25396 #endif
25397 typedef struct { char x; double y; } ac__type_alignof_;
25398 int
25399 main ()
25400 {
25401 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25402 test_array [0] = 0
25403
25404   ;
25405   return 0;
25406 }
25407 _ACEOF
25408 rm -f conftest.$ac_objext
25409 if { (ac_try="$ac_compile"
25410 case "(($ac_try" in
25411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412   *) ac_try_echo=$ac_try;;
25413 esac
25414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25415 $as_echo "$ac_try_echo") >&5
25416   (eval "$ac_compile") 2>conftest.er1
25417   ac_status=$?
25418   grep -v '^ *+' conftest.er1 >conftest.err
25419   rm -f conftest.er1
25420   cat conftest.err >&5
25421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); } && {
25423          test -z "$ac_c_werror_flag" ||
25424          test ! -s conftest.err
25425        } && test -s conftest.$ac_objext; then
25426   ac_hi=-1 ac_mid=-1
25427   while :; do
25428     cat >conftest.$ac_ext <<_ACEOF
25429 /* confdefs.h.  */
25430 _ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h.  */
25434 $ac_includes_default
25435 #ifndef offsetof
25436 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25437 #endif
25438 typedef struct { char x; double y; } ac__type_alignof_;
25439 int
25440 main ()
25441 {
25442 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25443 test_array [0] = 0
25444
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453   *) ac_try_echo=$ac_try;;
25454 esac
25455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25456 $as_echo "$ac_try_echo") >&5
25457   (eval "$ac_compile") 2>conftest.er1
25458   ac_status=$?
25459   grep -v '^ *+' conftest.er1 >conftest.err
25460   rm -f conftest.er1
25461   cat conftest.err >&5
25462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); } && {
25464          test -z "$ac_c_werror_flag" ||
25465          test ! -s conftest.err
25466        } && test -s conftest.$ac_objext; then
25467   ac_lo=$ac_mid; break
25468 else
25469   $as_echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472         ac_hi=`expr '(' $ac_mid ')' - 1`
25473                         if test $ac_mid -le $ac_hi; then
25474                           ac_lo= ac_hi=
25475                           break
25476                         fi
25477                         ac_mid=`expr 2 '*' $ac_mid`
25478 fi
25479
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481   done
25482 else
25483   $as_echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25485
25486         ac_lo= ac_hi=
25487 fi
25488
25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490 fi
25491
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 # Binary search between lo and hi bounds.
25494 while test "x$ac_lo" != "x$ac_hi"; do
25495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25496   cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502 $ac_includes_default
25503 #ifndef offsetof
25504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25505 #endif
25506 typedef struct { char x; double y; } ac__type_alignof_;
25507 int
25508 main ()
25509 {
25510 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25511 test_array [0] = 0
25512
25513   ;
25514   return 0;
25515 }
25516 _ACEOF
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521   *) ac_try_echo=$ac_try;;
25522 esac
25523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25524 $as_echo "$ac_try_echo") >&5
25525   (eval "$ac_compile") 2>conftest.er1
25526   ac_status=$?
25527   grep -v '^ *+' conftest.er1 >conftest.err
25528   rm -f conftest.er1
25529   cat conftest.err >&5
25530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } && {
25532          test -z "$ac_c_werror_flag" ||
25533          test ! -s conftest.err
25534        } && test -s conftest.$ac_objext; then
25535   ac_hi=$ac_mid
25536 else
25537   $as_echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25539
25540         ac_lo=`expr '(' $ac_mid ')' + 1`
25541 fi
25542
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 done
25545 case $ac_lo in
25546 ?*) ac_cv_alignof_double=$ac_lo;;
25547 '') if test "$ac_cv_type_double" = yes; then
25548      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25550 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25551 See \`config.log' for more details." >&5
25552 $as_echo "$as_me: error: cannot compute alignment of double
25553 See \`config.log' for more details." >&2;}
25554    { (exit 77); exit 77; }; }; }
25555    else
25556      ac_cv_alignof_double=0
25557    fi ;;
25558 esac
25559 else
25560   cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566 $ac_includes_default
25567 #ifndef offsetof
25568 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25569 #endif
25570 typedef struct { char x; double y; } ac__type_alignof_;
25571 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25572 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25573 #include <stdio.h>
25574 #include <stdlib.h>
25575 int
25576 main ()
25577 {
25578
25579   FILE *f = fopen ("conftest.val", "w");
25580   if (! f)
25581     return 1;
25582   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25583     {
25584       long int i = longval ();
25585       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25586         return 1;
25587       fprintf (f, "%ld", i);
25588     }
25589   else
25590     {
25591       unsigned long int i = ulongval ();
25592       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25593         return 1;
25594       fprintf (f, "%lu", i);
25595     }
25596   /* Do not output a trailing newline, as this causes \r\n confusion
25597      on some platforms.  */
25598   return ferror (f) || fclose (f) != 0;
25599
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest$ac_exeext
25605 if { (ac_try="$ac_link"
25606 case "(($ac_try" in
25607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25608   *) ac_try_echo=$ac_try;;
25609 esac
25610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25611 $as_echo "$ac_try_echo") >&5
25612   (eval "$ac_link") 2>&5
25613   ac_status=$?
25614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25616   { (case "(($ac_try" in
25617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618   *) ac_try_echo=$ac_try;;
25619 esac
25620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25621 $as_echo "$ac_try_echo") >&5
25622   (eval "$ac_try") 2>&5
25623   ac_status=$?
25624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626   ac_cv_alignof_double=`cat conftest.val`
25627 else
25628   $as_echo "$as_me: program exited with status $ac_status" >&5
25629 $as_echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25631
25632 ( exit $ac_status )
25633 if test "$ac_cv_type_double" = yes; then
25634      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25636 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25637 See \`config.log' for more details." >&5
25638 $as_echo "$as_me: error: cannot compute alignment of double
25639 See \`config.log' for more details." >&2;}
25640    { (exit 77); exit 77; }; }; }
25641    else
25642      ac_cv_alignof_double=0
25643    fi
25644 fi
25645 rm -rf conftest.dSYM
25646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25647 fi
25648 rm -f conftest.val
25649 fi
25650 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25651 $as_echo "$ac_cv_alignof_double" >&6; }
25652
25653
25654
25655 cat >>confdefs.h <<_ACEOF
25656 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25657 _ACEOF
25658
25659
25660
25661 # Compute maximum alignment of any basic type.
25662 # We assume long's alignment is at least as strong as char, short, or int;
25663 # but we must check long long (if it exists) and double.
25664
25665 MAX_ALIGNOF=$ac_cv_alignof_long
25666 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25667   MAX_ALIGNOF=$ac_cv_alignof_double
25668 fi
25669 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25670   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25671 fi
25672
25673 cat >>confdefs.h <<_ACEOF
25674 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25675 _ACEOF
25676
25677
25678
25679 # Some platforms predefine the types int8, int16, etc.  Only check
25680 # a (hopefully) representative subset.
25681 { $as_echo "$as_me:$LINENO: checking for int8" >&5
25682 $as_echo_n "checking for int8... " >&6; }
25683 if test "${ac_cv_type_int8+set}" = set; then
25684   $as_echo_n "(cached) " >&6
25685 else
25686   ac_cv_type_int8=no
25687 cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693 #include <stdio.h>
25694 #ifdef HAVE_SUPPORTDEFS_H
25695 #include <SupportDefs.h>
25696 #endif
25697
25698 int
25699 main ()
25700 {
25701 if (sizeof (int8))
25702        return 0;
25703   ;
25704   return 0;
25705 }
25706 _ACEOF
25707 rm -f conftest.$ac_objext
25708 if { (ac_try="$ac_compile"
25709 case "(($ac_try" in
25710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711   *) ac_try_echo=$ac_try;;
25712 esac
25713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25714 $as_echo "$ac_try_echo") >&5
25715   (eval "$ac_compile") 2>conftest.er1
25716   ac_status=$?
25717   grep -v '^ *+' conftest.er1 >conftest.err
25718   rm -f conftest.er1
25719   cat conftest.err >&5
25720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); } && {
25722          test -z "$ac_c_werror_flag" ||
25723          test ! -s conftest.err
25724        } && test -s conftest.$ac_objext; then
25725   cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h.  */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h.  */
25731 #include <stdio.h>
25732 #ifdef HAVE_SUPPORTDEFS_H
25733 #include <SupportDefs.h>
25734 #endif
25735
25736 int
25737 main ()
25738 {
25739 if (sizeof ((int8)))
25740           return 0;
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749   *) ac_try_echo=$ac_try;;
25750 esac
25751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25752 $as_echo "$ac_try_echo") >&5
25753   (eval "$ac_compile") 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } && {
25760          test -z "$ac_c_werror_flag" ||
25761          test ! -s conftest.err
25762        } && test -s conftest.$ac_objext; then
25763   :
25764 else
25765   $as_echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768         ac_cv_type_int8=yes
25769 fi
25770
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25772 else
25773   $as_echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776
25777 fi
25778
25779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25780 fi
25781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
25782 $as_echo "$ac_cv_type_int8" >&6; }
25783 if test "x$ac_cv_type_int8" = x""yes; then
25784
25785 cat >>confdefs.h <<_ACEOF
25786 #define HAVE_INT8 1
25787 _ACEOF
25788
25789
25790 fi
25791 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
25792 $as_echo_n "checking for uint8... " >&6; }
25793 if test "${ac_cv_type_uint8+set}" = set; then
25794   $as_echo_n "(cached) " >&6
25795 else
25796   ac_cv_type_uint8=no
25797 cat >conftest.$ac_ext <<_ACEOF
25798 /* confdefs.h.  */
25799 _ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h.  */
25803 #include <stdio.h>
25804 #ifdef HAVE_SUPPORTDEFS_H
25805 #include <SupportDefs.h>
25806 #endif
25807
25808 int
25809 main ()
25810 {
25811 if (sizeof (uint8))
25812        return 0;
25813   ;
25814   return 0;
25815 }
25816 _ACEOF
25817 rm -f conftest.$ac_objext
25818 if { (ac_try="$ac_compile"
25819 case "(($ac_try" in
25820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821   *) ac_try_echo=$ac_try;;
25822 esac
25823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25824 $as_echo "$ac_try_echo") >&5
25825   (eval "$ac_compile") 2>conftest.er1
25826   ac_status=$?
25827   grep -v '^ *+' conftest.er1 >conftest.err
25828   rm -f conftest.er1
25829   cat conftest.err >&5
25830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); } && {
25832          test -z "$ac_c_werror_flag" ||
25833          test ! -s conftest.err
25834        } && test -s conftest.$ac_objext; then
25835   cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h.  */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h.  */
25841 #include <stdio.h>
25842 #ifdef HAVE_SUPPORTDEFS_H
25843 #include <SupportDefs.h>
25844 #endif
25845
25846 int
25847 main ()
25848 {
25849 if (sizeof ((uint8)))
25850           return 0;
25851   ;
25852   return 0;
25853 }
25854 _ACEOF
25855 rm -f conftest.$ac_objext
25856 if { (ac_try="$ac_compile"
25857 case "(($ac_try" in
25858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859   *) ac_try_echo=$ac_try;;
25860 esac
25861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25862 $as_echo "$ac_try_echo") >&5
25863   (eval "$ac_compile") 2>conftest.er1
25864   ac_status=$?
25865   grep -v '^ *+' conftest.er1 >conftest.err
25866   rm -f conftest.er1
25867   cat conftest.err >&5
25868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); } && {
25870          test -z "$ac_c_werror_flag" ||
25871          test ! -s conftest.err
25872        } && test -s conftest.$ac_objext; then
25873   :
25874 else
25875   $as_echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25877
25878         ac_cv_type_uint8=yes
25879 fi
25880
25881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25882 else
25883   $as_echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886
25887 fi
25888
25889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890 fi
25891 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
25892 $as_echo "$ac_cv_type_uint8" >&6; }
25893 if test "x$ac_cv_type_uint8" = x""yes; then
25894
25895 cat >>confdefs.h <<_ACEOF
25896 #define HAVE_UINT8 1
25897 _ACEOF
25898
25899
25900 fi
25901 { $as_echo "$as_me:$LINENO: checking for int64" >&5
25902 $as_echo_n "checking for int64... " >&6; }
25903 if test "${ac_cv_type_int64+set}" = set; then
25904   $as_echo_n "(cached) " >&6
25905 else
25906   ac_cv_type_int64=no
25907 cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913 #include <stdio.h>
25914 #ifdef HAVE_SUPPORTDEFS_H
25915 #include <SupportDefs.h>
25916 #endif
25917
25918 int
25919 main ()
25920 {
25921 if (sizeof (int64))
25922        return 0;
25923   ;
25924   return 0;
25925 }
25926 _ACEOF
25927 rm -f conftest.$ac_objext
25928 if { (ac_try="$ac_compile"
25929 case "(($ac_try" in
25930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931   *) ac_try_echo=$ac_try;;
25932 esac
25933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25934 $as_echo "$ac_try_echo") >&5
25935   (eval "$ac_compile") 2>conftest.er1
25936   ac_status=$?
25937   grep -v '^ *+' conftest.er1 >conftest.err
25938   rm -f conftest.er1
25939   cat conftest.err >&5
25940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); } && {
25942          test -z "$ac_c_werror_flag" ||
25943          test ! -s conftest.err
25944        } && test -s conftest.$ac_objext; then
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 #include <stdio.h>
25952 #ifdef HAVE_SUPPORTDEFS_H
25953 #include <SupportDefs.h>
25954 #endif
25955
25956 int
25957 main ()
25958 {
25959 if (sizeof ((int64)))
25960           return 0;
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969   *) ac_try_echo=$ac_try;;
25970 esac
25971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25972 $as_echo "$ac_try_echo") >&5
25973   (eval "$ac_compile") 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } && {
25980          test -z "$ac_c_werror_flag" ||
25981          test ! -s conftest.err
25982        } && test -s conftest.$ac_objext; then
25983   :
25984 else
25985   $as_echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988         ac_cv_type_int64=yes
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 else
25993   $as_echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25995
25996
25997 fi
25998
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26000 fi
26001 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
26002 $as_echo "$ac_cv_type_int64" >&6; }
26003 if test "x$ac_cv_type_int64" = x""yes; then
26004
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_INT64 1
26007 _ACEOF
26008
26009
26010 fi
26011 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
26012 $as_echo_n "checking for uint64... " >&6; }
26013 if test "${ac_cv_type_uint64+set}" = set; then
26014   $as_echo_n "(cached) " >&6
26015 else
26016   ac_cv_type_uint64=no
26017 cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 #include <stdio.h>
26024 #ifdef HAVE_SUPPORTDEFS_H
26025 #include <SupportDefs.h>
26026 #endif
26027
26028 int
26029 main ()
26030 {
26031 if (sizeof (uint64))
26032        return 0;
26033   ;
26034   return 0;
26035 }
26036 _ACEOF
26037 rm -f conftest.$ac_objext
26038 if { (ac_try="$ac_compile"
26039 case "(($ac_try" in
26040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041   *) ac_try_echo=$ac_try;;
26042 esac
26043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26044 $as_echo "$ac_try_echo") >&5
26045   (eval "$ac_compile") 2>conftest.er1
26046   ac_status=$?
26047   grep -v '^ *+' conftest.er1 >conftest.err
26048   rm -f conftest.er1
26049   cat conftest.err >&5
26050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); } && {
26052          test -z "$ac_c_werror_flag" ||
26053          test ! -s conftest.err
26054        } && test -s conftest.$ac_objext; then
26055   cat >conftest.$ac_ext <<_ACEOF
26056 /* confdefs.h.  */
26057 _ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h.  */
26061 #include <stdio.h>
26062 #ifdef HAVE_SUPPORTDEFS_H
26063 #include <SupportDefs.h>
26064 #endif
26065
26066 int
26067 main ()
26068 {
26069 if (sizeof ((uint64)))
26070           return 0;
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext
26076 if { (ac_try="$ac_compile"
26077 case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26082 $as_echo "$ac_try_echo") >&5
26083   (eval "$ac_compile") 2>conftest.er1
26084   ac_status=$?
26085   grep -v '^ *+' conftest.er1 >conftest.err
26086   rm -f conftest.er1
26087   cat conftest.err >&5
26088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); } && {
26090          test -z "$ac_c_werror_flag" ||
26091          test ! -s conftest.err
26092        } && test -s conftest.$ac_objext; then
26093   :
26094 else
26095   $as_echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098         ac_cv_type_uint64=yes
26099 fi
26100
26101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102 else
26103   $as_echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.$ac_ext >&5
26105
26106
26107 fi
26108
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 fi
26111 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26112 $as_echo "$ac_cv_type_uint64" >&6; }
26113 if test "x$ac_cv_type_uint64" = x""yes; then
26114
26115 cat >>confdefs.h <<_ACEOF
26116 #define HAVE_UINT64 1
26117 _ACEOF
26118
26119
26120 fi
26121
26122
26123 # We also check for sig_atomic_t, which *should* be defined per ANSI
26124 # C, but is missing on some old platforms.
26125 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26126 $as_echo_n "checking for sig_atomic_t... " >&6; }
26127 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26128   $as_echo_n "(cached) " >&6
26129 else
26130   ac_cv_type_sig_atomic_t=no
26131 cat >conftest.$ac_ext <<_ACEOF
26132 /* confdefs.h.  */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h.  */
26137 #include <signal.h>
26138
26139 int
26140 main ()
26141 {
26142 if (sizeof (sig_atomic_t))
26143        return 0;
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152   *) ac_try_echo=$ac_try;;
26153 esac
26154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156   (eval "$ac_compile") 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } && {
26163          test -z "$ac_c_werror_flag" ||
26164          test ! -s conftest.err
26165        } && test -s conftest.$ac_objext; then
26166   cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172 #include <signal.h>
26173
26174 int
26175 main ()
26176 {
26177 if (sizeof ((sig_atomic_t)))
26178           return 0;
26179   ;
26180   return 0;
26181 }
26182 _ACEOF
26183 rm -f conftest.$ac_objext
26184 if { (ac_try="$ac_compile"
26185 case "(($ac_try" in
26186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187   *) ac_try_echo=$ac_try;;
26188 esac
26189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26190 $as_echo "$ac_try_echo") >&5
26191   (eval "$ac_compile") 2>conftest.er1
26192   ac_status=$?
26193   grep -v '^ *+' conftest.er1 >conftest.err
26194   rm -f conftest.er1
26195   cat conftest.err >&5
26196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); } && {
26198          test -z "$ac_c_werror_flag" ||
26199          test ! -s conftest.err
26200        } && test -s conftest.$ac_objext; then
26201   :
26202 else
26203   $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26205
26206         ac_cv_type_sig_atomic_t=yes
26207 fi
26208
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 else
26211   $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214
26215 fi
26216
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 fi
26219 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26220 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26221 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26222
26223 cat >>confdefs.h <<_ACEOF
26224 #define HAVE_SIG_ATOMIC_T 1
26225 _ACEOF
26226
26227
26228 fi
26229
26230
26231
26232 # If the user did not disable integer datetimes, check that
26233 # there is a working 64-bit integral type to use.
26234 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
26235    test x"$HAVE_LONG_INT_64" = x"no" &&
26236    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
26237    test x"$HAVE_INT64" = x"no" ; then
26238   { { $as_echo "$as_me:$LINENO: error:
26239 Integer-based datetime support requires a 64-bit integer type,
26240 but no such type could be found. The --disable-integer-datetimes
26241 configure option can be used to disable integer-based storage
26242 of datetime values." >&5
26243 $as_echo "$as_me: error:
26244 Integer-based datetime support requires a 64-bit integer type,
26245 but no such type could be found. The --disable-integer-datetimes
26246 configure option can be used to disable integer-based storage
26247 of datetime values." >&2;}
26248    { (exit 1); exit 1; }; }
26249 fi
26250
26251
26252 if test "$PORTNAME" != "win32"
26253 then
26254 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26255 $as_echo_n "checking for POSIX signal interface... " >&6; }
26256 if test "${pgac_cv_func_posix_signals+set}" = set; then
26257   $as_echo_n "(cached) " >&6
26258 else
26259   cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265 #include <signal.h>
26266
26267 int
26268 main ()
26269 {
26270 struct sigaction act, oact;
26271 sigemptyset(&act.sa_mask);
26272 act.sa_flags = SA_RESTART;
26273 sigaction(0, &act, &oact);
26274   ;
26275   return 0;
26276 }
26277 _ACEOF
26278 rm -f conftest.$ac_objext conftest$ac_exeext
26279 if { (ac_try="$ac_link"
26280 case "(($ac_try" in
26281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282   *) ac_try_echo=$ac_try;;
26283 esac
26284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26285 $as_echo "$ac_try_echo") >&5
26286   (eval "$ac_link") 2>conftest.er1
26287   ac_status=$?
26288   grep -v '^ *+' conftest.er1 >conftest.err
26289   rm -f conftest.er1
26290   cat conftest.err >&5
26291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); } && {
26293          test -z "$ac_c_werror_flag" ||
26294          test ! -s conftest.err
26295        } && test -s conftest$ac_exeext && {
26296          test "$cross_compiling" = yes ||
26297          $as_test_x conftest$ac_exeext
26298        }; then
26299   pgac_cv_func_posix_signals=yes
26300 else
26301   $as_echo "$as_me: failed program was:" >&5
26302 sed 's/^/| /' conftest.$ac_ext >&5
26303
26304         pgac_cv_func_posix_signals=no
26305 fi
26306
26307 rm -rf conftest.dSYM
26308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26309       conftest$ac_exeext conftest.$ac_ext
26310 fi
26311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26312 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26313 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26314
26315 cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_POSIX_SIGNALS /**/
26317 _ACEOF
26318
26319 fi
26320 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26321
26322 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26323   { { $as_echo "$as_me:$LINENO: error:
26324 Thread-safety requires POSIX signals, which are not supported by this
26325 operating system;  use --disable-thread-safety to disable thread safety." >&5
26326 $as_echo "$as_me: error:
26327 Thread-safety requires POSIX signals, which are not supported by this
26328 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
26329    { (exit 1); exit 1; }; }
26330 fi
26331 fi
26332
26333 if test $ac_cv_func_fseeko = yes; then
26334 # Check whether --enable-largefile was given.
26335 if test "${enable_largefile+set}" = set; then
26336   enableval=$enable_largefile;
26337 fi
26338
26339 if test "$enable_largefile" != no; then
26340
26341   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26342 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26343 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26344   $as_echo_n "(cached) " >&6
26345 else
26346   ac_cv_sys_largefile_CC=no
26347      if test "$GCC" != yes; then
26348        ac_save_CC=$CC
26349        while :; do
26350          # IRIX 6.2 and later do not support large files by default,
26351          # so use the C compiler's -n32 option if that helps.
26352          cat >conftest.$ac_ext <<_ACEOF
26353 /* confdefs.h.  */
26354 _ACEOF
26355 cat confdefs.h >>conftest.$ac_ext
26356 cat >>conftest.$ac_ext <<_ACEOF
26357 /* end confdefs.h.  */
26358 #include <sys/types.h>
26359  /* Check that off_t can represent 2**63 - 1 correctly.
26360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26361     since some C++ compilers masquerading as C compilers
26362     incorrectly reject 9223372036854775807.  */
26363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26365                        && LARGE_OFF_T % 2147483647 == 1)
26366                       ? 1 : -1];
26367 int
26368 main ()
26369 {
26370
26371   ;
26372   return 0;
26373 }
26374 _ACEOF
26375          rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26382 $as_echo "$ac_try_echo") >&5
26383   (eval "$ac_compile") 2>conftest.er1
26384   ac_status=$?
26385   grep -v '^ *+' conftest.er1 >conftest.err
26386   rm -f conftest.er1
26387   cat conftest.err >&5
26388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); } && {
26390          test -z "$ac_c_werror_flag" ||
26391          test ! -s conftest.err
26392        } && test -s conftest.$ac_objext; then
26393   break
26394 else
26395   $as_echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26397
26398
26399 fi
26400
26401 rm -f core conftest.err conftest.$ac_objext
26402          CC="$CC -n32"
26403          rm -f conftest.$ac_objext
26404 if { (ac_try="$ac_compile"
26405 case "(($ac_try" in
26406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26407   *) ac_try_echo=$ac_try;;
26408 esac
26409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26410 $as_echo "$ac_try_echo") >&5
26411   (eval "$ac_compile") 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } && {
26418          test -z "$ac_c_werror_flag" ||
26419          test ! -s conftest.err
26420        } && test -s conftest.$ac_objext; then
26421   ac_cv_sys_largefile_CC=' -n32'; break
26422 else
26423   $as_echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26425
26426
26427 fi
26428
26429 rm -f core conftest.err conftest.$ac_objext
26430          break
26431        done
26432        CC=$ac_save_CC
26433        rm -f conftest.$ac_ext
26434     fi
26435 fi
26436 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26437 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26438   if test "$ac_cv_sys_largefile_CC" != no; then
26439     CC=$CC$ac_cv_sys_largefile_CC
26440   fi
26441
26442   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26443 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26444 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26445   $as_echo_n "(cached) " >&6
26446 else
26447   while :; do
26448   cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454 #include <sys/types.h>
26455  /* Check that off_t can represent 2**63 - 1 correctly.
26456     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26457     since some C++ compilers masquerading as C compilers
26458     incorrectly reject 9223372036854775807.  */
26459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26460   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26461                        && LARGE_OFF_T % 2147483647 == 1)
26462                       ? 1 : -1];
26463 int
26464 main ()
26465 {
26466
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (ac_try="$ac_compile"
26473 case "(($ac_try" in
26474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475   *) ac_try_echo=$ac_try;;
26476 esac
26477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26478 $as_echo "$ac_try_echo") >&5
26479   (eval "$ac_compile") 2>conftest.er1
26480   ac_status=$?
26481   grep -v '^ *+' conftest.er1 >conftest.err
26482   rm -f conftest.er1
26483   cat conftest.err >&5
26484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485   (exit $ac_status); } && {
26486          test -z "$ac_c_werror_flag" ||
26487          test ! -s conftest.err
26488        } && test -s conftest.$ac_objext; then
26489   ac_cv_sys_file_offset_bits=no; break
26490 else
26491   $as_echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26493
26494
26495 fi
26496
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26498   cat >conftest.$ac_ext <<_ACEOF
26499 /* confdefs.h.  */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h.  */
26504 #define _FILE_OFFSET_BITS 64
26505 #include <sys/types.h>
26506  /* Check that off_t can represent 2**63 - 1 correctly.
26507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26508     since some C++ compilers masquerading as C compilers
26509     incorrectly reject 9223372036854775807.  */
26510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26512                        && LARGE_OFF_T % 2147483647 == 1)
26513                       ? 1 : -1];
26514 int
26515 main ()
26516 {
26517
26518   ;
26519   return 0;
26520 }
26521 _ACEOF
26522 rm -f conftest.$ac_objext
26523 if { (ac_try="$ac_compile"
26524 case "(($ac_try" in
26525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26526   *) ac_try_echo=$ac_try;;
26527 esac
26528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26529 $as_echo "$ac_try_echo") >&5
26530   (eval "$ac_compile") 2>conftest.er1
26531   ac_status=$?
26532   grep -v '^ *+' conftest.er1 >conftest.err
26533   rm -f conftest.er1
26534   cat conftest.err >&5
26535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); } && {
26537          test -z "$ac_c_werror_flag" ||
26538          test ! -s conftest.err
26539        } && test -s conftest.$ac_objext; then
26540   ac_cv_sys_file_offset_bits=64; break
26541 else
26542   $as_echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26544
26545
26546 fi
26547
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26549   ac_cv_sys_file_offset_bits=unknown
26550   break
26551 done
26552 fi
26553 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26554 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26555 case $ac_cv_sys_file_offset_bits in #(
26556   no | unknown) ;;
26557   *)
26558 cat >>confdefs.h <<_ACEOF
26559 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26560 _ACEOF
26561 ;;
26562 esac
26563 rm -rf conftest*
26564   if test $ac_cv_sys_file_offset_bits = unknown; then
26565     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26566 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26567 if test "${ac_cv_sys_large_files+set}" = set; then
26568   $as_echo_n "(cached) " >&6
26569 else
26570   while :; do
26571   cat >conftest.$ac_ext <<_ACEOF
26572 /* confdefs.h.  */
26573 _ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h.  */
26577 #include <sys/types.h>
26578  /* Check that off_t can represent 2**63 - 1 correctly.
26579     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26580     since some C++ compilers masquerading as C compilers
26581     incorrectly reject 9223372036854775807.  */
26582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26583   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26584                        && LARGE_OFF_T % 2147483647 == 1)
26585                       ? 1 : -1];
26586 int
26587 main ()
26588 {
26589
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext
26595 if { (ac_try="$ac_compile"
26596 case "(($ac_try" in
26597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598   *) ac_try_echo=$ac_try;;
26599 esac
26600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26601 $as_echo "$ac_try_echo") >&5
26602   (eval "$ac_compile") 2>conftest.er1
26603   ac_status=$?
26604   grep -v '^ *+' conftest.er1 >conftest.err
26605   rm -f conftest.er1
26606   cat conftest.err >&5
26607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); } && {
26609          test -z "$ac_c_werror_flag" ||
26610          test ! -s conftest.err
26611        } && test -s conftest.$ac_objext; then
26612   ac_cv_sys_large_files=no; break
26613 else
26614   $as_echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617
26618 fi
26619
26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621   cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627 #define _LARGE_FILES 1
26628 #include <sys/types.h>
26629  /* Check that off_t can represent 2**63 - 1 correctly.
26630     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26631     since some C++ compilers masquerading as C compilers
26632     incorrectly reject 9223372036854775807.  */
26633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26634   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26635                        && LARGE_OFF_T % 2147483647 == 1)
26636                       ? 1 : -1];
26637 int
26638 main ()
26639 {
26640
26641   ;
26642   return 0;
26643 }
26644 _ACEOF
26645 rm -f conftest.$ac_objext
26646 if { (ac_try="$ac_compile"
26647 case "(($ac_try" in
26648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649   *) ac_try_echo=$ac_try;;
26650 esac
26651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26652 $as_echo "$ac_try_echo") >&5
26653   (eval "$ac_compile") 2>conftest.er1
26654   ac_status=$?
26655   grep -v '^ *+' conftest.er1 >conftest.err
26656   rm -f conftest.er1
26657   cat conftest.err >&5
26658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } && {
26660          test -z "$ac_c_werror_flag" ||
26661          test ! -s conftest.err
26662        } && test -s conftest.$ac_objext; then
26663   ac_cv_sys_large_files=1; break
26664 else
26665   $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668
26669 fi
26670
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672   ac_cv_sys_large_files=unknown
26673   break
26674 done
26675 fi
26676 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26677 $as_echo "$ac_cv_sys_large_files" >&6; }
26678 case $ac_cv_sys_large_files in #(
26679   no | unknown) ;;
26680   *)
26681 cat >>confdefs.h <<_ACEOF
26682 #define _LARGE_FILES $ac_cv_sys_large_files
26683 _ACEOF
26684 ;;
26685 esac
26686 rm -rf conftest*
26687   fi
26688 fi
26689
26690 fi
26691
26692 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26693 # The cast to long int works around a bug in the HP C Compiler
26694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26696 # This bug is HP SR number 8606223364.
26697 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26698 $as_echo_n "checking size of off_t... " >&6; }
26699 if test "${ac_cv_sizeof_off_t+set}" = set; then
26700   $as_echo_n "(cached) " >&6
26701 else
26702   if test "$cross_compiling" = yes; then
26703   # Depending upon the size, compute the lo and hi bounds.
26704 cat >conftest.$ac_ext <<_ACEOF
26705 /* confdefs.h.  */
26706 _ACEOF
26707 cat confdefs.h >>conftest.$ac_ext
26708 cat >>conftest.$ac_ext <<_ACEOF
26709 /* end confdefs.h.  */
26710 $ac_includes_default
26711 int
26712 main ()
26713 {
26714 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26715 test_array [0] = 0
26716
26717   ;
26718   return 0;
26719 }
26720 _ACEOF
26721 rm -f conftest.$ac_objext
26722 if { (ac_try="$ac_compile"
26723 case "(($ac_try" in
26724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725   *) ac_try_echo=$ac_try;;
26726 esac
26727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26728 $as_echo "$ac_try_echo") >&5
26729   (eval "$ac_compile") 2>conftest.er1
26730   ac_status=$?
26731   grep -v '^ *+' conftest.er1 >conftest.err
26732   rm -f conftest.er1
26733   cat conftest.err >&5
26734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); } && {
26736          test -z "$ac_c_werror_flag" ||
26737          test ! -s conftest.err
26738        } && test -s conftest.$ac_objext; then
26739   ac_lo=0 ac_mid=0
26740   while :; do
26741     cat >conftest.$ac_ext <<_ACEOF
26742 /* confdefs.h.  */
26743 _ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h.  */
26747 $ac_includes_default
26748 int
26749 main ()
26750 {
26751 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26752 test_array [0] = 0
26753
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext
26759 if { (ac_try="$ac_compile"
26760 case "(($ac_try" in
26761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762   *) ac_try_echo=$ac_try;;
26763 esac
26764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26765 $as_echo "$ac_try_echo") >&5
26766   (eval "$ac_compile") 2>conftest.er1
26767   ac_status=$?
26768   grep -v '^ *+' conftest.er1 >conftest.err
26769   rm -f conftest.er1
26770   cat conftest.err >&5
26771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772   (exit $ac_status); } && {
26773          test -z "$ac_c_werror_flag" ||
26774          test ! -s conftest.err
26775        } && test -s conftest.$ac_objext; then
26776   ac_hi=$ac_mid; break
26777 else
26778   $as_echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26780
26781         ac_lo=`expr $ac_mid + 1`
26782                         if test $ac_lo -le $ac_mid; then
26783                           ac_lo= ac_hi=
26784                           break
26785                         fi
26786                         ac_mid=`expr 2 '*' $ac_mid + 1`
26787 fi
26788
26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26790   done
26791 else
26792   $as_echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26794
26795         cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801 $ac_includes_default
26802 int
26803 main ()
26804 {
26805 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26806 test_array [0] = 0
26807
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 rm -f conftest.$ac_objext
26813 if { (ac_try="$ac_compile"
26814 case "(($ac_try" in
26815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816   *) ac_try_echo=$ac_try;;
26817 esac
26818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26819 $as_echo "$ac_try_echo") >&5
26820   (eval "$ac_compile") 2>conftest.er1
26821   ac_status=$?
26822   grep -v '^ *+' conftest.er1 >conftest.err
26823   rm -f conftest.er1
26824   cat conftest.err >&5
26825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); } && {
26827          test -z "$ac_c_werror_flag" ||
26828          test ! -s conftest.err
26829        } && test -s conftest.$ac_objext; then
26830   ac_hi=-1 ac_mid=-1
26831   while :; do
26832     cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h.  */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h.  */
26838 $ac_includes_default
26839 int
26840 main ()
26841 {
26842 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
26843 test_array [0] = 0
26844
26845   ;
26846   return 0;
26847 }
26848 _ACEOF
26849 rm -f conftest.$ac_objext
26850 if { (ac_try="$ac_compile"
26851 case "(($ac_try" in
26852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853   *) ac_try_echo=$ac_try;;
26854 esac
26855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26856 $as_echo "$ac_try_echo") >&5
26857   (eval "$ac_compile") 2>conftest.er1
26858   ac_status=$?
26859   grep -v '^ *+' conftest.er1 >conftest.err
26860   rm -f conftest.er1
26861   cat conftest.err >&5
26862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); } && {
26864          test -z "$ac_c_werror_flag" ||
26865          test ! -s conftest.err
26866        } && test -s conftest.$ac_objext; then
26867   ac_lo=$ac_mid; break
26868 else
26869   $as_echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872         ac_hi=`expr '(' $ac_mid ')' - 1`
26873                         if test $ac_mid -le $ac_hi; then
26874                           ac_lo= ac_hi=
26875                           break
26876                         fi
26877                         ac_mid=`expr 2 '*' $ac_mid`
26878 fi
26879
26880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26881   done
26882 else
26883   $as_echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26885
26886         ac_lo= ac_hi=
26887 fi
26888
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890 fi
26891
26892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893 # Binary search between lo and hi bounds.
26894 while test "x$ac_lo" != "x$ac_hi"; do
26895   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26896   cat >conftest.$ac_ext <<_ACEOF
26897 /* confdefs.h.  */
26898 _ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h.  */
26902 $ac_includes_default
26903 int
26904 main ()
26905 {
26906 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26907 test_array [0] = 0
26908
26909   ;
26910   return 0;
26911 }
26912 _ACEOF
26913 rm -f conftest.$ac_objext
26914 if { (ac_try="$ac_compile"
26915 case "(($ac_try" in
26916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917   *) ac_try_echo=$ac_try;;
26918 esac
26919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26920 $as_echo "$ac_try_echo") >&5
26921   (eval "$ac_compile") 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } && {
26928          test -z "$ac_c_werror_flag" ||
26929          test ! -s conftest.err
26930        } && test -s conftest.$ac_objext; then
26931   ac_hi=$ac_mid
26932 else
26933   $as_echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936         ac_lo=`expr '(' $ac_mid ')' + 1`
26937 fi
26938
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26940 done
26941 case $ac_lo in
26942 ?*) ac_cv_sizeof_off_t=$ac_lo;;
26943 '') if test "$ac_cv_type_off_t" = yes; then
26944      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26946 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26947 See \`config.log' for more details." >&5
26948 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26949 See \`config.log' for more details." >&2;}
26950    { (exit 77); exit 77; }; }; }
26951    else
26952      ac_cv_sizeof_off_t=0
26953    fi ;;
26954 esac
26955 else
26956   cat >conftest.$ac_ext <<_ACEOF
26957 /* confdefs.h.  */
26958 _ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h.  */
26962 $ac_includes_default
26963 static long int longval () { return (long int) (sizeof (off_t)); }
26964 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
26965 #include <stdio.h>
26966 #include <stdlib.h>
26967 int
26968 main ()
26969 {
26970
26971   FILE *f = fopen ("conftest.val", "w");
26972   if (! f)
26973     return 1;
26974   if (((long int) (sizeof (off_t))) < 0)
26975     {
26976       long int i = longval ();
26977       if (i != ((long int) (sizeof (off_t))))
26978         return 1;
26979       fprintf (f, "%ld", i);
26980     }
26981   else
26982     {
26983       unsigned long int i = ulongval ();
26984       if (i != ((long int) (sizeof (off_t))))
26985         return 1;
26986       fprintf (f, "%lu", i);
26987     }
26988   /* Do not output a trailing newline, as this causes \r\n confusion
26989      on some platforms.  */
26990   return ferror (f) || fclose (f) != 0;
26991
26992   ;
26993   return 0;
26994 }
26995 _ACEOF
26996 rm -f conftest$ac_exeext
26997 if { (ac_try="$ac_link"
26998 case "(($ac_try" in
26999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27000   *) ac_try_echo=$ac_try;;
27001 esac
27002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27003 $as_echo "$ac_try_echo") >&5
27004   (eval "$ac_link") 2>&5
27005   ac_status=$?
27006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27008   { (case "(($ac_try" in
27009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010   *) ac_try_echo=$ac_try;;
27011 esac
27012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27013 $as_echo "$ac_try_echo") >&5
27014   (eval "$ac_try") 2>&5
27015   ac_status=$?
27016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017   (exit $ac_status); }; }; then
27018   ac_cv_sizeof_off_t=`cat conftest.val`
27019 else
27020   $as_echo "$as_me: program exited with status $ac_status" >&5
27021 $as_echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27023
27024 ( exit $ac_status )
27025 if test "$ac_cv_type_off_t" = yes; then
27026      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27028 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27029 See \`config.log' for more details." >&5
27030 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27031 See \`config.log' for more details." >&2;}
27032    { (exit 77); exit 77; }; }; }
27033    else
27034      ac_cv_sizeof_off_t=0
27035    fi
27036 fi
27037 rm -rf conftest.dSYM
27038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27039 fi
27040 rm -f conftest.val
27041 fi
27042 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27043 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27044
27045
27046
27047 cat >>confdefs.h <<_ACEOF
27048 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27049 _ACEOF
27050
27051
27052
27053 # If we don't have largefile support, can't handle segsize >= 2GB.
27054 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
27055    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
27056 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27057    { (exit 1); exit 1; }; }
27058 fi
27059
27060 # SunOS doesn't handle negative byte comparisons properly with +/- return
27061 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27062 $as_echo_n "checking for working memcmp... " >&6; }
27063 if test "${ac_cv_func_memcmp_working+set}" = set; then
27064   $as_echo_n "(cached) " >&6
27065 else
27066   if test "$cross_compiling" = yes; then
27067   ac_cv_func_memcmp_working=no
27068 else
27069   cat >conftest.$ac_ext <<_ACEOF
27070 /* confdefs.h.  */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h.  */
27075 $ac_includes_default
27076 int
27077 main ()
27078 {
27079
27080   /* Some versions of memcmp are not 8-bit clean.  */
27081   char c0 = '\100', c1 = '\200', c2 = '\201';
27082   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27083     return 1;
27084
27085   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27086      or more and with at least one buffer not starting on a 4-byte boundary.
27087      William Lewis provided this test program.   */
27088   {
27089     char foo[21];
27090     char bar[21];
27091     int i;
27092     for (i = 0; i < 4; i++)
27093       {
27094         char *a = foo + i;
27095         char *b = bar + i;
27096         strcpy (a, "--------01111111");
27097         strcpy (b, "--------10000000");
27098         if (memcmp (a, b, 16) >= 0)
27099           return 1;
27100       }
27101     return 0;
27102   }
27103
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest$ac_exeext
27109 if { (ac_try="$ac_link"
27110 case "(($ac_try" in
27111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112   *) ac_try_echo=$ac_try;;
27113 esac
27114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27115 $as_echo "$ac_try_echo") >&5
27116   (eval "$ac_link") 2>&5
27117   ac_status=$?
27118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27120   { (case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27125 $as_echo "$ac_try_echo") >&5
27126   (eval "$ac_try") 2>&5
27127   ac_status=$?
27128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; }; then
27130   ac_cv_func_memcmp_working=yes
27131 else
27132   $as_echo "$as_me: program exited with status $ac_status" >&5
27133 $as_echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ( exit $ac_status )
27137 ac_cv_func_memcmp_working=no
27138 fi
27139 rm -rf conftest.dSYM
27140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27141 fi
27142
27143
27144 fi
27145 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27146 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27147 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27148   *" memcmp.$ac_objext "* ) ;;
27149   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27150  ;;
27151 esac
27152
27153
27154
27155
27156 # Select semaphore implementation type.
27157 if test "$PORTNAME" != "win32"; then
27158   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27159
27160 cat >>confdefs.h <<\_ACEOF
27161 #define USE_NAMED_POSIX_SEMAPHORES 1
27162 _ACEOF
27163
27164     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27165   else
27166     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27167
27168 cat >>confdefs.h <<\_ACEOF
27169 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27170 _ACEOF
27171
27172       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27173     else
27174
27175 cat >>confdefs.h <<\_ACEOF
27176 #define USE_SYSV_SEMAPHORES 1
27177 _ACEOF
27178
27179       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27180     fi
27181   fi
27182 else
27183
27184 cat >>confdefs.h <<\_ACEOF
27185 #define USE_WIN32_SEMAPHORES 1
27186 _ACEOF
27187
27188   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27189 fi
27190
27191
27192 # Select shared-memory implementation type.
27193 if test "$PORTNAME" != "win32"; then
27194
27195 cat >>confdefs.h <<\_ACEOF
27196 #define USE_SYSV_SHARED_MEMORY 1
27197 _ACEOF
27198
27199   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27200 else
27201
27202 cat >>confdefs.h <<\_ACEOF
27203 #define USE_WIN32_SHARED_MEMORY 1
27204 _ACEOF
27205
27206   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27207 fi
27208
27209 # If not set in template file, set bytes to use libc memset()
27210 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27211   MEMSET_LOOP_LIMIT=1024
27212 fi
27213
27214 cat >>confdefs.h <<_ACEOF
27215 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27216 _ACEOF
27217
27218
27219
27220 if test "$enable_nls" = yes ; then
27221
27222   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27223 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27224 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27225   $as_echo_n "(cached) " >&6
27226 else
27227   ac_func_search_save_LIBS=$LIBS
27228 cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h.  */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h.  */
27234
27235 /* Override any GCC internal prototype to avoid an error.
27236    Use char because int might match the return type of a GCC
27237    builtin and then its argument prototype would still apply.  */
27238 #ifdef __cplusplus
27239 extern "C"
27240 #endif
27241 char bind_textdomain_codeset ();
27242 int
27243 main ()
27244 {
27245 return bind_textdomain_codeset ();
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 for ac_lib in '' intl; do
27251   if test -z "$ac_lib"; then
27252     ac_res="none required"
27253   else
27254     ac_res=-l$ac_lib
27255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27256   fi
27257   rm -f conftest.$ac_objext conftest$ac_exeext
27258 if { (ac_try="$ac_link"
27259 case "(($ac_try" in
27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261   *) ac_try_echo=$ac_try;;
27262 esac
27263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27264 $as_echo "$ac_try_echo") >&5
27265   (eval "$ac_link") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } && {
27272          test -z "$ac_c_werror_flag" ||
27273          test ! -s conftest.err
27274        } && test -s conftest$ac_exeext && {
27275          test "$cross_compiling" = yes ||
27276          $as_test_x conftest$ac_exeext
27277        }; then
27278   ac_cv_search_bind_textdomain_codeset=$ac_res
27279 else
27280   $as_echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27282
27283
27284 fi
27285
27286 rm -rf conftest.dSYM
27287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27288       conftest$ac_exeext
27289   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27290   break
27291 fi
27292 done
27293 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27294   :
27295 else
27296   ac_cv_search_bind_textdomain_codeset=no
27297 fi
27298 rm conftest.$ac_ext
27299 LIBS=$ac_func_search_save_LIBS
27300 fi
27301 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27302 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27303 ac_res=$ac_cv_search_bind_textdomain_codeset
27304 if test "$ac_res" != no; then
27305   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27306
27307 else
27308   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27309 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27310    { (exit 1); exit 1; }; }
27311 fi
27312
27313   if test "${ac_cv_header_libintl_h+set}" = set; then
27314   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27315 $as_echo_n "checking for libintl.h... " >&6; }
27316 if test "${ac_cv_header_libintl_h+set}" = set; then
27317   $as_echo_n "(cached) " >&6
27318 fi
27319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27320 $as_echo "$ac_cv_header_libintl_h" >&6; }
27321 else
27322   # Is the header compilable?
27323 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27324 $as_echo_n "checking libintl.h usability... " >&6; }
27325 cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331 $ac_includes_default
27332 #include <libintl.h>
27333 _ACEOF
27334 rm -f conftest.$ac_objext
27335 if { (ac_try="$ac_compile"
27336 case "(($ac_try" in
27337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338   *) ac_try_echo=$ac_try;;
27339 esac
27340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27341 $as_echo "$ac_try_echo") >&5
27342   (eval "$ac_compile") 2>conftest.er1
27343   ac_status=$?
27344   grep -v '^ *+' conftest.er1 >conftest.err
27345   rm -f conftest.er1
27346   cat conftest.err >&5
27347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); } && {
27349          test -z "$ac_c_werror_flag" ||
27350          test ! -s conftest.err
27351        } && test -s conftest.$ac_objext; then
27352   ac_header_compiler=yes
27353 else
27354   $as_echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27356
27357         ac_header_compiler=no
27358 fi
27359
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27362 $as_echo "$ac_header_compiler" >&6; }
27363
27364 # Is the header present?
27365 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27366 $as_echo_n "checking libintl.h presence... " >&6; }
27367 cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h.  */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h.  */
27373 #include <libintl.h>
27374 _ACEOF
27375 if { (ac_try="$ac_cpp conftest.$ac_ext"
27376 case "(($ac_try" in
27377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378   *) ac_try_echo=$ac_try;;
27379 esac
27380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27381 $as_echo "$ac_try_echo") >&5
27382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27383   ac_status=$?
27384   grep -v '^ *+' conftest.er1 >conftest.err
27385   rm -f conftest.er1
27386   cat conftest.err >&5
27387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); } >/dev/null && {
27389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27390          test ! -s conftest.err
27391        }; then
27392   ac_header_preproc=yes
27393 else
27394   $as_echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27396
27397   ac_header_preproc=no
27398 fi
27399
27400 rm -f conftest.err conftest.$ac_ext
27401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27402 $as_echo "$ac_header_preproc" >&6; }
27403
27404 # So?  What about this header?
27405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27406   yes:no: )
27407     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27408 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27409     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27410 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27411     ac_header_preproc=yes
27412     ;;
27413   no:yes:* )
27414     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27415 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27416     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
27417 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
27418     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27419 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27420     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
27421 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27422     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27423 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27424     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27425 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27426     ( cat <<\_ASBOX
27427 ## ---------------------------------------- ##
27428 ## Report this to pgsql-bugs@postgresql.org ##
27429 ## ---------------------------------------- ##
27430 _ASBOX
27431      ) | sed "s/^/$as_me: WARNING:     /" >&2
27432     ;;
27433 esac
27434 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27435 $as_echo_n "checking for libintl.h... " >&6; }
27436 if test "${ac_cv_header_libintl_h+set}" = set; then
27437   $as_echo_n "(cached) " >&6
27438 else
27439   ac_cv_header_libintl_h=$ac_header_preproc
27440 fi
27441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27442 $as_echo "$ac_cv_header_libintl_h" >&6; }
27443
27444 fi
27445 if test "x$ac_cv_header_libintl_h" = x""yes; then
27446   :
27447 else
27448   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27449 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27450    { (exit 1); exit 1; }; }
27451 fi
27452
27453
27454   for ac_prog in msgfmt
27455 do
27456   # Extract the first word of "$ac_prog", so it can be a program name with args.
27457 set dummy $ac_prog; ac_word=$2
27458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27459 $as_echo_n "checking for $ac_word... " >&6; }
27460 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27461   $as_echo_n "(cached) " >&6
27462 else
27463   if test -n "$MSGFMT"; then
27464   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27465 else
27466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27467 for as_dir in $PATH
27468 do
27469   IFS=$as_save_IFS
27470   test -z "$as_dir" && as_dir=.
27471   for ac_exec_ext in '' $ac_executable_extensions; do
27472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27473     ac_cv_prog_MSGFMT="$ac_prog"
27474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27475     break 2
27476   fi
27477 done
27478 done
27479 IFS=$as_save_IFS
27480
27481 fi
27482 fi
27483 MSGFMT=$ac_cv_prog_MSGFMT
27484 if test -n "$MSGFMT"; then
27485   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27486 $as_echo "$MSGFMT" >&6; }
27487 else
27488   { $as_echo "$as_me:$LINENO: result: no" >&5
27489 $as_echo "no" >&6; }
27490 fi
27491
27492
27493   test -n "$MSGFMT" && break
27494 done
27495
27496   if test -z "$MSGFMT"; then
27497     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27498 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27499    { (exit 1); exit 1; }; }
27500   fi
27501   for ac_prog in msgmerge
27502 do
27503   # Extract the first word of "$ac_prog", so it can be a program name with args.
27504 set dummy $ac_prog; ac_word=$2
27505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27506 $as_echo_n "checking for $ac_word... " >&6; }
27507 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27508   $as_echo_n "(cached) " >&6
27509 else
27510   if test -n "$MSGMERGE"; then
27511   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27512 else
27513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27514 for as_dir in $PATH
27515 do
27516   IFS=$as_save_IFS
27517   test -z "$as_dir" && as_dir=.
27518   for ac_exec_ext in '' $ac_executable_extensions; do
27519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27520     ac_cv_prog_MSGMERGE="$ac_prog"
27521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27522     break 2
27523   fi
27524 done
27525 done
27526 IFS=$as_save_IFS
27527
27528 fi
27529 fi
27530 MSGMERGE=$ac_cv_prog_MSGMERGE
27531 if test -n "$MSGMERGE"; then
27532   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27533 $as_echo "$MSGMERGE" >&6; }
27534 else
27535   { $as_echo "$as_me:$LINENO: result: no" >&5
27536 $as_echo "no" >&6; }
27537 fi
27538
27539
27540   test -n "$MSGMERGE" && break
27541 done
27542
27543   for ac_prog in xgettext
27544 do
27545   # Extract the first word of "$ac_prog", so it can be a program name with args.
27546 set dummy $ac_prog; ac_word=$2
27547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27548 $as_echo_n "checking for $ac_word... " >&6; }
27549 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27550   $as_echo_n "(cached) " >&6
27551 else
27552   if test -n "$XGETTEXT"; then
27553   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27554 else
27555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27556 for as_dir in $PATH
27557 do
27558   IFS=$as_save_IFS
27559   test -z "$as_dir" && as_dir=.
27560   for ac_exec_ext in '' $ac_executable_extensions; do
27561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27562     ac_cv_prog_XGETTEXT="$ac_prog"
27563     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27564     break 2
27565   fi
27566 done
27567 done
27568 IFS=$as_save_IFS
27569
27570 fi
27571 fi
27572 XGETTEXT=$ac_cv_prog_XGETTEXT
27573 if test -n "$XGETTEXT"; then
27574   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27575 $as_echo "$XGETTEXT" >&6; }
27576 else
27577   { $as_echo "$as_me:$LINENO: result: no" >&5
27578 $as_echo "no" >&6; }
27579 fi
27580
27581
27582   test -n "$XGETTEXT" && break
27583 done
27584
27585
27586 fi
27587
27588 # Check for Tcl configuration script tclConfig.sh
27589 if test "$with_tcl" = yes; then
27590     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27591 do
27592   # Extract the first word of "$ac_prog", so it can be a program name with args.
27593 set dummy $ac_prog; ac_word=$2
27594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27595 $as_echo_n "checking for $ac_word... " >&6; }
27596 if test "${ac_cv_path_TCLSH+set}" = set; then
27597   $as_echo_n "(cached) " >&6
27598 else
27599   case $TCLSH in
27600   [\\/]* | ?:[\\/]*)
27601   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27602   ;;
27603   *)
27604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27605 for as_dir in $PATH
27606 do
27607   IFS=$as_save_IFS
27608   test -z "$as_dir" && as_dir=.
27609   for ac_exec_ext in '' $ac_executable_extensions; do
27610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27611     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27613     break 2
27614   fi
27615 done
27616 done
27617 IFS=$as_save_IFS
27618
27619   ;;
27620 esac
27621 fi
27622 TCLSH=$ac_cv_path_TCLSH
27623 if test -n "$TCLSH"; then
27624   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27625 $as_echo "$TCLSH" >&6; }
27626 else
27627   { $as_echo "$as_me:$LINENO: result: no" >&5
27628 $as_echo "no" >&6; }
27629 fi
27630
27631
27632   test -n "$TCLSH" && break
27633 done
27634
27635 if test x"$TCLSH" = x""; then
27636   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27637 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27638    { (exit 1); exit 1; }; }
27639 fi
27640
27641 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27642 $as_echo_n "checking for tclConfig.sh... " >&6; }
27643 # Let user override test
27644 if test -z "$TCL_CONFIG_SH"; then
27645     pgac_test_dirs="$with_tclconfig"
27646
27647     set X $pgac_test_dirs; shift
27648     if test $# -eq 0; then
27649         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27650 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27651    { (exit 1); exit 1; }; }
27652         set X `echo 'puts $auto_path' | $TCLSH`; shift
27653     fi
27654
27655     for pgac_dir do
27656         if test -r "$pgac_dir/tclConfig.sh"; then
27657             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27658             break
27659         fi
27660     done
27661 fi
27662
27663 if test -z "$TCL_CONFIG_SH"; then
27664     { $as_echo "$as_me:$LINENO: result: no" >&5
27665 $as_echo "no" >&6; }
27666     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27667 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27668    { (exit 1); exit 1; }; }
27669 else
27670     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27671 $as_echo "$TCL_CONFIG_SH" >&6; }
27672 fi
27673
27674
27675
27676     . "$TCL_CONFIG_SH"
27677 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27678 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27679 eval TCL_LIBS=\"$TCL_LIBS\"
27680 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27681 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27682
27683         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27684     ac_save_CPPFLAGS=$CPPFLAGS
27685     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27686     if test "${ac_cv_header_tcl_h+set}" = set; then
27687   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27688 $as_echo_n "checking for tcl.h... " >&6; }
27689 if test "${ac_cv_header_tcl_h+set}" = set; then
27690   $as_echo_n "(cached) " >&6
27691 fi
27692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27693 $as_echo "$ac_cv_header_tcl_h" >&6; }
27694 else
27695   # Is the header compilable?
27696 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27697 $as_echo_n "checking tcl.h usability... " >&6; }
27698 cat >conftest.$ac_ext <<_ACEOF
27699 /* confdefs.h.  */
27700 _ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h.  */
27704 $ac_includes_default
27705 #include <tcl.h>
27706 _ACEOF
27707 rm -f conftest.$ac_objext
27708 if { (ac_try="$ac_compile"
27709 case "(($ac_try" in
27710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27711   *) ac_try_echo=$ac_try;;
27712 esac
27713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27714 $as_echo "$ac_try_echo") >&5
27715   (eval "$ac_compile") 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } && {
27722          test -z "$ac_c_werror_flag" ||
27723          test ! -s conftest.err
27724        } && test -s conftest.$ac_objext; then
27725   ac_header_compiler=yes
27726 else
27727   $as_echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730         ac_header_compiler=no
27731 fi
27732
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27735 $as_echo "$ac_header_compiler" >&6; }
27736
27737 # Is the header present?
27738 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
27739 $as_echo_n "checking tcl.h presence... " >&6; }
27740 cat >conftest.$ac_ext <<_ACEOF
27741 /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746 #include <tcl.h>
27747 _ACEOF
27748 if { (ac_try="$ac_cpp conftest.$ac_ext"
27749 case "(($ac_try" in
27750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751   *) ac_try_echo=$ac_try;;
27752 esac
27753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754 $as_echo "$ac_try_echo") >&5
27755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } >/dev/null && {
27762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27763          test ! -s conftest.err
27764        }; then
27765   ac_header_preproc=yes
27766 else
27767   $as_echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27769
27770   ac_header_preproc=no
27771 fi
27772
27773 rm -f conftest.err conftest.$ac_ext
27774 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27775 $as_echo "$ac_header_preproc" >&6; }
27776
27777 # So?  What about this header?
27778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27779   yes:no: )
27780     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27781 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27782     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
27783 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
27784     ac_header_preproc=yes
27785     ;;
27786   no:yes:* )
27787     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
27788 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
27789     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
27790 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
27791     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
27792 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
27793     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
27794 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27795     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
27796 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
27797     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
27798 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
27799     ( cat <<\_ASBOX
27800 ## ---------------------------------------- ##
27801 ## Report this to pgsql-bugs@postgresql.org ##
27802 ## ---------------------------------------- ##
27803 _ASBOX
27804      ) | sed "s/^/$as_me: WARNING:     /" >&2
27805     ;;
27806 esac
27807 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27808 $as_echo_n "checking for tcl.h... " >&6; }
27809 if test "${ac_cv_header_tcl_h+set}" = set; then
27810   $as_echo_n "(cached) " >&6
27811 else
27812   ac_cv_header_tcl_h=$ac_header_preproc
27813 fi
27814 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27815 $as_echo "$ac_cv_header_tcl_h" >&6; }
27816
27817 fi
27818 if test "x$ac_cv_header_tcl_h" = x""yes; then
27819   :
27820 else
27821   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
27822 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
27823    { (exit 1); exit 1; }; }
27824 fi
27825
27826
27827     CPPFLAGS=$ac_save_CPPFLAGS
27828 fi
27829
27830 #
27831 # Check for DocBook and tools
27832 #
27833 for ac_prog in onsgmls nsgmls
27834 do
27835   # Extract the first word of "$ac_prog", so it can be a program name with args.
27836 set dummy $ac_prog; ac_word=$2
27837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27838 $as_echo_n "checking for $ac_word... " >&6; }
27839 if test "${ac_cv_prog_NSGMLS+set}" = set; then
27840   $as_echo_n "(cached) " >&6
27841 else
27842   if test -n "$NSGMLS"; then
27843   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
27844 else
27845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27846 for as_dir in $PATH
27847 do
27848   IFS=$as_save_IFS
27849   test -z "$as_dir" && as_dir=.
27850   for ac_exec_ext in '' $ac_executable_extensions; do
27851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27852     ac_cv_prog_NSGMLS="$ac_prog"
27853     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27854     break 2
27855   fi
27856 done
27857 done
27858 IFS=$as_save_IFS
27859
27860 fi
27861 fi
27862 NSGMLS=$ac_cv_prog_NSGMLS
27863 if test -n "$NSGMLS"; then
27864   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
27865 $as_echo "$NSGMLS" >&6; }
27866 else
27867   { $as_echo "$as_me:$LINENO: result: no" >&5
27868 $as_echo "no" >&6; }
27869 fi
27870
27871
27872   test -n "$NSGMLS" && break
27873 done
27874
27875 for ac_prog in openjade jade
27876 do
27877   # Extract the first word of "$ac_prog", so it can be a program name with args.
27878 set dummy $ac_prog; ac_word=$2
27879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27880 $as_echo_n "checking for $ac_word... " >&6; }
27881 if test "${ac_cv_prog_JADE+set}" = set; then
27882   $as_echo_n "(cached) " >&6
27883 else
27884   if test -n "$JADE"; then
27885   ac_cv_prog_JADE="$JADE" # Let the user override the test.
27886 else
27887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27888 for as_dir in $PATH
27889 do
27890   IFS=$as_save_IFS
27891   test -z "$as_dir" && as_dir=.
27892   for ac_exec_ext in '' $ac_executable_extensions; do
27893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27894     ac_cv_prog_JADE="$ac_prog"
27895     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27896     break 2
27897   fi
27898 done
27899 done
27900 IFS=$as_save_IFS
27901
27902 fi
27903 fi
27904 JADE=$ac_cv_prog_JADE
27905 if test -n "$JADE"; then
27906   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
27907 $as_echo "$JADE" >&6; }
27908 else
27909   { $as_echo "$as_me:$LINENO: result: no" >&5
27910 $as_echo "no" >&6; }
27911 fi
27912
27913
27914   test -n "$JADE" && break
27915 done
27916
27917
27918 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
27919 $as_echo_n "checking for DocBook V4.2... " >&6; }
27920 if test "${pgac_cv_check_docbook+set}" = set; then
27921   $as_echo_n "(cached) " >&6
27922 else
27923   cat >conftest.sgml <<EOF
27924 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
27925 <book>
27926  <title>test</title>
27927  <chapter>
27928   <title>random</title>
27929    <sect1>
27930     <title>testsect</title>
27931     <para>text</para>
27932   </sect1>
27933  </chapter>
27934 </book>
27935 EOF
27936
27937 pgac_cv_check_docbook=no
27938
27939 if test -n "$NSGMLS"; then
27940   $NSGMLS -s conftest.sgml 1>&5 2>&1
27941   if test $? -eq 0; then
27942     pgac_cv_check_docbook=yes
27943   fi
27944 fi
27945 rm -f conftest.sgml
27946 fi
27947 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
27948 $as_echo "$pgac_cv_check_docbook" >&6; }
27949
27950 have_docbook=$pgac_cv_check_docbook
27951
27952
27953 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
27954 $as_echo_n "checking for DocBook stylesheets... " >&6; }
27955 if test "${pgac_cv_path_stylesheets+set}" = set; then
27956   $as_echo_n "(cached) " >&6
27957 else
27958   if test -n "$DOCBOOKSTYLE"; then
27959   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
27960 else
27961   for pgac_prefix in /usr /usr/local /opt /sw; do
27962     for pgac_infix in share lib; do
27963       for pgac_postfix in \
27964         sgml/stylesheets/nwalsh-modular \
27965         sgml/stylesheets/docbook \
27966         sgml/stylesheets/dsssl/docbook \
27967         sgml/docbook-dsssl \
27968         sgml/docbook/dsssl/modular \
27969         sgml/docbook/stylesheet/dsssl/modular \
27970         sgml/docbook/dsssl-stylesheets \
27971         sgml/dsssl/docbook-dsssl-nwalsh
27972       do
27973         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
27974         if test -r "$pgac_candidate/html/docbook.dsl" \
27975            && test -r "$pgac_candidate/print/docbook.dsl"
27976         then
27977           pgac_cv_path_stylesheets=$pgac_candidate
27978           break 3
27979         fi
27980       done
27981     done
27982   done
27983 fi
27984 fi
27985
27986 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
27987
27988 if test -n "$DOCBOOKSTYLE"; then
27989   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
27990 $as_echo "$DOCBOOKSTYLE" >&6; }
27991 else
27992   { $as_echo "$as_me:$LINENO: result: no" >&5
27993 $as_echo "no" >&6; }
27994 fi
27995 if test -n "$DOCBOOKSTYLE"; then
27996   for ac_prog in collateindex.pl
27997 do
27998   # Extract the first word of "$ac_prog", so it can be a program name with args.
27999 set dummy $ac_prog; ac_word=$2
28000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28001 $as_echo_n "checking for $ac_word... " >&6; }
28002 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28003   $as_echo_n "(cached) " >&6
28004 else
28005   case $COLLATEINDEX in
28006   [\\/]* | ?:[\\/]*)
28007   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28008   ;;
28009   *)
28010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28011 for as_dir in $DOCBOOKSTYLE/bin $PATH
28012 do
28013   IFS=$as_save_IFS
28014   test -z "$as_dir" && as_dir=.
28015   for ac_exec_ext in '' $ac_executable_extensions; do
28016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28017     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28018     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28019     break 2
28020   fi
28021 done
28022 done
28023 IFS=$as_save_IFS
28024
28025   ;;
28026 esac
28027 fi
28028 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28029 if test -n "$COLLATEINDEX"; then
28030   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28031 $as_echo "$COLLATEINDEX" >&6; }
28032 else
28033   { $as_echo "$as_me:$LINENO: result: no" >&5
28034 $as_echo "no" >&6; }
28035 fi
28036
28037
28038   test -n "$COLLATEINDEX" && break
28039 done
28040
28041 else
28042   for ac_prog in collateindex.pl
28043 do
28044   # Extract the first word of "$ac_prog", so it can be a program name with args.
28045 set dummy $ac_prog; ac_word=$2
28046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28047 $as_echo_n "checking for $ac_word... " >&6; }
28048 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28049   $as_echo_n "(cached) " >&6
28050 else
28051   case $COLLATEINDEX in
28052   [\\/]* | ?:[\\/]*)
28053   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28054   ;;
28055   *)
28056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28057 for as_dir in $PATH
28058 do
28059   IFS=$as_save_IFS
28060   test -z "$as_dir" && as_dir=.
28061   for ac_exec_ext in '' $ac_executable_extensions; do
28062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28063     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28064     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28065     break 2
28066   fi
28067 done
28068 done
28069 IFS=$as_save_IFS
28070
28071   ;;
28072 esac
28073 fi
28074 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28075 if test -n "$COLLATEINDEX"; then
28076   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28077 $as_echo "$COLLATEINDEX" >&6; }
28078 else
28079   { $as_echo "$as_me:$LINENO: result: no" >&5
28080 $as_echo "no" >&6; }
28081 fi
28082
28083
28084   test -n "$COLLATEINDEX" && break
28085 done
28086
28087 fi
28088 for ac_prog in xsltproc
28089 do
28090   # Extract the first word of "$ac_prog", so it can be a program name with args.
28091 set dummy $ac_prog; ac_word=$2
28092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28093 $as_echo_n "checking for $ac_word... " >&6; }
28094 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28095   $as_echo_n "(cached) " >&6
28096 else
28097   if test -n "$XSLTPROC"; then
28098   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28099 else
28100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28101 for as_dir in $PATH
28102 do
28103   IFS=$as_save_IFS
28104   test -z "$as_dir" && as_dir=.
28105   for ac_exec_ext in '' $ac_executable_extensions; do
28106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28107     ac_cv_prog_XSLTPROC="$ac_prog"
28108     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28109     break 2
28110   fi
28111 done
28112 done
28113 IFS=$as_save_IFS
28114
28115 fi
28116 fi
28117 XSLTPROC=$ac_cv_prog_XSLTPROC
28118 if test -n "$XSLTPROC"; then
28119   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28120 $as_echo "$XSLTPROC" >&6; }
28121 else
28122   { $as_echo "$as_me:$LINENO: result: no" >&5
28123 $as_echo "no" >&6; }
28124 fi
28125
28126
28127   test -n "$XSLTPROC" && break
28128 done
28129
28130 for ac_prog in osx sgml2xml sx
28131 do
28132   # Extract the first word of "$ac_prog", so it can be a program name with args.
28133 set dummy $ac_prog; ac_word=$2
28134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28135 $as_echo_n "checking for $ac_word... " >&6; }
28136 if test "${ac_cv_prog_OSX+set}" = set; then
28137   $as_echo_n "(cached) " >&6
28138 else
28139   if test -n "$OSX"; then
28140   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28141 else
28142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28143 for as_dir in $PATH
28144 do
28145   IFS=$as_save_IFS
28146   test -z "$as_dir" && as_dir=.
28147   for ac_exec_ext in '' $ac_executable_extensions; do
28148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28149     ac_cv_prog_OSX="$ac_prog"
28150     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28151     break 2
28152   fi
28153 done
28154 done
28155 IFS=$as_save_IFS
28156
28157 fi
28158 fi
28159 OSX=$ac_cv_prog_OSX
28160 if test -n "$OSX"; then
28161   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28162 $as_echo "$OSX" >&6; }
28163 else
28164   { $as_echo "$as_me:$LINENO: result: no" >&5
28165 $as_echo "no" >&6; }
28166 fi
28167
28168
28169   test -n "$OSX" && break
28170 done
28171
28172
28173 # Thread testing
28174
28175 # We have to run the thread test near the end so we have all our symbols
28176 # defined.  Cross compiling throws a warning.
28177 #
28178 if test "$enable_thread_safety" = yes; then
28179 if test "$PORTNAME" != "win32"
28180 then
28181 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28182 $as_echo_n "checking thread safety of required library functions... " >&6; }
28183
28184 _CFLAGS="$CFLAGS"
28185 _LIBS="$LIBS"
28186 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28187 LIBS="$LIBS $PTHREAD_LIBS"
28188 if test "$cross_compiling" = yes; then
28189   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28190 $as_echo "maybe" >&6; }
28191   { $as_echo "$as_me:$LINENO: WARNING:
28192 *** Skipping thread test program because of cross-compile build.
28193 *** Run the program in src/test/thread on the target machine.
28194 " >&5
28195 $as_echo "$as_me: WARNING:
28196 *** Skipping thread test program because of cross-compile build.
28197 *** Run the program in src/test/thread on the target machine.
28198 " >&2;}
28199 else
28200   cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206 #include "$srcdir/src/test/thread/thread_test.c"
28207 _ACEOF
28208 rm -f conftest$ac_exeext
28209 if { (ac_try="$ac_link"
28210 case "(($ac_try" in
28211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212   *) ac_try_echo=$ac_try;;
28213 esac
28214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28215 $as_echo "$ac_try_echo") >&5
28216   (eval "$ac_link") 2>&5
28217   ac_status=$?
28218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28220   { (case "(($ac_try" in
28221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222   *) ac_try_echo=$ac_try;;
28223 esac
28224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28225 $as_echo "$ac_try_echo") >&5
28226   (eval "$ac_try") 2>&5
28227   ac_status=$?
28228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229   (exit $ac_status); }; }; then
28230   { $as_echo "$as_me:$LINENO: result: yes" >&5
28231 $as_echo "yes" >&6; }
28232 else
28233   $as_echo "$as_me: program exited with status $ac_status" >&5
28234 $as_echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28236
28237 ( exit $ac_status )
28238 { $as_echo "$as_me:$LINENO: result: no" >&5
28239 $as_echo "no" >&6; }
28240   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28241 This platform is not thread-safe.  Check the file 'config.log' or compile
28242 and run src/test/thread/thread_test for the exact reason.
28243 Use --disable-thread-safety to disable thread safety." >&5
28244 $as_echo "$as_me: error: thread test program failed
28245 This platform is not thread-safe.  Check the file 'config.log' or compile
28246 and run src/test/thread/thread_test for the exact reason.
28247 Use --disable-thread-safety to disable thread safety." >&2;}
28248    { (exit 1); exit 1; }; }
28249 fi
28250 rm -rf conftest.dSYM
28251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28252 fi
28253
28254
28255 CFLAGS="$_CFLAGS"
28256 LIBS="$_LIBS"
28257 else
28258 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28259 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28260 fi
28261 fi
28262
28263 # If compiler will take -Wl,--as-needed (or various platform-specific
28264 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28265 # trying to filter LIBS to the minimum for each executable.
28266 # (Note that shared library links won't use this switch, though.)
28267 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28268 # libreadline; therefore we postpone testing it until we know what library
28269 # dependencies readline has.  The test code will try to link with $LIBS.
28270 if test "$with_readline" = yes; then
28271   link_test_func=readline
28272 else
28273   link_test_func=exit
28274 fi
28275
28276 if test "$PORTNAME" = "darwin"; then
28277   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28278 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28279 pgac_save_LDFLAGS=$LDFLAGS
28280 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28281 if test "$cross_compiling" = yes; then
28282   LDFLAGS="$pgac_save_LDFLAGS"
28283                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28284 $as_echo "assuming no" >&6; }
28285 else
28286   cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h.  */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h.  */
28292 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28293 int
28294 main ()
28295 {
28296
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest$ac_exeext
28302 if { (ac_try="$ac_link"
28303 case "(($ac_try" in
28304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305   *) ac_try_echo=$ac_try;;
28306 esac
28307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28308 $as_echo "$ac_try_echo") >&5
28309   (eval "$ac_link") 2>&5
28310   ac_status=$?
28311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28313   { (case "(($ac_try" in
28314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315   *) ac_try_echo=$ac_try;;
28316 esac
28317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28318 $as_echo "$ac_try_echo") >&5
28319   (eval "$ac_try") 2>&5
28320   ac_status=$?
28321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); }; }; then
28323   { $as_echo "$as_me:$LINENO: result: yes" >&5
28324 $as_echo "yes" >&6; }
28325 else
28326   $as_echo "$as_me: program exited with status $ac_status" >&5
28327 $as_echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28329
28330 ( exit $ac_status )
28331 LDFLAGS="$pgac_save_LDFLAGS"
28332                { $as_echo "$as_me:$LINENO: result: no" >&5
28333 $as_echo "no" >&6; }
28334 fi
28335 rm -rf conftest.dSYM
28336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28337 fi
28338
28339
28340
28341 elif test "$PORTNAME" = "openbsd"; then
28342   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28343 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28344 pgac_save_LDFLAGS=$LDFLAGS
28345 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28346 if test "$cross_compiling" = yes; then
28347   LDFLAGS="$pgac_save_LDFLAGS"
28348                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28349 $as_echo "assuming no" >&6; }
28350 else
28351   cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h.  */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h.  */
28357 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28358 int
28359 main ()
28360 {
28361
28362   ;
28363   return 0;
28364 }
28365 _ACEOF
28366 rm -f conftest$ac_exeext
28367 if { (ac_try="$ac_link"
28368 case "(($ac_try" in
28369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370   *) ac_try_echo=$ac_try;;
28371 esac
28372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28373 $as_echo "$ac_try_echo") >&5
28374   (eval "$ac_link") 2>&5
28375   ac_status=$?
28376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28378   { (case "(($ac_try" in
28379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380   *) ac_try_echo=$ac_try;;
28381 esac
28382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28383 $as_echo "$ac_try_echo") >&5
28384   (eval "$ac_try") 2>&5
28385   ac_status=$?
28386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); }; }; then
28388   { $as_echo "$as_me:$LINENO: result: yes" >&5
28389 $as_echo "yes" >&6; }
28390 else
28391   $as_echo "$as_me: program exited with status $ac_status" >&5
28392 $as_echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28394
28395 ( exit $ac_status )
28396 LDFLAGS="$pgac_save_LDFLAGS"
28397                { $as_echo "$as_me:$LINENO: result: no" >&5
28398 $as_echo "no" >&6; }
28399 fi
28400 rm -rf conftest.dSYM
28401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28402 fi
28403
28404
28405
28406 else
28407   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28408 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28409 pgac_save_LDFLAGS=$LDFLAGS
28410 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28411 if test "$cross_compiling" = yes; then
28412   LDFLAGS="$pgac_save_LDFLAGS"
28413                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28414 $as_echo "assuming no" >&6; }
28415 else
28416   cat >conftest.$ac_ext <<_ACEOF
28417 /* confdefs.h.  */
28418 _ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h.  */
28422 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28423 int
28424 main ()
28425 {
28426
28427   ;
28428   return 0;
28429 }
28430 _ACEOF
28431 rm -f conftest$ac_exeext
28432 if { (ac_try="$ac_link"
28433 case "(($ac_try" in
28434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435   *) ac_try_echo=$ac_try;;
28436 esac
28437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28438 $as_echo "$ac_try_echo") >&5
28439   (eval "$ac_link") 2>&5
28440   ac_status=$?
28441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28443   { (case "(($ac_try" in
28444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445   *) ac_try_echo=$ac_try;;
28446 esac
28447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28448 $as_echo "$ac_try_echo") >&5
28449   (eval "$ac_try") 2>&5
28450   ac_status=$?
28451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; }; then
28453   { $as_echo "$as_me:$LINENO: result: yes" >&5
28454 $as_echo "yes" >&6; }
28455 else
28456   $as_echo "$as_me: program exited with status $ac_status" >&5
28457 $as_echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28459
28460 ( exit $ac_status )
28461 LDFLAGS="$pgac_save_LDFLAGS"
28462                { $as_echo "$as_me:$LINENO: result: no" >&5
28463 $as_echo "no" >&6; }
28464 fi
28465 rm -rf conftest.dSYM
28466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28467 fi
28468
28469
28470
28471 fi
28472
28473
28474 # Begin output steps
28475
28476 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28477 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28478 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28479 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28480 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28481 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28482
28483 # Create compiler version string
28484 if test x"$GCC" = x"yes" ; then
28485   cc_string="GCC `${CC} --version | sed q`"
28486 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28487   cc_string=`${CC} -V 2>&1 | sed q`
28488 else
28489   cc_string=$CC
28490 fi
28491
28492
28493 cat >>confdefs.h <<_ACEOF
28494 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28495 _ACEOF
28496
28497
28498 # Supply a numeric version string for use by 3rd party add-ons
28499 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28500 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28501 tr '.' '        ' |
28502 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28503
28504 cat >>confdefs.h <<_ACEOF
28505 #define PG_VERSION_NUM $PG_VERSION_NUM
28506 _ACEOF
28507
28508
28509
28510 # prepare build tree if outside source tree
28511 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28512 # Note 2: /bin/pwd might be better than shell's built-in at getting
28513 #         a symlink-free name.
28514 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28515   vpath_build=no
28516 else
28517   vpath_build=yes
28518   if test "$no_create" != yes; then
28519     $as_echo_n "preparing build tree... " >&6
28520     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28521     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28522       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28523 $as_echo "$as_me: error: failed" >&2;}
28524    { (exit 1); exit 1; }; }
28525     { $as_echo "$as_me:$LINENO: result: done" >&5
28526 $as_echo "done" >&6; }
28527   fi
28528 fi
28529
28530
28531
28532 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28533
28534
28535 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}"
28536
28537
28538 if test "$PORTNAME" = "win32"; then
28539 ac_config_commands="$ac_config_commands check_win32_symlinks"
28540
28541 fi
28542
28543 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28544
28545
28546 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28547
28548
28549 cat >confcache <<\_ACEOF
28550 # This file is a shell script that caches the results of configure
28551 # tests run on this system so they can be shared between configure
28552 # scripts and configure runs, see configure's option --config-cache.
28553 # It is not useful on other systems.  If it contains results you don't
28554 # want to keep, you may remove or edit it.
28555 #
28556 # config.status only pays attention to the cache file if you give it
28557 # the --recheck option to rerun configure.
28558 #
28559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28561 # following values.
28562
28563 _ACEOF
28564
28565 # The following way of writing the cache mishandles newlines in values,
28566 # but we know of no workaround that is simple, portable, and efficient.
28567 # So, we kill variables containing newlines.
28568 # Ultrix sh set writes to stderr and can't be redirected directly,
28569 # and sets the high bit in the cache file unless we assign to the vars.
28570 (
28571   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28572     eval ac_val=\$$ac_var
28573     case $ac_val in #(
28574     *${as_nl}*)
28575       case $ac_var in #(
28576       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28578       esac
28579       case $ac_var in #(
28580       _ | IFS | as_nl) ;; #(
28581       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28582       *) $as_unset $ac_var ;;
28583       esac ;;
28584     esac
28585   done
28586
28587   (set) 2>&1 |
28588     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28589     *${as_nl}ac_space=\ *)
28590       # `set' does not quote correctly, so add quotes (double-quote
28591       # substitution turns \\\\ into \\, and sed turns \\ into \).
28592       sed -n \
28593         "s/'/'\\\\''/g;
28594           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28595       ;; #(
28596     *)
28597       # `set' quotes correctly as required by POSIX, so do not add quotes.
28598       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28599       ;;
28600     esac |
28601     sort
28602 ) |
28603   sed '
28604      /^ac_cv_env_/b end
28605      t clear
28606      :clear
28607      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28608      t end
28609      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28610      :end' >>confcache
28611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28612   if test -w "$cache_file"; then
28613     test "x$cache_file" != "x/dev/null" &&
28614       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28615 $as_echo "$as_me: updating cache $cache_file" >&6;}
28616     cat confcache >$cache_file
28617   else
28618     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28619 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28620   fi
28621 fi
28622 rm -f confcache
28623
28624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28625 # Let make expand exec_prefix.
28626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28627
28628 DEFS=-DHAVE_CONFIG_H
28629
28630 ac_libobjs=
28631 ac_ltlibobjs=
28632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28633   # 1. Remove the extension, and $U if already installed.
28634   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28635   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28636   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28637   #    will be set to the directory where LIBOBJS objects are built.
28638   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28639   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28640 done
28641 LIBOBJS=$ac_libobjs
28642
28643 LTLIBOBJS=$ac_ltlibobjs
28644
28645
28646
28647
28648 : ${CONFIG_STATUS=./config.status}
28649 ac_write_fail=0
28650 ac_clean_files_save=$ac_clean_files
28651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28652 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28654 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28655 #! $SHELL
28656 # Generated by $as_me.
28657 # Run this file to recreate the current configuration.
28658 # Compiler output produced by configure, useful for debugging
28659 # configure, is in config.log if it exists.
28660
28661 debug=false
28662 ac_cs_recheck=false
28663 ac_cs_silent=false
28664 SHELL=\${CONFIG_SHELL-$SHELL}
28665 _ACEOF
28666
28667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28668 ## --------------------- ##
28669 ## M4sh Initialization.  ##
28670 ## --------------------- ##
28671
28672 # Be more Bourne compatible
28673 DUALCASE=1; export DUALCASE # for MKS sh
28674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28675   emulate sh
28676   NULLCMD=:
28677   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28678   # is contrary to our usage.  Disable this feature.
28679   alias -g '${1+"$@"}'='"$@"'
28680   setopt NO_GLOB_SUBST
28681 else
28682   case `(set -o) 2>/dev/null` in
28683   *posix*) set -o posix ;;
28684 esac
28685
28686 fi
28687
28688
28689
28690
28691 # PATH needs CR
28692 # Avoid depending upon Character Ranges.
28693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28696 as_cr_digits='0123456789'
28697 as_cr_alnum=$as_cr_Letters$as_cr_digits
28698
28699 as_nl='
28700 '
28701 export as_nl
28702 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28703 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28706 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28707   as_echo='printf %s\n'
28708   as_echo_n='printf %s'
28709 else
28710   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28711     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28712     as_echo_n='/usr/ucb/echo -n'
28713   else
28714     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28715     as_echo_n_body='eval
28716       arg=$1;
28717       case $arg in
28718       *"$as_nl"*)
28719         expr "X$arg" : "X\\(.*\\)$as_nl";
28720         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28721       esac;
28722       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28723     '
28724     export as_echo_n_body
28725     as_echo_n='sh -c $as_echo_n_body as_echo'
28726   fi
28727   export as_echo_body
28728   as_echo='sh -c $as_echo_body as_echo'
28729 fi
28730
28731 # The user is always right.
28732 if test "${PATH_SEPARATOR+set}" != set; then
28733   PATH_SEPARATOR=:
28734   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28735     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28736       PATH_SEPARATOR=';'
28737   }
28738 fi
28739
28740 # Support unset when possible.
28741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28742   as_unset=unset
28743 else
28744   as_unset=false
28745 fi
28746
28747
28748 # IFS
28749 # We need space, tab and new line, in precisely that order.  Quoting is
28750 # there to prevent editors from complaining about space-tab.
28751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28752 # splitting by setting IFS to empty value.)
28753 IFS=" ""        $as_nl"
28754
28755 # Find who we are.  Look in the path if we contain no directory separator.
28756 case $0 in
28757   *[\\/]* ) as_myself=$0 ;;
28758   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28759 for as_dir in $PATH
28760 do
28761   IFS=$as_save_IFS
28762   test -z "$as_dir" && as_dir=.
28763   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28764 done
28765 IFS=$as_save_IFS
28766
28767      ;;
28768 esac
28769 # We did not find ourselves, most probably we were run as `sh COMMAND'
28770 # in which case we are not to be found in the path.
28771 if test "x$as_myself" = x; then
28772   as_myself=$0
28773 fi
28774 if test ! -f "$as_myself"; then
28775   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28776   { (exit 1); exit 1; }
28777 fi
28778
28779 # Work around bugs in pre-3.0 UWIN ksh.
28780 for as_var in ENV MAIL MAILPATH
28781 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28782 done
28783 PS1='$ '
28784 PS2='> '
28785 PS4='+ '
28786
28787 # NLS nuisances.
28788 LC_ALL=C
28789 export LC_ALL
28790 LANGUAGE=C
28791 export LANGUAGE
28792
28793 # Required to use basename.
28794 if expr a : '\(a\)' >/dev/null 2>&1 &&
28795    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28796   as_expr=expr
28797 else
28798   as_expr=false
28799 fi
28800
28801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28802   as_basename=basename
28803 else
28804   as_basename=false
28805 fi
28806
28807
28808 # Name of the executable.
28809 as_me=`$as_basename -- "$0" ||
28810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28811          X"$0" : 'X\(//\)$' \| \
28812          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28813 $as_echo X/"$0" |
28814     sed '/^.*\/\([^/][^/]*\)\/*$/{
28815             s//\1/
28816             q
28817           }
28818           /^X\/\(\/\/\)$/{
28819             s//\1/
28820             q
28821           }
28822           /^X\/\(\/\).*/{
28823             s//\1/
28824             q
28825           }
28826           s/.*/./; q'`
28827
28828 # CDPATH.
28829 $as_unset CDPATH
28830
28831
28832
28833   as_lineno_1=$LINENO
28834   as_lineno_2=$LINENO
28835   test "x$as_lineno_1" != "x$as_lineno_2" &&
28836   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28837
28838   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28839   # uniformly replaced by the line number.  The first 'sed' inserts a
28840   # line-number line after each line using $LINENO; the second 'sed'
28841   # does the real work.  The second script uses 'N' to pair each
28842   # line-number line with the line containing $LINENO, and appends
28843   # trailing '-' during substitution so that $LINENO is not a special
28844   # case at line end.
28845   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28846   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28847   # E. McMahon (1931-1989) for sed's syntax.  :-)
28848   sed -n '
28849     p
28850     /[$]LINENO/=
28851   ' <$as_myself |
28852     sed '
28853       s/[$]LINENO.*/&-/
28854       t lineno
28855       b
28856       :lineno
28857       N
28858       :loop
28859       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28860       t loop
28861       s/-\n.*//
28862     ' >$as_me.lineno &&
28863   chmod +x "$as_me.lineno" ||
28864     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28865    { (exit 1); exit 1; }; }
28866
28867   # Don't try to exec as it changes $[0], causing all sort of problems
28868   # (the dirname of $[0] is not the place where we might find the
28869   # original and so on.  Autoconf is especially sensitive to this).
28870   . "./$as_me.lineno"
28871   # Exit status is that of the last command.
28872   exit
28873 }
28874
28875
28876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28877   as_dirname=dirname
28878 else
28879   as_dirname=false
28880 fi
28881
28882 ECHO_C= ECHO_N= ECHO_T=
28883 case `echo -n x` in
28884 -n*)
28885   case `echo 'x\c'` in
28886   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28887   *)   ECHO_C='\c';;
28888   esac;;
28889 *)
28890   ECHO_N='-n';;
28891 esac
28892 if expr a : '\(a\)' >/dev/null 2>&1 &&
28893    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28894   as_expr=expr
28895 else
28896   as_expr=false
28897 fi
28898
28899 rm -f conf$$ conf$$.exe conf$$.file
28900 if test -d conf$$.dir; then
28901   rm -f conf$$.dir/conf$$.file
28902 else
28903   rm -f conf$$.dir
28904   mkdir conf$$.dir 2>/dev/null
28905 fi
28906 if (echo >conf$$.file) 2>/dev/null; then
28907   if ln -s conf$$.file conf$$ 2>/dev/null; then
28908     as_ln_s='ln -s'
28909     # ... but there are two gotchas:
28910     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28911     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28912     # In both cases, we have to default to `cp -p'.
28913     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28914       as_ln_s='cp -p'
28915   elif ln conf$$.file conf$$ 2>/dev/null; then
28916     as_ln_s=ln
28917   else
28918     as_ln_s='cp -p'
28919   fi
28920 else
28921   as_ln_s='cp -p'
28922 fi
28923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28924 rmdir conf$$.dir 2>/dev/null
28925
28926 if mkdir -p . 2>/dev/null; then
28927   as_mkdir_p=:
28928 else
28929   test -d ./-p && rmdir ./-p
28930   as_mkdir_p=false
28931 fi
28932
28933 if test -x / >/dev/null 2>&1; then
28934   as_test_x='test -x'
28935 else
28936   if ls -dL / >/dev/null 2>&1; then
28937     as_ls_L_option=L
28938   else
28939     as_ls_L_option=
28940   fi
28941   as_test_x='
28942     eval sh -c '\''
28943       if test -d "$1"; then
28944         test -d "$1/.";
28945       else
28946         case $1 in
28947         -*)set "./$1";;
28948         esac;
28949         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28950         ???[sx]*):;;*)false;;esac;fi
28951     '\'' sh
28952   '
28953 fi
28954 as_executable_p=$as_test_x
28955
28956 # Sed expression to map a string onto a valid CPP name.
28957 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28958
28959 # Sed expression to map a string onto a valid variable name.
28960 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28961
28962
28963 exec 6>&1
28964
28965 # Save the log message, to keep $[0] and so on meaningful, and to
28966 # report actual input values of CONFIG_FILES etc. instead of their
28967 # values after options handling.
28968 ac_log="
28969 This file was extended by PostgreSQL $as_me 8.5devel, which was
28970 generated by GNU Autoconf 2.63.  Invocation command line was
28971
28972   CONFIG_FILES    = $CONFIG_FILES
28973   CONFIG_HEADERS  = $CONFIG_HEADERS
28974   CONFIG_LINKS    = $CONFIG_LINKS
28975   CONFIG_COMMANDS = $CONFIG_COMMANDS
28976   $ $0 $@
28977
28978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28979 "
28980
28981 _ACEOF
28982
28983 case $ac_config_files in *"
28984 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28985 esac
28986
28987 case $ac_config_headers in *"
28988 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28989 esac
28990
28991
28992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28993 # Files that config.status was made for.
28994 config_files="$ac_config_files"
28995 config_headers="$ac_config_headers"
28996 config_links="$ac_config_links"
28997 config_commands="$ac_config_commands"
28998
28999 _ACEOF
29000
29001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29002 ac_cs_usage="\
29003 \`$as_me' instantiates files from templates according to the
29004 current configuration.
29005
29006 Usage: $0 [OPTION]... [FILE]...
29007
29008   -h, --help       print this help, then exit
29009   -V, --version    print version number and configuration settings, then exit
29010   -q, --quiet, --silent
29011                    do not print progress messages
29012   -d, --debug      don't remove temporary files
29013       --recheck    update $as_me by reconfiguring in the same conditions
29014       --file=FILE[:TEMPLATE]
29015                    instantiate the configuration file FILE
29016       --header=FILE[:TEMPLATE]
29017                    instantiate the configuration header FILE
29018
29019 Configuration files:
29020 $config_files
29021
29022 Configuration headers:
29023 $config_headers
29024
29025 Configuration links:
29026 $config_links
29027
29028 Configuration commands:
29029 $config_commands
29030
29031 Report bugs to <bug-autoconf@gnu.org>."
29032
29033 _ACEOF
29034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29035 ac_cs_version="\\
29036 PostgreSQL config.status 8.5devel
29037 configured by $0, generated by GNU Autoconf 2.63,
29038   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29039
29040 Copyright (C) 2008 Free Software Foundation, Inc.
29041 This config.status script is free software; the Free Software Foundation
29042 gives unlimited permission to copy, distribute and modify it."
29043
29044 ac_pwd='$ac_pwd'
29045 srcdir='$srcdir'
29046 MKDIR_P='$MKDIR_P'
29047 AWK='$AWK'
29048 test -n "\$AWK" || AWK=awk
29049 _ACEOF
29050
29051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29052 # The default lists apply if the user does not specify any file.
29053 ac_need_defaults=:
29054 while test $# != 0
29055 do
29056   case $1 in
29057   --*=*)
29058     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29059     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29060     ac_shift=:
29061     ;;
29062   *)
29063     ac_option=$1
29064     ac_optarg=$2
29065     ac_shift=shift
29066     ;;
29067   esac
29068
29069   case $ac_option in
29070   # Handling of the options.
29071   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29072     ac_cs_recheck=: ;;
29073   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29074     $as_echo "$ac_cs_version"; exit ;;
29075   --debug | --debu | --deb | --de | --d | -d )
29076     debug=: ;;
29077   --file | --fil | --fi | --f )
29078     $ac_shift
29079     case $ac_optarg in
29080     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29081     esac
29082     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29083     ac_need_defaults=false;;
29084   --header | --heade | --head | --hea )
29085     $ac_shift
29086     case $ac_optarg in
29087     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29088     esac
29089     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29090     ac_need_defaults=false;;
29091   --he | --h)
29092     # Conflict between --help and --header
29093     { $as_echo "$as_me: error: ambiguous option: $1
29094 Try \`$0 --help' for more information." >&2
29095    { (exit 1); exit 1; }; };;
29096   --help | --hel | -h )
29097     $as_echo "$ac_cs_usage"; exit ;;
29098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29099   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29100     ac_cs_silent=: ;;
29101
29102   # This is an error.
29103   -*) { $as_echo "$as_me: error: unrecognized option: $1
29104 Try \`$0 --help' for more information." >&2
29105    { (exit 1); exit 1; }; } ;;
29106
29107   *) ac_config_targets="$ac_config_targets $1"
29108      ac_need_defaults=false ;;
29109
29110   esac
29111   shift
29112 done
29113
29114 ac_configure_extra_args=
29115
29116 if $ac_cs_silent; then
29117   exec 6>/dev/null
29118   ac_configure_extra_args="$ac_configure_extra_args --silent"
29119 fi
29120
29121 _ACEOF
29122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29123 if \$ac_cs_recheck; then
29124   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29125   shift
29126   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29127   CONFIG_SHELL='$SHELL'
29128   export CONFIG_SHELL
29129   exec "\$@"
29130 fi
29131
29132 _ACEOF
29133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29134 exec 5>>config.log
29135 {
29136   echo
29137   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29138 ## Running $as_me. ##
29139 _ASBOX
29140   $as_echo "$ac_log"
29141 } >&5
29142
29143 _ACEOF
29144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29145 _ACEOF
29146
29147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29148
29149 # Handling of arguments.
29150 for ac_config_target in $ac_config_targets
29151 do
29152   case $ac_config_target in
29153     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29154     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29155     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29156     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29157     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29158     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29159     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29160     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29161     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29162     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29163     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29164     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29165
29166   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29167 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29168    { (exit 1); exit 1; }; };;
29169   esac
29170 done
29171
29172
29173 # If the user did not use the arguments to specify the items to instantiate,
29174 # then the envvar interface is used.  Set only those that are not.
29175 # We use the long form for the default assignment because of an extremely
29176 # bizarre bug on SunOS 4.1.3.
29177 if $ac_need_defaults; then
29178   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29179   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29180   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29181   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29182 fi
29183
29184 # Have a temporary directory for convenience.  Make it in the build tree
29185 # simply because there is no reason against having it here, and in addition,
29186 # creating and moving files from /tmp can sometimes cause problems.
29187 # Hook for its removal unless debugging.
29188 # Note that there is a small window in which the directory will not be cleaned:
29189 # after its creation but before its name has been assigned to `$tmp'.
29190 $debug ||
29191 {
29192   tmp=
29193   trap 'exit_status=$?
29194   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29195 ' 0
29196   trap '{ (exit 1); exit 1; }' 1 2 13 15
29197 }
29198 # Create a (secure) tmp directory for tmp files.
29199
29200 {
29201   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29202   test -n "$tmp" && test -d "$tmp"
29203 }  ||
29204 {
29205   tmp=./conf$$-$RANDOM
29206   (umask 077 && mkdir "$tmp")
29207 } ||
29208 {
29209    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29210    { (exit 1); exit 1; }
29211 }
29212
29213 # Set up the scripts for CONFIG_FILES section.
29214 # No need to generate them if there are no CONFIG_FILES.
29215 # This happens for instance with `./config.status config.h'.
29216 if test -n "$CONFIG_FILES"; then
29217
29218
29219 ac_cr='\r'
29220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29222   ac_cs_awk_cr='\\r'
29223 else
29224   ac_cs_awk_cr=$ac_cr
29225 fi
29226
29227 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29228 _ACEOF
29229
29230
29231 {
29232   echo "cat >conf$$subs.awk <<_ACEOF" &&
29233   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29234   echo "_ACEOF"
29235 } >conf$$subs.sh ||
29236   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29237 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29238    { (exit 1); exit 1; }; }
29239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29240 ac_delim='%!_!# '
29241 for ac_last_try in false false false false false :; do
29242   . ./conf$$subs.sh ||
29243     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29244 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29245    { (exit 1); exit 1; }; }
29246
29247   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29248   if test $ac_delim_n = $ac_delim_num; then
29249     break
29250   elif $ac_last_try; then
29251     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29252 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29253    { (exit 1); exit 1; }; }
29254   else
29255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29256   fi
29257 done
29258 rm -f conf$$subs.sh
29259
29260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29261 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29262 _ACEOF
29263 sed -n '
29264 h
29265 s/^/S["/; s/!.*/"]=/
29266 p
29267 g
29268 s/^[^!]*!//
29269 :repl
29270 t repl
29271 s/'"$ac_delim"'$//
29272 t delim
29273 :nl
29274 h
29275 s/\(.\{148\}\).*/\1/
29276 t more1
29277 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29278 p
29279 n
29280 b repl
29281 :more1
29282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29283 p
29284 g
29285 s/.\{148\}//
29286 t nl
29287 :delim
29288 h
29289 s/\(.\{148\}\).*/\1/
29290 t more2
29291 s/["\\]/\\&/g; s/^/"/; s/$/"/
29292 p
29293 b
29294 :more2
29295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29296 p
29297 g
29298 s/.\{148\}//
29299 t delim
29300 ' <conf$$subs.awk | sed '
29301 /^[^""]/{
29302   N
29303   s/\n//
29304 }
29305 ' >>$CONFIG_STATUS || ac_write_fail=1
29306 rm -f conf$$subs.awk
29307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29308 _ACAWK
29309 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29310   for (key in S) S_is_set[key] = 1
29311   FS = "\a"
29312
29313 }
29314 {
29315   line = $ 0
29316   nfields = split(line, field, "@")
29317   substed = 0
29318   len = length(field[1])
29319   for (i = 2; i < nfields; i++) {
29320     key = field[i]
29321     keylen = length(key)
29322     if (S_is_set[key]) {
29323       value = S[key]
29324       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29325       len += length(value) + length(field[++i])
29326       substed = 1
29327     } else
29328       len += 1 + keylen
29329   }
29330
29331   print line
29332 }
29333
29334 _ACAWK
29335 _ACEOF
29336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29337 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29338   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29339 else
29340   cat
29341 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29342   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29343 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29344    { (exit 1); exit 1; }; }
29345 _ACEOF
29346
29347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29349 # trailing colons and then remove the whole line if VPATH becomes empty
29350 # (actually we leave an empty line to preserve line numbers).
29351 if test "x$srcdir" = x.; then
29352   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29353 s/:*\$(srcdir):*/:/
29354 s/:*\${srcdir}:*/:/
29355 s/:*@srcdir@:*/:/
29356 s/^\([^=]*=[     ]*\):*/\1/
29357 s/:*$//
29358 s/^[^=]*=[       ]*$//
29359 }'
29360 fi
29361
29362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29363 fi # test -n "$CONFIG_FILES"
29364
29365 # Set up the scripts for CONFIG_HEADERS section.
29366 # No need to generate them if there are no CONFIG_HEADERS.
29367 # This happens for instance with `./config.status Makefile'.
29368 if test -n "$CONFIG_HEADERS"; then
29369 cat >"$tmp/defines.awk" <<\_ACAWK ||
29370 BEGIN {
29371 _ACEOF
29372
29373 # Transform confdefs.h into an awk script `defines.awk', embedded as
29374 # here-document in config.status, that substitutes the proper values into
29375 # config.h.in to produce config.h.
29376
29377 # Create a delimiter string that does not exist in confdefs.h, to ease
29378 # handling of long lines.
29379 ac_delim='%!_!# '
29380 for ac_last_try in false false :; do
29381   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29382   if test -z "$ac_t"; then
29383     break
29384   elif $ac_last_try; then
29385     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29386 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29387    { (exit 1); exit 1; }; }
29388   else
29389     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29390   fi
29391 done
29392
29393 # For the awk script, D is an array of macro values keyed by name,
29394 # likewise P contains macro parameters if any.  Preserve backslash
29395 # newline sequences.
29396
29397 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29398 sed -n '
29399 s/.\{148\}/&'"$ac_delim"'/g
29400 t rset
29401 :rset
29402 s/^[     ]*#[    ]*define[       ][      ]*/ /
29403 t def
29404 d
29405 :def
29406 s/\\$//
29407 t bsnl
29408 s/["\\]/\\&/g
29409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29410 D["\1"]=" \3"/p
29411 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29412 d
29413 :bsnl
29414 s/["\\]/\\&/g
29415 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29416 D["\1"]=" \3\\\\\\n"\\/p
29417 t cont
29418 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29419 t cont
29420 d
29421 :cont
29422 n
29423 s/.\{148\}/&'"$ac_delim"'/g
29424 t clear
29425 :clear
29426 s/\\$//
29427 t bsnlc
29428 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29429 d
29430 :bsnlc
29431 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29432 b cont
29433 ' <confdefs.h | sed '
29434 s/'"$ac_delim"'/"\\\
29435 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29436
29437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29438   for (key in D) D_is_set[key] = 1
29439   FS = "\a"
29440 }
29441 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29442   line = \$ 0
29443   split(line, arg, " ")
29444   if (arg[1] == "#") {
29445     defundef = arg[2]
29446     mac1 = arg[3]
29447   } else {
29448     defundef = substr(arg[1], 2)
29449     mac1 = arg[2]
29450   }
29451   split(mac1, mac2, "(") #)
29452   macro = mac2[1]
29453   prefix = substr(line, 1, index(line, defundef) - 1)
29454   if (D_is_set[macro]) {
29455     # Preserve the white space surrounding the "#".
29456     print prefix "define", macro P[macro] D[macro]
29457     next
29458   } else {
29459     # Replace #undef with comments.  This is necessary, for example,
29460     # in the case of _POSIX_SOURCE, which is predefined and required
29461     # on some systems where configure will not decide to define it.
29462     if (defundef == "undef") {
29463       print "/*", prefix defundef, macro, "*/"
29464       next
29465     }
29466   }
29467 }
29468 { print }
29469 _ACAWK
29470 _ACEOF
29471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29472   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29473 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29474    { (exit 1); exit 1; }; }
29475 fi # test -n "$CONFIG_HEADERS"
29476
29477
29478 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29479 shift
29480 for ac_tag
29481 do
29482   case $ac_tag in
29483   :[FHLC]) ac_mode=$ac_tag; continue;;
29484   esac
29485   case $ac_mode$ac_tag in
29486   :[FHL]*:*);;
29487   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29488 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29489    { (exit 1); exit 1; }; };;
29490   :[FH]-) ac_tag=-:-;;
29491   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29492   esac
29493   ac_save_IFS=$IFS
29494   IFS=:
29495   set x $ac_tag
29496   IFS=$ac_save_IFS
29497   shift
29498   ac_file=$1
29499   shift
29500
29501   case $ac_mode in
29502   :L) ac_source=$1;;
29503   :[FH])
29504     ac_file_inputs=
29505     for ac_f
29506     do
29507       case $ac_f in
29508       -) ac_f="$tmp/stdin";;
29509       *) # Look for the file first in the build tree, then in the source tree
29510          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29511          # because $ac_f cannot contain `:'.
29512          test -f "$ac_f" ||
29513            case $ac_f in
29514            [\\/$]*) false;;
29515            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29516            esac ||
29517            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29518 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29519    { (exit 1); exit 1; }; };;
29520       esac
29521       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29522       ac_file_inputs="$ac_file_inputs '$ac_f'"
29523     done
29524
29525     # Let's still pretend it is `configure' which instantiates (i.e., don't
29526     # use $as_me), people would be surprised to read:
29527     #    /* config.h.  Generated by config.status.  */
29528     configure_input='Generated from '`
29529           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29530         `' by configure.'
29531     if test x"$ac_file" != x-; then
29532       configure_input="$ac_file.  $configure_input"
29533       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29534 $as_echo "$as_me: creating $ac_file" >&6;}
29535     fi
29536     # Neutralize special characters interpreted by sed in replacement strings.
29537     case $configure_input in #(
29538     *\&* | *\|* | *\\* )
29539        ac_sed_conf_input=`$as_echo "$configure_input" |
29540        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29541     *) ac_sed_conf_input=$configure_input;;
29542     esac
29543
29544     case $ac_tag in
29545     *:-:* | *:-) cat >"$tmp/stdin" \
29546       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29547 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29548    { (exit 1); exit 1; }; } ;;
29549     esac
29550     ;;
29551   esac
29552
29553   ac_dir=`$as_dirname -- "$ac_file" ||
29554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29555          X"$ac_file" : 'X\(//\)[^/]' \| \
29556          X"$ac_file" : 'X\(//\)$' \| \
29557          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29558 $as_echo X"$ac_file" |
29559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29560             s//\1/
29561             q
29562           }
29563           /^X\(\/\/\)[^/].*/{
29564             s//\1/
29565             q
29566           }
29567           /^X\(\/\/\)$/{
29568             s//\1/
29569             q
29570           }
29571           /^X\(\/\).*/{
29572             s//\1/
29573             q
29574           }
29575           s/.*/./; q'`
29576   { as_dir="$ac_dir"
29577   case $as_dir in #(
29578   -*) as_dir=./$as_dir;;
29579   esac
29580   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29581     as_dirs=
29582     while :; do
29583       case $as_dir in #(
29584       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29585       *) as_qdir=$as_dir;;
29586       esac
29587       as_dirs="'$as_qdir' $as_dirs"
29588       as_dir=`$as_dirname -- "$as_dir" ||
29589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29590          X"$as_dir" : 'X\(//\)[^/]' \| \
29591          X"$as_dir" : 'X\(//\)$' \| \
29592          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29593 $as_echo X"$as_dir" |
29594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29595             s//\1/
29596             q
29597           }
29598           /^X\(\/\/\)[^/].*/{
29599             s//\1/
29600             q
29601           }
29602           /^X\(\/\/\)$/{
29603             s//\1/
29604             q
29605           }
29606           /^X\(\/\).*/{
29607             s//\1/
29608             q
29609           }
29610           s/.*/./; q'`
29611       test -d "$as_dir" && break
29612     done
29613     test -z "$as_dirs" || eval "mkdir $as_dirs"
29614   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29615 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29616    { (exit 1); exit 1; }; }; }
29617   ac_builddir=.
29618
29619 case "$ac_dir" in
29620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29621 *)
29622   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29623   # A ".." for each directory in $ac_dir_suffix.
29624   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29625   case $ac_top_builddir_sub in
29626   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29627   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29628   esac ;;
29629 esac
29630 ac_abs_top_builddir=$ac_pwd
29631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29632 # for backward compatibility:
29633 ac_top_builddir=$ac_top_build_prefix
29634
29635 case $srcdir in
29636   .)  # We are building in place.
29637     ac_srcdir=.
29638     ac_top_srcdir=$ac_top_builddir_sub
29639     ac_abs_top_srcdir=$ac_pwd ;;
29640   [\\/]* | ?:[\\/]* )  # Absolute name.
29641     ac_srcdir=$srcdir$ac_dir_suffix;
29642     ac_top_srcdir=$srcdir
29643     ac_abs_top_srcdir=$srcdir ;;
29644   *) # Relative name.
29645     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29646     ac_top_srcdir=$ac_top_build_prefix$srcdir
29647     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29648 esac
29649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29650
29651
29652   case $ac_mode in
29653   :F)
29654   #
29655   # CONFIG_FILE
29656   #
29657
29658   ac_MKDIR_P=$MKDIR_P
29659   case $MKDIR_P in
29660   [\\/$]* | ?:[\\/]* ) ;;
29661   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29662   esac
29663 _ACEOF
29664
29665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29666 # If the template does not know about datarootdir, expand it.
29667 # FIXME: This hack should be removed a few years after 2.60.
29668 ac_datarootdir_hack=; ac_datarootdir_seen=
29669
29670 ac_sed_dataroot='
29671 /datarootdir/ {
29672   p
29673   q
29674 }
29675 /@datadir@/p
29676 /@docdir@/p
29677 /@infodir@/p
29678 /@localedir@/p
29679 /@mandir@/p
29680 '
29681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29682 *datarootdir*) ac_datarootdir_seen=yes;;
29683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29684   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29686 _ACEOF
29687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29688   ac_datarootdir_hack='
29689   s&@datadir@&$datadir&g
29690   s&@docdir@&$docdir&g
29691   s&@infodir@&$infodir&g
29692   s&@localedir@&$localedir&g
29693   s&@mandir@&$mandir&g
29694     s&\\\${datarootdir}&$datarootdir&g' ;;
29695 esac
29696 _ACEOF
29697
29698 # Neutralize VPATH when `$srcdir' = `.'.
29699 # Shell code in configure.ac might set extrasub.
29700 # FIXME: do we really want to maintain this feature?
29701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29702 ac_sed_extra="$ac_vpsub
29703 $extrasub
29704 _ACEOF
29705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29706 :t
29707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29708 s|@configure_input@|$ac_sed_conf_input|;t t
29709 s&@top_builddir@&$ac_top_builddir_sub&;t t
29710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29711 s&@srcdir@&$ac_srcdir&;t t
29712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29713 s&@top_srcdir@&$ac_top_srcdir&;t t
29714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29715 s&@builddir@&$ac_builddir&;t t
29716 s&@abs_builddir@&$ac_abs_builddir&;t t
29717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29718 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29719 $ac_datarootdir_hack
29720 "
29721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29722   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29723 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29724    { (exit 1); exit 1; }; }
29725
29726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29727   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29728   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29729   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29730 which seems to be undefined.  Please make sure it is defined." >&5
29731 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29732 which seems to be undefined.  Please make sure it is defined." >&2;}
29733
29734   rm -f "$tmp/stdin"
29735   case $ac_file in
29736   -) cat "$tmp/out" && rm -f "$tmp/out";;
29737   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29738   esac \
29739   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29740 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29741    { (exit 1); exit 1; }; }
29742  ;;
29743   :H)
29744   #
29745   # CONFIG_HEADER
29746   #
29747   if test x"$ac_file" != x-; then
29748     {
29749       $as_echo "/* $configure_input  */" \
29750       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29751     } >"$tmp/config.h" \
29752       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29753 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29754    { (exit 1); exit 1; }; }
29755     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29756       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29757 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29758     else
29759       rm -f "$ac_file"
29760       mv "$tmp/config.h" "$ac_file" \
29761         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29762 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29763    { (exit 1); exit 1; }; }
29764     fi
29765   else
29766     $as_echo "/* $configure_input  */" \
29767       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29768       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29769 $as_echo "$as_me: error: could not create -" >&2;}
29770    { (exit 1); exit 1; }; }
29771   fi
29772  ;;
29773   :L)
29774   #
29775   # CONFIG_LINK
29776   #
29777
29778   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29779     :
29780   else
29781     # Prefer the file from the source tree if names are identical.
29782     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29783       ac_source=$srcdir/$ac_source
29784     fi
29785
29786     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
29787 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29788
29789     if test ! -r "$ac_source"; then
29790       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
29791 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
29792    { (exit 1); exit 1; }; }
29793     fi
29794     rm -f "$ac_file"
29795
29796     # Try a relative symlink, then a hard link, then a copy.
29797     case $srcdir in
29798     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29799         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29800     esac
29801     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29802       ln "$ac_source" "$ac_file" 2>/dev/null ||
29803       cp -p "$ac_source" "$ac_file" ||
29804       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
29805 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
29806    { (exit 1); exit 1; }; }
29807   fi
29808  ;;
29809   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29810 $as_echo "$as_me: executing $ac_file commands" >&6;}
29811  ;;
29812   esac
29813
29814
29815   case $ac_file$ac_mode in
29816     "check_win32_symlinks":C)
29817 # Links sometimes fail undetected on Mingw -
29818 # so here we detect it and warn the user
29819 for FILE in $CONFIG_LINKS
29820  do
29821         # test -e works for symlinks in the MinGW console
29822         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
29823 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
29824  done
29825  ;;
29826     "src/include/pg_config.h":H)
29827 # Update timestamp for pg_config.h (see Makefile.global)
29828 echo >src/include/stamp-h
29829  ;;
29830     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
29831
29832   esac
29833 done # for ac_tag
29834
29835
29836 { (exit 0); exit 0; }
29837 _ACEOF
29838 chmod +x $CONFIG_STATUS
29839 ac_clean_files=$ac_clean_files_save
29840
29841 test $ac_write_fail = 0 ||
29842   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29843 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29844    { (exit 1); exit 1; }; }
29845
29846
29847 # configure is writing to config.log, and then calls config.status.
29848 # config.status does its own redirection, appending to config.log.
29849 # Unfortunately, on DOS this fails, as config.log is still kept open
29850 # by configure, so config.status won't be able to write to it; its
29851 # output is simply discarded.  So we exec the FD to /dev/null,
29852 # effectively closing config.log, so it can be properly (re)opened and
29853 # appended to by config.status.  When coming back to configure, we
29854 # need to make the FD available again.
29855 if test "$no_create" != yes; then
29856   ac_cs_success=:
29857   ac_config_status_args=
29858   test "$silent" = yes &&
29859     ac_config_status_args="$ac_config_status_args --quiet"
29860   exec 5>/dev/null
29861   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29862   exec 5>>config.log
29863   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29864   # would make configure fail if this is the last instruction.
29865   $ac_cs_success || { (exit 1); exit 1; }
29866 fi
29867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29868   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29870 fi
29871