Start background writer during archive recovery. Background writer now performs
[PostgreSQL.git] / configure
blob40ba33c9efbc15305bd741361c567f976529fff9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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.
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
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 # Zsh 3.x and 4.x performs 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
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
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
54 rm -f conf$$.sh
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60 else
61 as_unset=false
65 # IFS
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
72 IFS=" "" $as_nl"
74 # Find who we are. Look in the path if we contain no directory separator.
75 case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91 as_myself=$0
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
106 # NLS nuisances.
107 for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 done
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123 else
124 as_expr=false
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129 else
130 as_basename=false
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
144 /^X\/\(\/\/\)$/{
145 s//\1/
148 /^X\/\(\/\).*/{
149 s//\1/
152 s/.*/./; q'`
154 # CDPATH.
155 $as_unset CDPATH
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161 else
162 as_have_required=no
165 if test $as_have_required = yes && (eval ":
166 (as_func_return () {
167 (exit \$1)
169 as_func_success () {
170 as_func_return 0
172 as_func_failure () {
173 as_func_return 1
175 as_func_ret_success () {
176 return 0
178 as_func_ret_failure () {
179 return 1
182 exitcode=0
183 if as_func_success; then
185 else
186 exitcode=1
187 echo as_func_success failed.
190 if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
197 else
198 exitcode=1
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 else
210 exitcode=1
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
223 else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236 done
237 IFS=$as_save_IFS
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251 else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254 esac
260 _ASEOF
261 }; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272 else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275 esac
281 (as_func_return () {
282 (exit $1)
284 as_func_success () {
285 as_func_return 0
287 as_func_failure () {
288 as_func_return 1
290 as_func_ret_success () {
291 return 0
293 as_func_ret_failure () {
294 return 1
297 exitcode=0
298 if as_func_success; then
300 else
301 exitcode=1
302 echo as_func_success failed.
305 if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
312 else
313 exitcode=1
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 else
325 exitcode=1
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 _ASEOF
338 }; then
339 break
344 done
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
371 (exit \$1)
373 as_func_success () {
374 as_func_return 0
376 as_func_failure () {
377 as_func_return 1
379 as_func_ret_success () {
380 return 0
382 as_func_ret_failure () {
383 return 1
386 exitcode=0
387 if as_func_success; then
389 else
390 exitcode=1
391 echo as_func_success failed.
394 if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
401 else
402 exitcode=1
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 else
414 exitcode=1
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
484 ECHO_N='-n';;
485 esac
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490 else
491 as_expr=false
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497 else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512 else
513 as_ln_s='cp -p'
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520 else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
525 if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527 else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
558 # Name of the host.
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 # Initializations.
566 ac_default_prefix=/usr/local
567 ac_clean_files=
568 ac_config_libobj_dir=.
569 LIBOBJS=
570 cross_compiling=no
571 subdirs=
572 MFLAGS=
573 MAKEFLAGS=
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 configure_args
659 PG_MAJORVERSION
660 build
661 build_cpu
662 build_vendor
663 build_os
664 host
665 host_cpu
666 host_vendor
667 host_os
668 PORTNAME
669 enable_nls
670 WANTED_LANGUAGES
671 default_port
672 enable_shared
673 enable_rpath
674 enable_debug
675 enable_profiling
676 GCOV
677 LCOV
678 GENHTML
679 enable_coverage
680 DTRACE
681 DTRACEFLAGS
682 enable_dtrace
684 CFLAGS
685 LDFLAGS
686 CPPFLAGS
687 ac_ct_CC
688 EXEEXT
689 OBJEXT
690 SUN_STUDIO_CC
694 autodepend
695 INCLUDES
696 enable_thread_safety
697 with_tcl
698 with_perl
699 with_python
700 with_gssapi
701 with_krb5
702 krb_srvtab
703 with_pam
704 with_ldap
705 with_bonjour
706 with_openssl
707 with_ossp_uuid
708 XML2_CONFIG
709 with_libxml
710 with_libxslt
711 with_system_tzdata
712 with_zlib
713 GREP
714 EGREP
715 ELF_SYS
716 LDFLAGS_SL
718 with_gnu_ld
719 ld_R_works
720 RANLIB
721 STRIP
722 STRIP_STATIC_LIB
723 STRIP_SHARED_LIB
725 DLLTOOL
726 DLLWRAP
727 WINDRES
729 LN_S
731 BISON
732 BISONFLAGS
733 FLEX
734 FLEXFLAGS
735 PERL
736 perl_archlibexp
737 perl_privlibexp
738 perl_useshrplib
739 perl_embed_ldflags
740 PYTHON
741 python_version
742 python_configdir
743 python_includespec
744 python_libdir
745 python_libspec
746 python_additional_libs
748 OSSP_UUID_LIBS
749 HAVE_IPV6
750 LIBOBJS
751 acx_pthread_config
752 PTHREAD_CC
753 PTHREAD_LIBS
754 PTHREAD_CFLAGS
755 LDAP_LIBS_FE
756 LDAP_LIBS_BE
757 HAVE_POSIX_SIGNALS
758 MSGFMT
759 MSGMERGE
760 XGETTEXT
761 TCLSH
762 TCL_CONFIG_SH
763 TCL_INCLUDE_SPEC
764 TCL_LIB_FILE
765 TCL_LIBS
766 TCL_LIB_SPEC
767 TCL_SHARED_BUILD
768 TCL_SHLIB_LD_LIBS
769 NSGMLS
770 JADE
771 have_docbook
772 DOCBOOKSTYLE
773 COLLATEINDEX
774 SGMLSPL
775 DOCBOOK2MAN
776 vpath_build
777 LTLIBOBJS'
778 ac_subst_files=''
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
788 LDFLAGS_SL
789 DOCBOOKSTYLE'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_$ac_feature=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
911 -enable-* | --enable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_$ac_feature=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1108 -with-* | --with-*)
1109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=no ;;
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 esac
1167 done
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 case $ac_val in
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 esac
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1188 done
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 echo X"$0" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1242 /^X\(\/\/\)$/{
1243 s//\1/
1246 /^X\(\/\).*/{
1247 s//\1/
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1255 else
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1347 cat <<\_ACEOF
1349 System types:
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352 _ACEOF
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1358 esac
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --disable-integer-datetimes
1365 disable 64-bit integer date/time support
1366 --enable-nls[=LANGUAGES]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path in
1370 executables
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols (-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks (for debugging)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support for large files
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS look for additional header files in DIRS
1390 --with-libraries=DIRS look for additional libraries in DIRS
1391 --with-libs=DIRS alternative spelling of --with-libraries
1392 --with-pgport=PORTNUM set default port number [5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size in kB [8]
1395 --with-segsize=SEGSIZE set table segment size in GB [1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size in kB [8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size in MB [16]
1400 --with-CC=CMD set compiler (deprecated)
1401 --with-tcl build Tcl modules (PL/Tcl)
1402 --with-tclconfig=DIR tclConfig.sh is in DIR
1403 --with-perl build Perl modules (PL/Perl)
1404 --with-python build Python modules (PL/Python)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos 5 support
1407 --with-krb-srvnam=NAME default service principal name in Kerberos
1408 [postgres]
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1417 contrib/uuid-ossp
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib/xml2
1420 --with-system-tzdata=DIR
1421 use system time zone data in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434 LDFLAGS_SL
1435 DOCBOOKSTYLE
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1442 _ACEOF
1443 ac_status=$?
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1450 ac_builddir=.
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 PostgreSQL configure 8.4devel
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1511 _ACEOF
1512 exit
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4devel, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1521 $ $0 $@
1523 _ACEOF
1524 exec 5>>config.log
1526 cat <<_ASUNAME
1527 ## --------- ##
1528 ## Platform. ##
1529 ## --------- ##
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1548 _ASUNAME
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1556 done
1557 IFS=$as_save_IFS
1559 } >&5
1561 cat >&5 <<_ACEOF
1564 ## ----------- ##
1565 ## Core tests. ##
1566 ## ----------- ##
1568 _ACEOF
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1576 ac_configure_args=
1577 ac_configure_args0=
1578 ac_configure_args1=
1579 ac_must_keep_next=false
1580 for ac_pass in 1 2
1582 for ac_arg
1584 case $ac_arg in
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1588 continue ;;
1589 *\'*)
1590 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 esac
1592 case $ac_pass in
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1598 else
1599 case $ac_arg in
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606 esac
1608 -* ) ac_must_keep_next=true ;;
1609 esac
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1613 esac
1614 done
1615 done
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1627 echo
1629 cat <<\_ASBOX
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1633 _ASBOX
1634 echo
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638 eval ac_val=\$$ac_var
1639 case $ac_val in #(
1640 *${as_nl}*)
1641 case $ac_var in #(
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644 esac
1645 case $ac_var in #(
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1648 esac ;;
1649 esac
1650 done
1651 (set) 2>&1 |
1652 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1654 sed -n \
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1657 ;; #(
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 esac |
1662 sort
1664 echo
1666 cat <<\_ASBOX
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1670 _ASBOX
1671 echo
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1675 case $ac_val in
1676 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677 esac
1678 echo "$ac_var='\''$ac_val'\''"
1679 done | sort
1680 echo
1682 if test -n "$ac_subst_files"; then
1683 cat <<\_ASBOX
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1687 _ASBOX
1688 echo
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1692 case $ac_val in
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 esac
1695 echo "$ac_var='\''$ac_val'\''"
1696 done | sort
1697 echo
1700 if test -s confdefs.h; then
1701 cat <<\_ASBOX
1702 ## ----------- ##
1703 ## confdefs.h. ##
1704 ## ----------- ##
1705 _ASBOX
1706 echo
1707 cat confdefs.h
1708 echo
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1713 } >&5
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1716 exit $exit_status
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1720 done
1721 ac_signal=0
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1730 _ACEOF
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1745 _ACEOF
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1750 _ACEOF
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1759 else
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1763 shift
1764 for ac_site_file
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1770 . "$ac_site_file"
1772 done
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1780 case $cache_file in
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1783 esac
1785 else
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1788 >$cache_file
1791 # Check that the precious variables saved in the cache have kept the same
1792 # value.
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1800 set,)
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1804 ,set)
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1808 ,);;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1813 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1814 echo "$as_me: former value: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1816 echo "$as_me: current value: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1818 fi;;
1819 esac
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1822 case $ac_new_val in
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1825 esac
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1829 esac
1831 done
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1834 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1835 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 ac_aux_dir=
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 break
1881 elif test -f "$ac_dir/install.sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 break
1885 elif test -f "$ac_dir/shtool"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1888 break
1890 done
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1913 _ACEOF
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1920 _ACEOF
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976 else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 template=
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2018 case $withval in
2019 yes)
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2031 case $withval in
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2034 template=$withval
2035 else
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2039 fi;;
2040 esac
2043 esac
2045 else
2047 # --with-template not given
2049 case $host_os in
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2059 template=linux ;;
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2068 sysv4.2*)
2069 case $host_vendor in
2070 univel) template=univel ;;
2071 esac ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2075 esac
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-bugs@postgresql.org> to see about
2085 rectifying this. Include the above 'checking host system type...'
2086 line.
2087 *******************************************************************
2088 " >&5
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2095 Please also contact <pgsql-bugs@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2097 line.
2098 *******************************************************************
2099 " >&2;}
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2111 PORTNAME=$template
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2117 need_tas=no
2118 tas_file=dummy.s
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2136 case $withval in
2137 yes)
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2150 esac
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2167 case $withval in
2168 yes)
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2181 esac
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2193 withval=$with_libs;
2194 case $withval in
2195 yes)
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2208 esac
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2226 case $enableval in
2227 yes)
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2231 _ACEOF
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2242 esac
2244 else
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2249 _ACEOF
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2259 # NLS
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2269 case $enableval in
2270 yes)
2277 enable_nls=yes
2278 WANTED_LANGUAGES=$enableval
2280 esac
2282 else
2283 enable_nls=no
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2292 _ACEOF
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2313 case $withval in
2314 yes)
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2327 esac
2329 else
2330 default_port=5432
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2340 _ACEOF
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2345 _ACEOF
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2358 case $enableval in
2359 yes)
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2370 esac
2372 else
2373 enable_shared=yes
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2389 case $enableval in
2390 yes)
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2401 esac
2403 else
2404 enable_rpath=yes
2412 # Spinlocks
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2420 case $enableval in
2421 yes)
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2432 esac
2434 else
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2450 case $enableval in
2451 yes)
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2462 esac
2464 else
2465 enable_debug=no
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2481 case $enableval in
2482 yes)
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2493 esac
2495 else
2496 enable_profiling=no
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2512 case $enableval in
2513 yes)
2514 for ac_prog in gcov
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2554 done
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2561 for ac_prog in lcov
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2601 done
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2631 done
2632 done
2633 IFS=$as_save_IFS
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2641 else
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2648 done
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2664 esac
2666 else
2667 enable_coverage=no
2675 # DTrace
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2683 case $enableval in
2684 yes)
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2688 _ACEOF
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2730 done
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2747 esac
2749 else
2750 enable_dtrace=no
2758 # Block size
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2769 case $withval in
2770 yes)
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2781 blocksize=$withval
2783 esac
2785 else
2786 blocksize=8
2790 case ${blocksize} in
2791 1) BLCKSZ=1024;;
2792 2) BLCKSZ=2048;;
2793 4) BLCKSZ=4096;;
2794 8) BLCKSZ=8192;;
2795 16) BLCKSZ=16384;;
2796 32) BLCKSZ=32768;;
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2800 esac
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2807 _ACEOF
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2822 case $withval in
2823 yes)
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2834 segsize=$withval
2836 esac
2838 else
2839 segsize=1
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2853 _ACEOF
2857 # WAL block size
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2868 case $withval in
2869 yes)
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2882 esac
2884 else
2885 wal_blocksize=8
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2900 esac
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2907 _ACEOF
2911 # WAL segment size
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2922 case $withval in
2923 yes)
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2936 esac
2938 else
2939 wal_segsize=16
2943 case ${wal_segsize} in
2944 1) ;;
2945 2) ;;
2946 4) ;;
2947 8) ;;
2948 16) ;;
2949 32) ;;
2950 64) ;;
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2954 esac
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2961 _ACEOF
2965 # C compiler
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2970 # variable.
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2977 withval=$with_CC;
2978 case $withval in
2979 yes)
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2990 CC=$with_CC
2992 esac
2998 case $template in
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3002 esac
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3043 else
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3050 done
3052 if test -z "$CC"; then
3053 ac_ct_CC=$CC
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3087 else
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3094 done
3096 if test "x$ac_ct_CC" = x; then
3097 CC=""
3098 else
3099 case $cross_compiling:$ac_tool_warned in
3100 yes:)
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109 CC=$ac_ct_CC
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking for C compiler version" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3162 main ()
3166 return 0;
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 esac
3193 done
3194 rm -f $ac_rmfiles
3196 if { (ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3210 # Autoconf.
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3217 [ab].out )
3218 # We found the default executable, but exeext='' is most
3219 # certainly right.
3220 break;;
3221 *.* )
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 then :; else
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3230 # actually working.
3231 break;;
3233 break;;
3234 esac
3235 done
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 else
3239 ac_file=''
3242 { echo "$as_me:$LINENO: result: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='./$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 cross_compiling=no
3275 else
3276 if test "$cross_compiling" = maybe; then
3277 cross_compiling=yes
3278 else
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 # `rm'.
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 break;;
3323 * ) break;;
3324 esac
3325 done
3326 else
3327 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3354 main ()
3358 return 0;
3360 _ACEOF
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3396 ac_objext=$OBJEXT
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3410 main ()
3412 #ifndef __GNUC__
3413 choke me
3414 #endif
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.$ac_objext; then
3437 ac_compiler_gnu=yes
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 ac_compiler_gnu=no
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3471 main ()
3475 return 0;
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 ac_cv_prog_cc_g=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 CFLAGS=""
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3509 main ()
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 main ()
3552 return 0;
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3572 ac_cv_prog_cc_g=yes
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3599 else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3630 return p[i];
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3663 main ()
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 return 0;
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_cv_prog_cc_c89=$ac_arg
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 done
3702 rm -f conftest.$ac_ext
3703 CC=$ac_save_CC
3706 # AC_CACHE_VAL
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3711 xno)
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3718 esac
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 main ()
3742 #ifndef __INTEL_COMPILER
3743 choke me
3744 #endif
3746 return 0;
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (ac_try="$ac_compile"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3766 ICC=yes
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ICC=no
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3786 main ()
3788 #ifndef __SUNPRO_C
3789 choke me
3790 #endif
3792 return 0;
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.$ac_objext; then
3812 SUN_STUDIO_CC=yes
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 SUN_STUDIO_CC=no
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 unset CFLAGS
3827 # Read the template
3829 . "$srcdir/src/template/$template" || exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O, unless debugging.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3845 CFLAGS="-O2"
3846 else
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3849 CFLAGS="-O"
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3856 # but has its own. Also check other compiler-specific flags here.
3858 if test "$GCC" = yes -a "$ICC" = no; then
3859 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3860 # These work in some but not all gcc versions
3861 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3862 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3863 pgac_save_CFLAGS=$CFLAGS
3864 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 { echo "$as_me:$LINENO: result: yes" >&5
3898 echo "${ECHO_T}yes" >&6; }
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 CFLAGS="$pgac_save_CFLAGS"
3904 { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3911 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3912 pgac_save_CFLAGS=$CFLAGS
3913 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3922 main ()
3926 return 0;
3928 _ACEOF
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest.$ac_objext; then
3946 { echo "$as_me:$LINENO: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6; }
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 CFLAGS="$pgac_save_CFLAGS"
3953 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 # Disable strict-aliasing rules; needed for gcc 3.3+
3960 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3961 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3962 pgac_save_CFLAGS=$CFLAGS
3963 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3972 main ()
3976 return 0;
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_compile") 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } && {
3993 test -z "$ac_c_werror_flag" ||
3994 test ! -s conftest.err
3995 } && test -s conftest.$ac_objext; then
3996 { echo "$as_me:$LINENO: result: yes" >&5
3997 echo "${ECHO_T}yes" >&6; }
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 CFLAGS="$pgac_save_CFLAGS"
4003 { echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6; }
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4010 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4011 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4012 pgac_save_CFLAGS=$CFLAGS
4013 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4022 main ()
4026 return 0;
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
4046 { echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6; }
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 CFLAGS="$pgac_save_CFLAGS"
4053 { echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6; }
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 elif test "$ICC" = yes; then
4060 # Intel's compiler has a bug/misoptimization in checking for
4061 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4062 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4063 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4064 pgac_save_CFLAGS=$CFLAGS
4065 CFLAGS="$pgac_save_CFLAGS -mp1"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4074 main ()
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_c_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest.$ac_objext; then
4098 { echo "$as_me:$LINENO: result: yes" >&5
4099 echo "${ECHO_T}yes" >&6; }
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 CFLAGS="$pgac_save_CFLAGS"
4105 { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 # Make sure strict aliasing is off (though this is said to be the default)
4112 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4113 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4114 pgac_save_CFLAGS=$CFLAGS
4115 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4124 main ()
4128 return 0;
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 { echo "$as_me:$LINENO: result: yes" >&5
4149 echo "${ECHO_T}yes" >&6; }
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 CFLAGS="$pgac_save_CFLAGS"
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 elif test "$PORTNAME" = "aix"; then
4162 # AIX's xlc has to have strict aliasing turned off too
4163 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4164 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4165 pgac_save_CFLAGS=$CFLAGS
4166 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4175 main ()
4179 return 0;
4181 _ACEOF
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4184 case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_compile") 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest.$ac_objext; then
4199 { echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6; }
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 CFLAGS="$pgac_save_CFLAGS"
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 # supply -g if --enable-debug
4215 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4216 CFLAGS="$CFLAGS -g"
4219 # enable code coverage if --enable-coverage
4220 if test "$enable_coverage" = yes; then
4221 if test "$GCC" = yes; then
4222 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4223 else
4224 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4225 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4226 { (exit 1); exit 1; }; }
4230 # enable profiling if --enable-profiling
4231 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4232 if test "$GCC" = yes; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define PROFILE_PID_DIR 1
4236 _ACEOF
4238 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4239 else
4240 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4241 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4242 { (exit 1); exit 1; }; }
4246 # We already have this in Makefile.win32, but configure needs it too
4247 if test "$PORTNAME" = "win32"; then
4248 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4251 # Check if the compiler still works with the template settings
4252 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4253 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4262 main ()
4264 return 0;
4266 return 0;
4268 _ACEOF
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest$ac_exeext &&
4286 $as_test_x conftest$ac_exeext; then
4287 { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4296 echo "$as_me: error: cannot proceed" >&2;}
4297 { (exit 1); exit 1; }; }
4300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4301 conftest$ac_exeext conftest.$ac_ext
4303 # Defend against gcc -ffast-math
4304 if test "$GCC" = yes; then
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4313 main ()
4315 #ifdef __FAST_MATH__
4316 choke me
4317 #endif
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4345 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4346 { (exit 1); exit 1; }; }
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4359 # On Suns, sometimes $CPP names a directory.
4360 if test -n "$CPP" && test -d "$CPP"; then
4361 CPP=
4363 if test -z "$CPP"; then
4364 if test "${ac_cv_prog_CPP+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 # Double quotes because CPP needs to be expanded
4368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 ac_preproc_ok=false
4371 for ac_c_preproc_warn_flag in '' yes
4373 # Use a header file that comes with gcc, so configuring glibc
4374 # with a fresh cross-compiler works.
4375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 # <limits.h> exists even on freestanding compilers.
4377 # On the NeXT, cc -E runs the code through the compiler's parser,
4378 # not just through cpp. "Syntax error" is here to catch this case.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #ifdef __STDC__
4386 # include <limits.h>
4387 #else
4388 # include <assert.h>
4389 #endif
4390 Syntax error
4391 _ACEOF
4392 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } >/dev/null && {
4405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 }; then
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 # Broken: fails on valid input.
4414 continue
4417 rm -f conftest.err conftest.$ac_ext
4419 # OK, works on sane cases. Now check whether nonexistent headers
4420 # can be detected and how.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <ac_nonexistent.h>
4428 _ACEOF
4429 if { (ac_try="$ac_cpp conftest.$ac_ext"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null && {
4442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4443 test ! -s conftest.err
4444 }; then
4445 # Broken: success on invalid input.
4446 continue
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4456 rm -f conftest.err conftest.$ac_ext
4458 done
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then
4462 break
4465 done
4466 ac_cv_prog_CPP=$CPP
4469 CPP=$ac_cv_prog_CPP
4470 else
4471 ac_cv_prog_CPP=$CPP
4473 { echo "$as_me:$LINENO: result: $CPP" >&5
4474 echo "${ECHO_T}$CPP" >&6; }
4475 ac_preproc_ok=false
4476 for ac_c_preproc_warn_flag in '' yes
4478 # Use a header file that comes with gcc, so configuring glibc
4479 # with a fresh cross-compiler works.
4480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 # <limits.h> exists even on freestanding compilers.
4482 # On the NeXT, cc -E runs the code through the compiler's parser,
4483 # not just through cpp. "Syntax error" is here to catch this case.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #ifdef __STDC__
4491 # include <limits.h>
4492 #else
4493 # include <assert.h>
4494 #endif
4495 Syntax error
4496 _ACEOF
4497 if { (ac_try="$ac_cpp conftest.$ac_ext"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null && {
4510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4512 }; then
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 # Broken: fails on valid input.
4519 continue
4522 rm -f conftest.err conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <ac_nonexistent.h>
4533 _ACEOF
4534 if { (ac_try="$ac_cpp conftest.$ac_ext"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null && {
4547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 }; then
4550 # Broken: success on invalid input.
4551 continue
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 # Passes both tests.
4557 ac_preproc_ok=:
4558 break
4561 rm -f conftest.err conftest.$ac_ext
4563 done
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then
4568 else
4569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details." >&2;}
4573 { (exit 1); exit 1; }; }
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 # Set up TAS assembly code if needed; the template file has now had its
4587 # chance to request this.
4589 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4592 if test "$need_tas" = yes ; then
4593 TAS=tas.o
4594 else
4595 TAS=""
4601 # Automatic dependency tracking
4604 pgac_args="$pgac_args enable_depend"
4606 # Check whether --enable-depend was given.
4607 if test "${enable_depend+set}" = set; then
4608 enableval=$enable_depend;
4609 case $enableval in
4610 yes)
4611 autodepend=yes
4617 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4618 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4619 { (exit 1); exit 1; }; }
4621 esac
4623 else
4624 enable_depend=no
4633 # Enable assert checks
4636 pgac_args="$pgac_args enable_cassert"
4638 # Check whether --enable-cassert was given.
4639 if test "${enable_cassert+set}" = set; then
4640 enableval=$enable_cassert;
4641 case $enableval in
4642 yes)
4644 cat >>confdefs.h <<\_ACEOF
4645 #define USE_ASSERT_CHECKING 1
4646 _ACEOF
4653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4654 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4655 { (exit 1); exit 1; }; }
4657 esac
4659 else
4660 enable_cassert=no
4668 # Include directories
4670 ac_save_IFS=$IFS
4671 IFS="${IFS}${PATH_SEPARATOR}"
4672 # SRCH_INC comes from the template file
4673 for dir in $with_includes $SRCH_INC; do
4674 if test -d "$dir"; then
4675 INCLUDES="$INCLUDES -I$dir"
4676 else
4677 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4678 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4680 done
4681 IFS=$ac_save_IFS
4686 # Library directories
4688 ac_save_IFS=$IFS
4689 IFS="${IFS}${PATH_SEPARATOR}"
4690 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4691 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4692 if test -d "$dir"; then
4693 LIBDIRS="$LIBDIRS -L$dir"
4694 else
4695 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4696 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4698 done
4699 IFS=$ac_save_IFS
4702 # Enable thread-safe client libraries
4704 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4705 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4706 if test "$PORTNAME" != "win32"; then
4708 pgac_args="$pgac_args enable_thread_safety"
4710 # Check whether --enable-thread-safety was given.
4711 if test "${enable_thread_safety+set}" = set; then
4712 enableval=$enable_thread_safety;
4713 case $enableval in
4714 yes)
4721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4722 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4723 { (exit 1); exit 1; }; }
4725 esac
4727 else
4728 enable_thread_safety=no
4733 else
4734 # Win32 should always use threads
4736 pgac_args="$pgac_args enable_thread_safety"
4738 # Check whether --enable-thread-safety was given.
4739 if test "${enable_thread_safety+set}" = set; then
4740 enableval=$enable_thread_safety;
4741 case $enableval in
4742 yes)
4749 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4750 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4751 { (exit 1); exit 1; }; }
4753 esac
4755 else
4756 enable_thread_safety=yes
4764 pgac_args="$pgac_args enable_thread_safety_force"
4766 # Check whether --enable-thread-safety-force was given.
4767 if test "${enable_thread_safety_force+set}" = set; then
4768 enableval=$enable_thread_safety_force;
4769 case $enableval in
4770 yes)
4777 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4778 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4779 { (exit 1); exit 1; }; }
4781 esac
4783 else
4784 enable_thread_safety_force=no
4789 if test "$enable_thread_safety" = yes -o \
4790 "$enable_thread_safety_force" = yes; then
4791 enable_thread_safety="yes" # for 'force'
4793 cat >>confdefs.h <<\_ACEOF
4794 #define ENABLE_THREAD_SAFETY 1
4795 _ACEOF
4798 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4799 echo "${ECHO_T}$enable_thread_safety" >&6; }
4803 # Optionally build Tcl modules (PL/Tcl)
4805 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4806 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4808 pgac_args="$pgac_args with_tcl"
4811 # Check whether --with-tcl was given.
4812 if test "${with_tcl+set}" = set; then
4813 withval=$with_tcl;
4814 case $withval in
4815 yes)
4822 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4823 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4824 { (exit 1); exit 1; }; }
4826 esac
4828 else
4829 with_tcl=no
4834 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4835 echo "${ECHO_T}$with_tcl" >&6; }
4838 # We see if the path to the Tcl/Tk configuration scripts is specified.
4839 # This will override the use of tclsh to find the paths to search.
4842 pgac_args="$pgac_args with_tclconfig"
4845 # Check whether --with-tclconfig was given.
4846 if test "${with_tclconfig+set}" = set; then
4847 withval=$with_tclconfig;
4848 case $withval in
4849 yes)
4850 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4851 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4852 { (exit 1); exit 1; }; }
4855 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4856 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4857 { (exit 1); exit 1; }; }
4862 esac
4869 # Optionally build Perl modules (PL/Perl)
4871 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4872 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4874 pgac_args="$pgac_args with_perl"
4877 # Check whether --with-perl was given.
4878 if test "${with_perl+set}" = set; then
4879 withval=$with_perl;
4880 case $withval in
4881 yes)
4888 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4889 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4890 { (exit 1); exit 1; }; }
4892 esac
4894 else
4895 with_perl=no
4900 { echo "$as_me:$LINENO: result: $with_perl" >&5
4901 echo "${ECHO_T}$with_perl" >&6; }
4905 # Optionally build Python modules (PL/Python)
4907 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4908 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4910 pgac_args="$pgac_args with_python"
4913 # Check whether --with-python was given.
4914 if test "${with_python+set}" = set; then
4915 withval=$with_python;
4916 case $withval in
4917 yes)
4924 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4925 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4926 { (exit 1); exit 1; }; }
4928 esac
4930 else
4931 with_python=no
4936 { echo "$as_me:$LINENO: result: $with_python" >&5
4937 echo "${ECHO_T}$with_python" >&6; }
4941 # GSSAPI
4943 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4944 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4946 pgac_args="$pgac_args with_gssapi"
4949 # Check whether --with-gssapi was given.
4950 if test "${with_gssapi+set}" = set; then
4951 withval=$with_gssapi;
4952 case $withval in
4953 yes)
4956 cat >>confdefs.h <<\_ACEOF
4957 #define ENABLE_GSS 1
4958 _ACEOF
4960 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4967 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4968 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4969 { (exit 1); exit 1; }; }
4971 esac
4973 else
4974 with_gssapi=no
4979 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4980 echo "${ECHO_T}$with_gssapi" >&6; }
4984 # Kerberos 5
4986 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4987 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4989 pgac_args="$pgac_args with_krb5"
4992 # Check whether --with-krb5 was given.
4993 if test "${with_krb5+set}" = set; then
4994 withval=$with_krb5;
4995 case $withval in
4996 yes)
4999 cat >>confdefs.h <<\_ACEOF
5000 #define KRB5 1
5001 _ACEOF
5003 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5010 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5011 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5012 { (exit 1); exit 1; }; }
5014 esac
5016 else
5017 with_krb5=no
5022 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5023 echo "${ECHO_T}$with_krb5" >&6; }
5031 # Kerberos configuration parameters
5034 pgac_args="$pgac_args with_krb_srvnam"
5037 # Check whether --with-krb-srvnam was given.
5038 if test "${with_krb_srvnam+set}" = set; then
5039 withval=$with_krb_srvnam;
5040 case $withval in
5041 yes)
5042 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5043 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5044 { (exit 1); exit 1; }; }
5047 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5048 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5049 { (exit 1); exit 1; }; }
5054 esac
5056 else
5057 with_krb_srvnam="postgres"
5062 cat >>confdefs.h <<_ACEOF
5063 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5064 _ACEOF
5069 # PAM
5071 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5072 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5074 pgac_args="$pgac_args with_pam"
5077 # Check whether --with-pam was given.
5078 if test "${with_pam+set}" = set; then
5079 withval=$with_pam;
5080 case $withval in
5081 yes)
5083 cat >>confdefs.h <<\_ACEOF
5084 #define USE_PAM 1
5085 _ACEOF
5092 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5093 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5094 { (exit 1); exit 1; }; }
5096 esac
5098 else
5099 with_pam=no
5104 { echo "$as_me:$LINENO: result: $with_pam" >&5
5105 echo "${ECHO_T}$with_pam" >&6; }
5110 # LDAP
5112 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5113 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5115 pgac_args="$pgac_args with_ldap"
5118 # Check whether --with-ldap was given.
5119 if test "${with_ldap+set}" = set; then
5120 withval=$with_ldap;
5121 case $withval in
5122 yes)
5124 cat >>confdefs.h <<\_ACEOF
5125 #define USE_LDAP 1
5126 _ACEOF
5133 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5134 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5135 { (exit 1); exit 1; }; }
5137 esac
5139 else
5140 with_ldap=no
5145 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5146 echo "${ECHO_T}$with_ldap" >&6; }
5151 # Bonjour
5153 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5154 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5156 pgac_args="$pgac_args with_bonjour"
5159 # Check whether --with-bonjour was given.
5160 if test "${with_bonjour+set}" = set; then
5161 withval=$with_bonjour;
5162 case $withval in
5163 yes)
5165 cat >>confdefs.h <<\_ACEOF
5166 #define USE_BONJOUR 1
5167 _ACEOF
5174 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5175 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5176 { (exit 1); exit 1; }; }
5178 esac
5180 else
5181 with_bonjour=no
5186 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5187 echo "${ECHO_T}$with_bonjour" >&6; }
5192 # OpenSSL
5194 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5195 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5197 pgac_args="$pgac_args with_openssl"
5200 # Check whether --with-openssl was given.
5201 if test "${with_openssl+set}" = set; then
5202 withval=$with_openssl;
5203 case $withval in
5204 yes)
5206 cat >>confdefs.h <<\_ACEOF
5207 #define USE_SSL 1
5208 _ACEOF
5215 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5216 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5217 { (exit 1); exit 1; }; }
5219 esac
5221 else
5222 with_openssl=no
5227 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5228 echo "${ECHO_T}$with_openssl" >&6; }
5233 # Readline
5236 pgac_args="$pgac_args with_readline"
5239 # Check whether --with-readline was given.
5240 if test "${with_readline+set}" = set; then
5241 withval=$with_readline;
5242 case $withval in
5243 yes)
5250 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5251 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5252 { (exit 1); exit 1; }; }
5254 esac
5256 else
5257 with_readline=yes
5262 # readline on MinGW has problems with backslashes in psql and other bugs.
5263 # This is particularly a problem with non-US code pages.
5264 # Therefore disable its use until we understand the cause. 2004-07-20
5265 if test "$PORTNAME" = "win32"; then
5266 if test "$with_readline" = yes; then
5267 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5268 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5269 with_readline=no
5275 # Prefer libedit
5278 pgac_args="$pgac_args with_libedit_preferred"
5281 # Check whether --with-libedit-preferred was given.
5282 if test "${with_libedit_preferred+set}" = set; then
5283 withval=$with_libedit_preferred;
5284 case $withval in
5285 yes)
5292 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5293 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5294 { (exit 1); exit 1; }; }
5296 esac
5298 else
5299 with_libedit_preferred=no
5307 # OSSP UUID library
5310 pgac_args="$pgac_args with_ossp_uuid"
5313 # Check whether --with-ossp-uuid was given.
5314 if test "${with_ossp_uuid+set}" = set; then
5315 withval=$with_ossp_uuid;
5316 case $withval in
5317 yes)
5324 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5325 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5326 { (exit 1); exit 1; }; }
5328 esac
5330 else
5331 with_ossp_uuid=no
5340 # XML
5343 pgac_args="$pgac_args with_libxml"
5346 # Check whether --with-libxml was given.
5347 if test "${with_libxml+set}" = set; then
5348 withval=$with_libxml;
5349 case $withval in
5350 yes)
5352 cat >>confdefs.h <<\_ACEOF
5353 #define USE_LIBXML 1
5354 _ACEOF
5361 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5362 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5363 { (exit 1); exit 1; }; }
5365 esac
5367 else
5368 with_libxml=no
5374 if test "$with_libxml" = yes ; then
5375 for ac_prog in xml2-config
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 if test -n "$XML2_CONFIG"; then
5385 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_XML2_CONFIG="$ac_prog"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5405 if test -n "$XML2_CONFIG"; then
5406 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5407 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5408 else
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5414 test -n "$XML2_CONFIG" && break
5415 done
5417 if test -n "$XML2_CONFIG"; then
5418 for pgac_option in `$XML2_CONFIG --cflags`; do
5419 case $pgac_option in
5420 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5421 esac
5422 done
5423 for pgac_option in `$XML2_CONFIG --libs`; do
5424 case $pgac_option in
5425 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5426 esac
5427 done
5434 # XSLT
5437 pgac_args="$pgac_args with_libxslt"
5440 # Check whether --with-libxslt was given.
5441 if test "${with_libxslt+set}" = set; then
5442 withval=$with_libxslt;
5443 case $withval in
5444 yes)
5446 cat >>confdefs.h <<\_ACEOF
5447 #define USE_LIBXSLT 1
5448 _ACEOF
5455 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5456 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5457 { (exit 1); exit 1; }; }
5459 esac
5461 else
5462 with_libxslt=no
5472 # tzdata
5475 pgac_args="$pgac_args with_system_tzdata"
5478 # Check whether --with-system-tzdata was given.
5479 if test "${with_system_tzdata+set}" = set; then
5480 withval=$with_system_tzdata;
5481 case $withval in
5482 yes)
5483 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5484 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5485 { (exit 1); exit 1; }; }
5488 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5489 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5490 { (exit 1); exit 1; }; }
5495 esac
5503 # Zlib
5506 pgac_args="$pgac_args with_zlib"
5509 # Check whether --with-zlib was given.
5510 if test "${with_zlib+set}" = set; then
5511 withval=$with_zlib;
5512 case $withval in
5513 yes)
5520 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5521 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5522 { (exit 1); exit 1; }; }
5524 esac
5526 else
5527 with_zlib=yes
5535 # Elf
5538 # Assume system is ELF if it predefines __ELF__ as 1,
5539 # otherwise believe host_os based default.
5540 case $host_os in
5541 freebsd1*|freebsd2*) elf=no;;
5542 freebsd3*|freebsd4*) elf=yes;;
5543 esac
5546 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5547 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5548 if test "${ac_cv_path_GREP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 # Extract the first word of "grep ggrep" to use in msg output
5552 if test -z "$GREP"; then
5553 set dummy grep ggrep; ac_prog_name=$2
5554 if test "${ac_cv_path_GREP+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 ac_path_GREP_found=false
5558 # Loop through the user's path and test for each of PROGNAME-LIST
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_prog in grep ggrep; do
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5568 # Check for GNU ac_path_GREP and select it if it is found.
5569 # Check for GNU $ac_path_GREP
5570 case `"$ac_path_GREP" --version 2>&1` in
5571 *GNU*)
5572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5574 ac_count=0
5575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5576 while :
5578 cat "conftest.in" "conftest.in" >"conftest.tmp"
5579 mv "conftest.tmp" "conftest.in"
5580 cp "conftest.in" "conftest.nl"
5581 echo 'GREP' >> "conftest.nl"
5582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5584 ac_count=`expr $ac_count + 1`
5585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5586 # Best one so far, save it but keep looking for a better one
5587 ac_cv_path_GREP="$ac_path_GREP"
5588 ac_path_GREP_max=$ac_count
5590 # 10*(2^10) chars as input seems more than enough
5591 test $ac_count -gt 10 && break
5592 done
5593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 esac
5597 $ac_path_GREP_found && break 3
5598 done
5599 done
5601 done
5602 IFS=$as_save_IFS
5607 GREP="$ac_cv_path_GREP"
5608 if test -z "$GREP"; then
5609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5611 { (exit 1); exit 1; }; }
5614 else
5615 ac_cv_path_GREP=$GREP
5620 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5621 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5622 GREP="$ac_cv_path_GREP"
5625 { echo "$as_me:$LINENO: checking for egrep" >&5
5626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5627 if test "${ac_cv_path_EGREP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5631 then ac_cv_path_EGREP="$GREP -E"
5632 else
5633 # Extract the first word of "egrep" to use in msg output
5634 if test -z "$EGREP"; then
5635 set dummy egrep; ac_prog_name=$2
5636 if test "${ac_cv_path_EGREP+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 ac_path_EGREP_found=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in egrep; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5650 # Check for GNU ac_path_EGREP and select it if it is found.
5651 # Check for GNU $ac_path_EGREP
5652 case `"$ac_path_EGREP" --version 2>&1` in
5653 *GNU*)
5654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5656 ac_count=0
5657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5658 while :
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 echo 'EGREP' >> "conftest.nl"
5664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666 ac_count=`expr $ac_count + 1`
5667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_EGREP="$ac_path_EGREP"
5670 ac_path_EGREP_max=$ac_count
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5674 done
5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 esac
5679 $ac_path_EGREP_found && break 3
5680 done
5681 done
5683 done
5684 IFS=$as_save_IFS
5689 EGREP="$ac_cv_path_EGREP"
5690 if test -z "$EGREP"; then
5691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5693 { (exit 1); exit 1; }; }
5696 else
5697 ac_cv_path_EGREP=$EGREP
5703 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5704 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5705 EGREP="$ac_cv_path_EGREP"
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #if __ELF__
5716 #endif
5718 _ACEOF
5719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720 $EGREP "yes" >/dev/null 2>&1; then
5721 ELF_SYS=true
5722 else
5723 if test "X$elf" = "Xyes" ; then
5724 ELF_SYS=true
5725 else
5726 ELF_SYS=
5729 rm -f conftest*
5734 # Assignments
5737 CPPFLAGS="$CPPFLAGS $INCLUDES"
5738 LDFLAGS="$LDFLAGS $LIBDIRS"
5743 # Check whether --with-gnu-ld was given.
5744 if test "${with_gnu_ld+set}" = set; then
5745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5746 else
5747 with_gnu_ld=no
5750 ac_prog=ld
5751 if test "$GCC" = yes; then
5752 # Check if gcc -print-prog-name=ld gives a path.
5753 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5755 case $host in
5756 *-*-mingw*)
5757 # gcc leaves a trailing carriage return which upsets mingw
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5761 esac
5762 case "$ac_prog" in
5763 # Accept absolute paths.
5764 [\\/]* | [A-Za-z]:[\\/]*)
5765 re_direlt='/[^/][^/]*/\.\./'
5766 # Canonicalize the path of ld
5767 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5769 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5770 done
5771 test -z "$LD" && LD="$ac_prog"
5774 # If it fails, then pretend we aren't using GCC.
5775 ac_prog=ld
5778 # If it is relative, then search for the first ld in PATH.
5779 with_gnu_ld=unknown
5781 esac
5782 elif test "$with_gnu_ld" = yes; then
5783 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5785 else
5786 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_LD+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 if test -z "$LD"; then
5793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5794 for ac_dir in $PATH; do
5795 test -z "$ac_dir" && ac_dir=.
5796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5797 ac_cv_path_LD="$ac_dir/$ac_prog"
5798 # Check to see if the program is GNU ld. I'd rather use --version,
5799 # but apparently some GNU ld's only accept -v.
5800 # Break only if it was the GNU/non-GNU ld that we prefer.
5801 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5802 test "$with_gnu_ld" != no && break
5803 else
5804 test "$with_gnu_ld" != yes && break
5807 done
5808 IFS="$ac_save_ifs"
5809 else
5810 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5814 LD="$ac_cv_path_LD"
5815 if test -n "$LD"; then
5816 { echo "$as_me:$LINENO: result: $LD" >&5
5817 echo "${ECHO_T}$LD" >&6; }
5818 else
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5824 { (exit 1); exit 1; }; }
5825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5831 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5832 ac_cv_prog_gnu_ld=yes
5833 else
5834 ac_cv_prog_gnu_ld=no
5837 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5838 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5839 with_gnu_ld=$ac_cv_prog_gnu_ld
5844 case $host_os in sysv5*)
5845 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5846 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5847 if test "${pgac_cv_prog_ld_R+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5851 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5860 main ()
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (ac_try="$ac_link"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_link") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest$ac_exeext &&
5884 $as_test_x conftest$ac_exeext; then
5885 pgac_cv_prog_ld_R=yes
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 pgac_cv_prog_ld_R=no
5893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894 conftest$ac_exeext conftest.$ac_ext
5895 LDFLAGS=$pgac_save_LDFLAGS
5898 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5899 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5900 ld_R_works=$pgac_cv_prog_ld_R
5902 esac
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_prog_RANLIB+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 if test -n "$RANLIB"; then
5912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5925 done
5926 done
5927 IFS=$as_save_IFS
5931 RANLIB=$ac_cv_prog_RANLIB
5932 if test -n "$RANLIB"; then
5933 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5934 echo "${ECHO_T}$RANLIB" >&6; }
5935 else
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5942 if test -z "$ac_cv_prog_RANLIB"; then
5943 ac_ct_RANLIB=$RANLIB
5944 # Extract the first word of "ranlib", so it can be a program name with args.
5945 set dummy ranlib; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 if test -n "$ac_ct_RANLIB"; then
5952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_ac_ct_RANLIB="ranlib"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5965 done
5966 done
5967 IFS=$as_save_IFS
5971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972 if test -n "$ac_ct_RANLIB"; then
5973 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5974 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5975 else
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5980 if test "x$ac_ct_RANLIB" = x; then
5981 RANLIB=":"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet. If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 RANLIB=$ac_ct_RANLIB
5995 else
5996 RANLIB="$ac_cv_prog_RANLIB"
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}strip; ac_word=$2
6003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6005 if test "${ac_cv_prog_STRIP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 if test -n "$STRIP"; then
6009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6022 done
6023 done
6024 IFS=$as_save_IFS
6028 STRIP=$ac_cv_prog_STRIP
6029 if test -n "$STRIP"; then
6030 { echo "$as_me:$LINENO: result: $STRIP" >&5
6031 echo "${ECHO_T}$STRIP" >&6; }
6032 else
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6039 if test -z "$ac_cv_prog_STRIP"; then
6040 ac_ct_STRIP=$STRIP
6041 # Extract the first word of "strip", so it can be a program name with args.
6042 set dummy strip; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 if test -n "$ac_ct_STRIP"; then
6049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_STRIP="strip"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6062 done
6063 done
6064 IFS=$as_save_IFS
6068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6069 if test -n "$ac_ct_STRIP"; then
6070 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6071 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6072 else
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6077 if test "x$ac_ct_STRIP" = x; then
6078 STRIP=":"
6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081 yes:)
6082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&5
6085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6086 whose name does not start with the host triplet. If you think this
6087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090 STRIP=$ac_ct_STRIP
6092 else
6093 STRIP="$ac_cv_prog_STRIP"
6097 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6098 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6099 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6100 STRIP_STATIC_LIB="$STRIP -x"
6101 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6102 { echo "$as_me:$LINENO: result: yes" >&5
6103 echo "${ECHO_T}yes" >&6; }
6104 else
6105 STRIP_STATIC_LIB=:
6106 STRIP_SHARED_LIB=:
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 if test -n "$AR"; then
6122 ac_cv_prog_AR="$AR" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_AR="${ac_tool_prefix}ar"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
6141 AR=$ac_cv_prog_AR
6142 if test -n "$AR"; then
6143 { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6145 else
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6152 if test -z "$ac_cv_prog_AR"; then
6153 ac_ct_AR=$AR
6154 # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 if test -n "$ac_ct_AR"; then
6162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_AR="ar"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6185 else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 if test "x$ac_ct_AR" = x; then
6191 AR="ar"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet. If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 AR=$ac_ct_AR
6205 else
6206 AR="$ac_cv_prog_AR"
6209 if test "$PORTNAME" = "win32"; then
6210 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 if test -n "$DLLTOOL"; then
6219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6232 done
6233 done
6234 IFS=$as_save_IFS
6238 DLLTOOL=$ac_cv_prog_DLLTOOL
6239 if test -n "$DLLTOOL"; then
6240 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6241 echo "${ECHO_T}$DLLTOOL" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6249 if test -z "$ac_cv_prog_DLLTOOL"; then
6250 ac_ct_DLLTOOL=$DLLTOOL
6251 # Extract the first word of "dlltool", so it can be a program name with args.
6252 set dummy dlltool; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 if test -n "$ac_ct_DLLTOOL"; then
6259 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
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_ac_ct_DLLTOOL="dlltool"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6272 done
6273 done
6274 IFS=$as_save_IFS
6278 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6279 if test -n "$ac_ct_DLLTOOL"; then
6280 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6281 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6282 else
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6287 if test "x$ac_ct_DLLTOOL" = x; then
6288 DLLTOOL="dlltool"
6289 else
6290 case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300 DLLTOOL=$ac_ct_DLLTOOL
6302 else
6303 DLLTOOL="$ac_cv_prog_DLLTOOL"
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test -n "$DLLWRAP"; then
6315 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 DLLWRAP=$ac_cv_prog_DLLWRAP
6335 if test -n "$DLLWRAP"; then
6336 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6337 echo "${ECHO_T}$DLLWRAP" >&6; }
6338 else
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6345 if test -z "$ac_cv_prog_DLLWRAP"; then
6346 ac_ct_DLLWRAP=$DLLWRAP
6347 # Extract the first word of "dllwrap", so it can be a program name with args.
6348 set dummy dllwrap; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 if test -n "$ac_ct_DLLWRAP"; then
6355 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6375 if test -n "$ac_ct_DLLWRAP"; then
6376 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6377 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6378 else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 if test "x$ac_ct_DLLWRAP" = x; then
6384 DLLWRAP="dllwrap"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet. If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6395 esac
6396 DLLWRAP=$ac_ct_DLLWRAP
6398 else
6399 DLLWRAP="$ac_cv_prog_DLLWRAP"
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}windres; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_prog_WINDRES+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 if test -n "$WINDRES"; then
6411 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6424 done
6425 done
6426 IFS=$as_save_IFS
6430 WINDRES=$ac_cv_prog_WINDRES
6431 if test -n "$WINDRES"; then
6432 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6433 echo "${ECHO_T}$WINDRES" >&6; }
6434 else
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6441 if test -z "$ac_cv_prog_WINDRES"; then
6442 ac_ct_WINDRES=$WINDRES
6443 # Extract the first word of "windres", so it can be a program name with args.
6444 set dummy windres; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 if test -n "$ac_ct_WINDRES"; then
6451 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_WINDRES="windres"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6470 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6471 if test -n "$ac_ct_WINDRES"; then
6472 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6473 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6474 else
6475 { echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6; }
6479 if test "x$ac_ct_WINDRES" = x; then
6480 WINDRES="windres"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet. If you think this
6486 configuration is useful to you, please write to autoconf@gnu.org." >&5
6487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6488 whose name does not start with the host triplet. If you think this
6489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 WINDRES=$ac_ct_WINDRES
6494 else
6495 WINDRES="$ac_cv_prog_WINDRES"
6500 # Extract the first word of "tar", so it can be a program name with args.
6501 set dummy tar; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_path_TAR+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 case $TAR in
6508 [\\/]* | ?:[\\/]*)
6509 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6523 done
6524 done
6525 IFS=$as_save_IFS
6528 esac
6530 TAR=$ac_cv_path_TAR
6531 if test -n "$TAR"; then
6532 { echo "$as_me:$LINENO: result: $TAR" >&5
6533 echo "${ECHO_T}$TAR" >&6; }
6534 else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6542 LN_S=$as_ln_s
6543 if test "$LN_S" = "ln -s"; then
6544 { echo "$as_me:$LINENO: result: yes" >&5
6545 echo "${ECHO_T}yes" >&6; }
6546 else
6547 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6548 echo "${ECHO_T}no, using $LN_S" >&6; }
6551 for ac_prog in gawk mawk nawk awk
6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_AWK+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 if test -n "$AWK"; then
6561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_AWK="$ac_prog"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6574 done
6575 done
6576 IFS=$as_save_IFS
6580 AWK=$ac_cv_prog_AWK
6581 if test -n "$AWK"; then
6582 { echo "$as_me:$LINENO: result: $AWK" >&5
6583 echo "${ECHO_T}$AWK" >&6; }
6584 else
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6590 test -n "$AWK" && break
6591 done
6594 # Let the user override the search
6595 if test -z "$BISON"; then
6596 for ac_prog in bison
6598 # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_BISON+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 if test -n "$BISON"; then
6606 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_BISON="$ac_prog"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6619 done
6620 done
6621 IFS=$as_save_IFS
6625 BISON=$ac_cv_prog_BISON
6626 if test -n "$BISON"; then
6627 { echo "$as_me:$LINENO: result: $BISON" >&5
6628 echo "${ECHO_T}$BISON" >&6; }
6629 else
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 test -n "$BISON" && break
6636 done
6640 if test "$BISON"; then
6641 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6642 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6643 echo "$as_me: using $pgac_bison_version" >&6;}
6644 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6645 then
6646 { echo "$as_me:$LINENO: WARNING:
6647 *** The installed version of Bison is too old to use with PostgreSQL.
6648 *** Bison version 1.875 or later is required." >&5
6649 echo "$as_me: WARNING:
6650 *** The installed version of Bison is too old to use with PostgreSQL.
6651 *** Bison version 1.875 or later is required." >&2;}
6652 BISON=""
6656 if test -z "$BISON"; then
6657 { echo "$as_me:$LINENO: WARNING:
6658 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6659 *** change any of the parser definition files. You can obtain Bison from
6660 *** a GNU mirror site. (If you are using the official distribution of
6661 *** PostgreSQL then you do not need to worry about this, because the Bison
6662 *** output is pre-generated.)" >&5
6663 echo "$as_me: WARNING:
6664 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6665 *** change any of the parser definition files. You can obtain Bison from
6666 *** a GNU mirror site. (If you are using the official distribution of
6667 *** PostgreSQL then you do not need to worry about this, because the Bison
6668 *** output is pre-generated.)" >&2;}
6670 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6673 { echo "$as_me:$LINENO: checking for flex" >&5
6674 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6675 if test "${pgac_cv_path_flex+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 # Let the user override the test
6679 if test -n "$FLEX"; then
6680 pgac_cv_path_flex=$FLEX
6681 else
6682 pgac_save_IFS=$IFS
6683 IFS=$PATH_SEPARATOR
6684 for pgac_dir in $PATH; do
6685 IFS=$pgac_save_IFS
6686 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6687 pgac_dir=`pwd`
6689 for pgac_prog in flex lex; do
6690 pgac_candidate="$pgac_dir/$pgac_prog"
6691 if test -f "$pgac_candidate" \
6692 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6693 then
6694 echo '%%' > conftest.l
6695 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6696 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6697 pgac_broken_flex=$pgac_candidate
6698 continue
6701 pgac_cv_path_flex=$pgac_candidate
6702 break 2
6705 done
6706 done
6707 rm -f conftest.l lex.yy.c
6708 : ${pgac_cv_path_flex=no}
6712 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6713 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6714 if test x"$pgac_cv_path_flex" = x"no"; then
6715 if test -n "$pgac_broken_flex"; then
6716 { echo "$as_me:$LINENO: WARNING:
6717 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6718 *** should get version 2.5.4 or later." >&5
6719 echo "$as_me: WARNING:
6720 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6721 *** should get version 2.5.4 or later." >&2;}
6724 { echo "$as_me:$LINENO: WARNING:
6725 *** Without Flex you will not be able to build PostgreSQL from CVS or
6726 *** change any of the scanner definition files. You can obtain Flex from
6727 *** a GNU mirror site. (If you are using the official distribution of
6728 *** PostgreSQL then you do not need to worry about this because the Flex
6729 *** output is pre-generated.)" >&5
6730 echo "$as_me: WARNING:
6731 *** Without Flex you will not be able to build PostgreSQL from CVS or
6732 *** change any of the scanner definition files. You can obtain Flex from
6733 *** a GNU mirror site. (If you are using the official distribution of
6734 *** PostgreSQL then you do not need to worry about this because the Flex
6735 *** output is pre-generated.)" >&2;}
6737 FLEX=
6738 else
6739 FLEX=$pgac_cv_path_flex
6740 pgac_flex_version=`$FLEX -V 2>/dev/null`
6741 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6742 echo "$as_me: using $pgac_flex_version" >&6;}
6749 # Extract the first word of "perl", so it can be a program name with args.
6750 set dummy perl; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_PERL+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 case $PERL in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6777 esac
6779 PERL=$ac_cv_path_PERL
6780 if test -n "$PERL"; then
6781 { echo "$as_me:$LINENO: result: $PERL" >&5
6782 echo "${ECHO_T}$PERL" >&6; }
6783 else
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 if test "$with_perl" = yes; then
6791 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6792 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6793 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6794 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6795 echo "${ECHO_T}$perl_archlibexp" >&6; }
6796 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6797 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6798 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6799 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6800 echo "${ECHO_T}$perl_privlibexp" >&6; }
6801 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6802 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6803 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6804 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6805 echo "${ECHO_T}$perl_useshrplib" >&6; }
6807 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6808 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6809 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6810 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6811 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6812 if test -z "$perl_embed_ldflags" ; then
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6816 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6817 installed." >&5
6818 echo "$as_me: error: could not determine flags for linking embedded Perl.
6819 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6820 installed." >&2;}
6821 { (exit 1); exit 1; }; }
6822 else
6823 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6824 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6829 if test "$with_python" = yes; then
6830 # Extract the first word of "python", so it can be a program name with args.
6831 set dummy python; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_PYTHON+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 case $PYTHON in
6838 [\\/]* | ?:[\\/]*)
6839 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6853 done
6854 done
6855 IFS=$as_save_IFS
6858 esac
6860 PYTHON=$ac_cv_path_PYTHON
6861 if test -n "$PYTHON"; then
6862 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6863 echo "${ECHO_T}$PYTHON" >&6; }
6864 else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 if test x"$PYTHON" = x""; then
6871 { { echo "$as_me:$LINENO: error: Python not found" >&5
6872 echo "$as_me: error: Python not found" >&2;}
6873 { (exit 1); exit 1; }; }
6877 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6878 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6879 if "${PYTHON}" 2>&- -c 'import distutils'
6880 then
6881 { echo "$as_me:$LINENO: result: yes" >&5
6882 echo "${ECHO_T}yes" >&6; }
6883 else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6887 echo "$as_me: error: distutils module not found" >&2;}
6888 { (exit 1); exit 1; }; }
6890 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6891 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6892 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6893 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'))"`
6894 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6896 # This should be enough of a message.
6897 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6898 echo "${ECHO_T}$python_configdir" >&6; }
6901 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6902 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6904 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6905 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6906 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6907 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6909 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6910 then
6911 # New way: use the official shared library
6912 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6913 python_libspec="-L${python_libdir} -l${ldlibrary}"
6914 else
6915 # Old way: use libpython from python_configdir
6916 python_libdir="${python_configdir}"
6917 python_libspec="-L${python_libdir} -lpython${python_version}"
6920 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6922 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6923 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6926 # threaded python is not supported on bsd's
6927 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6928 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6929 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
6930 if test "$pythreads" = "1"; then
6931 { echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6; }
6933 case $host_os in
6934 openbsd*|freebsd*)
6935 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6936 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6937 { (exit 1); exit 1; }; }
6939 esac
6940 else
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6948 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
6949 # Extract the first word of "zic", so it can be a program name with args.
6950 set dummy zic; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_ZIC+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 case $ZIC in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6972 done
6973 done
6974 IFS=$as_save_IFS
6977 esac
6979 ZIC=$ac_cv_path_ZIC
6980 if test -n "$ZIC"; then
6981 { echo "$as_me:$LINENO: result: $ZIC" >&5
6982 echo "${ECHO_T}$ZIC" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 if test -z "$ZIC"; then
6990 { { echo "$as_me:$LINENO: error:
6991 When cross-compiling, either use the option --with-system-tzdata to use
6992 existing time-zone data, or set the environment variable ZIC to a zic
6993 program to use during the build." >&5
6994 echo "$as_me: error:
6995 When cross-compiling, either use the option --with-system-tzdata to use
6996 existing time-zone data, or set the environment variable ZIC to a zic
6997 program to use during the build." >&2;}
6998 { (exit 1); exit 1; }; }
7004 ## Libraries
7006 ## Most libraries are included only if they demonstrably provide a function
7007 ## we need, but libm is an exception: always include it, because there are
7008 ## too many compilers that play cute optimization games that will break
7009 ## probes for standard functions such as pow().
7013 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7014 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7015 if test "${ac_cv_lib_m_main+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 ac_check_lib_save_LIBS=$LIBS
7019 LIBS="-lm $LIBS"
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7029 main ()
7031 return main ();
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (ac_try="$ac_link"
7038 case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041 esac
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_link") 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest$ac_exeext &&
7053 $as_test_x conftest$ac_exeext; then
7054 ac_cv_lib_m_main=yes
7055 else
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 ac_cv_lib_m_main=no
7062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7066 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7067 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7068 if test $ac_cv_lib_m_main = yes; then
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_LIBM 1
7071 _ACEOF
7073 LIBS="-lm $LIBS"
7077 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7078 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7079 if test "${ac_cv_search_setproctitle+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 ac_func_search_save_LIBS=$LIBS
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 char setproctitle ();
7098 main ()
7100 return setproctitle ();
7102 return 0;
7104 _ACEOF
7105 for ac_lib in '' util; do
7106 if test -z "$ac_lib"; then
7107 ac_res="none required"
7108 else
7109 ac_res=-l$ac_lib
7110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7112 rm -f conftest.$ac_objext conftest$ac_exeext
7113 if { (ac_try="$ac_link"
7114 case "(($ac_try" in
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7117 esac
7118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7119 (eval "$ac_link") 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && {
7126 test -z "$ac_c_werror_flag" ||
7127 test ! -s conftest.err
7128 } && test -s conftest$ac_exeext &&
7129 $as_test_x conftest$ac_exeext; then
7130 ac_cv_search_setproctitle=$ac_res
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139 conftest$ac_exeext
7140 if test "${ac_cv_search_setproctitle+set}" = set; then
7141 break
7143 done
7144 if test "${ac_cv_search_setproctitle+set}" = set; then
7146 else
7147 ac_cv_search_setproctitle=no
7149 rm conftest.$ac_ext
7150 LIBS=$ac_func_search_save_LIBS
7152 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7153 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7154 ac_res=$ac_cv_search_setproctitle
7155 if test "$ac_res" != no; then
7156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7160 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7161 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7162 if test "${ac_cv_search_dlopen+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 ac_func_search_save_LIBS=$LIBS
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7173 /* Override any GCC internal prototype to avoid an error.
7174 Use char because int might match the return type of a GCC
7175 builtin and then its argument prototype would still apply. */
7176 #ifdef __cplusplus
7177 extern "C"
7178 #endif
7179 char dlopen ();
7181 main ()
7183 return dlopen ();
7185 return 0;
7187 _ACEOF
7188 for ac_lib in '' dl; do
7189 if test -z "$ac_lib"; then
7190 ac_res="none required"
7191 else
7192 ac_res=-l$ac_lib
7193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest$ac_exeext &&
7212 $as_test_x conftest$ac_exeext; then
7213 ac_cv_search_dlopen=$ac_res
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7222 conftest$ac_exeext
7223 if test "${ac_cv_search_dlopen+set}" = set; then
7224 break
7226 done
7227 if test "${ac_cv_search_dlopen+set}" = set; then
7229 else
7230 ac_cv_search_dlopen=no
7232 rm conftest.$ac_ext
7233 LIBS=$ac_func_search_save_LIBS
7235 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7236 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7237 ac_res=$ac_cv_search_dlopen
7238 if test "$ac_res" != no; then
7239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7243 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7244 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7245 if test "${ac_cv_search_socket+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 ac_func_search_save_LIBS=$LIBS
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 char socket ();
7264 main ()
7266 return socket ();
7268 return 0;
7270 _ACEOF
7271 for ac_lib in '' socket wsock32; do
7272 if test -z "$ac_lib"; then
7273 ac_res="none required"
7274 else
7275 ac_res=-l$ac_lib
7276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest$ac_exeext &&
7295 $as_test_x conftest$ac_exeext; then
7296 ac_cv_search_socket=$ac_res
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305 conftest$ac_exeext
7306 if test "${ac_cv_search_socket+set}" = set; then
7307 break
7309 done
7310 if test "${ac_cv_search_socket+set}" = set; then
7312 else
7313 ac_cv_search_socket=no
7315 rm conftest.$ac_ext
7316 LIBS=$ac_func_search_save_LIBS
7318 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7319 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7320 ac_res=$ac_cv_search_socket
7321 if test "$ac_res" != no; then
7322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7326 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7327 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7328 if test "${ac_cv_search_shl_load+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 ac_func_search_save_LIBS=$LIBS
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7339 /* Override any GCC internal prototype to avoid an error.
7340 Use char because int might match the return type of a GCC
7341 builtin and then its argument prototype would still apply. */
7342 #ifdef __cplusplus
7343 extern "C"
7344 #endif
7345 char shl_load ();
7347 main ()
7349 return shl_load ();
7351 return 0;
7353 _ACEOF
7354 for ac_lib in '' dld; do
7355 if test -z "$ac_lib"; then
7356 ac_res="none required"
7357 else
7358 ac_res=-l$ac_lib
7359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (ac_try="$ac_link"
7363 case "(($ac_try" in
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_link") 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest$ac_exeext &&
7378 $as_test_x conftest$ac_exeext; then
7379 ac_cv_search_shl_load=$ac_res
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7388 conftest$ac_exeext
7389 if test "${ac_cv_search_shl_load+set}" = set; then
7390 break
7392 done
7393 if test "${ac_cv_search_shl_load+set}" = set; then
7395 else
7396 ac_cv_search_shl_load=no
7398 rm conftest.$ac_ext
7399 LIBS=$ac_func_search_save_LIBS
7401 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7402 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7403 ac_res=$ac_cv_search_shl_load
7404 if test "$ac_res" != no; then
7405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7409 # We only use libld in port/dynloader/aix.c
7410 case $host_os in
7411 aix*)
7412 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7413 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7414 if test "${ac_cv_search_ldopen+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 ac_func_search_save_LIBS=$LIBS
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7425 /* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 char ldopen ();
7433 main ()
7435 return ldopen ();
7437 return 0;
7439 _ACEOF
7440 for ac_lib in '' ld; do
7441 if test -z "$ac_lib"; then
7442 ac_res="none required"
7443 else
7444 ac_res=-l$ac_lib
7445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (ac_try="$ac_link"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_link") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest$ac_exeext &&
7464 $as_test_x conftest$ac_exeext; then
7465 ac_cv_search_ldopen=$ac_res
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7474 conftest$ac_exeext
7475 if test "${ac_cv_search_ldopen+set}" = set; then
7476 break
7478 done
7479 if test "${ac_cv_search_ldopen+set}" = set; then
7481 else
7482 ac_cv_search_ldopen=no
7484 rm conftest.$ac_ext
7485 LIBS=$ac_func_search_save_LIBS
7487 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7488 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7489 ac_res=$ac_cv_search_ldopen
7490 if test "$ac_res" != no; then
7491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7496 esac
7497 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7498 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7499 if test "${ac_cv_search_getopt_long+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 ac_func_search_save_LIBS=$LIBS
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 /* Override any GCC internal prototype to avoid an error.
7511 Use char because int might match the return type of a GCC
7512 builtin and then its argument prototype would still apply. */
7513 #ifdef __cplusplus
7514 extern "C"
7515 #endif
7516 char getopt_long ();
7518 main ()
7520 return getopt_long ();
7522 return 0;
7524 _ACEOF
7525 for ac_lib in '' getopt gnugetopt; do
7526 if test -z "$ac_lib"; then
7527 ac_res="none required"
7528 else
7529 ac_res=-l$ac_lib
7530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7532 rm -f conftest.$ac_objext conftest$ac_exeext
7533 if { (ac_try="$ac_link"
7534 case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_link") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest$ac_exeext &&
7549 $as_test_x conftest$ac_exeext; then
7550 ac_cv_search_getopt_long=$ac_res
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7559 conftest$ac_exeext
7560 if test "${ac_cv_search_getopt_long+set}" = set; then
7561 break
7563 done
7564 if test "${ac_cv_search_getopt_long+set}" = set; then
7566 else
7567 ac_cv_search_getopt_long=no
7569 rm conftest.$ac_ext
7570 LIBS=$ac_func_search_save_LIBS
7572 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7573 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7574 ac_res=$ac_cv_search_getopt_long
7575 if test "$ac_res" != no; then
7576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7580 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7581 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7582 if test "${ac_cv_search_crypt+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 ac_func_search_save_LIBS=$LIBS
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7593 /* Override any GCC internal prototype to avoid an error.
7594 Use char because int might match the return type of a GCC
7595 builtin and then its argument prototype would still apply. */
7596 #ifdef __cplusplus
7597 extern "C"
7598 #endif
7599 char crypt ();
7601 main ()
7603 return crypt ();
7605 return 0;
7607 _ACEOF
7608 for ac_lib in '' crypt; do
7609 if test -z "$ac_lib"; then
7610 ac_res="none required"
7611 else
7612 ac_res=-l$ac_lib
7613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (ac_try="$ac_link"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_link") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest$ac_exeext &&
7632 $as_test_x conftest$ac_exeext; then
7633 ac_cv_search_crypt=$ac_res
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 conftest$ac_exeext
7643 if test "${ac_cv_search_crypt+set}" = set; then
7644 break
7646 done
7647 if test "${ac_cv_search_crypt+set}" = set; then
7649 else
7650 ac_cv_search_crypt=no
7652 rm conftest.$ac_ext
7653 LIBS=$ac_func_search_save_LIBS
7655 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7656 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7657 ac_res=$ac_cv_search_crypt
7658 if test "$ac_res" != no; then
7659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7663 # Solaris:
7664 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7665 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7666 if test "${ac_cv_search_fdatasync+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 ac_func_search_save_LIBS=$LIBS
7670 cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 char fdatasync ();
7685 main ()
7687 return fdatasync ();
7689 return 0;
7691 _ACEOF
7692 for ac_lib in '' rt posix4; do
7693 if test -z "$ac_lib"; then
7694 ac_res="none required"
7695 else
7696 ac_res=-l$ac_lib
7697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (ac_try="$ac_link"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_link") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest$ac_exeext &&
7716 $as_test_x conftest$ac_exeext; then
7717 ac_cv_search_fdatasync=$ac_res
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7726 conftest$ac_exeext
7727 if test "${ac_cv_search_fdatasync+set}" = set; then
7728 break
7730 done
7731 if test "${ac_cv_search_fdatasync+set}" = set; then
7733 else
7734 ac_cv_search_fdatasync=no
7736 rm conftest.$ac_ext
7737 LIBS=$ac_func_search_save_LIBS
7739 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7740 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7741 ac_res=$ac_cv_search_fdatasync
7742 if test "$ac_res" != no; then
7743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7747 # Required for thread_test.c on Solaris 2.5:
7748 # Other ports use it too (HP-UX) so test unconditionally
7749 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7750 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7751 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 ac_func_search_save_LIBS=$LIBS
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any GCC internal prototype to avoid an error.
7763 Use char because int might match the return type of a GCC
7764 builtin and then its argument prototype would still apply. */
7765 #ifdef __cplusplus
7766 extern "C"
7767 #endif
7768 char gethostbyname_r ();
7770 main ()
7772 return gethostbyname_r ();
7774 return 0;
7776 _ACEOF
7777 for ac_lib in '' nsl; do
7778 if test -z "$ac_lib"; then
7779 ac_res="none required"
7780 else
7781 ac_res=-l$ac_lib
7782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (ac_try="$ac_link"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_link") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest$ac_exeext &&
7801 $as_test_x conftest$ac_exeext; then
7802 ac_cv_search_gethostbyname_r=$ac_res
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7811 conftest$ac_exeext
7812 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7813 break
7815 done
7816 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7818 else
7819 ac_cv_search_gethostbyname_r=no
7821 rm conftest.$ac_ext
7822 LIBS=$ac_func_search_save_LIBS
7824 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7825 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7826 ac_res=$ac_cv_search_gethostbyname_r
7827 if test "$ac_res" != no; then
7828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7832 # Cygwin:
7833 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7834 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7835 if test "${ac_cv_search_shmget+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 ac_func_search_save_LIBS=$LIBS
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char shmget ();
7854 main ()
7856 return shmget ();
7858 return 0;
7860 _ACEOF
7861 for ac_lib in '' cygipc; do
7862 if test -z "$ac_lib"; then
7863 ac_res="none required"
7864 else
7865 ac_res=-l$ac_lib
7866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest$ac_exeext &&
7885 $as_test_x conftest$ac_exeext; then
7886 ac_cv_search_shmget=$ac_res
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7895 conftest$ac_exeext
7896 if test "${ac_cv_search_shmget+set}" = set; then
7897 break
7899 done
7900 if test "${ac_cv_search_shmget+set}" = set; then
7902 else
7903 ac_cv_search_shmget=no
7905 rm conftest.$ac_ext
7906 LIBS=$ac_func_search_save_LIBS
7908 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7909 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7910 ac_res=$ac_cv_search_shmget
7911 if test "$ac_res" != no; then
7912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7917 if test "$with_readline" = yes; then
7920 if test "${pgac_cv_check_readline+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 pgac_cv_check_readline=no
7924 pgac_save_LIBS=$LIBS
7925 if test x"$with_libedit_preferred" != x"yes"
7926 then READLINE_ORDER="-lreadline -ledit"
7927 else READLINE_ORDER="-ledit -lreadline"
7929 for pgac_rllib in $READLINE_ORDER ; do
7930 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7931 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7932 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7933 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7941 /* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 char readline ();
7949 main ()
7951 return readline ();
7953 return 0;
7955 _ACEOF
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (ac_try="$ac_link"
7958 case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_link") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest$ac_exeext &&
7973 $as_test_x conftest$ac_exeext; then
7975 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7976 # recognize dependent libraries; assume curses is needed if we didn't
7977 # find any dependency.
7978 case $host_os in
7979 netbsd* | openbsd* | irix*)
7980 if test x"$pgac_lib" = x"" ; then
7981 pgac_lib=" -lcurses"
7982 fi ;;
7983 esac
7985 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7986 break
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996 conftest$ac_exeext conftest.$ac_ext
7997 done
7998 if test "$pgac_cv_check_readline" != no ; then
7999 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8000 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8001 break
8002 else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8006 done
8007 LIBS=$pgac_save_LIBS
8011 if test "$pgac_cv_check_readline" != no ; then
8012 LIBS="$pgac_cv_check_readline $LIBS"
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_LIBREADLINE 1
8016 _ACEOF
8021 if test x"$pgac_cv_check_readline" = x"no"; then
8022 { { echo "$as_me:$LINENO: error: readline library not found
8023 If you have readline already installed, see config.log for details on the
8024 failure. It is possible the compiler isn't looking in the proper directory.
8025 Use --without-readline to disable readline support." >&5
8026 echo "$as_me: error: readline library not found
8027 If you have readline already installed, see config.log for details on the
8028 failure. It is possible the compiler isn't looking in the proper directory.
8029 Use --without-readline to disable readline support." >&2;}
8030 { (exit 1); exit 1; }; }
8034 if test "$with_zlib" = yes; then
8036 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8037 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8038 if test "${ac_cv_lib_z_inflate+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-lz $LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 char inflate ();
8058 main ()
8060 return inflate ();
8062 return 0;
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (ac_try="$ac_link"
8067 case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_link") 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest$ac_exeext &&
8082 $as_test_x conftest$ac_exeext; then
8083 ac_cv_lib_z_inflate=yes
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_lib_z_inflate=no
8091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8092 conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8095 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8096 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8097 if test $ac_cv_lib_z_inflate = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_LIBZ 1
8100 _ACEOF
8102 LIBS="-lz $LIBS"
8104 else
8105 { { echo "$as_me:$LINENO: error: zlib library not found
8106 If you have zlib already installed, see config.log for details on the
8107 failure. It is possible the compiler isn't looking in the proper directory.
8108 Use --without-zlib to disable zlib support." >&5
8109 echo "$as_me: error: zlib library not found
8110 If you have zlib already installed, see config.log for details on the
8111 failure. It is possible the compiler isn't looking in the proper directory.
8112 Use --without-zlib to disable zlib support." >&2;}
8113 { (exit 1); exit 1; }; }
8118 if test "$enable_spinlocks" = yes; then
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_SPINLOCKS 1
8122 _ACEOF
8124 else
8125 { echo "$as_me:$LINENO: WARNING:
8126 *** Not using spinlocks will cause poor performance." >&5
8127 echo "$as_me: WARNING:
8128 *** Not using spinlocks will cause poor performance." >&2;}
8131 if test "$with_gssapi" = yes ; then
8132 if test "$PORTNAME" != "win32"; then
8133 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8134 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8135 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 ac_func_search_save_LIBS=$LIBS
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char gss_init_sec_context ();
8154 main ()
8156 return gss_init_sec_context ();
8158 return 0;
8160 _ACEOF
8161 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8162 if test -z "$ac_lib"; then
8163 ac_res="none required"
8164 else
8165 ac_res=-l$ac_lib
8166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8170 case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_link") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest$ac_exeext &&
8185 $as_test_x conftest$ac_exeext; then
8186 ac_cv_search_gss_init_sec_context=$ac_res
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext
8196 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8197 break
8199 done
8200 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8202 else
8203 ac_cv_search_gss_init_sec_context=no
8205 rm conftest.$ac_ext
8206 LIBS=$ac_func_search_save_LIBS
8208 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8209 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8210 ac_res=$ac_cv_search_gss_init_sec_context
8211 if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214 else
8215 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8216 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8217 { (exit 1); exit 1; }; }
8220 else
8221 LIBS="$LIBS -lgssapi32"
8225 if test "$with_krb5" = yes ; then
8226 if test "$PORTNAME" != "win32"; then
8227 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8228 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8229 if test "${ac_cv_search_com_err+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 ac_func_search_save_LIBS=$LIBS
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8240 /* Override any GCC internal prototype to avoid an error.
8241 Use char because int might match the return type of a GCC
8242 builtin and then its argument prototype would still apply. */
8243 #ifdef __cplusplus
8244 extern "C"
8245 #endif
8246 char com_err ();
8248 main ()
8250 return com_err ();
8252 return 0;
8254 _ACEOF
8255 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8256 if test -z "$ac_lib"; then
8257 ac_res="none required"
8258 else
8259 ac_res=-l$ac_lib
8260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (ac_try="$ac_link"
8264 case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_link") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest$ac_exeext &&
8279 $as_test_x conftest$ac_exeext; then
8280 ac_cv_search_com_err=$ac_res
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 conftest$ac_exeext
8290 if test "${ac_cv_search_com_err+set}" = set; then
8291 break
8293 done
8294 if test "${ac_cv_search_com_err+set}" = set; then
8296 else
8297 ac_cv_search_com_err=no
8299 rm conftest.$ac_ext
8300 LIBS=$ac_func_search_save_LIBS
8302 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8303 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8304 ac_res=$ac_cv_search_com_err
8305 if test "$ac_res" != no; then
8306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8308 else
8309 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8310 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8311 { (exit 1); exit 1; }; }
8314 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8315 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8316 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 char krb5_sendauth ();
8335 main ()
8337 return krb5_sendauth ();
8339 return 0;
8341 _ACEOF
8342 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8345 else
8346 ac_res=-l$ac_lib
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest$ac_exeext &&
8366 $as_test_x conftest$ac_exeext; then
8367 ac_cv_search_krb5_sendauth=$ac_res
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8376 conftest$ac_exeext
8377 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8378 break
8380 done
8381 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8383 else
8384 ac_cv_search_krb5_sendauth=no
8386 rm conftest.$ac_ext
8387 LIBS=$ac_func_search_save_LIBS
8389 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8390 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8391 ac_res=$ac_cv_search_krb5_sendauth
8392 if test "$ac_res" != no; then
8393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8395 else
8396 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8397 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8398 { (exit 1); exit 1; }; }
8401 else
8402 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8403 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8404 if test "${ac_cv_search_com_err+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407 ac_func_search_save_LIBS=$LIBS
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8415 /* Override any GCC internal prototype to avoid an error.
8416 Use char because int might match the return type of a GCC
8417 builtin and then its argument prototype would still apply. */
8418 #ifdef __cplusplus
8419 extern "C"
8420 #endif
8421 char com_err ();
8423 main ()
8425 return com_err ();
8427 return 0;
8429 _ACEOF
8430 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8431 if test -z "$ac_lib"; then
8432 ac_res="none required"
8433 else
8434 ac_res=-l$ac_lib
8435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (ac_try="$ac_link"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_link") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest$ac_exeext &&
8454 $as_test_x conftest$ac_exeext; then
8455 ac_cv_search_com_err=$ac_res
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8464 conftest$ac_exeext
8465 if test "${ac_cv_search_com_err+set}" = set; then
8466 break
8468 done
8469 if test "${ac_cv_search_com_err+set}" = set; then
8471 else
8472 ac_cv_search_com_err=no
8474 rm conftest.$ac_ext
8475 LIBS=$ac_func_search_save_LIBS
8477 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8478 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8479 ac_res=$ac_cv_search_com_err
8480 if test "$ac_res" != no; then
8481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8483 else
8484 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8485 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8486 { (exit 1); exit 1; }; }
8492 if test "$with_openssl" = yes ; then
8493 if test "$PORTNAME" != "win32"; then
8495 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8496 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8497 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 ac_check_lib_save_LIBS=$LIBS
8501 LIBS="-lcrypto $LIBS"
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8509 /* Override any GCC internal prototype to avoid an error.
8510 Use char because int might match the return type of a GCC
8511 builtin and then its argument prototype would still apply. */
8512 #ifdef __cplusplus
8513 extern "C"
8514 #endif
8515 char CRYPTO_new_ex_data ();
8517 main ()
8519 return CRYPTO_new_ex_data ();
8521 return 0;
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest$ac_exeext &&
8541 $as_test_x conftest$ac_exeext; then
8542 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8543 else
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8554 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8555 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8556 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8557 cat >>confdefs.h <<_ACEOF
8558 #define HAVE_LIBCRYPTO 1
8559 _ACEOF
8561 LIBS="-lcrypto $LIBS"
8563 else
8564 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8565 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8566 { (exit 1); exit 1; }; }
8570 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8571 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8572 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 ac_check_lib_save_LIBS=$LIBS
8576 LIBS="-lssl $LIBS"
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8584 /* Override any GCC internal prototype to avoid an error.
8585 Use char because int might match the return type of a GCC
8586 builtin and then its argument prototype would still apply. */
8587 #ifdef __cplusplus
8588 extern "C"
8589 #endif
8590 char SSL_library_init ();
8592 main ()
8594 return SSL_library_init ();
8596 return 0;
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (ac_try="$ac_link"
8601 case "(($ac_try" in
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_link") 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest$ac_exeext &&
8616 $as_test_x conftest$ac_exeext; then
8617 ac_cv_lib_ssl_SSL_library_init=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_ssl_SSL_library_init=no
8625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8626 conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_lib_save_LIBS
8629 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8630 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8631 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_LIBSSL 1
8634 _ACEOF
8636 LIBS="-lssl $LIBS"
8638 else
8639 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8640 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8641 { (exit 1); exit 1; }; }
8644 else
8646 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8647 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8648 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-leay32 $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8660 /* Override any GCC internal prototype to avoid an error.
8661 Use char because int might match the return type of a GCC
8662 builtin and then its argument prototype would still apply. */
8663 #ifdef __cplusplus
8664 extern "C"
8665 #endif
8666 char CRYPTO_new_ex_data ();
8668 main ()
8670 return CRYPTO_new_ex_data ();
8672 return 0;
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (ac_try="$ac_link"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_link") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest$ac_exeext &&
8692 $as_test_x conftest$ac_exeext; then
8693 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8705 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8706 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8707 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_LIBEAY32 1
8710 _ACEOF
8712 LIBS="-leay32 $LIBS"
8714 else
8715 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8716 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8717 { (exit 1); exit 1; }; }
8721 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8722 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8723 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 ac_check_lib_save_LIBS=$LIBS
8727 LIBS="-lssleay32 $LIBS"
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h. */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8735 /* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char SSL_library_init ();
8743 main ()
8745 return SSL_library_init ();
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_link") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest$ac_exeext &&
8767 $as_test_x conftest$ac_exeext; then
8768 ac_cv_lib_ssleay32_SSL_library_init=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_cv_lib_ssleay32_SSL_library_init=no
8776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8777 conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8780 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8781 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8782 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_LIBSSLEAY32 1
8785 _ACEOF
8787 LIBS="-lssleay32 $LIBS"
8789 else
8790 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8791 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8792 { (exit 1); exit 1; }; }
8798 if test "$with_pam" = yes ; then
8800 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8801 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8802 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 ac_check_lib_save_LIBS=$LIBS
8806 LIBS="-lpam $LIBS"
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8814 /* Override any GCC internal prototype to avoid an error.
8815 Use char because int might match the return type of a GCC
8816 builtin and then its argument prototype would still apply. */
8817 #ifdef __cplusplus
8818 extern "C"
8819 #endif
8820 char pam_start ();
8822 main ()
8824 return pam_start ();
8826 return 0;
8828 _ACEOF
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (ac_try="$ac_link"
8831 case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
8847 ac_cv_lib_pam_pam_start=yes
8848 else
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_cv_lib_pam_pam_start=no
8855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8859 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8860 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8861 if test $ac_cv_lib_pam_pam_start = yes; then
8862 cat >>confdefs.h <<_ACEOF
8863 #define HAVE_LIBPAM 1
8864 _ACEOF
8866 LIBS="-lpam $LIBS"
8868 else
8869 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8870 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8871 { (exit 1); exit 1; }; }
8876 if test "$with_libxml" = yes ; then
8878 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8879 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8880 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883 ac_check_lib_save_LIBS=$LIBS
8884 LIBS="-lxml2 $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. */
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 xmlSaveToBuffer ();
8900 main ()
8902 return xmlSaveToBuffer ();
8904 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_link") 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest$ac_exeext &&
8924 $as_test_x conftest$ac_exeext; then
8925 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8930 ac_cv_lib_xml2_xmlSaveToBuffer=no
8933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8934 conftest$ac_exeext conftest.$ac_ext
8935 LIBS=$ac_check_lib_save_LIBS
8937 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8938 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8939 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_LIBXML2 1
8942 _ACEOF
8944 LIBS="-lxml2 $LIBS"
8946 else
8947 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8948 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8949 { (exit 1); exit 1; }; }
8954 if test "$with_libxslt" = yes ; then
8956 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8957 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8958 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 ac_check_lib_save_LIBS=$LIBS
8962 LIBS="-lxslt $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8970 /* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
8973 #ifdef __cplusplus
8974 extern "C"
8975 #endif
8976 char xsltCleanupGlobals ();
8978 main ()
8980 return xsltCleanupGlobals ();
8982 return 0;
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (ac_try="$ac_link"
8987 case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_link") 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } && {
8999 test -z "$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 } && test -s conftest$ac_exeext &&
9002 $as_test_x conftest$ac_exeext; then
9003 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 ac_cv_lib_xslt_xsltCleanupGlobals=no
9011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9012 conftest$ac_exeext conftest.$ac_ext
9013 LIBS=$ac_check_lib_save_LIBS
9015 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9016 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9017 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_LIBXSLT 1
9020 _ACEOF
9022 LIBS="-lxslt $LIBS"
9024 else
9025 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9026 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9027 { (exit 1); exit 1; }; }
9032 # for contrib/uuid-ossp
9033 if test "$with_ossp_uuid" = yes ; then
9034 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9035 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9036 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 ac_check_lib_save_LIBS=$LIBS
9040 LIBS="-lossp-uuid $LIBS"
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any GCC internal prototype to avoid an error.
9049 Use char because int might match the return type of a GCC
9050 builtin and then its argument prototype would still apply. */
9051 #ifdef __cplusplus
9052 extern "C"
9053 #endif
9054 char uuid_export ();
9056 main ()
9058 return uuid_export ();
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9065 case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest$ac_exeext &&
9080 $as_test_x conftest$ac_exeext; then
9081 ac_cv_lib_ossp_uuid_uuid_export=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_cv_lib_ossp_uuid_uuid_export=no
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9093 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9094 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9095 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9096 OSSP_UUID_LIBS="-lossp-uuid"
9097 else
9098 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9099 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9100 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-luuid $LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char uuid_export ();
9120 main ()
9122 return uuid_export ();
9124 return 0;
9126 _ACEOF
9127 rm -f conftest.$ac_objext conftest$ac_exeext
9128 if { (ac_try="$ac_link"
9129 case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_link") 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && {
9141 test -z "$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9143 } && test -s conftest$ac_exeext &&
9144 $as_test_x conftest$ac_exeext; then
9145 ac_cv_lib_uuid_uuid_export=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_lib_uuid_uuid_export=no
9153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9157 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9158 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9159 if test $ac_cv_lib_uuid_uuid_export = yes; then
9160 OSSP_UUID_LIBS="-luuid"
9161 else
9162 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9163 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9164 { (exit 1); exit 1; }; }
9174 ## Header files
9177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9179 if test "${ac_cv_header_stdc+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 #include <stdlib.h>
9189 #include <stdarg.h>
9190 #include <string.h>
9191 #include <float.h>
9194 main ()
9198 return 0;
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (ac_try="$ac_compile"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_compile") 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } && {
9215 test -z "$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 } && test -s conftest.$ac_objext; then
9218 ac_cv_header_stdc=yes
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_cv_header_stdc=no
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 if test $ac_cv_header_stdc = yes; then
9229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 #include <string.h>
9238 _ACEOF
9239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9240 $EGREP "memchr" >/dev/null 2>&1; then
9242 else
9243 ac_cv_header_stdc=no
9245 rm -f conftest*
9249 if test $ac_cv_header_stdc = yes; then
9250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <stdlib.h>
9259 _ACEOF
9260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9261 $EGREP "free" >/dev/null 2>&1; then
9263 else
9264 ac_cv_header_stdc=no
9266 rm -f conftest*
9270 if test $ac_cv_header_stdc = yes; then
9271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9272 if test "$cross_compiling" = yes; then
9274 else
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <ctype.h>
9282 #include <stdlib.h>
9283 #if ((' ' & 0x0FF) == 0x020)
9284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9286 #else
9287 # define ISLOWER(c) \
9288 (('a' <= (c) && (c) <= 'i') \
9289 || ('j' <= (c) && (c) <= 'r') \
9290 || ('s' <= (c) && (c) <= 'z'))
9291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9292 #endif
9294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9296 main ()
9298 int i;
9299 for (i = 0; i < 256; i++)
9300 if (XOR (islower (i), ISLOWER (i))
9301 || toupper (i) != TOUPPER (i))
9302 return 2;
9303 return 0;
9305 _ACEOF
9306 rm -f conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9308 case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_link") 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9317 { (case "(($ac_try" in
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_try") 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9327 else
9328 echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ( exit $ac_status )
9333 ac_cv_header_stdc=no
9335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9343 if test $ac_cv_header_stdc = yes; then
9345 cat >>confdefs.h <<\_ACEOF
9346 #define STDC_HEADERS 1
9347 _ACEOF
9351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9362 inttypes.h stdint.h unistd.h
9364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 $ac_includes_default
9378 #include <$ac_header>
9379 _ACEOF
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 eval "$as_ac_Header=yes"
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 eval "$as_ac_Header=no"
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 ac_res=`eval echo '${'$as_ac_Header'}'`
9408 { echo "$as_me:$LINENO: result: $ac_res" >&5
9409 echo "${ECHO_T}$ac_res" >&6; }
9410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9413 _ACEOF
9417 done
9447 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 ac_res=`eval echo '${'$as_ac_Header'}'`
9457 { echo "$as_me:$LINENO: result: $ac_res" >&5
9458 echo "${ECHO_T}$ac_res" >&6; }
9459 else
9460 # Is the header compilable?
9461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9470 #include <$ac_header>
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9474 case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9477 esac
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_compile") 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest.$ac_objext; then
9489 ac_header_compiler=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_header_compiler=no
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9499 echo "${ECHO_T}$ac_header_compiler" >&6; }
9501 # Is the header present?
9502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 #include <$ac_header>
9511 _ACEOF
9512 if { (ac_try="$ac_cpp conftest.$ac_ext"
9513 case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } >/dev/null && {
9525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 }; then
9528 ac_header_preproc=yes
9529 else
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_header_preproc=no
9536 rm -f conftest.err conftest.$ac_ext
9537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9538 echo "${ECHO_T}$ac_header_preproc" >&6; }
9540 # So? What about this header?
9541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9542 yes:no: )
9543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9547 ac_header_preproc=yes
9549 no:yes:* )
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9562 ( cat <<\_ASBOX
9563 ## ---------------------------------------- ##
9564 ## Report this to pgsql-bugs@postgresql.org ##
9565 ## ---------------------------------------- ##
9566 _ASBOX
9567 ) | sed "s/^/$as_me: WARNING: /" >&2
9569 esac
9570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 eval "$as_ac_Header=\$ac_header_preproc"
9577 ac_res=`eval echo '${'$as_ac_Header'}'`
9578 { echo "$as_me:$LINENO: result: $ac_res" >&5
9579 echo "${ECHO_T}$ac_res" >&6; }
9582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9583 cat >>confdefs.h <<_ACEOF
9584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9585 _ACEOF
9589 done
9592 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9593 # netinet/in.h is included first.
9595 for ac_header in netinet/in.h
9597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 ac_res=`eval echo '${'$as_ac_Header'}'`
9605 { echo "$as_me:$LINENO: result: $ac_res" >&5
9606 echo "${ECHO_T}$ac_res" >&6; }
9607 else
9608 # Is the header compilable?
9609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 $ac_includes_default
9618 #include <$ac_header>
9619 _ACEOF
9620 rm -f conftest.$ac_objext
9621 if { (ac_try="$ac_compile"
9622 case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_compile") 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest.$ac_objext; then
9637 ac_header_compiler=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 ac_header_compiler=no
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9647 echo "${ECHO_T}$ac_header_compiler" >&6; }
9649 # Is the header present?
9650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <$ac_header>
9659 _ACEOF
9660 if { (ac_try="$ac_cpp conftest.$ac_ext"
9661 case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } >/dev/null && {
9673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 }; then
9676 ac_header_preproc=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_header_preproc=no
9684 rm -f conftest.err conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686 echo "${ECHO_T}$ac_header_preproc" >&6; }
9688 # So? What about this header?
9689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 yes:no: )
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9695 ac_header_preproc=yes
9697 no:yes:* )
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9710 ( cat <<\_ASBOX
9711 ## ---------------------------------------- ##
9712 ## Report this to pgsql-bugs@postgresql.org ##
9713 ## ---------------------------------------- ##
9714 _ASBOX
9715 ) | sed "s/^/$as_me: WARNING: /" >&2
9717 esac
9718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 eval "$as_ac_Header=\$ac_header_preproc"
9725 ac_res=`eval echo '${'$as_ac_Header'}'`
9726 { echo "$as_me:$LINENO: result: $ac_res" >&5
9727 echo "${ECHO_T}$ac_res" >&6; }
9730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9731 cat >>confdefs.h <<_ACEOF
9732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9733 _ACEOF
9737 done
9740 for ac_header in netinet/tcp.h
9742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 $ac_includes_default
9755 #ifdef HAVE_NETINET_IN_H
9756 #include <netinet/in.h>
9757 #endif
9760 #include <$ac_header>
9761 _ACEOF
9762 rm -f conftest.$ac_objext
9763 if { (ac_try="$ac_compile"
9764 case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 eval "$as_ac_Header=yes"
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 eval "$as_ac_Header=no"
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 ac_res=`eval echo '${'$as_ac_Header'}'`
9790 { echo "$as_me:$LINENO: result: $ac_res" >&5
9791 echo "${ECHO_T}$ac_res" >&6; }
9792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9793 cat >>confdefs.h <<_ACEOF
9794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795 _ACEOF
9799 done
9802 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9804 for ac_header in readline/readline.h
9806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 ac_res=`eval echo '${'$as_ac_Header'}'`
9814 { echo "$as_me:$LINENO: result: $ac_res" >&5
9815 echo "${ECHO_T}$ac_res" >&6; }
9816 else
9817 # Is the header compilable?
9818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 $ac_includes_default
9827 #include <$ac_header>
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (ac_try="$ac_compile"
9831 case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_compile") 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } && {
9843 test -z "$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 } && test -s conftest.$ac_objext; then
9846 ac_header_compiler=yes
9847 else
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_header_compiler=no
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9856 echo "${ECHO_T}$ac_header_compiler" >&6; }
9858 # Is the header present?
9859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9861 cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h. */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 #include <$ac_header>
9868 _ACEOF
9869 if { (ac_try="$ac_cpp conftest.$ac_ext"
9870 case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } >/dev/null && {
9882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 }; then
9885 ac_header_preproc=yes
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_header_preproc=no
9893 rm -f conftest.err conftest.$ac_ext
9894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9895 echo "${ECHO_T}$ac_header_preproc" >&6; }
9897 # So? What about this header?
9898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9899 yes:no: )
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9904 ac_header_preproc=yes
9906 no:yes:* )
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9919 ( cat <<\_ASBOX
9920 ## ---------------------------------------- ##
9921 ## Report this to pgsql-bugs@postgresql.org ##
9922 ## ---------------------------------------- ##
9923 _ASBOX
9924 ) | sed "s/^/$as_me: WARNING: /" >&2
9926 esac
9927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 eval "$as_ac_Header=\$ac_header_preproc"
9934 ac_res=`eval echo '${'$as_ac_Header'}'`
9935 { echo "$as_me:$LINENO: result: $ac_res" >&5
9936 echo "${ECHO_T}$ac_res" >&6; }
9939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9942 _ACEOF
9944 else
9946 for ac_header in readline.h
9948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 ac_res=`eval echo '${'$as_ac_Header'}'`
9956 { echo "$as_me:$LINENO: result: $ac_res" >&5
9957 echo "${ECHO_T}$ac_res" >&6; }
9958 else
9959 # Is the header compilable?
9960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 #include <$ac_header>
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (ac_try="$ac_compile"
9973 case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_compile") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest.$ac_objext; then
9988 ac_header_compiler=yes
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_header_compiler=no
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9998 echo "${ECHO_T}$ac_header_compiler" >&6; }
10000 # Is the header present?
10001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <$ac_header>
10010 _ACEOF
10011 if { (ac_try="$ac_cpp conftest.$ac_ext"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } >/dev/null && {
10024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 }; then
10027 ac_header_preproc=yes
10028 else
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10032 ac_header_preproc=no
10035 rm -f conftest.err conftest.$ac_ext
10036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10037 echo "${ECHO_T}$ac_header_preproc" >&6; }
10039 # So? What about this header?
10040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10041 yes:no: )
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10046 ac_header_preproc=yes
10048 no:yes:* )
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10061 ( cat <<\_ASBOX
10062 ## ---------------------------------------- ##
10063 ## Report this to pgsql-bugs@postgresql.org ##
10064 ## ---------------------------------------- ##
10065 _ASBOX
10066 ) | sed "s/^/$as_me: WARNING: /" >&2
10068 esac
10069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 eval "$as_ac_Header=\$ac_header_preproc"
10076 ac_res=`eval echo '${'$as_ac_Header'}'`
10077 { echo "$as_me:$LINENO: result: $ac_res" >&5
10078 echo "${ECHO_T}$ac_res" >&6; }
10081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10082 cat >>confdefs.h <<_ACEOF
10083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10084 _ACEOF
10086 else
10087 { { echo "$as_me:$LINENO: error: readline header not found
10088 If you have readline already installed, see config.log for details on the
10089 failure. It is possible the compiler isn't looking in the proper directory.
10090 Use --without-readline to disable readline support." >&5
10091 echo "$as_me: error: readline header not found
10092 If you have readline already installed, see config.log for details on the
10093 failure. It is possible the compiler isn't looking in the proper directory.
10094 Use --without-readline to disable readline support." >&2;}
10095 { (exit 1); exit 1; }; }
10098 done
10102 done
10105 for ac_header in readline/history.h
10107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_res=`eval echo '${'$as_ac_Header'}'`
10115 { echo "$as_me:$LINENO: result: $ac_res" >&5
10116 echo "${ECHO_T}$ac_res" >&6; }
10117 else
10118 # Is the header compilable?
10119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10128 #include <$ac_header>
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ac_header_compiler=yes
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_header_compiler=no
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 echo "${ECHO_T}$ac_header_compiler" >&6; }
10159 # Is the header present?
10160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <$ac_header>
10169 _ACEOF
10170 if { (ac_try="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } >/dev/null && {
10183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 }; then
10186 ac_header_preproc=yes
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_header_preproc=no
10194 rm -f conftest.err conftest.$ac_ext
10195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10196 echo "${ECHO_T}$ac_header_preproc" >&6; }
10198 # So? What about this header?
10199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10200 yes:no: )
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10205 ac_header_preproc=yes
10207 no:yes:* )
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10220 ( cat <<\_ASBOX
10221 ## ---------------------------------------- ##
10222 ## Report this to pgsql-bugs@postgresql.org ##
10223 ## ---------------------------------------- ##
10224 _ASBOX
10225 ) | sed "s/^/$as_me: WARNING: /" >&2
10227 esac
10228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 eval "$as_ac_Header=\$ac_header_preproc"
10235 ac_res=`eval echo '${'$as_ac_Header'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10243 _ACEOF
10245 else
10247 for ac_header in history.h
10249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 ac_res=`eval echo '${'$as_ac_Header'}'`
10257 { echo "$as_me:$LINENO: result: $ac_res" >&5
10258 echo "${ECHO_T}$ac_res" >&6; }
10259 else
10260 # Is the header compilable?
10261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 $ac_includes_default
10270 #include <$ac_header>
10271 _ACEOF
10272 rm -f conftest.$ac_objext
10273 if { (ac_try="$ac_compile"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_compile") 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest.$ac_objext; then
10289 ac_header_compiler=yes
10290 else
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_header_compiler=no
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10299 echo "${ECHO_T}$ac_header_compiler" >&6; }
10301 # Is the header present?
10302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 #include <$ac_header>
10311 _ACEOF
10312 if { (ac_try="$ac_cpp conftest.$ac_ext"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } >/dev/null && {
10325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 }; then
10328 ac_header_preproc=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_header_preproc=no
10336 rm -f conftest.err conftest.$ac_ext
10337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10338 echo "${ECHO_T}$ac_header_preproc" >&6; }
10340 # So? What about this header?
10341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342 yes:no: )
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10347 ac_header_preproc=yes
10349 no:yes:* )
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10362 ( cat <<\_ASBOX
10363 ## ---------------------------------------- ##
10364 ## Report this to pgsql-bugs@postgresql.org ##
10365 ## ---------------------------------------- ##
10366 _ASBOX
10367 ) | sed "s/^/$as_me: WARNING: /" >&2
10369 esac
10370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 eval "$as_ac_Header=\$ac_header_preproc"
10377 ac_res=`eval echo '${'$as_ac_Header'}'`
10378 { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10385 _ACEOF
10387 else
10388 { { echo "$as_me:$LINENO: error: history header not found
10389 If you have readline already installed, see config.log for details on the
10390 failure. It is possible the compiler isn't looking in the proper directory.
10391 Use --without-readline to disable readline support." >&5
10392 echo "$as_me: error: history header not found
10393 If you have readline already installed, see config.log for details on the
10394 failure. It is possible the compiler isn't looking in the proper directory.
10395 Use --without-readline to disable readline support." >&2;}
10396 { (exit 1); exit 1; }; }
10399 done
10403 done
10407 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10408 # Some installations of libedit usurp /usr/include/readline/, which seems
10409 # bad practice, since in combined installations readline will have its headers
10410 # there. We might have to resort to AC_EGREP checks to make sure we found
10411 # the proper header...
10413 for ac_header in editline/readline.h
10415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_res=`eval echo '${'$as_ac_Header'}'`
10423 { echo "$as_me:$LINENO: result: $ac_res" >&5
10424 echo "${ECHO_T}$ac_res" >&6; }
10425 else
10426 # Is the header compilable?
10427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 #include <$ac_header>
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (ac_try="$ac_compile"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_compile") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest.$ac_objext; then
10455 ac_header_compiler=yes
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 ac_header_compiler=no
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10465 echo "${ECHO_T}$ac_header_compiler" >&6; }
10467 # Is the header present?
10468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <$ac_header>
10477 _ACEOF
10478 if { (ac_try="$ac_cpp conftest.$ac_ext"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null && {
10491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 }; then
10494 ac_header_preproc=yes
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_header_preproc=no
10502 rm -f conftest.err conftest.$ac_ext
10503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10504 echo "${ECHO_T}$ac_header_preproc" >&6; }
10506 # So? What about this header?
10507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10508 yes:no: )
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10513 ac_header_preproc=yes
10515 no:yes:* )
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10528 ( cat <<\_ASBOX
10529 ## ---------------------------------------- ##
10530 ## Report this to pgsql-bugs@postgresql.org ##
10531 ## ---------------------------------------- ##
10532 _ASBOX
10533 ) | sed "s/^/$as_me: WARNING: /" >&2
10535 esac
10536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541 eval "$as_ac_Header=\$ac_header_preproc"
10543 ac_res=`eval echo '${'$as_ac_Header'}'`
10544 { echo "$as_me:$LINENO: result: $ac_res" >&5
10545 echo "${ECHO_T}$ac_res" >&6; }
10548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10549 cat >>confdefs.h <<_ACEOF
10550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551 _ACEOF
10553 else
10555 for ac_header in readline.h
10557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 ac_res=`eval echo '${'$as_ac_Header'}'`
10565 { echo "$as_me:$LINENO: result: $ac_res" >&5
10566 echo "${ECHO_T}$ac_res" >&6; }
10567 else
10568 # Is the header compilable?
10569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 $ac_includes_default
10578 #include <$ac_header>
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_header_compiler=yes
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_compiler=no
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6; }
10609 # Is the header present?
10610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <$ac_header>
10619 _ACEOF
10620 if { (ac_try="$ac_cpp conftest.$ac_ext"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } >/dev/null && {
10633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10634 test ! -s conftest.err
10635 }; then
10636 ac_header_preproc=yes
10637 else
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 ac_header_preproc=no
10644 rm -f conftest.err conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10646 echo "${ECHO_T}$ac_header_preproc" >&6; }
10648 # So? What about this header?
10649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10650 yes:no: )
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10655 ac_header_preproc=yes
10657 no:yes:* )
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10670 ( cat <<\_ASBOX
10671 ## ---------------------------------------- ##
10672 ## Report this to pgsql-bugs@postgresql.org ##
10673 ## ---------------------------------------- ##
10674 _ASBOX
10675 ) | sed "s/^/$as_me: WARNING: /" >&2
10677 esac
10678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683 eval "$as_ac_Header=\$ac_header_preproc"
10685 ac_res=`eval echo '${'$as_ac_Header'}'`
10686 { echo "$as_me:$LINENO: result: $ac_res" >&5
10687 echo "${ECHO_T}$ac_res" >&6; }
10690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10691 cat >>confdefs.h <<_ACEOF
10692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10693 _ACEOF
10695 else
10697 for ac_header in readline/readline.h
10699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 ac_res=`eval echo '${'$as_ac_Header'}'`
10707 { echo "$as_me:$LINENO: result: $ac_res" >&5
10708 echo "${ECHO_T}$ac_res" >&6; }
10709 else
10710 # Is the header compilable?
10711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 $ac_includes_default
10720 #include <$ac_header>
10721 _ACEOF
10722 rm -f conftest.$ac_objext
10723 if { (ac_try="$ac_compile"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_compile") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest.$ac_objext; then
10739 ac_header_compiler=yes
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_header_compiler=no
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749 echo "${ECHO_T}$ac_header_compiler" >&6; }
10751 # Is the header present?
10752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <$ac_header>
10761 _ACEOF
10762 if { (ac_try="$ac_cpp conftest.$ac_ext"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null && {
10775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 }; then
10778 ac_header_preproc=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_header_preproc=no
10786 rm -f conftest.err conftest.$ac_ext
10787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10788 echo "${ECHO_T}$ac_header_preproc" >&6; }
10790 # So? What about this header?
10791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 yes:no: )
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10797 ac_header_preproc=yes
10799 no:yes:* )
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812 ( cat <<\_ASBOX
10813 ## ---------------------------------------- ##
10814 ## Report this to pgsql-bugs@postgresql.org ##
10815 ## ---------------------------------------- ##
10816 _ASBOX
10817 ) | sed "s/^/$as_me: WARNING: /" >&2
10819 esac
10820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 eval "$as_ac_Header=\$ac_header_preproc"
10827 ac_res=`eval echo '${'$as_ac_Header'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10835 _ACEOF
10837 else
10838 { { echo "$as_me:$LINENO: error: readline header not found
10839 If you have libedit already installed, see config.log for details on the
10840 failure. It is possible the compiler isn't looking in the proper directory.
10841 Use --without-readline to disable libedit support." >&5
10842 echo "$as_me: error: readline header not found
10843 If you have libedit already installed, see config.log for details on the
10844 failure. It is possible the compiler isn't looking in the proper directory.
10845 Use --without-readline to disable libedit support." >&2;}
10846 { (exit 1); exit 1; }; }
10849 done
10853 done
10857 done
10859 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10860 # not be there at all. Hence, don't complain if not found. We must check
10861 # though, since in yet other versions it is an independent header.
10863 for ac_header in editline/history.h
10865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 ac_res=`eval echo '${'$as_ac_Header'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874 echo "${ECHO_T}$ac_res" >&6; }
10875 else
10876 # Is the header compilable?
10877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10905 ac_header_compiler=yes
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_header_compiler=no
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10915 echo "${ECHO_T}$ac_header_compiler" >&6; }
10917 # Is the header present?
10918 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include <$ac_header>
10927 _ACEOF
10928 if { (ac_try="$ac_cpp conftest.$ac_ext"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } >/dev/null && {
10941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 }; then
10944 ac_header_preproc=yes
10945 else
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_header_preproc=no
10952 rm -f conftest.err conftest.$ac_ext
10953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10954 echo "${ECHO_T}$ac_header_preproc" >&6; }
10956 # So? What about this header?
10957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 yes:no: )
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10963 ac_header_preproc=yes
10965 no:yes:* )
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10978 ( cat <<\_ASBOX
10979 ## ---------------------------------------- ##
10980 ## Report this to pgsql-bugs@postgresql.org ##
10981 ## ---------------------------------------- ##
10982 _ASBOX
10983 ) | sed "s/^/$as_me: WARNING: /" >&2
10985 esac
10986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 eval "$as_ac_Header=\$ac_header_preproc"
10993 ac_res=`eval echo '${'$as_ac_Header'}'`
10994 { echo "$as_me:$LINENO: result: $ac_res" >&5
10995 echo "${ECHO_T}$ac_res" >&6; }
10998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10999 cat >>confdefs.h <<_ACEOF
11000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11001 _ACEOF
11003 else
11005 for ac_header in history.h
11007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 ac_res=`eval echo '${'$as_ac_Header'}'`
11015 { echo "$as_me:$LINENO: result: $ac_res" >&5
11016 echo "${ECHO_T}$ac_res" >&6; }
11017 else
11018 # Is the header compilable?
11019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11028 #include <$ac_header>
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (ac_try="$ac_compile"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_compile") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_c_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest.$ac_objext; then
11047 ac_header_compiler=yes
11048 else
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ac_header_compiler=no
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11057 echo "${ECHO_T}$ac_header_compiler" >&6; }
11059 # Is the header present?
11060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11062 cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h. */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 #include <$ac_header>
11069 _ACEOF
11070 if { (ac_try="$ac_cpp conftest.$ac_ext"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } >/dev/null && {
11083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 }; then
11086 ac_header_preproc=yes
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_header_preproc=no
11094 rm -f conftest.err conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11096 echo "${ECHO_T}$ac_header_preproc" >&6; }
11098 # So? What about this header?
11099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 yes:no: )
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11105 ac_header_preproc=yes
11107 no:yes:* )
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11120 ( cat <<\_ASBOX
11121 ## ---------------------------------------- ##
11122 ## Report this to pgsql-bugs@postgresql.org ##
11123 ## ---------------------------------------- ##
11124 _ASBOX
11125 ) | sed "s/^/$as_me: WARNING: /" >&2
11127 esac
11128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 eval "$as_ac_Header=\$ac_header_preproc"
11135 ac_res=`eval echo '${'$as_ac_Header'}'`
11136 { echo "$as_me:$LINENO: result: $ac_res" >&5
11137 echo "${ECHO_T}$ac_res" >&6; }
11140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11143 _ACEOF
11145 else
11147 for ac_header in readline/history.h
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 else
11160 # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11189 ac_header_compiler=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_header_compiler=no
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 echo "${ECHO_T}$ac_header_compiler" >&6; }
11201 # Is the header present?
11202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 #include <$ac_header>
11211 _ACEOF
11212 if { (ac_try="$ac_cpp conftest.$ac_ext"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216 esac
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } >/dev/null && {
11225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11226 test ! -s conftest.err
11227 }; then
11228 ac_header_preproc=yes
11229 else
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 ac_header_preproc=no
11236 rm -f conftest.err conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238 echo "${ECHO_T}$ac_header_preproc" >&6; }
11240 # So? What about this header?
11241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242 yes:no: )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247 ac_header_preproc=yes
11249 no:yes:* )
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262 ( cat <<\_ASBOX
11263 ## ---------------------------------------- ##
11264 ## Report this to pgsql-bugs@postgresql.org ##
11265 ## ---------------------------------------- ##
11266 _ASBOX
11267 ) | sed "s/^/$as_me: WARNING: /" >&2
11269 esac
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 eval "$as_ac_Header=\$ac_header_preproc"
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 _ACEOF
11289 done
11293 done
11297 done
11301 if test "$with_zlib" = yes; then
11302 if test "${ac_cv_header_zlib_h+set}" = set; then
11303 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11304 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11305 if test "${ac_cv_header_zlib_h+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11309 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11310 else
11311 # Is the header compilable?
11312 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11313 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 #include <zlib.h>
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest.$ac_objext; then
11340 ac_header_compiler=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_compiler=no
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350 echo "${ECHO_T}$ac_header_compiler" >&6; }
11352 # Is the header present?
11353 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11354 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <zlib.h>
11362 _ACEOF
11363 if { (ac_try="$ac_cpp conftest.$ac_ext"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null && {
11376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 }; then
11379 ac_header_preproc=yes
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_header_preproc=no
11387 rm -f conftest.err conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 echo "${ECHO_T}$ac_header_preproc" >&6; }
11391 # So? What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393 yes:no: )
11394 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11395 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11397 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11398 ac_header_preproc=yes
11400 no:yes:* )
11401 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11402 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11404 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11406 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11408 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11410 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11412 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11413 ( cat <<\_ASBOX
11414 ## ---------------------------------------- ##
11415 ## Report this to pgsql-bugs@postgresql.org ##
11416 ## ---------------------------------------- ##
11417 _ASBOX
11418 ) | sed "s/^/$as_me: WARNING: /" >&2
11420 esac
11421 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11422 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11423 if test "${ac_cv_header_zlib_h+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426 ac_cv_header_zlib_h=$ac_header_preproc
11428 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11429 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11432 if test $ac_cv_header_zlib_h = yes; then
11434 else
11435 { { echo "$as_me:$LINENO: error: zlib header not found
11436 If you have zlib already installed, see config.log for details on the
11437 failure. It is possible the compiler isn't looking in the proper directory.
11438 Use --without-zlib to disable zlib support." >&5
11439 echo "$as_me: error: zlib header not found
11440 If you have zlib already installed, see config.log for details on the
11441 failure. It is possible the compiler isn't looking in the proper directory.
11442 Use --without-zlib to disable zlib support." >&2;}
11443 { (exit 1); exit 1; }; }
11449 if test "$with_gssapi" = yes ; then
11451 for ac_header in gssapi/gssapi.h
11453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_res=`eval echo '${'$as_ac_Header'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11463 else
11464 # Is the header compilable?
11465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <$ac_header>
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 ac_header_compiler=yes
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_header_compiler=no
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h. */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11515 _ACEOF
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null && {
11529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11531 }; then
11532 ac_header_preproc=yes
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_preproc=no
11540 rm -f conftest.err conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 echo "${ECHO_T}$ac_header_preproc" >&6; }
11544 # So? What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 yes:no: )
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551 ac_header_preproc=yes
11553 no:yes:* )
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566 ( cat <<\_ASBOX
11567 ## ---------------------------------------- ##
11568 ## Report this to pgsql-bugs@postgresql.org ##
11569 ## ---------------------------------------- ##
11570 _ASBOX
11571 ) | sed "s/^/$as_me: WARNING: /" >&2
11573 esac
11574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579 eval "$as_ac_Header=\$ac_header_preproc"
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11589 _ACEOF
11591 else
11593 for ac_header in gssapi.h
11595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 ac_res=`eval echo '${'$as_ac_Header'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11605 else
11606 # Is the header compilable?
11607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 $ac_includes_default
11616 #include <$ac_header>
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11635 ac_header_compiler=yes
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11640 ac_header_compiler=no
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11645 echo "${ECHO_T}$ac_header_compiler" >&6; }
11647 # Is the header present?
11648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 #include <$ac_header>
11657 _ACEOF
11658 if { (ac_try="$ac_cpp conftest.$ac_ext"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } >/dev/null && {
11671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 }; then
11674 ac_header_preproc=yes
11675 else
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_header_preproc=no
11682 rm -f conftest.err conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684 echo "${ECHO_T}$ac_header_preproc" >&6; }
11686 # So? What about this header?
11687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 yes:no: )
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693 ac_header_preproc=yes
11695 no:yes:* )
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708 ( cat <<\_ASBOX
11709 ## ---------------------------------------- ##
11710 ## Report this to pgsql-bugs@postgresql.org ##
11711 ## ---------------------------------------- ##
11712 _ASBOX
11713 ) | sed "s/^/$as_me: WARNING: /" >&2
11715 esac
11716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 eval "$as_ac_Header=\$ac_header_preproc"
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11731 _ACEOF
11733 else
11734 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11735 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11736 { (exit 1); exit 1; }; }
11739 done
11743 done
11747 if test "$with_krb5" = yes ; then
11748 if test "${ac_cv_header_krb5_h+set}" = set; then
11749 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11750 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11751 if test "${ac_cv_header_krb5_h+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11755 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11756 else
11757 # Is the header compilable?
11758 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11759 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 #include <krb5.h>
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_compile") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest.$ac_objext; then
11786 ac_header_compiler=yes
11787 else
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_header_compiler=no
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11796 echo "${ECHO_T}$ac_header_compiler" >&6; }
11798 # Is the header present?
11799 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11800 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 #include <krb5.h>
11808 _ACEOF
11809 if { (ac_try="$ac_cpp conftest.$ac_ext"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } >/dev/null && {
11822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11823 test ! -s conftest.err
11824 }; then
11825 ac_header_preproc=yes
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 ac_header_preproc=no
11833 rm -f conftest.err conftest.$ac_ext
11834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11835 echo "${ECHO_T}$ac_header_preproc" >&6; }
11837 # So? What about this header?
11838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11839 yes:no: )
11840 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11841 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11843 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11844 ac_header_preproc=yes
11846 no:yes:* )
11847 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11848 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11850 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11852 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11854 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11856 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11858 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11859 ( cat <<\_ASBOX
11860 ## ---------------------------------------- ##
11861 ## Report this to pgsql-bugs@postgresql.org ##
11862 ## ---------------------------------------- ##
11863 _ASBOX
11864 ) | sed "s/^/$as_me: WARNING: /" >&2
11866 esac
11867 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11868 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11869 if test "${ac_cv_header_krb5_h+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 ac_cv_header_krb5_h=$ac_header_preproc
11874 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11875 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11878 if test $ac_cv_header_krb5_h = yes; then
11880 else
11881 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11882 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11883 { (exit 1); exit 1; }; }
11889 if test "$with_openssl" = yes ; then
11890 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11891 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11892 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11893 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11897 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11898 else
11899 # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11901 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <openssl/ssl.h>
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest.$ac_objext; then
11928 ac_header_compiler=yes
11929 else
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_header_compiler=no
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11942 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <openssl/ssl.h>
11950 _ACEOF
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } >/dev/null && {
11964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 }; then
11967 ac_header_preproc=yes
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_header_preproc=no
11975 rm -f conftest.err conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 yes:no: )
11982 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11988 no:yes:* )
11989 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12001 ( cat <<\_ASBOX
12002 ## ---------------------------------------- ##
12003 ## Report this to pgsql-bugs@postgresql.org ##
12004 ## ---------------------------------------- ##
12005 _ASBOX
12006 ) | sed "s/^/$as_me: WARNING: /" >&2
12008 esac
12009 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12010 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12011 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12016 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12017 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12020 if test $ac_cv_header_openssl_ssl_h = yes; then
12022 else
12023 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12024 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12025 { (exit 1); exit 1; }; }
12029 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12030 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12031 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12032 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12036 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12037 else
12038 # Is the header compilable?
12039 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12040 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <openssl/err.h>
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (ac_try="$ac_compile"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_compile") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest.$ac_objext; then
12067 ac_header_compiler=yes
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_header_compiler=no
12075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12077 echo "${ECHO_T}$ac_header_compiler" >&6; }
12079 # Is the header present?
12080 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12081 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12082 cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h. */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12088 #include <openssl/err.h>
12089 _ACEOF
12090 if { (ac_try="$ac_cpp conftest.$ac_ext"
12091 case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } >/dev/null && {
12103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 }; then
12106 ac_header_preproc=yes
12107 else
12108 echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12111 ac_header_preproc=no
12114 rm -f conftest.err conftest.$ac_ext
12115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12116 echo "${ECHO_T}$ac_header_preproc" >&6; }
12118 # So? What about this header?
12119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12120 yes:no: )
12121 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12122 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12124 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12125 ac_header_preproc=yes
12127 no:yes:* )
12128 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12129 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12131 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12133 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12135 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12137 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12139 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12140 ( cat <<\_ASBOX
12141 ## ---------------------------------------- ##
12142 ## Report this to pgsql-bugs@postgresql.org ##
12143 ## ---------------------------------------- ##
12144 _ASBOX
12145 ) | sed "s/^/$as_me: WARNING: /" >&2
12147 esac
12148 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12149 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12150 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 ac_cv_header_openssl_err_h=$ac_header_preproc
12155 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12156 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12159 if test $ac_cv_header_openssl_err_h = yes; then
12161 else
12162 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12163 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12164 { (exit 1); exit 1; }; }
12169 for ac_func in ERR_set_mark
12171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185 #define $ac_func innocuous_$ac_func
12187 /* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char $ac_func (); below.
12189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 <limits.h> exists even on freestanding compilers. */
12192 #ifdef __STDC__
12193 # include <limits.h>
12194 #else
12195 # include <assert.h>
12196 #endif
12198 #undef $ac_func
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 char $ac_func ();
12207 /* The GNU C library defines this for functions which it implements
12208 to always fail with ENOSYS. Some functions are actually named
12209 something starting with __ and the normal name is an alias. */
12210 #if defined __stub_$ac_func || defined __stub___$ac_func
12211 choke me
12212 #endif
12215 main ()
12217 return $ac_func ();
12219 return 0;
12221 _ACEOF
12222 rm -f conftest.$ac_objext conftest$ac_exeext
12223 if { (ac_try="$ac_link"
12224 case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227 esac
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_link") 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } && {
12236 test -z "$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 } && test -s conftest$ac_exeext &&
12239 $as_test_x conftest$ac_exeext; then
12240 eval "$as_ac_var=yes"
12241 else
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 eval "$as_ac_var=no"
12248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12249 conftest$ac_exeext conftest.$ac_ext
12251 ac_res=`eval echo '${'$as_ac_var'}'`
12252 { echo "$as_me:$LINENO: result: $ac_res" >&5
12253 echo "${ECHO_T}$ac_res" >&6; }
12254 if test `eval echo '${'$as_ac_var'}'` = yes; then
12255 cat >>confdefs.h <<_ACEOF
12256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12257 _ACEOF
12260 done
12264 if test "$with_pam" = yes ; then
12266 for ac_header in security/pam_appl.h
12268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_res=`eval echo '${'$as_ac_Header'}'`
12276 { echo "$as_me:$LINENO: result: $ac_res" >&5
12277 echo "${ECHO_T}$ac_res" >&6; }
12278 else
12279 # Is the header compilable?
12280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12282 cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h. */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 #include <$ac_header>
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (ac_try="$ac_compile"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_compile") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest.$ac_objext; then
12308 ac_header_compiler=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_header_compiler=no
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 echo "${ECHO_T}$ac_header_compiler" >&6; }
12320 # Is the header present?
12321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <$ac_header>
12330 _ACEOF
12331 if { (ac_try="$ac_cpp conftest.$ac_ext"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } >/dev/null && {
12344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 }; then
12347 ac_header_preproc=yes
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 ac_header_preproc=no
12355 rm -f conftest.err conftest.$ac_ext
12356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12357 echo "${ECHO_T}$ac_header_preproc" >&6; }
12359 # So? What about this header?
12360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12361 yes:no: )
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12366 ac_header_preproc=yes
12368 no:yes:* )
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12381 ( cat <<\_ASBOX
12382 ## ---------------------------------------- ##
12383 ## Report this to pgsql-bugs@postgresql.org ##
12384 ## ---------------------------------------- ##
12385 _ASBOX
12386 ) | sed "s/^/$as_me: WARNING: /" >&2
12388 esac
12389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394 eval "$as_ac_Header=\$ac_header_preproc"
12396 ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398 echo "${ECHO_T}$ac_res" >&6; }
12401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12402 cat >>confdefs.h <<_ACEOF
12403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12404 _ACEOF
12406 else
12408 for ac_header in pam/pam_appl.h
12410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 ac_res=`eval echo '${'$as_ac_Header'}'`
12418 { echo "$as_me:$LINENO: result: $ac_res" >&5
12419 echo "${ECHO_T}$ac_res" >&6; }
12420 else
12421 # Is the header compilable?
12422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12431 #include <$ac_header>
12432 _ACEOF
12433 rm -f conftest.$ac_objext
12434 if { (ac_try="$ac_compile"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.$ac_objext; then
12450 ac_header_compiler=yes
12451 else
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_header_compiler=no
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12460 echo "${ECHO_T}$ac_header_compiler" >&6; }
12462 # Is the header present?
12463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 #include <$ac_header>
12472 _ACEOF
12473 if { (ac_try="$ac_cpp conftest.$ac_ext"
12474 case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } >/dev/null && {
12486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12487 test ! -s conftest.err
12488 }; then
12489 ac_header_preproc=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_header_preproc=no
12497 rm -f conftest.err conftest.$ac_ext
12498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12499 echo "${ECHO_T}$ac_header_preproc" >&6; }
12501 # So? What about this header?
12502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 yes:no: )
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12508 ac_header_preproc=yes
12510 no:yes:* )
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12523 ( cat <<\_ASBOX
12524 ## ---------------------------------------- ##
12525 ## Report this to pgsql-bugs@postgresql.org ##
12526 ## ---------------------------------------- ##
12527 _ASBOX
12528 ) | sed "s/^/$as_me: WARNING: /" >&2
12530 esac
12531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 eval "$as_ac_Header=\$ac_header_preproc"
12538 ac_res=`eval echo '${'$as_ac_Header'}'`
12539 { echo "$as_me:$LINENO: result: $ac_res" >&5
12540 echo "${ECHO_T}$ac_res" >&6; }
12543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12544 cat >>confdefs.h <<_ACEOF
12545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12546 _ACEOF
12548 else
12549 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12550 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12551 { (exit 1); exit 1; }; }
12554 done
12558 done
12562 if test "$with_libxml" = yes ; then
12563 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12564 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12565 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12566 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12570 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12571 else
12572 # Is the header compilable?
12573 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12574 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 $ac_includes_default
12582 #include <libxml/parser.h>
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_header_compiler=yes
12602 else
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_header_compiler=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12611 echo "${ECHO_T}$ac_header_compiler" >&6; }
12613 # Is the header present?
12614 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12615 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12616 cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h. */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 #include <libxml/parser.h>
12623 _ACEOF
12624 if { (ac_try="$ac_cpp conftest.$ac_ext"
12625 case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628 esac
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } >/dev/null && {
12637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 }; then
12640 ac_header_preproc=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ac_header_preproc=no
12648 rm -f conftest.err conftest.$ac_ext
12649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12650 echo "${ECHO_T}$ac_header_preproc" >&6; }
12652 # So? What about this header?
12653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12654 yes:no: )
12655 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12656 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12658 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12659 ac_header_preproc=yes
12661 no:yes:* )
12662 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12663 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12665 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12667 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12669 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12671 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12673 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12674 ( cat <<\_ASBOX
12675 ## ---------------------------------------- ##
12676 ## Report this to pgsql-bugs@postgresql.org ##
12677 ## ---------------------------------------- ##
12678 _ASBOX
12679 ) | sed "s/^/$as_me: WARNING: /" >&2
12681 esac
12682 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12683 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12684 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687 ac_cv_header_libxml_parser_h=$ac_header_preproc
12689 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12690 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12693 if test $ac_cv_header_libxml_parser_h = yes; then
12695 else
12696 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12697 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12698 { (exit 1); exit 1; }; }
12704 if test "$with_libxslt" = yes ; then
12705 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12706 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12707 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12708 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12712 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12713 else
12714 # Is the header compilable?
12715 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12716 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 #include <libxslt/xslt.h>
12725 _ACEOF
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.$ac_objext; then
12743 ac_header_compiler=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ac_header_compiler=no
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12753 echo "${ECHO_T}$ac_header_compiler" >&6; }
12755 # Is the header present?
12756 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12757 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 #include <libxslt/xslt.h>
12765 _ACEOF
12766 if { (ac_try="$ac_cpp conftest.$ac_ext"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null && {
12779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 }; then
12782 ac_header_preproc=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 ac_header_preproc=no
12790 rm -f conftest.err conftest.$ac_ext
12791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6; }
12794 # So? What about this header?
12795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 yes:no: )
12797 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12800 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12801 ac_header_preproc=yes
12803 no:yes:* )
12804 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12805 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12807 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12809 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12811 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12813 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12815 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12816 ( cat <<\_ASBOX
12817 ## ---------------------------------------- ##
12818 ## Report this to pgsql-bugs@postgresql.org ##
12819 ## ---------------------------------------- ##
12820 _ASBOX
12821 ) | sed "s/^/$as_me: WARNING: /" >&2
12823 esac
12824 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12825 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12826 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12831 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12832 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12835 if test $ac_cv_header_libxslt_xslt_h = yes; then
12837 else
12838 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12839 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12840 { (exit 1); exit 1; }; }
12846 if test "$with_ldap" = yes ; then
12847 if test "$PORTNAME" != "win32"; then
12849 for ac_header in ldap.h
12851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 ac_res=`eval echo '${'$as_ac_Header'}'`
12859 { echo "$as_me:$LINENO: result: $ac_res" >&5
12860 echo "${ECHO_T}$ac_res" >&6; }
12861 else
12862 # Is the header compilable?
12863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12865 cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 #include <$ac_header>
12873 _ACEOF
12874 rm -f conftest.$ac_objext
12875 if { (ac_try="$ac_compile"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879 esac
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_compile") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
12891 ac_header_compiler=yes
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_header_compiler=no
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12901 echo "${ECHO_T}$ac_header_compiler" >&6; }
12903 # Is the header present?
12904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 #include <$ac_header>
12913 _ACEOF
12914 if { (ac_try="$ac_cpp conftest.$ac_ext"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } >/dev/null && {
12927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12928 test ! -s conftest.err
12929 }; then
12930 ac_header_preproc=yes
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_header_preproc=no
12938 rm -f conftest.err conftest.$ac_ext
12939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12940 echo "${ECHO_T}$ac_header_preproc" >&6; }
12942 # So? What about this header?
12943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12944 yes:no: )
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12949 ac_header_preproc=yes
12951 no:yes:* )
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12964 ( cat <<\_ASBOX
12965 ## ---------------------------------------- ##
12966 ## Report this to pgsql-bugs@postgresql.org ##
12967 ## ---------------------------------------- ##
12968 _ASBOX
12969 ) | sed "s/^/$as_me: WARNING: /" >&2
12971 esac
12972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 eval "$as_ac_Header=\$ac_header_preproc"
12979 ac_res=`eval echo '${'$as_ac_Header'}'`
12980 { echo "$as_me:$LINENO: result: $ac_res" >&5
12981 echo "${ECHO_T}$ac_res" >&6; }
12984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12985 cat >>confdefs.h <<_ACEOF
12986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12987 _ACEOF
12989 else
12990 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12991 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12992 { (exit 1); exit 1; }; }
12995 done
12997 else
12999 for ac_header in winldap.h
13001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 $ac_includes_default
13014 #include <windows.h>
13017 #include <$ac_header>
13018 _ACEOF
13019 rm -f conftest.$ac_objext
13020 if { (ac_try="$ac_compile"
13021 case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_compile") 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } && {
13033 test -z "$ac_c_werror_flag" ||
13034 test ! -s conftest.err
13035 } && test -s conftest.$ac_objext; then
13036 eval "$as_ac_Header=yes"
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 eval "$as_ac_Header=no"
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 ac_res=`eval echo '${'$as_ac_Header'}'`
13047 { echo "$as_me:$LINENO: result: $ac_res" >&5
13048 echo "${ECHO_T}$ac_res" >&6; }
13049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13050 cat >>confdefs.h <<_ACEOF
13051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13052 _ACEOF
13054 else
13055 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13056 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13057 { (exit 1); exit 1; }; }
13060 done
13065 if test "$with_bonjour" = yes ; then
13066 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13067 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13068 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13074 else
13075 # Is the header compilable?
13076 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13077 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13078 cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 $ac_includes_default
13085 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13086 _ACEOF
13087 rm -f conftest.$ac_objext
13088 if { (ac_try="$ac_compile"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_compile") 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } && {
13101 test -z "$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13103 } && test -s conftest.$ac_objext; then
13104 ac_header_compiler=yes
13105 else
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ac_header_compiler=no
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114 echo "${ECHO_T}$ac_header_compiler" >&6; }
13116 # Is the header present?
13117 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13118 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13126 _ACEOF
13127 if { (ac_try="$ac_cpp conftest.$ac_ext"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev/null && {
13140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 }; then
13143 ac_header_preproc=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_header_preproc=no
13151 rm -f conftest.err conftest.$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13153 echo "${ECHO_T}$ac_header_preproc" >&6; }
13155 # So? What about this header?
13156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 yes:no: )
13158 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13159 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13161 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13162 ac_header_preproc=yes
13164 no:yes:* )
13165 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13170 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13172 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13174 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13176 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13177 ( cat <<\_ASBOX
13178 ## ---------------------------------------- ##
13179 ## Report this to pgsql-bugs@postgresql.org ##
13180 ## ---------------------------------------- ##
13181 _ASBOX
13182 ) | sed "s/^/$as_me: WARNING: /" >&2
13184 esac
13185 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13186 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13187 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13192 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13196 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13198 else
13199 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13200 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13201 { (exit 1); exit 1; }; }
13207 # for contrib/uuid-ossp
13208 if test "$with_ossp_uuid" = yes ; then
13210 for ac_header in ossp/uuid.h
13212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 ac_res=`eval echo '${'$as_ac_Header'}'`
13220 { echo "$as_me:$LINENO: result: $ac_res" >&5
13221 echo "${ECHO_T}$ac_res" >&6; }
13222 else
13223 # Is the header compilable?
13224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13233 #include <$ac_header>
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest.$ac_objext; then
13252 ac_header_compiler=yes
13253 else
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_header_compiler=no
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13262 echo "${ECHO_T}$ac_header_compiler" >&6; }
13264 # Is the header present?
13265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13267 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 #include <$ac_header>
13274 _ACEOF
13275 if { (ac_try="$ac_cpp conftest.$ac_ext"
13276 case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279 esac
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } >/dev/null && {
13288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 }; then
13291 ac_header_preproc=yes
13292 else
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 ac_header_preproc=no
13299 rm -f conftest.err conftest.$ac_ext
13300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13301 echo "${ECHO_T}$ac_header_preproc" >&6; }
13303 # So? What about this header?
13304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13305 yes:no: )
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13310 ac_header_preproc=yes
13312 no:yes:* )
13313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13325 ( cat <<\_ASBOX
13326 ## ---------------------------------------- ##
13327 ## Report this to pgsql-bugs@postgresql.org ##
13328 ## ---------------------------------------- ##
13329 _ASBOX
13330 ) | sed "s/^/$as_me: WARNING: /" >&2
13332 esac
13333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 eval "$as_ac_Header=\$ac_header_preproc"
13340 ac_res=`eval echo '${'$as_ac_Header'}'`
13341 { echo "$as_me:$LINENO: result: $ac_res" >&5
13342 echo "${ECHO_T}$ac_res" >&6; }
13345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13346 cat >>confdefs.h <<_ACEOF
13347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13348 _ACEOF
13350 else
13353 for ac_header in uuid.h
13355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_res=`eval echo '${'$as_ac_Header'}'`
13363 { echo "$as_me:$LINENO: result: $ac_res" >&5
13364 echo "${ECHO_T}$ac_res" >&6; }
13365 else
13366 # Is the header compilable?
13367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 $ac_includes_default
13376 #include <$ac_header>
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_compile") 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && {
13392 test -z "$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13394 } && test -s conftest.$ac_objext; then
13395 ac_header_compiler=yes
13396 else
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 ac_header_compiler=no
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13405 echo "${ECHO_T}$ac_header_compiler" >&6; }
13407 # Is the header present?
13408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include <$ac_header>
13417 _ACEOF
13418 if { (ac_try="$ac_cpp conftest.$ac_ext"
13419 case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } >/dev/null && {
13431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13432 test ! -s conftest.err
13433 }; then
13434 ac_header_preproc=yes
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 ac_header_preproc=no
13442 rm -f conftest.err conftest.$ac_ext
13443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13444 echo "${ECHO_T}$ac_header_preproc" >&6; }
13446 # So? What about this header?
13447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13448 yes:no: )
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13453 ac_header_preproc=yes
13455 no:yes:* )
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13468 ( cat <<\_ASBOX
13469 ## ---------------------------------------- ##
13470 ## Report this to pgsql-bugs@postgresql.org ##
13471 ## ---------------------------------------- ##
13472 _ASBOX
13473 ) | sed "s/^/$as_me: WARNING: /" >&2
13475 esac
13476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481 eval "$as_ac_Header=\$ac_header_preproc"
13483 ac_res=`eval echo '${'$as_ac_Header'}'`
13484 { echo "$as_me:$LINENO: result: $ac_res" >&5
13485 echo "${ECHO_T}$ac_res" >&6; }
13488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13489 cat >>confdefs.h <<_ACEOF
13490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13491 _ACEOF
13493 else
13494 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13495 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13496 { (exit 1); exit 1; }; }
13499 done
13503 done
13509 ## Types, structures, compiler characteristics
13512 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13513 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13514 if test "${ac_cv_c_bigendian+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 # See if sys/param.h defines the BYTE_ORDER macro.
13518 cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h. */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 #include <sys/types.h>
13525 #include <sys/param.h>
13528 main ()
13530 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13531 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13532 bogus endian macros
13533 #endif
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext
13540 if { (ac_try="$ac_compile"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_compile") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest.$ac_objext; then
13556 # It does; now see whether it defined to BIG_ENDIAN or not.
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include <sys/types.h>
13564 #include <sys/param.h>
13567 main ()
13569 #if BYTE_ORDER != BIG_ENDIAN
13570 not big endian
13571 #endif
13574 return 0;
13576 _ACEOF
13577 rm -f conftest.$ac_objext
13578 if { (ac_try="$ac_compile"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_compile") 2>conftest.er1
13585 ac_status=$?
13586 grep -v '^ *+' conftest.er1 >conftest.err
13587 rm -f conftest.er1
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest.$ac_objext; then
13594 ac_cv_c_bigendian=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_c_bigendian=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 else
13604 echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13607 # It does not; compile a test program.
13608 if test "$cross_compiling" = yes; then
13609 # try to guess the endianness by grepping values into an object file
13610 ac_cv_c_bigendian=unknown
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h. */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13618 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13619 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13620 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13621 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13622 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13624 main ()
13626 _ascii (); _ebcdic ();
13628 return 0;
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13639 ac_status=$?
13640 grep -v '^ *+' conftest.er1 >conftest.err
13641 rm -f conftest.er1
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && {
13645 test -z "$ac_c_werror_flag" ||
13646 test ! -s conftest.err
13647 } && test -s conftest.$ac_objext; then
13648 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13649 ac_cv_c_bigendian=yes
13651 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13652 if test "$ac_cv_c_bigendian" = unknown; then
13653 ac_cv_c_bigendian=no
13654 else
13655 # finding both strings is unlikely to happen, but who knows?
13656 ac_cv_c_bigendian=unknown
13659 else
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 else
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 $ac_includes_default
13676 main ()
13679 /* Are we little or big endian? From Harbison&Steele. */
13680 union
13682 long int l;
13683 char c[sizeof (long int)];
13684 } u;
13685 u.l = 1;
13686 return u.c[sizeof (long int) - 1] == 1;
13689 return 0;
13691 _ACEOF
13692 rm -f conftest$ac_exeext
13693 if { (ac_try="$ac_link"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_link") 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13703 { (case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_cv_c_bigendian=no
13713 else
13714 echo "$as_me: program exited with status $ac_status" >&5
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ( exit $ac_status )
13719 ac_cv_c_bigendian=yes
13721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13730 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13731 case $ac_cv_c_bigendian in
13732 yes)
13734 cat >>confdefs.h <<\_ACEOF
13735 #define WORDS_BIGENDIAN 1
13736 _ACEOF
13741 { { echo "$as_me:$LINENO: error: unknown endianness
13742 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13743 echo "$as_me: error: unknown endianness
13744 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13745 { (exit 1); exit 1; }; } ;;
13746 esac
13748 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13749 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13750 if test "${ac_cv_c_const+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13761 main ()
13763 /* FIXME: Include the comments suggested by Paul. */
13764 #ifndef __cplusplus
13765 /* Ultrix mips cc rejects this. */
13766 typedef int charset[2];
13767 const charset cs;
13768 /* SunOS 4.1.1 cc rejects this. */
13769 char const *const *pcpcc;
13770 char **ppc;
13771 /* NEC SVR4.0.2 mips cc rejects this. */
13772 struct point {int x, y;};
13773 static struct point const zero = {0,0};
13774 /* AIX XL C 1.02.0.0 rejects this.
13775 It does not let you subtract one const X* pointer from another in
13776 an arm of an if-expression whose if-part is not a constant
13777 expression */
13778 const char *g = "string";
13779 pcpcc = &g + (g ? g-g : 0);
13780 /* HPUX 7.0 cc rejects these. */
13781 ++pcpcc;
13782 ppc = (char**) pcpcc;
13783 pcpcc = (char const *const *) ppc;
13784 { /* SCO 3.2v4 cc rejects this. */
13785 char *t;
13786 char const *s = 0 ? (char *) 0 : (char const *) 0;
13788 *t++ = 0;
13789 if (s) return 0;
13791 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13792 int x[] = {25, 17};
13793 const int *foo = &x[0];
13794 ++foo;
13796 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13797 typedef const int *iptr;
13798 iptr p = 0;
13799 ++p;
13801 { /* AIX XL C 1.02.0.0 rejects this saying
13802 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13803 struct s { int j; const int *ap[3]; };
13804 struct s *b; b->j = 5;
13806 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13807 const int foo = 10;
13808 if (!foo) return 0;
13810 return !cs[0] && !zero.x;
13811 #endif
13814 return 0;
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (ac_try="$ac_compile"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_compile") 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && {
13831 test -z "$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 } && test -s conftest.$ac_objext; then
13834 ac_cv_c_const=yes
13835 else
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_c_const=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13845 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13846 if test $ac_cv_c_const = no; then
13848 cat >>confdefs.h <<\_ACEOF
13849 #define const
13850 _ACEOF
13854 { echo "$as_me:$LINENO: checking for inline" >&5
13855 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13856 if test "${ac_cv_c_inline+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 ac_cv_c_inline=no
13860 for ac_kw in inline __inline__ __inline; do
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #ifndef __cplusplus
13868 typedef int foo_t;
13869 static $ac_kw foo_t static_foo () {return 0; }
13870 $ac_kw foo_t foo () {return 0; }
13871 #endif
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_compile") 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest.$ac_objext; then
13891 ac_cv_c_inline=$ac_kw
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 test "$ac_cv_c_inline" != no && break
13901 done
13904 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13905 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13908 case $ac_cv_c_inline in
13909 inline | yes) ;;
13911 case $ac_cv_c_inline in
13912 no) ac_val=;;
13913 *) ac_val=$ac_cv_c_inline;;
13914 esac
13915 cat >>confdefs.h <<_ACEOF
13916 #ifndef __cplusplus
13917 #define inline $ac_val
13918 #endif
13919 _ACEOF
13921 esac
13923 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13924 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13925 if test "${ac_cv_c_stringize+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h. */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 #define x(y) #y
13936 char *s = x(teststring);
13937 _ACEOF
13938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13939 $EGREP "#teststring" >/dev/null 2>&1; then
13940 ac_cv_c_stringize=no
13941 else
13942 ac_cv_c_stringize=yes
13944 rm -f conftest*
13947 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13948 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13949 if test $ac_cv_c_stringize = yes; then
13951 cat >>confdefs.h <<\_ACEOF
13952 #define HAVE_STRINGIZE 1
13953 _ACEOF
13957 { echo "$as_me:$LINENO: checking for signed types" >&5
13958 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13959 if test "${pgac_cv_c_signed+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13970 main ()
13972 signed char c; signed short s; signed int i;
13974 return 0;
13976 _ACEOF
13977 rm -f conftest.$ac_objext
13978 if { (ac_try="$ac_compile"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_compile") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
13994 pgac_cv_c_signed=yes
13995 else
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 pgac_cv_c_signed=no
14002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14005 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14006 if test x"$pgac_cv_c_signed" = xno ; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define signed
14010 _ACEOF
14013 { echo "$as_me:$LINENO: checking for working volatile" >&5
14014 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14015 if test "${ac_cv_c_volatile+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018 cat >conftest.$ac_ext <<_ACEOF
14019 /* confdefs.h. */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14026 main ()
14029 volatile int x;
14030 int * volatile y = (int *) 0;
14031 return !x && !y;
14033 return 0;
14035 _ACEOF
14036 rm -f conftest.$ac_objext
14037 if { (ac_try="$ac_compile"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_compile") 2>conftest.er1
14044 ac_status=$?
14045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && {
14050 test -z "$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14052 } && test -s conftest.$ac_objext; then
14053 ac_cv_c_volatile=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_cv_c_volatile=no
14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14064 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14065 if test $ac_cv_c_volatile = no; then
14067 cat >>confdefs.h <<\_ACEOF
14068 #define volatile
14069 _ACEOF
14073 { echo "$as_me:$LINENO: checking for __func__" >&5
14074 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14075 if test "${pgac_cv_funcname_func_support+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 #include <stdio.h>
14086 main ()
14088 printf("%s\n", __func__);
14090 return 0;
14092 _ACEOF
14093 rm -f conftest.$ac_objext
14094 if { (ac_try="$ac_compile"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_compile") 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest.$ac_objext; then
14110 pgac_cv_funcname_func_support=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 pgac_cv_funcname_func_support=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14121 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14122 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_FUNCNAME__FUNC 1
14126 _ACEOF
14128 else
14129 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14130 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14131 if test "${pgac_cv_funcname_function_support+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h. */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 #include <stdio.h>
14142 main ()
14144 printf("%s\n", __FUNCTION__);
14146 return 0;
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest.$ac_objext; then
14166 pgac_cv_funcname_function_support=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 pgac_cv_funcname_function_support=no
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14177 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14178 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14180 cat >>confdefs.h <<\_ACEOF
14181 #define HAVE_FUNCNAME__FUNCTION 1
14182 _ACEOF
14186 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14187 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14188 if test "${ac_cv_struct_tm+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <sys/types.h>
14198 #include <time.h>
14201 main ()
14203 struct tm tm;
14204 int *p = &tm.tm_sec;
14205 return !p;
14207 return 0;
14209 _ACEOF
14210 rm -f conftest.$ac_objext
14211 if { (ac_try="$ac_compile"
14212 case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_compile") 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } && {
14224 test -z "$ac_c_werror_flag" ||
14225 test ! -s conftest.err
14226 } && test -s conftest.$ac_objext; then
14227 ac_cv_struct_tm=time.h
14228 else
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_struct_tm=sys/time.h
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14238 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14239 if test $ac_cv_struct_tm = sys/time.h; then
14241 cat >>confdefs.h <<\_ACEOF
14242 #define TM_IN_SYS_TIME 1
14243 _ACEOF
14247 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14248 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14249 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252 cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h. */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 #include <sys/types.h>
14259 #include <$ac_cv_struct_tm>
14263 main ()
14265 static struct tm ac_aggr;
14266 if (ac_aggr.tm_zone)
14267 return 0;
14269 return 0;
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (ac_try="$ac_compile"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_compile") 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } && {
14286 test -z "$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14288 } && test -s conftest.$ac_objext; then
14289 ac_cv_member_struct_tm_tm_zone=yes
14290 else
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14301 #include <$ac_cv_struct_tm>
14305 main ()
14307 static struct tm ac_aggr;
14308 if (sizeof ac_aggr.tm_zone)
14309 return 0;
14311 return 0;
14313 _ACEOF
14314 rm -f conftest.$ac_objext
14315 if { (ac_try="$ac_compile"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_compile") 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } && {
14328 test -z "$ac_c_werror_flag" ||
14329 test ! -s conftest.err
14330 } && test -s conftest.$ac_objext; then
14331 ac_cv_member_struct_tm_tm_zone=yes
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_cv_member_struct_tm_tm_zone=no
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14345 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14346 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_STRUCT_TM_TM_ZONE 1
14350 _ACEOF
14355 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14357 cat >>confdefs.h <<\_ACEOF
14358 #define HAVE_TM_ZONE 1
14359 _ACEOF
14362 { echo "$as_me:$LINENO: checking for tzname" >&5
14363 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14364 if test "${ac_cv_var_tzname+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 else
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <time.h>
14374 #ifndef tzname /* For SGI. */
14375 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14376 #endif
14379 main ()
14381 atoi(*tzname);
14383 return 0;
14385 _ACEOF
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (ac_try="$ac_link"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest$ac_exeext &&
14403 $as_test_x conftest$ac_exeext; then
14404 ac_cv_var_tzname=yes
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 ac_cv_var_tzname=no
14412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 conftest$ac_exeext conftest.$ac_ext
14415 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14416 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14417 if test $ac_cv_var_tzname = yes; then
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_TZNAME 1
14421 _ACEOF
14425 { echo "$as_me:$LINENO: checking for union semun" >&5
14426 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14427 if test "${ac_cv_type_union_semun+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <sys/types.h>
14437 #include <sys/ipc.h>
14438 #include <sys/sem.h>
14440 typedef union semun ac__type_new_;
14442 main ()
14444 if ((ac__type_new_ *) 0)
14445 return 0;
14446 if (sizeof (ac__type_new_))
14447 return 0;
14449 return 0;
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_compile") 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && {
14466 test -z "$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest.$ac_objext; then
14469 ac_cv_type_union_semun=yes
14470 else
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 ac_cv_type_union_semun=no
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14480 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14481 if test $ac_cv_type_union_semun = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define HAVE_UNION_SEMUN 1
14485 _ACEOF
14490 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14491 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14492 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495 cat >conftest.$ac_ext <<_ACEOF
14496 /* confdefs.h. */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501 #include <sys/types.h>
14502 #ifdef HAVE_SYS_UN_H
14503 #include <sys/un.h>
14504 #endif
14507 typedef struct sockaddr_un ac__type_new_;
14509 main ()
14511 if ((ac__type_new_ *) 0)
14512 return 0;
14513 if (sizeof (ac__type_new_))
14514 return 0;
14516 return 0;
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (ac_try="$ac_compile"
14521 case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_compile") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } && {
14533 test -z "$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14535 } && test -s conftest.$ac_objext; then
14536 ac_cv_type_struct_sockaddr_un=yes
14537 else
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_cv_type_struct_sockaddr_un=no
14544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14547 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14548 if test $ac_cv_type_struct_sockaddr_un = yes; then
14550 cat >>confdefs.h <<_ACEOF
14551 #define HAVE_STRUCT_SOCKADDR_UN 1
14552 _ACEOF
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_UNIX_SOCKETS 1
14557 _ACEOF
14561 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14562 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14563 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566 cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h. */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 #include <sys/types.h>
14573 #ifdef HAVE_SYS_SOCKET_H
14574 #include <sys/socket.h>
14575 #endif
14578 typedef struct sockaddr_storage ac__type_new_;
14580 main ()
14582 if ((ac__type_new_ *) 0)
14583 return 0;
14584 if (sizeof (ac__type_new_))
14585 return 0;
14587 return 0;
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest.$ac_objext; then
14607 ac_cv_type_struct_sockaddr_storage=yes
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_type_struct_sockaddr_storage=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14618 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14619 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14621 cat >>confdefs.h <<_ACEOF
14622 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14623 _ACEOF
14628 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14629 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14630 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 #include <sys/types.h>
14640 #ifdef HAVE_SYS_SOCKET_H
14641 #include <sys/socket.h>
14642 #endif
14646 main ()
14648 static struct sockaddr_storage ac_aggr;
14649 if (ac_aggr.ss_family)
14650 return 0;
14652 return 0;
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_compile") 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest.$ac_objext; then
14672 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14673 else
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h. */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <sys/types.h>
14684 #ifdef HAVE_SYS_SOCKET_H
14685 #include <sys/socket.h>
14686 #endif
14690 main ()
14692 static struct sockaddr_storage ac_aggr;
14693 if (sizeof ac_aggr.ss_family)
14694 return 0;
14696 return 0;
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (ac_try="$ac_compile"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_compile") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest.$ac_objext; then
14716 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_cv_member_struct_sockaddr_storage_ss_family=no
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14730 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14731 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14733 cat >>confdefs.h <<_ACEOF
14734 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14735 _ACEOF
14739 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14740 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14741 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 #include <sys/types.h>
14751 #ifdef HAVE_SYS_SOCKET_H
14752 #include <sys/socket.h>
14753 #endif
14757 main ()
14759 static struct sockaddr_storage ac_aggr;
14760 if (ac_aggr.__ss_family)
14761 return 0;
14763 return 0;
14765 _ACEOF
14766 rm -f conftest.$ac_objext
14767 if { (ac_try="$ac_compile"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_compile") 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest.$ac_objext; then
14783 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14784 else
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <sys/types.h>
14795 #ifdef HAVE_SYS_SOCKET_H
14796 #include <sys/socket.h>
14797 #endif
14801 main ()
14803 static struct sockaddr_storage ac_aggr;
14804 if (sizeof ac_aggr.__ss_family)
14805 return 0;
14807 return 0;
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (ac_try="$ac_compile"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest.$ac_objext; then
14827 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_member_struct_sockaddr_storage___ss_family=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14841 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14842 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14846 _ACEOF
14850 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14851 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14852 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855 cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h. */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14862 #ifdef HAVE_SYS_SOCKET_H
14863 #include <sys/socket.h>
14864 #endif
14868 main ()
14870 static struct sockaddr_storage ac_aggr;
14871 if (ac_aggr.ss_len)
14872 return 0;
14874 return 0;
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (ac_try="$ac_compile"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_compile") 2>conftest.er1
14885 ac_status=$?
14886 grep -v '^ *+' conftest.er1 >conftest.err
14887 rm -f conftest.er1
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } && {
14891 test -z "$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14893 } && test -s conftest.$ac_objext; then
14894 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14895 else
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 #include <sys/types.h>
14906 #ifdef HAVE_SYS_SOCKET_H
14907 #include <sys/socket.h>
14908 #endif
14912 main ()
14914 static struct sockaddr_storage ac_aggr;
14915 if (sizeof ac_aggr.ss_len)
14916 return 0;
14918 return 0;
14920 _ACEOF
14921 rm -f conftest.$ac_objext
14922 if { (ac_try="$ac_compile"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_compile") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest.$ac_objext; then
14938 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14939 else
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ac_cv_member_struct_sockaddr_storage_ss_len=no
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14952 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14953 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14957 _ACEOF
14961 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14962 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14963 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966 cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h. */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <sys/types.h>
14973 #ifdef HAVE_SYS_SOCKET_H
14974 #include <sys/socket.h>
14975 #endif
14979 main ()
14981 static struct sockaddr_storage ac_aggr;
14982 if (ac_aggr.__ss_len)
14983 return 0;
14985 return 0;
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_compile") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest.$ac_objext; then
15005 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <sys/types.h>
15017 #ifdef HAVE_SYS_SOCKET_H
15018 #include <sys/socket.h>
15019 #endif
15023 main ()
15025 static struct sockaddr_storage ac_aggr;
15026 if (sizeof ac_aggr.__ss_len)
15027 return 0;
15029 return 0;
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (ac_try="$ac_compile"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_compile") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest.$ac_objext; then
15049 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_member_struct_sockaddr_storage___ss_len=no
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15063 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15064 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15066 cat >>confdefs.h <<_ACEOF
15067 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15068 _ACEOF
15072 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15073 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15074 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <sys/types.h>
15084 #ifdef HAVE_SYS_SOCKET_H
15085 #include <sys/socket.h>
15086 #endif
15090 main ()
15092 static struct sockaddr ac_aggr;
15093 if (ac_aggr.sa_len)
15094 return 0;
15096 return 0;
15098 _ACEOF
15099 rm -f conftest.$ac_objext
15100 if { (ac_try="$ac_compile"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_compile") 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } && {
15113 test -z "$ac_c_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest.$ac_objext; then
15116 ac_cv_member_struct_sockaddr_sa_len=yes
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 #include <sys/types.h>
15128 #ifdef HAVE_SYS_SOCKET_H
15129 #include <sys/socket.h>
15130 #endif
15134 main ()
15136 static struct sockaddr ac_aggr;
15137 if (sizeof ac_aggr.sa_len)
15138 return 0;
15140 return 0;
15142 _ACEOF
15143 rm -f conftest.$ac_objext
15144 if { (ac_try="$ac_compile"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_compile") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest.$ac_objext; then
15160 ac_cv_member_struct_sockaddr_sa_len=yes
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_member_struct_sockaddr_sa_len=no
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15174 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15175 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15179 _ACEOF
15184 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15185 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15186 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <sys/types.h>
15196 #include <sys/socket.h>
15197 #include <netdb.h>
15200 typedef struct addrinfo ac__type_new_;
15202 main ()
15204 if ((ac__type_new_ *) 0)
15205 return 0;
15206 if (sizeof (ac__type_new_))
15207 return 0;
15209 return 0;
15211 _ACEOF
15212 rm -f conftest.$ac_objext
15213 if { (ac_try="$ac_compile"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_compile") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } && {
15226 test -z "$ac_c_werror_flag" ||
15227 test ! -s conftest.err
15228 } && test -s conftest.$ac_objext; then
15229 ac_cv_type_struct_addrinfo=yes
15230 else
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_cv_type_struct_addrinfo=no
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15240 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15241 if test $ac_cv_type_struct_addrinfo = yes; then
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_STRUCT_ADDRINFO 1
15245 _ACEOF
15251 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15252 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15253 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include <sys/param.h>
15263 #include <sys/types.h>
15264 #include <sys/socket.h>
15265 #include <sys/ucred.h>
15267 typedef struct cmsgcred ac__type_new_;
15269 main ()
15271 if ((ac__type_new_ *) 0)
15272 return 0;
15273 if (sizeof (ac__type_new_))
15274 return 0;
15276 return 0;
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (ac_try="$ac_compile"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_compile") 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } && {
15293 test -z "$ac_c_werror_flag" ||
15294 test ! -s conftest.err
15295 } && test -s conftest.$ac_objext; then
15296 ac_cv_type_struct_cmsgcred=yes
15297 else
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 ac_cv_type_struct_cmsgcred=no
15304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15307 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15308 if test $ac_cv_type_struct_cmsgcred = yes; then
15310 cat >>confdefs.h <<_ACEOF
15311 #define HAVE_STRUCT_CMSGCRED 1
15312 _ACEOF
15316 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15317 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15318 if test "${ac_cv_type_struct_fcred+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 else
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 #include <sys/param.h>
15328 #include <sys/types.h>
15329 #include <sys/socket.h>
15330 #include <sys/ucred.h>
15332 typedef struct fcred ac__type_new_;
15334 main ()
15336 if ((ac__type_new_ *) 0)
15337 return 0;
15338 if (sizeof (ac__type_new_))
15339 return 0;
15341 return 0;
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_compile") 2>conftest.er1
15352 ac_status=$?
15353 grep -v '^ *+' conftest.er1 >conftest.err
15354 rm -f conftest.er1
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } && {
15358 test -z "$ac_c_werror_flag" ||
15359 test ! -s conftest.err
15360 } && test -s conftest.$ac_objext; then
15361 ac_cv_type_struct_fcred=yes
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_type_struct_fcred=no
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15372 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15373 if test $ac_cv_type_struct_fcred = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376 #define HAVE_STRUCT_FCRED 1
15377 _ACEOF
15381 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15382 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15383 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 #include <sys/param.h>
15393 #include <sys/types.h>
15394 #include <sys/socket.h>
15395 #include <sys/ucred.h>
15397 typedef struct sockcred ac__type_new_;
15399 main ()
15401 if ((ac__type_new_ *) 0)
15402 return 0;
15403 if (sizeof (ac__type_new_))
15404 return 0;
15406 return 0;
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest.$ac_objext; then
15426 ac_cv_type_struct_sockcred=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_cv_type_struct_sockcred=no
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15437 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15438 if test $ac_cv_type_struct_sockcred = yes; then
15440 cat >>confdefs.h <<_ACEOF
15441 #define HAVE_STRUCT_SOCKCRED 1
15442 _ACEOF
15448 { echo "$as_me:$LINENO: checking for struct option" >&5
15449 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15450 if test "${ac_cv_type_struct_option+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #ifdef HAVE_GETOPT_H
15460 #include <getopt.h>
15461 #endif
15463 typedef struct option ac__type_new_;
15465 main ()
15467 if ((ac__type_new_ *) 0)
15468 return 0;
15469 if (sizeof (ac__type_new_))
15470 return 0;
15472 return 0;
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (ac_try="$ac_compile"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_compile") 2>conftest.er1
15483 ac_status=$?
15484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } && {
15489 test -z "$ac_c_werror_flag" ||
15490 test ! -s conftest.err
15491 } && test -s conftest.$ac_objext; then
15492 ac_cv_type_struct_option=yes
15493 else
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15497 ac_cv_type_struct_option=no
15500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15503 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15504 if test $ac_cv_type_struct_option = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_STRUCT_OPTION 1
15508 _ACEOF
15514 if test "$with_zlib" = yes; then
15515 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15516 # did not). While we could work around the lack of z_streamp, it
15517 # seems unwise to encourage people to use such old zlib versions...
15518 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15519 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15520 if test "${ac_cv_type_z_streamp+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h. */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <zlib.h>
15531 typedef z_streamp ac__type_new_;
15533 main ()
15535 if ((ac__type_new_ *) 0)
15536 return 0;
15537 if (sizeof (ac__type_new_))
15538 return 0;
15540 return 0;
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest.$ac_objext; then
15560 ac_cv_type_z_streamp=yes
15561 else
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_cv_type_z_streamp=no
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15571 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15572 if test $ac_cv_type_z_streamp = yes; then
15574 else
15575 { { echo "$as_me:$LINENO: error: zlib version is too old
15576 Use --without-zlib to disable zlib support." >&5
15577 echo "$as_me: error: zlib version is too old
15578 Use --without-zlib to disable zlib support." >&2;}
15579 { (exit 1); exit 1; }; }
15584 if test "$with_krb5" = yes; then
15585 # Check for differences between MIT and Heimdal (KTH) releases
15586 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15587 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15588 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h. */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <krb5.h>
15600 main ()
15602 static krb5_ticket ac_aggr;
15603 if (ac_aggr.enc_part2)
15604 return 0;
15606 return 0;
15608 _ACEOF
15609 rm -f conftest.$ac_objext
15610 if { (ac_try="$ac_compile"
15611 case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_compile") 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } && {
15623 test -z "$ac_c_werror_flag" ||
15624 test ! -s conftest.err
15625 } && test -s conftest.$ac_objext; then
15626 ac_cv_member_krb5_ticket_enc_part2=yes
15627 else
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h. */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 #include <krb5.h>
15640 main ()
15642 static krb5_ticket ac_aggr;
15643 if (sizeof ac_aggr.enc_part2)
15644 return 0;
15646 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest.$ac_objext; then
15666 ac_cv_member_krb5_ticket_enc_part2=yes
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_cv_member_krb5_ticket_enc_part2=no
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15680 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15681 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_KRB5_TICKET_ENC_PART2 1
15685 _ACEOF
15688 else
15689 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15690 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15691 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h. */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <krb5.h>
15703 main ()
15705 static krb5_ticket ac_aggr;
15706 if (ac_aggr.client)
15707 return 0;
15709 return 0;
15711 _ACEOF
15712 rm -f conftest.$ac_objext
15713 if { (ac_try="$ac_compile"
15714 case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_compile") 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } && {
15726 test -z "$ac_c_werror_flag" ||
15727 test ! -s conftest.err
15728 } && test -s conftest.$ac_objext; then
15729 ac_cv_member_krb5_ticket_client=yes
15730 else
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <krb5.h>
15743 main ()
15745 static krb5_ticket ac_aggr;
15746 if (sizeof ac_aggr.client)
15747 return 0;
15749 return 0;
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest.$ac_objext; then
15769 ac_cv_member_krb5_ticket_client=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_cv_member_krb5_ticket_client=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15783 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15784 if test $ac_cv_member_krb5_ticket_client = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787 #define HAVE_KRB5_TICKET_CLIENT 1
15788 _ACEOF
15791 else
15792 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15793 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15794 { (exit 1); exit 1; }; }
15799 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15800 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15801 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <krb5.h>
15813 main ()
15815 static krb5_error ac_aggr;
15816 if (ac_aggr.text.data)
15817 return 0;
15819 return 0;
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_compile") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } && {
15836 test -z "$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 } && test -s conftest.$ac_objext; then
15839 ac_cv_member_krb5_error_text_data=yes
15840 else
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 #include <krb5.h>
15853 main ()
15855 static krb5_error ac_aggr;
15856 if (sizeof ac_aggr.text.data)
15857 return 0;
15859 return 0;
15861 _ACEOF
15862 rm -f conftest.$ac_objext
15863 if { (ac_try="$ac_compile"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_compile") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest.$ac_objext; then
15879 ac_cv_member_krb5_error_text_data=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_member_krb5_error_text_data=no
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15893 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15894 if test $ac_cv_member_krb5_error_text_data = yes; then
15896 cat >>confdefs.h <<_ACEOF
15897 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15898 _ACEOF
15901 else
15902 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15903 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15904 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h. */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 #include <krb5.h>
15916 main ()
15918 static krb5_error ac_aggr;
15919 if (ac_aggr.e_data)
15920 return 0;
15922 return 0;
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (ac_try="$ac_compile"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_compile") 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } && {
15939 test -z "$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 } && test -s conftest.$ac_objext; then
15942 ac_cv_member_krb5_error_e_data=yes
15943 else
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <krb5.h>
15956 main ()
15958 static krb5_error ac_aggr;
15959 if (sizeof ac_aggr.e_data)
15960 return 0;
15962 return 0;
15964 _ACEOF
15965 rm -f conftest.$ac_objext
15966 if { (ac_try="$ac_compile"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970 esac
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_compile") 2>conftest.er1
15973 ac_status=$?
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } && {
15979 test -z "$ac_c_werror_flag" ||
15980 test ! -s conftest.err
15981 } && test -s conftest.$ac_objext; then
15982 ac_cv_member_krb5_error_e_data=yes
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 ac_cv_member_krb5_error_e_data=no
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15996 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15997 if test $ac_cv_member_krb5_error_e_data = yes; then
15999 cat >>confdefs.h <<_ACEOF
16000 #define HAVE_KRB5_ERROR_E_DATA 1
16001 _ACEOF
16004 else
16005 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16006 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16007 { (exit 1); exit 1; }; }
16013 # Win32 requires headers to be loaded for __stdcall, so can't use
16014 # AC_CHECK_FUNCS here.
16015 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16016 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16017 cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h. */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 #include <krb5.h>
16025 main ()
16027 krb5_free_unparsed_name(NULL,NULL);
16029 return 0;
16031 _ACEOF
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_link") 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } && {
16046 test -z "$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 } && test -s conftest$ac_exeext &&
16049 $as_test_x conftest$ac_exeext; then
16051 cat >>confdefs.h <<\_ACEOF
16052 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16053 _ACEOF
16055 { echo "$as_me:$LINENO: result: yes" >&5
16056 echo "${ECHO_T}yes" >&6; }
16057 else
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 { echo "$as_me:$LINENO: result: no" >&5
16062 echo "${ECHO_T}no" >&6; }
16065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16066 conftest$ac_exeext conftest.$ac_ext
16071 ## Functions, global variables
16074 { echo "$as_me:$LINENO: checking for int timezone" >&5
16075 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16076 if test "${pgac_cv_var_int_timezone+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <time.h>
16086 int res;
16088 main ()
16090 #ifndef __CYGWIN__
16091 res = timezone / 60;
16092 #else
16093 res = _timezone / 60;
16094 #endif
16096 return 0;
16098 _ACEOF
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (ac_try="$ac_link"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_link") 2>conftest.er1
16107 ac_status=$?
16108 grep -v '^ *+' conftest.er1 >conftest.err
16109 rm -f conftest.er1
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } && {
16113 test -z "$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 } && test -s conftest$ac_exeext &&
16116 $as_test_x conftest$ac_exeext; then
16117 pgac_cv_var_int_timezone=yes
16118 else
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 pgac_cv_var_int_timezone=no
16125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16126 conftest$ac_exeext conftest.$ac_ext
16128 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16129 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16130 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_INT_TIMEZONE
16134 _ACEOF
16137 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16138 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16139 if test "${ac_cv_func_accept_return+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142 if test "${ac_cv_func_accept_arg1+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145 if test "${ac_cv_func_accept_arg2+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148 if test "${ac_cv_func_accept_arg3+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16152 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16153 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16154 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h. */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #ifdef HAVE_SYS_TYPES_H
16162 #include <sys/types.h>
16163 #endif
16164 #ifdef HAVE_SYS_SOCKET_H
16165 #include <sys/socket.h>
16166 #endif
16167 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16169 main ()
16173 return 0;
16175 _ACEOF
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } && {
16190 test -z "$ac_c_werror_flag" ||
16191 test ! -s conftest.err
16192 } && test -s conftest.$ac_objext; then
16193 ac_not_found=no; break 4
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_not_found=yes
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202 done
16203 done
16204 done
16205 done
16206 if test "$ac_not_found" = yes; then
16207 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16208 echo "$as_me: error: could not determine argument types" >&2;}
16209 { (exit 1); exit 1; }; }
16211 if test "$ac_cv_func_accept_arg3" = "void"; then
16212 ac_cv_func_accept_arg3=int
16222 { 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
16223 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16225 cat >>confdefs.h <<_ACEOF
16226 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16227 _ACEOF
16230 cat >>confdefs.h <<_ACEOF
16231 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16232 _ACEOF
16235 cat >>confdefs.h <<_ACEOF
16236 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16237 _ACEOF
16240 cat >>confdefs.h <<_ACEOF
16241 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16242 _ACEOF
16245 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16246 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16247 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h. */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 #include <sys/time.h>
16258 main ()
16260 struct timeval *tp;
16261 struct timezone *tzp;
16262 gettimeofday(tp,tzp);
16264 return 0;
16266 _ACEOF
16267 rm -f conftest.$ac_objext
16268 if { (ac_try="$ac_compile"
16269 case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_compile") 2>conftest.er1
16275 ac_status=$?
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && {
16281 test -z "$ac_c_werror_flag" ||
16282 test ! -s conftest.err
16283 } && test -s conftest.$ac_objext; then
16284 pgac_cv_func_gettimeofday_1arg=no
16285 else
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 pgac_cv_func_gettimeofday_1arg=yes
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16295 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16296 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16298 cat >>confdefs.h <<\_ACEOF
16299 #define GETTIMEOFDAY_1ARG
16300 _ACEOF
16328 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll posix_fadvise pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16344 #define $ac_func innocuous_$ac_func
16346 /* System header to define __stub macros and hopefully few prototypes,
16347 which can conflict with char $ac_func (); below.
16348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16349 <limits.h> exists even on freestanding compilers. */
16351 #ifdef __STDC__
16352 # include <limits.h>
16353 #else
16354 # include <assert.h>
16355 #endif
16357 #undef $ac_func
16359 /* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16362 #ifdef __cplusplus
16363 extern "C"
16364 #endif
16365 char $ac_func ();
16366 /* The GNU C library defines this for functions which it implements
16367 to always fail with ENOSYS. Some functions are actually named
16368 something starting with __ and the normal name is an alias. */
16369 #if defined __stub_$ac_func || defined __stub___$ac_func
16370 choke me
16371 #endif
16374 main ()
16376 return $ac_func ();
16378 return 0;
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } && {
16395 test -z "$ac_c_werror_flag" ||
16396 test ! -s conftest.err
16397 } && test -s conftest$ac_exeext &&
16398 $as_test_x conftest$ac_exeext; then
16399 eval "$as_ac_var=yes"
16400 else
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 eval "$as_ac_var=no"
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408 conftest$ac_exeext conftest.$ac_ext
16410 ac_res=`eval echo '${'$as_ac_var'}'`
16411 { echo "$as_me:$LINENO: result: $ac_res" >&5
16412 echo "${ECHO_T}$ac_res" >&6; }
16413 if test `eval echo '${'$as_ac_var'}'` = yes; then
16414 cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16416 _ACEOF
16419 done
16422 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16423 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16424 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427 cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h. */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <unistd.h>
16436 main ()
16438 #ifndef fdatasync
16439 (void) fdatasync;
16440 #endif
16443 return 0;
16445 _ACEOF
16446 rm -f conftest.$ac_objext
16447 if { (ac_try="$ac_compile"
16448 case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_compile") 2>conftest.er1
16454 ac_status=$?
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } && {
16460 test -z "$ac_c_werror_flag" ||
16461 test ! -s conftest.err
16462 } && test -s conftest.$ac_objext; then
16463 ac_cv_have_decl_fdatasync=yes
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_cv_have_decl_fdatasync=no
16471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16474 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16475 if test $ac_cv_have_decl_fdatasync = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478 #define HAVE_DECL_FDATASYNC 1
16479 _ACEOF
16482 else
16483 cat >>confdefs.h <<_ACEOF
16484 #define HAVE_DECL_FDATASYNC 0
16485 _ACEOF
16491 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16492 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16493 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 #include <fcntl.h>
16505 main ()
16507 #ifndef posix_fadvise
16508 (void) posix_fadvise;
16509 #endif
16512 return 0;
16514 _ACEOF
16515 rm -f conftest.$ac_objext
16516 if { (ac_try="$ac_compile"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest.$ac_objext; then
16532 ac_cv_have_decl_posix_fadvise=yes
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_have_decl_posix_fadvise=no
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16543 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16544 if test $ac_cv_have_decl_posix_fadvise = yes; then
16546 cat >>confdefs.h <<_ACEOF
16547 #define HAVE_DECL_POSIX_FADVISE 1
16548 _ACEOF
16551 else
16552 cat >>confdefs.h <<_ACEOF
16553 #define HAVE_DECL_POSIX_FADVISE 0
16554 _ACEOF
16560 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16561 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16562 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565 cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h. */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 $ac_includes_default
16573 main ()
16575 #ifndef strlcat
16576 (void) strlcat;
16577 #endif
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } && {
16597 test -z "$ac_c_werror_flag" ||
16598 test ! -s conftest.err
16599 } && test -s conftest.$ac_objext; then
16600 ac_cv_have_decl_strlcat=yes
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_have_decl_strlcat=no
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16611 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16612 if test $ac_cv_have_decl_strlcat = yes; then
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_DECL_STRLCAT 1
16616 _ACEOF
16619 else
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE_DECL_STRLCAT 0
16622 _ACEOF
16626 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16627 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16628 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
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 $ac_includes_default
16639 main ()
16641 #ifndef strlcpy
16642 (void) strlcpy;
16643 #endif
16646 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest.$ac_objext; then
16666 ac_cv_have_decl_strlcpy=yes
16667 else
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_cv_have_decl_strlcpy=no
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16677 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16678 if test $ac_cv_have_decl_strlcpy = yes; then
16680 cat >>confdefs.h <<_ACEOF
16681 #define HAVE_DECL_STRLCPY 1
16682 _ACEOF
16685 else
16686 cat >>confdefs.h <<_ACEOF
16687 #define HAVE_DECL_STRLCPY 0
16688 _ACEOF
16694 # This is probably only present on Darwin, but may as well check always
16695 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16696 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16697 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 #include <fcntl.h>
16709 main ()
16711 #ifndef F_FULLFSYNC
16712 (void) F_FULLFSYNC;
16713 #endif
16716 return 0;
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest.$ac_objext; then
16736 ac_cv_have_decl_F_FULLFSYNC=yes
16737 else
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_have_decl_F_FULLFSYNC=no
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16747 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16748 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16750 cat >>confdefs.h <<_ACEOF
16751 #define HAVE_DECL_F_FULLFSYNC 1
16752 _ACEOF
16755 else
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_DECL_F_FULLFSYNC 0
16758 _ACEOF
16765 HAVE_IPV6=no
16766 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16767 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16768 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h. */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 $ac_includes_default
16778 #include <netinet/in.h>
16780 typedef struct sockaddr_in6 ac__type_new_;
16782 main ()
16784 if ((ac__type_new_ *) 0)
16785 return 0;
16786 if (sizeof (ac__type_new_))
16787 return 0;
16789 return 0;
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_compile") 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } && {
16806 test -z "$ac_c_werror_flag" ||
16807 test ! -s conftest.err
16808 } && test -s conftest.$ac_objext; then
16809 ac_cv_type_struct_sockaddr_in6=yes
16810 else
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 ac_cv_type_struct_sockaddr_in6=no
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16820 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16821 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16823 cat >>confdefs.h <<\_ACEOF
16824 #define HAVE_IPV6 1
16825 _ACEOF
16827 HAVE_IPV6=yes
16832 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16833 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16834 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837 cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h. */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 #include <machine/vmparam.h>
16844 #include <sys/exec.h>
16847 main ()
16849 PS_STRINGS->ps_nargvstr = 1;
16850 PS_STRINGS->ps_argvstr = "foo";
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext &&
16872 $as_test_x conftest$ac_exeext; then
16873 pgac_cv_var_PS_STRINGS=yes
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 pgac_cv_var_PS_STRINGS=no
16881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16882 conftest$ac_exeext conftest.$ac_ext
16884 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16885 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16886 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16888 cat >>confdefs.h <<\_ACEOF
16889 #define HAVE_PS_STRINGS
16890 _ACEOF
16895 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16896 # is missing. Yes, there are machines that have only one. We may
16897 # also decide to use snprintf.c if snprintf() is present but does not
16898 # have all the features we need --- see below.
16900 if test "$PORTNAME" = "win32"; then
16901 # Win32 gets snprintf.c built unconditionally.
16903 # To properly translate all NLS languages strings, we must support the
16904 # *printf() %$ format, which allows *printf() arguments to be selected
16905 # by position in the translated string.
16907 # libintl versions < 0.13 use the native *printf() functions, and Win32
16908 # *printf() doesn't understand %$, so we must use our /port versions,
16909 # which do understand %$. libintl versions >= 0.13 include their own
16910 # *printf versions on Win32. The libintl 0.13 release note text is:
16912 # C format strings with positions, as they arise when a translator
16913 # needs to reorder a sentence, are now supported on all platforms.
16914 # On those few platforms (NetBSD and Woe32) for which the native
16915 # printf()/fprintf()/... functions don't support such format
16916 # strings, replacements are provided through <libintl.h>.
16918 # We could use libintl >= 0.13's *printf() if we were sure that we had
16919 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16920 # to guarantee that, it is best to just use our own, so we are sure to
16921 # get %$ support. In include/port.h we disable the *printf() macros
16922 # that might have been defined by libintl.
16924 # We do this unconditionally whether NLS is used or not so we are sure
16925 # that all Win32 libraries and binaries behave the same.
16926 pgac_need_repl_snprintf=yes
16927 else
16928 pgac_need_repl_snprintf=no
16930 for ac_func in snprintf
16932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16946 #define $ac_func innocuous_$ac_func
16948 /* System header to define __stub macros and hopefully few prototypes,
16949 which can conflict with char $ac_func (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16953 #ifdef __STDC__
16954 # include <limits.h>
16955 #else
16956 # include <assert.h>
16957 #endif
16959 #undef $ac_func
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 char $ac_func ();
16968 /* The GNU C library defines this for functions which it implements
16969 to always fail with ENOSYS. Some functions are actually named
16970 something starting with __ and the normal name is an alias. */
16971 #if defined __stub_$ac_func || defined __stub___$ac_func
16972 choke me
16973 #endif
16976 main ()
16978 return $ac_func ();
16980 return 0;
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (ac_try="$ac_link"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_link") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest$ac_exeext &&
17000 $as_test_x conftest$ac_exeext; then
17001 eval "$as_ac_var=yes"
17002 else
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 eval "$as_ac_var=no"
17009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17010 conftest$ac_exeext conftest.$ac_ext
17012 ac_res=`eval echo '${'$as_ac_var'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17015 if test `eval echo '${'$as_ac_var'}'` = yes; then
17016 cat >>confdefs.h <<_ACEOF
17017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17018 _ACEOF
17020 else
17021 pgac_need_repl_snprintf=yes
17023 done
17026 for ac_func in vsnprintf
17028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17042 #define $ac_func innocuous_$ac_func
17044 /* System header to define __stub macros and hopefully few prototypes,
17045 which can conflict with char $ac_func (); below.
17046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047 <limits.h> exists even on freestanding compilers. */
17049 #ifdef __STDC__
17050 # include <limits.h>
17051 #else
17052 # include <assert.h>
17053 #endif
17055 #undef $ac_func
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char $ac_func ();
17064 /* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
17067 #if defined __stub_$ac_func || defined __stub___$ac_func
17068 choke me
17069 #endif
17072 main ()
17074 return $ac_func ();
17076 return 0;
17078 _ACEOF
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && {
17093 test -z "$ac_c_werror_flag" ||
17094 test ! -s conftest.err
17095 } && test -s conftest$ac_exeext &&
17096 $as_test_x conftest$ac_exeext; then
17097 eval "$as_ac_var=yes"
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 eval "$as_ac_var=no"
17105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17106 conftest$ac_exeext conftest.$ac_ext
17108 ac_res=`eval echo '${'$as_ac_var'}'`
17109 { echo "$as_me:$LINENO: result: $ac_res" >&5
17110 echo "${ECHO_T}$ac_res" >&6; }
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112 cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17114 _ACEOF
17116 else
17117 pgac_need_repl_snprintf=yes
17119 done
17124 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17125 # include/c.h will provide declarations. Note this is a separate test
17126 # from whether the functions exist in the C library --- there are
17127 # systems that have the functions but don't bother to declare them :-(
17129 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17130 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17131 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h. */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 $ac_includes_default
17142 main ()
17144 #ifndef snprintf
17145 (void) snprintf;
17146 #endif
17149 return 0;
17151 _ACEOF
17152 rm -f conftest.$ac_objext
17153 if { (ac_try="$ac_compile"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_compile") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest.$ac_objext; then
17169 ac_cv_have_decl_snprintf=yes
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_have_decl_snprintf=no
17177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17180 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17181 if test $ac_cv_have_decl_snprintf = yes; then
17183 cat >>confdefs.h <<_ACEOF
17184 #define HAVE_DECL_SNPRINTF 1
17185 _ACEOF
17188 else
17189 cat >>confdefs.h <<_ACEOF
17190 #define HAVE_DECL_SNPRINTF 0
17191 _ACEOF
17195 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17196 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17197 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 $ac_includes_default
17208 main ()
17210 #ifndef vsnprintf
17211 (void) vsnprintf;
17212 #endif
17215 return 0;
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17226 ac_status=$?
17227 grep -v '^ *+' conftest.er1 >conftest.err
17228 rm -f conftest.er1
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } && {
17232 test -z "$ac_c_werror_flag" ||
17233 test ! -s conftest.err
17234 } && test -s conftest.$ac_objext; then
17235 ac_cv_have_decl_vsnprintf=yes
17236 else
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ac_cv_have_decl_vsnprintf=no
17243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17246 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17247 if test $ac_cv_have_decl_vsnprintf = yes; then
17249 cat >>confdefs.h <<_ACEOF
17250 #define HAVE_DECL_VSNPRINTF 1
17251 _ACEOF
17254 else
17255 cat >>confdefs.h <<_ACEOF
17256 #define HAVE_DECL_VSNPRINTF 0
17257 _ACEOF
17265 { echo "$as_me:$LINENO: checking for isinf" >&5
17266 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17267 if test "${ac_cv_func_isinf+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 #include <math.h>
17278 double glob_double;
17281 main ()
17283 return isinf(glob_double) ? 0 : 1;
17285 return 0;
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest$ac_exeext &&
17305 $as_test_x conftest$ac_exeext; then
17306 ac_cv_func_isinf=yes
17307 else
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_cv_func_isinf=no
17314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17315 conftest$ac_exeext conftest.$ac_ext
17317 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17318 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17320 if test $ac_cv_func_isinf = yes ; then
17322 cat >>confdefs.h <<\_ACEOF
17323 #define HAVE_ISINF 1
17324 _ACEOF
17326 else
17327 case " $LIBOBJS " in
17328 *" isinf.$ac_objext "* ) ;;
17329 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17331 esac
17333 # Look for a way to implement a substitute for isinf()
17338 for ac_func in fpclass fp_class fp_class_d class
17340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346 cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h. */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17354 #define $ac_func innocuous_$ac_func
17356 /* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func (); below.
17358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17359 <limits.h> exists even on freestanding compilers. */
17361 #ifdef __STDC__
17362 # include <limits.h>
17363 #else
17364 # include <assert.h>
17365 #endif
17367 #undef $ac_func
17369 /* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17372 #ifdef __cplusplus
17373 extern "C"
17374 #endif
17375 char $ac_func ();
17376 /* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379 #if defined __stub_$ac_func || defined __stub___$ac_func
17380 choke me
17381 #endif
17384 main ()
17386 return $ac_func ();
17388 return 0;
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (ac_try="$ac_link"
17393 case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_link") 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } && {
17405 test -z "$ac_c_werror_flag" ||
17406 test ! -s conftest.err
17407 } && test -s conftest$ac_exeext &&
17408 $as_test_x conftest$ac_exeext; then
17409 eval "$as_ac_var=yes"
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 eval "$as_ac_var=no"
17417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17418 conftest$ac_exeext conftest.$ac_ext
17420 ac_res=`eval echo '${'$as_ac_var'}'`
17421 { echo "$as_me:$LINENO: result: $ac_res" >&5
17422 echo "${ECHO_T}$ac_res" >&6; }
17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17426 _ACEOF
17427 break
17429 done
17433 # Some versions of libedit contain strlcpy(); so disregard that library while
17434 # checking for these standard libc functions.
17435 pgac_save_LIBS="$LIBS"
17436 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17451 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
17453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&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
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. */
17474 #ifdef __STDC__
17475 # include <limits.h>
17476 #else
17477 # include <assert.h>
17478 #endif
17480 #undef $ac_func
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
17497 main ()
17499 return $ac_func ();
17501 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && {
17518 test -z "$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17520 } && test -s conftest$ac_exeext &&
17521 $as_test_x conftest$ac_exeext; then
17522 eval "$as_ac_var=yes"
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 eval "$as_ac_var=no"
17530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17531 conftest$ac_exeext conftest.$ac_ext
17533 ac_res=`eval echo '${'$as_ac_var'}'`
17534 { echo "$as_me:$LINENO: result: $ac_res" >&5
17535 echo "${ECHO_T}$ac_res" >&6; }
17536 if test `eval echo '${'$as_ac_var'}'` = yes; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17539 _ACEOF
17541 else
17542 case " $LIBOBJS " in
17543 *" $ac_func.$ac_objext "* ) ;;
17544 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17546 esac
17549 done
17553 case $host_os in
17555 # Windows uses a specialised env handler
17556 mingw*)
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_UNSETENV 1
17560 _ACEOF
17562 ac_cv_func_unsetenv=yes;;
17565 for ac_func in unsetenv
17567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581 #define $ac_func innocuous_$ac_func
17583 /* System header to define __stub macros and hopefully few prototypes,
17584 which can conflict with char $ac_func (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
17588 #ifdef __STDC__
17589 # include <limits.h>
17590 #else
17591 # include <assert.h>
17592 #endif
17594 #undef $ac_func
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 char $ac_func ();
17603 /* The GNU C library defines this for functions which it implements
17604 to always fail with ENOSYS. Some functions are actually named
17605 something starting with __ and the normal name is an alias. */
17606 #if defined __stub_$ac_func || defined __stub___$ac_func
17607 choke me
17608 #endif
17611 main ()
17613 return $ac_func ();
17615 return 0;
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (ac_try="$ac_link"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_link") 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && {
17632 test -z "$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 } && test -s conftest$ac_exeext &&
17635 $as_test_x conftest$ac_exeext; then
17636 eval "$as_ac_var=yes"
17637 else
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 eval "$as_ac_var=no"
17644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17645 conftest$ac_exeext conftest.$ac_ext
17647 ac_res=`eval echo '${'$as_ac_var'}'`
17648 { echo "$as_me:$LINENO: result: $ac_res" >&5
17649 echo "${ECHO_T}$ac_res" >&6; }
17650 if test `eval echo '${'$as_ac_var'}'` = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 _ACEOF
17655 else
17656 case " $LIBOBJS " in
17657 *" $ac_func.$ac_objext "* ) ;;
17658 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17660 esac
17663 done
17667 esac
17670 LIBS="$pgac_save_LIBS"
17672 # System's version of getaddrinfo(), if any, may be used only if we found
17673 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17674 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17675 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17676 # because we want to use our own getaddrinfo.c on Windows anyway.)
17677 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17679 for ac_func in getaddrinfo
17681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h. */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17695 #define $ac_func innocuous_$ac_func
17697 /* System header to define __stub macros and hopefully few prototypes,
17698 which can conflict with char $ac_func (); below.
17699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700 <limits.h> exists even on freestanding compilers. */
17702 #ifdef __STDC__
17703 # include <limits.h>
17704 #else
17705 # include <assert.h>
17706 #endif
17708 #undef $ac_func
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char $ac_func ();
17717 /* The GNU C library defines this for functions which it implements
17718 to always fail with ENOSYS. Some functions are actually named
17719 something starting with __ and the normal name is an alias. */
17720 #if defined __stub_$ac_func || defined __stub___$ac_func
17721 choke me
17722 #endif
17725 main ()
17727 return $ac_func ();
17729 return 0;
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_link") 2>conftest.er1
17740 ac_status=$?
17741 grep -v '^ *+' conftest.er1 >conftest.err
17742 rm -f conftest.er1
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest$ac_exeext &&
17749 $as_test_x conftest$ac_exeext; then
17750 eval "$as_ac_var=yes"
17751 else
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 eval "$as_ac_var=no"
17758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17759 conftest$ac_exeext conftest.$ac_ext
17761 ac_res=`eval echo '${'$as_ac_var'}'`
17762 { echo "$as_me:$LINENO: result: $ac_res" >&5
17763 echo "${ECHO_T}$ac_res" >&6; }
17764 if test `eval echo '${'$as_ac_var'}'` = yes; then
17765 cat >>confdefs.h <<_ACEOF
17766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17767 _ACEOF
17769 else
17770 case " $LIBOBJS " in
17771 *" $ac_func.$ac_objext "* ) ;;
17772 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17774 esac
17777 done
17780 else
17781 case " $LIBOBJS " in
17782 *" getaddrinfo.$ac_objext "* ) ;;
17783 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17785 esac
17789 # Similarly, use system's getopt_long() only if system provides struct option.
17790 # Solaris' getopt() doesn't do what we want for long options, so always use
17791 # our versions on that platform.
17792 if test "$PORTNAME" = "solaris"; then
17793 case " $LIBOBJS " in
17794 *" getopt.$ac_objext "* ) ;;
17795 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17797 esac
17799 case " $LIBOBJS " in
17800 *" getopt_long.$ac_objext "* ) ;;
17801 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17803 esac
17805 elif test x"$ac_cv_type_struct_option" = xyes ; then
17807 for ac_func in getopt_long
17809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17823 #define $ac_func innocuous_$ac_func
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func (); below.
17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828 <limits.h> exists even on freestanding compilers. */
17830 #ifdef __STDC__
17831 # include <limits.h>
17832 #else
17833 # include <assert.h>
17834 #endif
17836 #undef $ac_func
17838 /* Override any GCC internal prototype to avoid an error.
17839 Use char because int might match the return type of a GCC
17840 builtin and then its argument prototype would still apply. */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 char $ac_func ();
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined __stub_$ac_func || defined __stub___$ac_func
17849 choke me
17850 #endif
17853 main ()
17855 return $ac_func ();
17857 return 0;
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (ac_try="$ac_link"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_link") 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } && {
17874 test -z "$ac_c_werror_flag" ||
17875 test ! -s conftest.err
17876 } && test -s conftest$ac_exeext &&
17877 $as_test_x conftest$ac_exeext; then
17878 eval "$as_ac_var=yes"
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 eval "$as_ac_var=no"
17886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17887 conftest$ac_exeext conftest.$ac_ext
17889 ac_res=`eval echo '${'$as_ac_var'}'`
17890 { echo "$as_me:$LINENO: result: $ac_res" >&5
17891 echo "${ECHO_T}$ac_res" >&6; }
17892 if test `eval echo '${'$as_ac_var'}'` = yes; then
17893 cat >>confdefs.h <<_ACEOF
17894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17895 _ACEOF
17897 else
17898 case " $LIBOBJS " in
17899 *" $ac_func.$ac_objext "* ) ;;
17900 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17902 esac
17905 done
17908 else
17909 case " $LIBOBJS " in
17910 *" getopt_long.$ac_objext "* ) ;;
17911 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17913 esac
17917 # Win32 support
17918 if test "$PORTNAME" = "win32"; then
17920 for ac_func in gettimeofday
17922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17936 #define $ac_func innocuous_$ac_func
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func (); below.
17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17941 <limits.h> exists even on freestanding compilers. */
17943 #ifdef __STDC__
17944 # include <limits.h>
17945 #else
17946 # include <assert.h>
17947 #endif
17949 #undef $ac_func
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char $ac_func ();
17958 /* The GNU C library defines this for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined __stub_$ac_func || defined __stub___$ac_func
17962 choke me
17963 #endif
17966 main ()
17968 return $ac_func ();
17970 return 0;
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (ac_try="$ac_link"
17975 case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978 esac
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_link") 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } && {
17987 test -z "$ac_c_werror_flag" ||
17988 test ! -s conftest.err
17989 } && test -s conftest$ac_exeext &&
17990 $as_test_x conftest$ac_exeext; then
17991 eval "$as_ac_var=yes"
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 eval "$as_ac_var=no"
17999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18000 conftest$ac_exeext conftest.$ac_ext
18002 ac_res=`eval echo '${'$as_ac_var'}'`
18003 { echo "$as_me:$LINENO: result: $ac_res" >&5
18004 echo "${ECHO_T}$ac_res" >&6; }
18005 if test `eval echo '${'$as_ac_var'}'` = yes; then
18006 cat >>confdefs.h <<_ACEOF
18007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18008 _ACEOF
18010 else
18011 case " $LIBOBJS " in
18012 *" $ac_func.$ac_objext "* ) ;;
18013 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18015 esac
18018 done
18021 case " $LIBOBJS " in
18022 *" kill.$ac_objext "* ) ;;
18023 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
18025 esac
18027 case " $LIBOBJS " in
18028 *" open.$ac_objext "* ) ;;
18029 *) LIBOBJS="$LIBOBJS open.$ac_objext"
18031 esac
18033 case " $LIBOBJS " in
18034 *" rand.$ac_objext "* ) ;;
18035 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
18037 esac
18039 case " $LIBOBJS " in
18040 *" win32env.$ac_objext "* ) ;;
18041 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
18043 esac
18045 case " $LIBOBJS " in
18046 *" win32error.$ac_objext "* ) ;;
18047 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
18049 esac
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_SYMLINK 1
18054 _ACEOF
18058 if test "$with_readline" = yes; then
18059 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
18060 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #include <stdio.h>
18068 #ifdef HAVE_READLINE_READLINE_H
18069 # include <readline/readline.h>
18070 #elif defined(HAVE_READLINE_H)
18071 # include <readline.h>
18072 #endif
18075 main ()
18077 rl_completion_append_character = 'x';
18079 return 0;
18081 _ACEOF
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (ac_try="$ac_link"
18084 case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_link") 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } && {
18096 test -z "$ac_c_werror_flag" ||
18097 test ! -s conftest.err
18098 } && test -s conftest$ac_exeext &&
18099 $as_test_x conftest$ac_exeext; then
18100 { echo "$as_me:$LINENO: result: yes" >&5
18101 echo "${ECHO_T}yes" >&6; }
18103 cat >>confdefs.h <<\_ACEOF
18104 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
18105 _ACEOF
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 { echo "$as_me:$LINENO: result: no" >&5
18112 echo "${ECHO_T}no" >&6; }
18115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18116 conftest$ac_exeext conftest.$ac_ext
18119 for ac_func in rl_completion_matches rl_filename_completion_function
18121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18135 #define $ac_func innocuous_$ac_func
18137 /* System header to define __stub macros and hopefully few prototypes,
18138 which can conflict with char $ac_func (); below.
18139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140 <limits.h> exists even on freestanding compilers. */
18142 #ifdef __STDC__
18143 # include <limits.h>
18144 #else
18145 # include <assert.h>
18146 #endif
18148 #undef $ac_func
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char $ac_func ();
18157 /* The GNU C library defines this for functions which it implements
18158 to always fail with ENOSYS. Some functions are actually named
18159 something starting with __ and the normal name is an alias. */
18160 #if defined __stub_$ac_func || defined __stub___$ac_func
18161 choke me
18162 #endif
18165 main ()
18167 return $ac_func ();
18169 return 0;
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest$ac_exeext &&
18189 $as_test_x conftest$ac_exeext; then
18190 eval "$as_ac_var=yes"
18191 else
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 eval "$as_ac_var=no"
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199 conftest$ac_exeext conftest.$ac_ext
18201 ac_res=`eval echo '${'$as_ac_var'}'`
18202 { echo "$as_me:$LINENO: result: $ac_res" >&5
18203 echo "${ECHO_T}$ac_res" >&6; }
18204 if test `eval echo '${'$as_ac_var'}'` = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18207 _ACEOF
18210 done
18213 for ac_func in replace_history_entry
18215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 else
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h. */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18229 #define $ac_func innocuous_$ac_func
18231 /* System header to define __stub macros and hopefully few prototypes,
18232 which can conflict with char $ac_func (); below.
18233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234 <limits.h> exists even on freestanding compilers. */
18236 #ifdef __STDC__
18237 # include <limits.h>
18238 #else
18239 # include <assert.h>
18240 #endif
18242 #undef $ac_func
18244 /* Override any GCC internal prototype to avoid an error.
18245 Use char because int might match the return type of a GCC
18246 builtin and then its argument prototype would still apply. */
18247 #ifdef __cplusplus
18248 extern "C"
18249 #endif
18250 char $ac_func ();
18251 /* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254 #if defined __stub_$ac_func || defined __stub___$ac_func
18255 choke me
18256 #endif
18259 main ()
18261 return $ac_func ();
18263 return 0;
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest$ac_exeext &&
18283 $as_test_x conftest$ac_exeext; then
18284 eval "$as_ac_var=yes"
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 eval "$as_ac_var=no"
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18295 ac_res=`eval echo '${'$as_ac_var'}'`
18296 { echo "$as_me:$LINENO: result: $ac_res" >&5
18297 echo "${ECHO_T}$ac_res" >&6; }
18298 if test `eval echo '${'$as_ac_var'}'` = yes; then
18299 cat >>confdefs.h <<_ACEOF
18300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18301 _ACEOF
18304 done
18309 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18310 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 #include <setjmp.h>
18319 main ()
18321 sigjmp_buf x; sigsetjmp(x, 1);
18323 return 0;
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
18345 cat >>confdefs.h <<\_ACEOF
18346 #define HAVE_SIGSETJMP 1
18347 _ACEOF
18349 { echo "$as_me:$LINENO: result: yes" >&5
18350 echo "${ECHO_T}yes" >&6; }
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 { echo "$as_me:$LINENO: result: no" >&5
18356 echo "${ECHO_T}no" >&6; }
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18362 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18363 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18364 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h. */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 #include <signal.h>
18374 /* NetBSD declares sys_siglist in unistd.h. */
18375 #ifdef HAVE_UNISTD_H
18376 # include <unistd.h>
18377 #endif
18381 main ()
18383 #ifndef sys_siglist
18384 (void) sys_siglist;
18385 #endif
18388 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest.$ac_objext; then
18408 ac_cv_have_decl_sys_siglist=yes
18409 else
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18413 ac_cv_have_decl_sys_siglist=no
18416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18419 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18420 if test $ac_cv_have_decl_sys_siglist = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define HAVE_DECL_SYS_SIGLIST 1
18424 _ACEOF
18427 else
18428 cat >>confdefs.h <<_ACEOF
18429 #define HAVE_DECL_SYS_SIGLIST 0
18430 _ACEOF
18438 { echo "$as_me:$LINENO: checking for syslog" >&5
18439 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18440 if test "${ac_cv_func_syslog+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18451 #define syslog innocuous_syslog
18453 /* System header to define __stub macros and hopefully few prototypes,
18454 which can conflict with char syslog (); below.
18455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18456 <limits.h> exists even on freestanding compilers. */
18458 #ifdef __STDC__
18459 # include <limits.h>
18460 #else
18461 # include <assert.h>
18462 #endif
18464 #undef syslog
18466 /* Override any GCC internal prototype to avoid an error.
18467 Use char because int might match the return type of a GCC
18468 builtin and then its argument prototype would still apply. */
18469 #ifdef __cplusplus
18470 extern "C"
18471 #endif
18472 char syslog ();
18473 /* The GNU C library defines this for functions which it implements
18474 to always fail with ENOSYS. Some functions are actually named
18475 something starting with __ and the normal name is an alias. */
18476 #if defined __stub_syslog || defined __stub___syslog
18477 choke me
18478 #endif
18481 main ()
18483 return syslog ();
18485 return 0;
18487 _ACEOF
18488 rm -f conftest.$ac_objext conftest$ac_exeext
18489 if { (ac_try="$ac_link"
18490 case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493 esac
18494 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
18506 ac_cv_func_syslog=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_cv_func_syslog=no
18514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18515 conftest$ac_exeext conftest.$ac_ext
18517 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18518 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18519 if test $ac_cv_func_syslog = yes; then
18520 if test "${ac_cv_header_syslog_h+set}" = set; then
18521 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18522 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18523 if test "${ac_cv_header_syslog_h+set}" = set; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18527 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18528 else
18529 # Is the header compilable?
18530 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18531 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 $ac_includes_default
18539 #include <syslog.h>
18540 _ACEOF
18541 rm -f conftest.$ac_objext
18542 if { (ac_try="$ac_compile"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_compile") 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } && {
18555 test -z "$ac_c_werror_flag" ||
18556 test ! -s conftest.err
18557 } && test -s conftest.$ac_objext; then
18558 ac_header_compiler=yes
18559 else
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_header_compiler=no
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18568 echo "${ECHO_T}$ac_header_compiler" >&6; }
18570 # Is the header present?
18571 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18572 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 #include <syslog.h>
18580 _ACEOF
18581 if { (ac_try="$ac_cpp conftest.$ac_ext"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18588 ac_status=$?
18589 grep -v '^ *+' conftest.er1 >conftest.err
18590 rm -f conftest.er1
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } >/dev/null && {
18594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18595 test ! -s conftest.err
18596 }; then
18597 ac_header_preproc=yes
18598 else
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18602 ac_header_preproc=no
18605 rm -f conftest.err conftest.$ac_ext
18606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18607 echo "${ECHO_T}$ac_header_preproc" >&6; }
18609 # So? What about this header?
18610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18611 yes:no: )
18612 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18613 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18614 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18615 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18616 ac_header_preproc=yes
18618 no:yes:* )
18619 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18620 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18622 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18624 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18626 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18628 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18630 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18631 ( cat <<\_ASBOX
18632 ## ---------------------------------------- ##
18633 ## Report this to pgsql-bugs@postgresql.org ##
18634 ## ---------------------------------------- ##
18635 _ASBOX
18636 ) | sed "s/^/$as_me: WARNING: /" >&2
18638 esac
18639 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18640 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18641 if test "${ac_cv_header_syslog_h+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 ac_cv_header_syslog_h=$ac_header_preproc
18646 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18647 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18650 if test $ac_cv_header_syslog_h = yes; then
18652 cat >>confdefs.h <<\_ACEOF
18653 #define HAVE_SYSLOG 1
18654 _ACEOF
18662 { echo "$as_me:$LINENO: checking for optreset" >&5
18663 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18664 if test "${pgac_cv_var_int_optreset+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <unistd.h>
18675 main ()
18677 extern int optreset; optreset = 1;
18679 return 0;
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest$ac_exeext &&
18699 $as_test_x conftest$ac_exeext; then
18700 pgac_cv_var_int_optreset=yes
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 pgac_cv_var_int_optreset=no
18708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18709 conftest$ac_exeext conftest.$ac_ext
18711 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18712 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18713 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18715 cat >>confdefs.h <<\_ACEOF
18716 #define HAVE_INT_OPTRESET 1
18717 _ACEOF
18723 for ac_func in strtoll strtoq
18725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h. */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18739 #define $ac_func innocuous_$ac_func
18741 /* System header to define __stub macros and hopefully few prototypes,
18742 which can conflict with char $ac_func (); below.
18743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744 <limits.h> exists even on freestanding compilers. */
18746 #ifdef __STDC__
18747 # include <limits.h>
18748 #else
18749 # include <assert.h>
18750 #endif
18752 #undef $ac_func
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 char $ac_func ();
18761 /* The GNU C library defines this for functions which it implements
18762 to always fail with ENOSYS. Some functions are actually named
18763 something starting with __ and the normal name is an alias. */
18764 #if defined __stub_$ac_func || defined __stub___$ac_func
18765 choke me
18766 #endif
18769 main ()
18771 return $ac_func ();
18773 return 0;
18775 _ACEOF
18776 rm -f conftest.$ac_objext conftest$ac_exeext
18777 if { (ac_try="$ac_link"
18778 case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_link") 2>conftest.er1
18784 ac_status=$?
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } && {
18790 test -z "$ac_c_werror_flag" ||
18791 test ! -s conftest.err
18792 } && test -s conftest$ac_exeext &&
18793 $as_test_x conftest$ac_exeext; then
18794 eval "$as_ac_var=yes"
18795 else
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18799 eval "$as_ac_var=no"
18802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18803 conftest$ac_exeext conftest.$ac_ext
18805 ac_res=`eval echo '${'$as_ac_var'}'`
18806 { echo "$as_me:$LINENO: result: $ac_res" >&5
18807 echo "${ECHO_T}$ac_res" >&6; }
18808 if test `eval echo '${'$as_ac_var'}'` = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18811 _ACEOF
18812 break
18814 done
18818 for ac_func in strtoull strtouq
18820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18834 #define $ac_func innocuous_$ac_func
18836 /* System header to define __stub macros and hopefully few prototypes,
18837 which can conflict with char $ac_func (); below.
18838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839 <limits.h> exists even on freestanding compilers. */
18841 #ifdef __STDC__
18842 # include <limits.h>
18843 #else
18844 # include <assert.h>
18845 #endif
18847 #undef $ac_func
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char $ac_func ();
18856 /* The GNU C library defines this for functions which it implements
18857 to always fail with ENOSYS. Some functions are actually named
18858 something starting with __ and the normal name is an alias. */
18859 #if defined __stub_$ac_func || defined __stub___$ac_func
18860 choke me
18861 #endif
18864 main ()
18866 return $ac_func ();
18868 return 0;
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } && {
18885 test -z "$ac_c_werror_flag" ||
18886 test ! -s conftest.err
18887 } && test -s conftest$ac_exeext &&
18888 $as_test_x conftest$ac_exeext; then
18889 eval "$as_ac_var=yes"
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 eval "$as_ac_var=no"
18897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18898 conftest$ac_exeext conftest.$ac_ext
18900 ac_res=`eval echo '${'$as_ac_var'}'`
18901 { echo "$as_me:$LINENO: result: $ac_res" >&5
18902 echo "${ECHO_T}$ac_res" >&6; }
18903 if test `eval echo '${'$as_ac_var'}'` = yes; then
18904 cat >>confdefs.h <<_ACEOF
18905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18906 _ACEOF
18907 break
18909 done
18912 # Check for one of atexit() or on_exit()
18914 for ac_func in atexit
18916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18930 #define $ac_func innocuous_$ac_func
18932 /* System header to define __stub macros and hopefully few prototypes,
18933 which can conflict with char $ac_func (); below.
18934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18935 <limits.h> exists even on freestanding compilers. */
18937 #ifdef __STDC__
18938 # include <limits.h>
18939 #else
18940 # include <assert.h>
18941 #endif
18943 #undef $ac_func
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char $ac_func ();
18952 /* The GNU C library defines this for functions which it implements
18953 to always fail with ENOSYS. Some functions are actually named
18954 something starting with __ and the normal name is an alias. */
18955 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 choke me
18957 #endif
18960 main ()
18962 return $ac_func ();
18964 return 0;
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_link") 2>conftest.er1
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } && {
18981 test -z "$ac_c_werror_flag" ||
18982 test ! -s conftest.err
18983 } && test -s conftest$ac_exeext &&
18984 $as_test_x conftest$ac_exeext; then
18985 eval "$as_ac_var=yes"
18986 else
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18990 eval "$as_ac_var=no"
18993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18994 conftest$ac_exeext conftest.$ac_ext
18996 ac_res=`eval echo '${'$as_ac_var'}'`
18997 { echo "$as_me:$LINENO: result: $ac_res" >&5
18998 echo "${ECHO_T}$ac_res" >&6; }
18999 if test `eval echo '${'$as_ac_var'}'` = yes; then
19000 cat >>confdefs.h <<_ACEOF
19001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19002 _ACEOF
19004 else
19006 for ac_func in on_exit
19008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19022 #define $ac_func innocuous_$ac_func
19024 /* System header to define __stub macros and hopefully few prototypes,
19025 which can conflict with char $ac_func (); below.
19026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19027 <limits.h> exists even on freestanding compilers. */
19029 #ifdef __STDC__
19030 # include <limits.h>
19031 #else
19032 # include <assert.h>
19033 #endif
19035 #undef $ac_func
19037 /* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19040 #ifdef __cplusplus
19041 extern "C"
19042 #endif
19043 char $ac_func ();
19044 /* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047 #if defined __stub_$ac_func || defined __stub___$ac_func
19048 choke me
19049 #endif
19052 main ()
19054 return $ac_func ();
19056 return 0;
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (ac_try="$ac_link"
19061 case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19064 esac
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_link") 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } && {
19073 test -z "$ac_c_werror_flag" ||
19074 test ! -s conftest.err
19075 } && test -s conftest$ac_exeext &&
19076 $as_test_x conftest$ac_exeext; then
19077 eval "$as_ac_var=yes"
19078 else
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19082 eval "$as_ac_var=no"
19085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19086 conftest$ac_exeext conftest.$ac_ext
19088 ac_res=`eval echo '${'$as_ac_var'}'`
19089 { echo "$as_me:$LINENO: result: $ac_res" >&5
19090 echo "${ECHO_T}$ac_res" >&6; }
19091 if test `eval echo '${'$as_ac_var'}'` = yes; then
19092 cat >>confdefs.h <<_ACEOF
19093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19094 _ACEOF
19096 else
19097 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
19098 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
19099 { (exit 1); exit 1; }; }
19101 done
19104 done
19108 for ac_func in fseeko
19110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h. */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19124 #define $ac_func innocuous_$ac_func
19126 /* System header to define __stub macros and hopefully few prototypes,
19127 which can conflict with char $ac_func (); below.
19128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19129 <limits.h> exists even on freestanding compilers. */
19131 #ifdef __STDC__
19132 # include <limits.h>
19133 #else
19134 # include <assert.h>
19135 #endif
19137 #undef $ac_func
19139 /* Override any GCC internal prototype to avoid an error.
19140 Use char because int might match the return type of a GCC
19141 builtin and then its argument prototype would still apply. */
19142 #ifdef __cplusplus
19143 extern "C"
19144 #endif
19145 char $ac_func ();
19146 /* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
19149 #if defined __stub_$ac_func || defined __stub___$ac_func
19150 choke me
19151 #endif
19154 main ()
19156 return $ac_func ();
19158 return 0;
19160 _ACEOF
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (ac_try="$ac_link"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_link") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest$ac_exeext &&
19178 $as_test_x conftest$ac_exeext; then
19179 eval "$as_ac_var=yes"
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 eval "$as_ac_var=no"
19187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19188 conftest$ac_exeext conftest.$ac_ext
19190 ac_res=`eval echo '${'$as_ac_var'}'`
19191 { echo "$as_me:$LINENO: result: $ac_res" >&5
19192 echo "${ECHO_T}$ac_res" >&6; }
19193 if test `eval echo '${'$as_ac_var'}'` = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19196 _ACEOF
19198 else
19199 case " $LIBOBJS " in
19200 *" $ac_func.$ac_objext "* ) ;;
19201 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19203 esac
19206 done
19209 case $host_os in
19210 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19211 # Mingw uses macros to access Win32 API calls
19212 bsdi*|netbsd*|mingw*)
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_FSEEKO 1
19216 _ACEOF
19218 ac_cv_func_fseeko=yes;;
19220 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19221 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19222 if test "${ac_cv_sys_largefile_source+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225 while :; do
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <sys/types.h> /* for off_t */
19233 #include <stdio.h>
19235 main ()
19237 int (*fp) (FILE *, off_t, int) = fseeko;
19238 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19240 return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_link") 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest$ac_exeext &&
19260 $as_test_x conftest$ac_exeext; then
19261 ac_cv_sys_largefile_source=no; break
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19270 conftest$ac_exeext conftest.$ac_ext
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 #define _LARGEFILE_SOURCE 1
19278 #include <sys/types.h> /* for off_t */
19279 #include <stdio.h>
19281 main ()
19283 int (*fp) (FILE *, off_t, int) = fseeko;
19284 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19286 return 0;
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_sys_largefile_source=1; break
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 ac_cv_sys_largefile_source=unknown
19318 break
19319 done
19321 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19322 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19323 case $ac_cv_sys_largefile_source in #(
19324 no | unknown) ;;
19326 cat >>confdefs.h <<_ACEOF
19327 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19328 _ACEOF
19330 esac
19331 rm -f conftest*
19333 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19334 # in glibc 2.1.3, but that breaks too many other things.
19335 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19336 if test $ac_cv_sys_largefile_source != unknown; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_FSEEKO 1
19340 _ACEOF
19344 esac
19348 # Pthreads
19350 # For each platform, we need to know about any special compile and link
19351 # libraries, and whether the normal C function names are thread-safe.
19352 # See the comment at the top of src/port/thread.c for more information.
19353 # WIN32 doesn't need the pthread tests; it always uses threads
19354 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19358 ac_ext=c
19359 ac_cpp='$CPP $CPPFLAGS'
19360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19364 acx_pthread_ok=no
19366 # We used to check for pthread.h first, but this fails if pthread.h
19367 # requires special compiler flags (e.g. on True64 or Sequent).
19368 # It gets checked for in the link test anyway.
19370 # First of all, check if the user has set any of the PTHREAD_LIBS,
19371 # etcetera environment variables, and if threads linking works using
19372 # them:
19373 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19374 save_CFLAGS="$CFLAGS"
19375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19376 save_LIBS="$LIBS"
19377 LIBS="$PTHREAD_LIBS $LIBS"
19378 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19379 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h. */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 /* Override any GCC internal prototype to avoid an error.
19388 Use char because int might match the return type of a GCC
19389 builtin and then its argument prototype would still apply. */
19390 #ifdef __cplusplus
19391 extern "C"
19392 #endif
19393 char pthread_join ();
19395 main ()
19397 return pthread_join ();
19399 return 0;
19401 _ACEOF
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407 esac
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_link") 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } && {
19416 test -z "$ac_c_werror_flag" ||
19417 test ! -s conftest.err
19418 } && test -s conftest$ac_exeext &&
19419 $as_test_x conftest$ac_exeext; then
19420 acx_pthread_ok=yes
19421 else
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19429 conftest$ac_exeext conftest.$ac_ext
19430 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19431 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19432 if test x"$acx_pthread_ok" = xno; then
19433 PTHREAD_LIBS=""
19434 PTHREAD_CFLAGS=""
19436 LIBS="$save_LIBS"
19437 CFLAGS="$save_CFLAGS"
19440 # We must check for the threads library under a number of different
19441 # names; the ordering is very important because some systems
19442 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19443 # libraries is broken (non-POSIX).
19445 # Create a list of thread flags to try. Items starting with a "-" are
19446 # C compiler flags, and other items are library names, except for "none"
19447 # which indicates that we try without any flags at all, and "pthread-config"
19448 # which is a program returning the flags for the Pth emulation library.
19450 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19452 # The ordering *is* (sometimes) important. Some notes on the
19453 # individual items follow:
19455 # pthreads: AIX (must check this before -lpthread)
19456 # none: in case threads are in libc; should be tried before -Kthread and
19457 # other compiler flags to prevent continual compiler warnings
19458 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19459 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19460 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19461 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19462 # -pthreads: Solaris/gcc
19463 # -mthreads: Mingw32/gcc, Lynx/gcc
19464 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19465 # doesn't hurt to check since this sometimes defines pthreads too;
19466 # also defines -D_REENTRANT)
19467 # pthread: Linux, etcetera
19468 # --thread-safe: KAI C++
19469 # pthread-config: use pthread-config program (for GNU Pth library)
19471 case "${host_cpu}-${host_os}" in
19472 *solaris*)
19474 # On Solaris (at least, for some versions), libc contains stubbed
19475 # (non-functional) versions of the pthreads routines, so link-based
19476 # tests will erroneously succeed. (We need to link with -pthread or
19477 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19478 # a function called by this macro, so we could check for that, but
19479 # who knows whether they'll stub that too in a future libc.) So,
19480 # we'll just look for -pthreads and -lpthread first:
19482 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19484 esac
19486 if test x"$acx_pthread_ok" = xno; then
19487 for flag in $acx_pthread_flags; do
19489 tryPTHREAD_CFLAGS=""
19490 tryPTHREAD_LIBS=""
19491 case $flag in
19492 none)
19493 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19494 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19498 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19499 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19500 tryPTHREAD_CFLAGS="$flag"
19503 pthread-config)
19504 # skip this if we already have flags defined, for PostgreSQL
19505 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19506 # Extract the first word of "pthread-config", so it can be a program name with args.
19507 set dummy pthread-config; ac_word=$2
19508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19510 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513 if test -n "$acx_pthread_config"; then
19514 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19515 else
19516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19517 for as_dir in $PATH
19519 IFS=$as_save_IFS
19520 test -z "$as_dir" && as_dir=.
19521 for ac_exec_ext in '' $ac_executable_extensions; do
19522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19523 ac_cv_prog_acx_pthread_config="yes"
19524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19525 break 2
19527 done
19528 done
19529 IFS=$as_save_IFS
19531 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19534 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19535 if test -n "$acx_pthread_config"; then
19536 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19537 echo "${ECHO_T}$acx_pthread_config" >&6; }
19538 else
19539 { echo "$as_me:$LINENO: result: no" >&5
19540 echo "${ECHO_T}no" >&6; }
19544 if test x"$acx_pthread_config" = xno; then continue; fi
19545 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19546 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19550 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19551 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19552 tryPTHREAD_LIBS="-l$flag"
19554 esac
19556 save_LIBS="$LIBS"
19557 save_CFLAGS="$CFLAGS"
19558 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19559 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19561 # Check for various functions. We must include pthread.h,
19562 # since some functions may be macros. (On the Sequent, we
19563 # need a special flag -Kthread to make this header compile.)
19564 # We check for pthread_join because it is in -lpthread on IRIX
19565 # while pthread_create is in libc. We check for pthread_attr_init
19566 # due to DEC craziness with -lpthreads. We check for
19567 # pthread_cleanup_push because it is one of the few pthread
19568 # functions on Solaris that doesn't have a non-functional libc stub.
19569 # We try pthread_create on general principles.
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h. */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 #include <pthread.h>
19578 main ()
19580 pthread_t th; pthread_join(th, 0);
19581 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19582 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19584 return 0;
19586 _ACEOF
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (ac_try="$ac_link"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_link") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest$ac_exeext &&
19604 $as_test_x conftest$ac_exeext; then
19605 acx_pthread_ok=yes
19606 else
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 acx_pthread_ok=no
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614 conftest$ac_exeext conftest.$ac_ext
19616 if test "x$acx_pthread_ok" = xyes; then
19617 # Don't use options that are ignored by the compiler.
19618 # We find them by checking stderror.
19619 cat >conftest.$ac_ext <<_ACEOF
19621 main (int argc, char **argv)
19623 (void) argc;
19624 (void) argv;
19625 return 0;
19627 _ACEOF
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19630 # we continue with more flags because Linux needs -lpthread
19631 # for libpq builds on PostgreSQL. The test above only
19632 # tests for building binaries, not shared libraries.
19633 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19634 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19635 else acx_pthread_ok=no
19639 LIBS="$save_LIBS"
19640 CFLAGS="$save_CFLAGS"
19642 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19643 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19644 done
19647 # Various other checks:
19648 if test "x$acx_pthread_ok" = xyes; then
19649 save_LIBS="$LIBS"
19650 LIBS="$PTHREAD_LIBS $LIBS"
19651 save_CFLAGS="$CFLAGS"
19652 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19654 # Detect AIX lossage: threads are created detached by default
19655 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19656 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19657 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 #include <pthread.h>
19666 main ()
19668 int attr=PTHREAD_CREATE_JOINABLE;
19670 return 0;
19672 _ACEOF
19673 rm -f conftest.$ac_objext conftest$ac_exeext
19674 if { (ac_try="$ac_link"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_link") 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } && {
19687 test -z "$ac_c_werror_flag" ||
19688 test ! -s conftest.err
19689 } && test -s conftest$ac_exeext &&
19690 $as_test_x conftest$ac_exeext; then
19691 ok=PTHREAD_CREATE_JOINABLE
19692 else
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ok=unknown
19699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19700 conftest$ac_exeext conftest.$ac_ext
19701 if test x"$ok" = xunknown; then
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 #include <pthread.h>
19710 main ()
19712 int attr=PTHREAD_CREATE_UNDETACHED;
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ok=PTHREAD_CREATE_UNDETACHED
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ok=unknown
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19746 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19748 cat >>confdefs.h <<\_ACEOF
19749 #define PTHREAD_CREATE_JOINABLE $ok
19750 _ACEOF
19753 { echo "$as_me:$LINENO: result: ${ok}" >&5
19754 echo "${ECHO_T}${ok}" >&6; }
19755 if test x"$ok" = xunknown; then
19756 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19757 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19760 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19761 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19762 flag=no
19763 # We always add these in PostgreSQL
19764 # case "${host_cpu}-${host_os}" in
19765 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19766 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19767 # esac
19768 { echo "$as_me:$LINENO: result: ${flag}" >&5
19769 echo "${ECHO_T}${flag}" >&6; }
19770 if test "x$flag" != xno; then
19771 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19774 LIBS="$save_LIBS"
19775 CFLAGS="$save_CFLAGS"
19777 # Supporting cc_r would require a special CC in all places that
19778 # use libpq, and that is ugly, so we don't do it. Users can still
19779 # define their compiler as cc_r to do thread builds of everything.
19780 # More AIX lossage: must compile with cc_r
19781 # Extract the first word of "cc_r", so it can be a program name with args.
19782 set dummy cc_r; ac_word=$2
19783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19785 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788 if test -n "$PTHREAD_CC"; then
19789 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19790 else
19791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19792 for as_dir in $PATH
19794 IFS=$as_save_IFS
19795 test -z "$as_dir" && as_dir=.
19796 for ac_exec_ext in '' $ac_executable_extensions; do
19797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19798 ac_cv_prog_PTHREAD_CC="cc_r"
19799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19800 break 2
19802 done
19803 done
19804 IFS=$as_save_IFS
19806 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19809 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19810 if test -n "$PTHREAD_CC"; then
19811 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19812 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19813 else
19814 { echo "$as_me:$LINENO: result: no" >&5
19815 echo "${ECHO_T}no" >&6; }
19819 else
19820 PTHREAD_CC="$CC"
19827 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19828 if test x"$acx_pthread_ok" = xyes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_PTHREAD 1
19832 _ACEOF
19835 else
19836 acx_pthread_ok=no
19839 ac_ext=c
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19845 # set thread flags
19847 # Some platforms use these, so just define them. They can't hurt if they
19848 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19849 # enables 5-arg getpwuid_r, among other things.
19850 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19853 # At this point, we don't want to muck with the compiler name for threading.
19854 # Let's see who fails, perhaps AIX. 2004-04-23
19855 if test "$PTHREAD_CC" != "$CC"; then
19856 { { echo "$as_me:$LINENO: error:
19857 PostgreSQL does not support platforms that require a special compiler
19858 for thread safety." >&5
19859 echo "$as_me: error:
19860 PostgreSQL does not support platforms that require a special compiler
19861 for thread safety." >&2;}
19862 { (exit 1); exit 1; }; }
19865 if test "$THREAD_SUPPORT" = no; then
19866 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19867 This platform is known to not support thread-safe programs. For details,
19868 compile and run src/bin/pg_thread_test." >&5
19869 echo "$as_me: error: cannot enable threads on this platform
19870 This platform is known to not support thread-safe programs. For details,
19871 compile and run src/bin/pg_thread_test." >&2;}
19872 { (exit 1); exit 1; }; }
19875 # Check for *_r functions
19876 _CFLAGS="$CFLAGS"
19877 _LIBS="$LIBS"
19878 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19879 LIBS="$LIBS $PTHREAD_LIBS"
19881 if test "$PORTNAME" != "win32"; then
19882 if test "${ac_cv_header_pthread_h+set}" = set; then
19883 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19884 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19885 if test "${ac_cv_header_pthread_h+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19889 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19890 else
19891 # Is the header compilable?
19892 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19893 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h. */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 $ac_includes_default
19901 #include <pthread.h>
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (ac_try="$ac_compile"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_compile") 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest.$ac_objext; then
19920 ac_header_compiler=yes
19921 else
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_header_compiler=no
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19930 echo "${ECHO_T}$ac_header_compiler" >&6; }
19932 # Is the header present?
19933 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19934 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h. */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 #include <pthread.h>
19942 _ACEOF
19943 if { (ac_try="$ac_cpp conftest.$ac_ext"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19950 ac_status=$?
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } >/dev/null && {
19956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 }; then
19959 ac_header_preproc=yes
19960 else
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_header_preproc=no
19967 rm -f conftest.err conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969 echo "${ECHO_T}$ac_header_preproc" >&6; }
19971 # So? What about this header?
19972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19973 yes:no: )
19974 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19975 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19977 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19978 ac_header_preproc=yes
19980 no:yes:* )
19981 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19982 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19984 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19986 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19988 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19990 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19992 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19993 ( cat <<\_ASBOX
19994 ## ---------------------------------------- ##
19995 ## Report this to pgsql-bugs@postgresql.org ##
19996 ## ---------------------------------------- ##
19997 _ASBOX
19998 ) | sed "s/^/$as_me: WARNING: /" >&2
20000 esac
20001 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20002 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20003 if test "${ac_cv_header_pthread_h+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006 ac_cv_header_pthread_h=$ac_header_preproc
20008 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20012 if test $ac_cv_header_pthread_h = yes; then
20014 else
20015 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
20016 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
20017 { (exit 1); exit 1; }; }
20026 for ac_func in strerror_r getpwuid_r gethostbyname_r
20028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20042 #define $ac_func innocuous_$ac_func
20044 /* System header to define __stub macros and hopefully few prototypes,
20045 which can conflict with char $ac_func (); below.
20046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20047 <limits.h> exists even on freestanding compilers. */
20049 #ifdef __STDC__
20050 # include <limits.h>
20051 #else
20052 # include <assert.h>
20053 #endif
20055 #undef $ac_func
20057 /* Override any GCC internal prototype to avoid an error.
20058 Use char because int might match the return type of a GCC
20059 builtin and then its argument prototype would still apply. */
20060 #ifdef __cplusplus
20061 extern "C"
20062 #endif
20063 char $ac_func ();
20064 /* The GNU C library defines this for functions which it implements
20065 to always fail with ENOSYS. Some functions are actually named
20066 something starting with __ and the normal name is an alias. */
20067 #if defined __stub_$ac_func || defined __stub___$ac_func
20068 choke me
20069 #endif
20072 main ()
20074 return $ac_func ();
20076 return 0;
20078 _ACEOF
20079 rm -f conftest.$ac_objext conftest$ac_exeext
20080 if { (ac_try="$ac_link"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext &&
20096 $as_test_x conftest$ac_exeext; then
20097 eval "$as_ac_var=yes"
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 eval "$as_ac_var=no"
20105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20106 conftest$ac_exeext conftest.$ac_ext
20108 ac_res=`eval echo '${'$as_ac_var'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20111 if test `eval echo '${'$as_ac_var'}'` = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20114 _ACEOF
20117 done
20120 # Do test here with the proper thread flags
20121 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20122 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20123 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126 cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h. */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 #include <sys/types.h>
20133 #include <pwd.h>
20135 main ()
20137 uid_t uid;
20138 struct passwd *space;
20139 char *buf;
20140 size_t bufsize;
20141 struct passwd **result;
20142 getpwuid_r(uid, space, buf, bufsize, result);
20144 return 0;
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (ac_try="$ac_compile"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_compile") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest.$ac_objext; then
20164 pgac_cv_func_getpwuid_r_5arg=yes
20165 else
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 pgac_cv_func_getpwuid_r_5arg=no
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20174 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20175 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20176 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20178 cat >>confdefs.h <<\_ACEOF
20179 #define GETPWUID_R_5ARG
20180 _ACEOF
20184 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20185 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20186 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 #include <string.h>
20197 main ()
20199 #ifndef _AIX
20200 int strerror_r(int, char *, size_t);
20201 #else
20202 /* Older AIX has 'int' for the third argument so we don't test the args. */
20203 int strerror_r();
20204 #endif
20206 return 0;
20208 _ACEOF
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_compile") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest.$ac_objext; then
20226 pgac_cv_func_strerror_r_int=yes
20227 else
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 pgac_cv_func_strerror_r_int=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20237 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20238 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20240 cat >>confdefs.h <<\_ACEOF
20241 #define STRERROR_R_INT
20242 _ACEOF
20247 CFLAGS="$_CFLAGS"
20248 LIBS="$_LIBS"
20250 else
20251 # do not use values from template file
20252 PTHREAD_CFLAGS=
20253 PTHREAD_LIBS=
20260 # We can test for libldap_r only after we know PTHREAD_LIBS
20261 if test "$with_ldap" = yes ; then
20262 _LIBS="$LIBS"
20263 if test "$PORTNAME" != "win32"; then
20265 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20266 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20267 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270 ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h. */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any GCC internal prototype to avoid an error.
20280 Use char because int might match the return type of a GCC
20281 builtin and then its argument prototype would still apply. */
20282 #ifdef __cplusplus
20283 extern "C"
20284 #endif
20285 char ldap_bind ();
20287 main ()
20289 return ldap_bind ();
20291 return 0;
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (ac_try="$ac_link"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_link") 2>conftest.er1
20302 ac_status=$?
20303 grep -v '^ *+' conftest.er1 >conftest.err
20304 rm -f conftest.er1
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest$ac_exeext &&
20311 $as_test_x conftest$ac_exeext; then
20312 ac_cv_lib_ldap_ldap_bind=yes
20313 else
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_lib_ldap_ldap_bind=no
20320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20324 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20325 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20326 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_LIBLDAP 1
20329 _ACEOF
20331 LIBS="-lldap $LIBS"
20333 else
20334 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20335 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20336 { (exit 1); exit 1; }; }
20339 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20340 if test "$enable_thread_safety" = yes; then
20341 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20343 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20344 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20345 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348 ac_check_lib_save_LIBS=$LIBS
20349 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h. */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20360 #ifdef __cplusplus
20361 extern "C"
20362 #endif
20363 char ldap_simple_bind ();
20365 main ()
20367 return ldap_simple_bind ();
20369 return 0;
20371 _ACEOF
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373 if { (ac_try="$ac_link"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest$ac_exeext &&
20389 $as_test_x conftest$ac_exeext; then
20390 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20391 else
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_cv_lib_ldap_r_ldap_simple_bind=no
20398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20399 conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20402 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20403 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20404 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20405 cat >>confdefs.h <<_ACEOF
20406 #define HAVE_LIBLDAP_R 1
20407 _ACEOF
20409 LIBS="-lldap_r $LIBS"
20411 else
20412 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20413 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20414 { (exit 1); exit 1; }; }
20417 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20418 else
20419 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20421 else
20423 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20424 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20425 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 ac_check_lib_save_LIBS=$LIBS
20429 LIBS="-lwldap32 $LIBS"
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 char ldap_bind ();
20445 main ()
20447 return ldap_bind ();
20449 return 0;
20451 _ACEOF
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_link") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest$ac_exeext &&
20469 $as_test_x conftest$ac_exeext; then
20470 ac_cv_lib_wldap32_ldap_bind=yes
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_cv_lib_wldap32_ldap_bind=no
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20482 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20483 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20484 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20485 cat >>confdefs.h <<_ACEOF
20486 #define HAVE_LIBWLDAP32 1
20487 _ACEOF
20489 LIBS="-lwldap32 $LIBS"
20491 else
20492 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20493 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20494 { (exit 1); exit 1; }; }
20497 LDAP_LIBS_FE="-lwldap32"
20498 LDAP_LIBS_BE="-lwldap32"
20500 LIBS="$_LIBS"
20506 # This test makes sure that run tests work at all. Sometimes a shared
20507 # library is found by the linker, but the runtime linker can't find it.
20508 # This check should come after all modifications of compiler or linker
20509 # variables, and before any other run tests.
20510 { echo "$as_me:$LINENO: checking test program" >&5
20511 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20512 if test "$cross_compiling" = yes; then
20513 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20514 echo "${ECHO_T}cross-compiling" >&6; }
20515 else
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 int main() { return 0; }
20523 _ACEOF
20524 rm -f conftest$ac_exeext
20525 if { (ac_try="$ac_link"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_link") 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 { echo "$as_me:$LINENO: result: ok" >&5
20545 echo "${ECHO_T}ok" >&6; }
20546 else
20547 echo "$as_me: program exited with status $ac_status" >&5
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ( exit $ac_status )
20552 { echo "$as_me:$LINENO: result: failed" >&5
20553 echo "${ECHO_T}failed" >&6; }
20554 { { echo "$as_me:$LINENO: error:
20555 Could not execute a simple test program. This may be a problem
20556 related to locating shared libraries. Check the file 'config.log'
20557 for the exact reason." >&5
20558 echo "$as_me: error:
20559 Could not execute a simple test program. This may be a problem
20560 related to locating shared libraries. Check the file 'config.log'
20561 for the exact reason." >&2;}
20562 { (exit 1); exit 1; }; }
20564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20569 # --------------------
20570 # Run tests below here
20571 # --------------------
20573 # Force use of our snprintf if system's doesn't do arg control
20574 # See comment above at snprintf test for details.
20575 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20576 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20577 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20578 if test "${pgac_cv_printf_arg_control+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581 if test "$cross_compiling" = yes; then
20582 pgac_cv_printf_arg_control=cross
20583 else
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 #include <stdio.h>
20591 #include <string.h>
20593 int main()
20595 char buf[100];
20597 /* can it swap arguments? */
20598 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20599 if (strcmp(buf, "4 3") != 0)
20600 return 1;
20601 return 0;
20603 _ACEOF
20604 rm -f conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_link") 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20615 { (case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_try") 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 pgac_cv_printf_arg_control=yes
20625 else
20626 echo "$as_me: program exited with status $ac_status" >&5
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ( exit $ac_status )
20631 pgac_cv_printf_arg_control=no
20633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20639 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20640 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20642 if test $pgac_cv_printf_arg_control != yes ; then
20643 pgac_need_repl_snprintf=yes
20649 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20650 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20651 if test "${pgac_cv_type_long_int_64+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 if test "$cross_compiling" = yes; then
20655 # If cross-compiling, check the size reported by the compiler and
20656 # trust that the arithmetic works.
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h. */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20665 main ()
20667 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20668 test_array [0] = 0
20671 return 0;
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 pgac_cv_type_long_int_64=yes
20692 else
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 pgac_cv_type_long_int_64=no
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700 else
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h. */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 typedef long int ac_int64;
20710 * These are globals to discourage the compiler from folding all the
20711 * arithmetic tests down to compile-time constants.
20713 ac_int64 a = 20000001;
20714 ac_int64 b = 40000005;
20716 int does_int64_work()
20718 ac_int64 c,d;
20720 if (sizeof(ac_int64) != 8)
20721 return 0; /* definitely not the right size */
20723 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20724 c = a * b;
20725 d = (c + b) / b;
20726 if (d != a+1)
20727 return 0;
20728 return 1;
20730 main() {
20731 exit(! does_int64_work());
20733 _ACEOF
20734 rm -f conftest$ac_exeext
20735 if { (ac_try="$ac_link"
20736 case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_link") 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 pgac_cv_type_long_int_64=yes
20755 else
20756 echo "$as_me: program exited with status $ac_status" >&5
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ( exit $ac_status )
20761 pgac_cv_type_long_int_64=no
20763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20768 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20769 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20771 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20772 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20774 cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_LONG_INT_64 1
20776 _ACEOF
20781 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20782 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20783 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20784 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787 if test "$cross_compiling" = yes; then
20788 # If cross-compiling, check the size reported by the compiler and
20789 # trust that the arithmetic works.
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h. */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20798 main ()
20800 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20801 test_array [0] = 0
20804 return 0;
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest.$ac_objext; then
20824 pgac_cv_type_long_long_int_64=yes
20825 else
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 pgac_cv_type_long_long_int_64=no
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 else
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h. */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 typedef long long int ac_int64;
20843 * These are globals to discourage the compiler from folding all the
20844 * arithmetic tests down to compile-time constants.
20846 ac_int64 a = 20000001;
20847 ac_int64 b = 40000005;
20849 int does_int64_work()
20851 ac_int64 c,d;
20853 if (sizeof(ac_int64) != 8)
20854 return 0; /* definitely not the right size */
20856 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20857 c = a * b;
20858 d = (c + b) / b;
20859 if (d != a+1)
20860 return 0;
20861 return 1;
20863 main() {
20864 exit(! does_int64_work());
20866 _ACEOF
20867 rm -f conftest$ac_exeext
20868 if { (ac_try="$ac_link"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_link") 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20878 { (case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_try") 2>&5
20884 ac_status=$?
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; }; then
20887 pgac_cv_type_long_long_int_64=yes
20888 else
20889 echo "$as_me: program exited with status $ac_status" >&5
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ( exit $ac_status )
20894 pgac_cv_type_long_long_int_64=no
20896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20902 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20904 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20905 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20907 cat >>confdefs.h <<\_ACEOF
20908 #define HAVE_LONG_LONG_INT_64 1
20909 _ACEOF
20917 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20918 cat >conftest.$ac_ext <<_ACEOF
20919 /* confdefs.h. */
20920 _ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20925 #define INT64CONST(x) x##LL
20926 long long int foo = INT64CONST(0x1234567890123456);
20929 main ()
20933 return 0;
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_compile") 2>conftest.er1
20944 ac_status=$?
20945 grep -v '^ *+' conftest.er1 >conftest.err
20946 rm -f conftest.er1
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } && {
20950 test -z "$ac_c_werror_flag" ||
20951 test ! -s conftest.err
20952 } && test -s conftest.$ac_objext; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_LL_CONSTANTS 1
20956 _ACEOF
20958 else
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969 # If we found "long int" is 64 bits, assume snprintf handles it. If
20970 # we found we need to use "long long int", better check. We cope with
20971 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20972 # work, fall back to our own snprintf emulation (which we know uses %lld).
20974 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20975 if test $pgac_need_repl_snprintf = no; then
20976 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20977 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20978 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981 for pgac_format in '%lld' '%qd' '%I64d'; do
20982 if test "$cross_compiling" = yes; then
20983 pgac_cv_snprintf_long_long_int_format=cross; break
20984 else
20985 cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h. */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <stdio.h>
20992 typedef long long int ac_int64;
20993 #define INT64_FORMAT "$pgac_format"
20995 ac_int64 a = 20000001;
20996 ac_int64 b = 40000005;
20998 int does_int64_snprintf_work()
21000 ac_int64 c;
21001 char buf[100];
21003 if (sizeof(ac_int64) != 8)
21004 return 0; /* doesn't look like the right size */
21006 c = a * b;
21007 snprintf(buf, 100, INT64_FORMAT, c);
21008 if (strcmp(buf, "800000140000005") != 0)
21009 return 0; /* either multiply or snprintf is busted */
21010 return 1;
21012 main() {
21013 exit(! does_int64_snprintf_work());
21015 _ACEOF
21016 rm -f conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_link") 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21027 { (case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21030 esac
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032 (eval "$ac_try") 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
21037 else
21038 echo "$as_me: program exited with status $ac_status" >&5
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21047 done
21050 LONG_LONG_INT_FORMAT=''
21052 case $pgac_cv_snprintf_long_long_int_format in
21053 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
21054 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
21055 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
21056 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
21057 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
21058 *) { echo "$as_me:$LINENO: result: none" >&5
21059 echo "${ECHO_T}none" >&6; };;
21060 esac
21061 if test "$LONG_LONG_INT_FORMAT" = ""; then
21062 # Force usage of our own snprintf, since system snprintf is broken
21063 pgac_need_repl_snprintf=yes
21064 LONG_LONG_INT_FORMAT='%lld'
21066 else
21067 # Here if we previously decided we needed to use our own snprintf
21068 LONG_LONG_INT_FORMAT='%lld'
21070 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
21071 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
21072 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
21073 else
21074 # Here if we are not using 'long long int' at all
21075 INT64_FORMAT='"%ld"'
21076 UINT64_FORMAT='"%lu"'
21080 cat >>confdefs.h <<_ACEOF
21081 #define INT64_FORMAT $INT64_FORMAT
21082 _ACEOF
21086 cat >>confdefs.h <<_ACEOF
21087 #define UINT64_FORMAT $UINT64_FORMAT
21088 _ACEOF
21091 # Now we have checked all the reasons to replace snprintf
21092 if test $pgac_need_repl_snprintf = yes; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define USE_REPL_SNPRINTF 1
21096 _ACEOF
21098 case " $LIBOBJS " in
21099 *" snprintf.$ac_objext "* ) ;;
21100 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21102 esac
21106 # Need a #define for the size of Datum (unsigned long)
21107 { echo "$as_me:$LINENO: checking for unsigned long" >&5
21108 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
21109 if test "${ac_cv_type_unsigned_long+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 $ac_includes_default
21119 typedef unsigned long ac__type_new_;
21121 main ()
21123 if ((ac__type_new_ *) 0)
21124 return 0;
21125 if (sizeof (ac__type_new_))
21126 return 0;
21128 return 0;
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (ac_try="$ac_compile"
21133 case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_compile") 2>conftest.er1
21139 ac_status=$?
21140 grep -v '^ *+' conftest.er1 >conftest.err
21141 rm -f conftest.er1
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && {
21145 test -z "$ac_c_werror_flag" ||
21146 test ! -s conftest.err
21147 } && test -s conftest.$ac_objext; then
21148 ac_cv_type_unsigned_long=yes
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21153 ac_cv_type_unsigned_long=no
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21159 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21161 # The cast to long int works around a bug in the HP C Compiler
21162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21164 # This bug is HP SR number 8606223364.
21165 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21166 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21167 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170 if test "$cross_compiling" = yes; then
21171 # Depending upon the size, compute the lo and hi bounds.
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21179 typedef unsigned long ac__type_sizeof_;
21181 main ()
21183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21184 test_array [0] = 0
21187 return 0;
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21207 ac_lo=0 ac_mid=0
21208 while :; do
21209 cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h. */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 $ac_includes_default
21216 typedef unsigned long ac__type_sizeof_;
21218 main ()
21220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21221 test_array [0] = 0
21224 return 0;
21226 _ACEOF
21227 rm -f conftest.$ac_objext
21228 if { (ac_try="$ac_compile"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_compile") 2>conftest.er1
21235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } && {
21241 test -z "$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 } && test -s conftest.$ac_objext; then
21244 ac_hi=$ac_mid; break
21245 else
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_lo=`expr $ac_mid + 1`
21250 if test $ac_lo -le $ac_mid; then
21251 ac_lo= ac_hi=
21252 break
21254 ac_mid=`expr 2 '*' $ac_mid + 1`
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 done
21259 else
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 typedef unsigned long ac__type_sizeof_;
21272 main ()
21274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21275 test_array [0] = 0
21278 return 0;
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.$ac_objext; then
21298 ac_hi=-1 ac_mid=-1
21299 while :; do
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h. */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 $ac_includes_default
21307 typedef unsigned long ac__type_sizeof_;
21309 main ()
21311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21312 test_array [0] = 0
21315 return 0;
21317 _ACEOF
21318 rm -f conftest.$ac_objext
21319 if { (ac_try="$ac_compile"
21320 case "(($ac_try" in
21321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21323 esac
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325 (eval "$ac_compile") 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && {
21332 test -z "$ac_c_werror_flag" ||
21333 test ! -s conftest.err
21334 } && test -s conftest.$ac_objext; then
21335 ac_lo=$ac_mid; break
21336 else
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_hi=`expr '(' $ac_mid ')' - 1`
21341 if test $ac_mid -le $ac_hi; then
21342 ac_lo= ac_hi=
21343 break
21345 ac_mid=`expr 2 '*' $ac_mid`
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349 done
21350 else
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_lo= ac_hi=
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 # Binary search between lo and hi bounds.
21362 while test "x$ac_lo" != "x$ac_hi"; do
21363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21371 typedef unsigned long ac__type_sizeof_;
21373 main ()
21375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21376 test_array [0] = 0
21379 return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 ac_hi=$ac_mid
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_lo=`expr '(' $ac_mid ')' + 1`
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 done
21409 case $ac_lo in
21410 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21411 '') if test "$ac_cv_type_unsigned_long" = yes; then
21412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21413 See \`config.log' for more details." >&5
21414 echo "$as_me: error: cannot compute sizeof (unsigned long)
21415 See \`config.log' for more details." >&2;}
21416 { (exit 77); exit 77; }; }
21417 else
21418 ac_cv_sizeof_unsigned_long=0
21419 fi ;;
21420 esac
21421 else
21422 cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h. */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 $ac_includes_default
21429 typedef unsigned long ac__type_sizeof_;
21430 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21431 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21432 #include <stdio.h>
21433 #include <stdlib.h>
21435 main ()
21438 FILE *f = fopen ("conftest.val", "w");
21439 if (! f)
21440 return 1;
21441 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21443 long int i = longval ();
21444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21445 return 1;
21446 fprintf (f, "%ld\n", i);
21448 else
21450 unsigned long int i = ulongval ();
21451 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21452 return 1;
21453 fprintf (f, "%lu\n", i);
21455 return ferror (f) || fclose (f) != 0;
21458 return 0;
21460 _ACEOF
21461 rm -f conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_link") 2>&5
21469 ac_status=$?
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21472 { (case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_try") 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21482 else
21483 echo "$as_me: program exited with status $ac_status" >&5
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21487 ( exit $ac_status )
21488 if test "$ac_cv_type_unsigned_long" = yes; then
21489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21490 See \`config.log' for more details." >&5
21491 echo "$as_me: error: cannot compute sizeof (unsigned long)
21492 See \`config.log' for more details." >&2;}
21493 { (exit 77); exit 77; }; }
21494 else
21495 ac_cv_sizeof_unsigned_long=0
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21500 rm -f conftest.val
21502 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21503 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21507 cat >>confdefs.h <<_ACEOF
21508 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21509 _ACEOF
21513 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21514 { echo "$as_me:$LINENO: checking for void *" >&5
21515 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21516 if test "${ac_cv_type_void_p+set}" = set; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519 cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h. */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 $ac_includes_default
21526 typedef void * ac__type_new_;
21528 main ()
21530 if ((ac__type_new_ *) 0)
21531 return 0;
21532 if (sizeof (ac__type_new_))
21533 return 0;
21535 return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_compile") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest.$ac_objext; then
21555 ac_cv_type_void_p=yes
21556 else
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_cv_type_void_p=no
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21566 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21568 # The cast to long int works around a bug in the HP C Compiler
21569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21571 # This bug is HP SR number 8606223364.
21572 { echo "$as_me:$LINENO: checking size of void *" >&5
21573 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21574 if test "${ac_cv_sizeof_void_p+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577 if test "$cross_compiling" = yes; then
21578 # Depending upon the size, compute the lo and hi bounds.
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21586 typedef void * ac__type_sizeof_;
21588 main ()
21590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21591 test_array [0] = 0
21594 return 0;
21596 _ACEOF
21597 rm -f conftest.$ac_objext
21598 if { (ac_try="$ac_compile"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_compile") 2>conftest.er1
21605 ac_status=$?
21606 grep -v '^ *+' conftest.er1 >conftest.err
21607 rm -f conftest.er1
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && {
21611 test -z "$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 } && test -s conftest.$ac_objext; then
21614 ac_lo=0 ac_mid=0
21615 while :; do
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h. */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21622 $ac_includes_default
21623 typedef void * ac__type_sizeof_;
21625 main ()
21627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21628 test_array [0] = 0
21631 return 0;
21633 _ACEOF
21634 rm -f conftest.$ac_objext
21635 if { (ac_try="$ac_compile"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_compile") 2>conftest.er1
21642 ac_status=$?
21643 grep -v '^ *+' conftest.er1 >conftest.err
21644 rm -f conftest.er1
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } && {
21648 test -z "$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 } && test -s conftest.$ac_objext; then
21651 ac_hi=$ac_mid; break
21652 else
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 ac_lo=`expr $ac_mid + 1`
21657 if test $ac_lo -le $ac_mid; then
21658 ac_lo= ac_hi=
21659 break
21661 ac_mid=`expr 2 '*' $ac_mid + 1`
21664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 done
21666 else
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 typedef void * ac__type_sizeof_;
21679 main ()
21681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21682 test_array [0] = 0
21685 return 0;
21687 _ACEOF
21688 rm -f conftest.$ac_objext
21689 if { (ac_try="$ac_compile"
21690 case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21693 esac
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_compile") 2>conftest.er1
21696 ac_status=$?
21697 grep -v '^ *+' conftest.er1 >conftest.err
21698 rm -f conftest.er1
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } && {
21702 test -z "$ac_c_werror_flag" ||
21703 test ! -s conftest.err
21704 } && test -s conftest.$ac_objext; then
21705 ac_hi=-1 ac_mid=-1
21706 while :; do
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h. */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 $ac_includes_default
21714 typedef void * ac__type_sizeof_;
21716 main ()
21718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21719 test_array [0] = 0
21722 return 0;
21724 _ACEOF
21725 rm -f conftest.$ac_objext
21726 if { (ac_try="$ac_compile"
21727 case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21730 esac
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_compile") 2>conftest.er1
21733 ac_status=$?
21734 grep -v '^ *+' conftest.er1 >conftest.err
21735 rm -f conftest.er1
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } && {
21739 test -z "$ac_c_werror_flag" ||
21740 test ! -s conftest.err
21741 } && test -s conftest.$ac_objext; then
21742 ac_lo=$ac_mid; break
21743 else
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 ac_hi=`expr '(' $ac_mid ')' - 1`
21748 if test $ac_mid -le $ac_hi; then
21749 ac_lo= ac_hi=
21750 break
21752 ac_mid=`expr 2 '*' $ac_mid`
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 done
21757 else
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_lo= ac_hi=
21764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768 # Binary search between lo and hi bounds.
21769 while test "x$ac_lo" != "x$ac_hi"; do
21770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21771 cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h. */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 $ac_includes_default
21778 typedef void * ac__type_sizeof_;
21780 main ()
21782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21783 test_array [0] = 0
21786 return 0;
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_compile") 2>conftest.er1
21797 ac_status=$?
21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest.$ac_objext; then
21806 ac_hi=$ac_mid
21807 else
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_lo=`expr '(' $ac_mid ')' + 1`
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 done
21816 case $ac_lo in
21817 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21818 '') if test "$ac_cv_type_void_p" = yes; then
21819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21820 See \`config.log' for more details." >&5
21821 echo "$as_me: error: cannot compute sizeof (void *)
21822 See \`config.log' for more details." >&2;}
21823 { (exit 77); exit 77; }; }
21824 else
21825 ac_cv_sizeof_void_p=0
21826 fi ;;
21827 esac
21828 else
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 $ac_includes_default
21836 typedef void * ac__type_sizeof_;
21837 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21838 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21839 #include <stdio.h>
21840 #include <stdlib.h>
21842 main ()
21845 FILE *f = fopen ("conftest.val", "w");
21846 if (! f)
21847 return 1;
21848 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21850 long int i = longval ();
21851 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21852 return 1;
21853 fprintf (f, "%ld\n", i);
21855 else
21857 unsigned long int i = ulongval ();
21858 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21859 return 1;
21860 fprintf (f, "%lu\n", i);
21862 return ferror (f) || fclose (f) != 0;
21865 return 0;
21867 _ACEOF
21868 rm -f conftest$ac_exeext
21869 if { (ac_try="$ac_link"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21873 esac
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_link") 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21879 { (case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21882 esac
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884 (eval "$ac_try") 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 ac_cv_sizeof_void_p=`cat conftest.val`
21889 else
21890 echo "$as_me: program exited with status $ac_status" >&5
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21894 ( exit $ac_status )
21895 if test "$ac_cv_type_void_p" = yes; then
21896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21897 See \`config.log' for more details." >&5
21898 echo "$as_me: error: cannot compute sizeof (void *)
21899 See \`config.log' for more details." >&2;}
21900 { (exit 77); exit 77; }; }
21901 else
21902 ac_cv_sizeof_void_p=0
21905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21907 rm -f conftest.val
21909 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21910 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21914 cat >>confdefs.h <<_ACEOF
21915 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21916 _ACEOF
21919 { echo "$as_me:$LINENO: checking for size_t" >&5
21920 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21921 if test "${ac_cv_type_size_t+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 $ac_includes_default
21931 typedef size_t ac__type_new_;
21933 main ()
21935 if ((ac__type_new_ *) 0)
21936 return 0;
21937 if (sizeof (ac__type_new_))
21938 return 0;
21940 return 0;
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_compile") 2>conftest.er1
21951 ac_status=$?
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } && {
21957 test -z "$ac_c_werror_flag" ||
21958 test ! -s conftest.err
21959 } && test -s conftest.$ac_objext; then
21960 ac_cv_type_size_t=yes
21961 else
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 ac_cv_type_size_t=no
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21971 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21973 # The cast to long int works around a bug in the HP C Compiler
21974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21976 # This bug is HP SR number 8606223364.
21977 { echo "$as_me:$LINENO: checking size of size_t" >&5
21978 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_sizeof_size_t+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982 if test "$cross_compiling" = yes; then
21983 # Depending upon the size, compute the lo and hi bounds.
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h. */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 $ac_includes_default
21991 typedef size_t ac__type_sizeof_;
21993 main ()
21995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21996 test_array [0] = 0
21999 return 0;
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_lo=0 ac_mid=0
22020 while :; do
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 $ac_includes_default
22028 typedef size_t ac__type_sizeof_;
22030 main ()
22032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22033 test_array [0] = 0
22036 return 0;
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_hi=$ac_mid; break
22057 else
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_lo=`expr $ac_mid + 1`
22062 if test $ac_lo -le $ac_mid; then
22063 ac_lo= ac_hi=
22064 break
22066 ac_mid=`expr 2 '*' $ac_mid + 1`
22069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070 done
22071 else
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h. */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22081 $ac_includes_default
22082 typedef size_t ac__type_sizeof_;
22084 main ()
22086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22087 test_array [0] = 0
22090 return 0;
22092 _ACEOF
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22101 ac_status=$?
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22110 ac_hi=-1 ac_mid=-1
22111 while :; do
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 $ac_includes_default
22119 typedef size_t ac__type_sizeof_;
22121 main ()
22123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22124 test_array [0] = 0
22127 return 0;
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_compile") 2>conftest.er1
22138 ac_status=$?
22139 grep -v '^ *+' conftest.er1 >conftest.err
22140 rm -f conftest.er1
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest.$ac_objext; then
22147 ac_lo=$ac_mid; break
22148 else
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_hi=`expr '(' $ac_mid ')' - 1`
22153 if test $ac_mid -le $ac_hi; then
22154 ac_lo= ac_hi=
22155 break
22157 ac_mid=`expr 2 '*' $ac_mid`
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161 done
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_lo= ac_hi=
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 # Binary search between lo and hi bounds.
22174 while test "x$ac_lo" != "x$ac_hi"; do
22175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h. */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 $ac_includes_default
22183 typedef size_t ac__type_sizeof_;
22185 main ()
22187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22188 test_array [0] = 0
22191 return 0;
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_compile") 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && {
22208 test -z "$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 } && test -s conftest.$ac_objext; then
22211 ac_hi=$ac_mid
22212 else
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_lo=`expr '(' $ac_mid ')' + 1`
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220 done
22221 case $ac_lo in
22222 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22223 '') if test "$ac_cv_type_size_t" = yes; then
22224 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22225 See \`config.log' for more details." >&5
22226 echo "$as_me: error: cannot compute sizeof (size_t)
22227 See \`config.log' for more details." >&2;}
22228 { (exit 77); exit 77; }; }
22229 else
22230 ac_cv_sizeof_size_t=0
22231 fi ;;
22232 esac
22233 else
22234 cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h. */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 typedef size_t ac__type_sizeof_;
22242 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22243 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22244 #include <stdio.h>
22245 #include <stdlib.h>
22247 main ()
22250 FILE *f = fopen ("conftest.val", "w");
22251 if (! f)
22252 return 1;
22253 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22255 long int i = longval ();
22256 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22257 return 1;
22258 fprintf (f, "%ld\n", i);
22260 else
22262 unsigned long int i = ulongval ();
22263 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22264 return 1;
22265 fprintf (f, "%lu\n", i);
22267 return ferror (f) || fclose (f) != 0;
22270 return 0;
22272 _ACEOF
22273 rm -f conftest$ac_exeext
22274 if { (ac_try="$ac_link"
22275 case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278 esac
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_link") 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22284 { (case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22287 esac
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_try") 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
22293 ac_cv_sizeof_size_t=`cat conftest.val`
22294 else
22295 echo "$as_me: program exited with status $ac_status" >&5
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299 ( exit $ac_status )
22300 if test "$ac_cv_type_size_t" = yes; then
22301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22302 See \`config.log' for more details." >&5
22303 echo "$as_me: error: cannot compute sizeof (size_t)
22304 See \`config.log' for more details." >&2;}
22305 { (exit 77); exit 77; }; }
22306 else
22307 ac_cv_sizeof_size_t=0
22310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22312 rm -f conftest.val
22314 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22315 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22319 cat >>confdefs.h <<_ACEOF
22320 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22321 _ACEOF
22325 # Decide whether float4 is passed by value: user-selectable, enabled by default
22326 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22327 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22329 pgac_args="$pgac_args enable_float4_byval"
22331 # Check whether --enable-float4-byval was given.
22332 if test "${enable_float4_byval+set}" = set; then
22333 enableval=$enable_float4_byval;
22334 case $enableval in
22335 yes)
22337 cat >>confdefs.h <<\_ACEOF
22338 #define USE_FLOAT4_BYVAL 1
22339 _ACEOF
22341 float4passbyval=true
22344 float4passbyval=false
22347 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22348 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22349 { (exit 1); exit 1; }; }
22351 esac
22353 else
22354 enable_float4_byval=yes
22356 cat >>confdefs.h <<\_ACEOF
22357 #define USE_FLOAT4_BYVAL 1
22358 _ACEOF
22360 float4passbyval=true
22364 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22365 echo "${ECHO_T}$enable_float4_byval" >&6; }
22367 cat >>confdefs.h <<_ACEOF
22368 #define FLOAT4PASSBYVAL $float4passbyval
22369 _ACEOF
22372 # Decide whether float8 is passed by value.
22373 # Note: this setting also controls int8 and related types such as timestamp.
22374 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22375 # If not, trying to select it is an error.
22376 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22377 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22378 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22380 pgac_args="$pgac_args enable_float8_byval"
22382 # Check whether --enable-float8-byval was given.
22383 if test "${enable_float8_byval+set}" = set; then
22384 enableval=$enable_float8_byval;
22385 case $enableval in
22386 yes)
22393 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22394 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22395 { (exit 1); exit 1; }; }
22397 esac
22399 else
22400 enable_float8_byval=yes
22405 else
22407 pgac_args="$pgac_args enable_float8_byval"
22409 # Check whether --enable-float8-byval was given.
22410 if test "${enable_float8_byval+set}" = set; then
22411 enableval=$enable_float8_byval;
22412 case $enableval in
22413 yes)
22420 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22421 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22422 { (exit 1); exit 1; }; }
22424 esac
22426 else
22427 enable_float8_byval=no
22432 if test "$enable_float8_byval" = yes ; then
22433 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22434 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22435 { (exit 1); exit 1; }; }
22438 if test "$enable_float8_byval" = yes ; then
22440 cat >>confdefs.h <<\_ACEOF
22441 #define USE_FLOAT8_BYVAL 1
22442 _ACEOF
22444 float8passbyval=true
22445 else
22446 float8passbyval=false
22448 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22449 echo "${ECHO_T}$enable_float8_byval" >&6; }
22451 cat >>confdefs.h <<_ACEOF
22452 #define FLOAT8PASSBYVAL $float8passbyval
22453 _ACEOF
22456 # Determine memory alignment requirements for the basic C data types.
22458 { echo "$as_me:$LINENO: checking for short" >&5
22459 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22460 if test "${ac_cv_type_short+set}" = set; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 else
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 $ac_includes_default
22470 typedef short ac__type_new_;
22472 main ()
22474 if ((ac__type_new_ *) 0)
22475 return 0;
22476 if (sizeof (ac__type_new_))
22477 return 0;
22479 return 0;
22481 _ACEOF
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486 *) ac_try_echo=$ac_try;;
22487 esac
22488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22490 ac_status=$?
22491 grep -v '^ *+' conftest.er1 >conftest.err
22492 rm -f conftest.er1
22493 cat conftest.err >&5
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest.$ac_objext; then
22499 ac_cv_type_short=yes
22500 else
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ac_cv_type_short=no
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22510 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22512 # The cast to long int works around a bug in the HP C Compiler,
22513 # see AC_CHECK_SIZEOF for more information.
22514 { echo "$as_me:$LINENO: checking alignment of short" >&5
22515 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22516 if test "${ac_cv_alignof_short+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519 if test "$cross_compiling" = yes; then
22520 # Depending upon the size, compute the lo and hi bounds.
22521 cat >conftest.$ac_ext <<_ACEOF
22522 /* confdefs.h. */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22527 $ac_includes_default
22528 #ifndef offsetof
22529 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22530 #endif
22531 typedef struct { char x; short y; } ac__type_alignof_;
22533 main ()
22535 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22536 test_array [0] = 0
22539 return 0;
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22550 ac_status=$?
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_c_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest.$ac_objext; then
22559 ac_lo=0 ac_mid=0
22560 while :; do
22561 cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h. */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 $ac_includes_default
22568 #ifndef offsetof
22569 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22570 #endif
22571 typedef struct { char x; short y; } ac__type_alignof_;
22573 main ()
22575 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22576 test_array [0] = 0
22579 return 0;
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest.$ac_objext; then
22599 ac_hi=$ac_mid; break
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_lo=`expr $ac_mid + 1`
22605 if test $ac_lo -le $ac_mid; then
22606 ac_lo= ac_hi=
22607 break
22609 ac_mid=`expr 2 '*' $ac_mid + 1`
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 done
22614 else
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 #ifndef offsetof
22626 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22627 #endif
22628 typedef struct { char x; short y; } ac__type_alignof_;
22630 main ()
22632 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22633 test_array [0] = 0
22636 return 0;
22638 _ACEOF
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644 esac
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22647 ac_status=$?
22648 grep -v '^ *+' conftest.er1 >conftest.err
22649 rm -f conftest.er1
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.$ac_objext; then
22656 ac_hi=-1 ac_mid=-1
22657 while :; do
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h. */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 $ac_includes_default
22665 #ifndef offsetof
22666 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22667 #endif
22668 typedef struct { char x; short y; } ac__type_alignof_;
22670 main ()
22672 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22673 test_array [0] = 0
22676 return 0;
22678 _ACEOF
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22684 esac
22685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22686 (eval "$ac_compile") 2>conftest.er1
22687 ac_status=$?
22688 grep -v '^ *+' conftest.er1 >conftest.err
22689 rm -f conftest.er1
22690 cat conftest.err >&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); } && {
22693 test -z "$ac_c_werror_flag" ||
22694 test ! -s conftest.err
22695 } && test -s conftest.$ac_objext; then
22696 ac_lo=$ac_mid; break
22697 else
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22701 ac_hi=`expr '(' $ac_mid ')' - 1`
22702 if test $ac_mid -le $ac_hi; then
22703 ac_lo= ac_hi=
22704 break
22706 ac_mid=`expr 2 '*' $ac_mid`
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 done
22711 else
22712 echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22715 ac_lo= ac_hi=
22718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 # Binary search between lo and hi bounds.
22723 while test "x$ac_lo" != "x$ac_hi"; do
22724 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #ifndef offsetof
22733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22734 #endif
22735 typedef struct { char x; short y; } ac__type_alignof_;
22737 main ()
22739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22740 test_array [0] = 0
22743 return 0;
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_compile") 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest.$ac_objext; then
22763 ac_hi=$ac_mid
22764 else
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 ac_lo=`expr '(' $ac_mid ')' + 1`
22771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 done
22773 case $ac_lo in
22774 ?*) ac_cv_alignof_short=$ac_lo;;
22775 '') if test "$ac_cv_type_short" = yes; then
22776 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22777 See \`config.log' for more details." >&5
22778 echo "$as_me: error: cannot compute alignment of short
22779 See \`config.log' for more details." >&2;}
22780 { (exit 77); exit 77; }; }
22781 else
22782 ac_cv_alignof_short=0
22783 fi ;;
22784 esac
22785 else
22786 cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h. */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 $ac_includes_default
22793 #ifndef offsetof
22794 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22795 #endif
22796 typedef struct { char x; short y; } ac__type_alignof_;
22797 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22798 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22799 #include <stdio.h>
22800 #include <stdlib.h>
22802 main ()
22805 FILE *f = fopen ("conftest.val", "w");
22806 if (! f)
22807 return 1;
22808 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22810 long int i = longval ();
22811 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22812 return 1;
22813 fprintf (f, "%ld\n", i);
22815 else
22817 unsigned long int i = ulongval ();
22818 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22819 return 1;
22820 fprintf (f, "%lu\n", i);
22822 return ferror (f) || fclose (f) != 0;
22825 return 0;
22827 _ACEOF
22828 rm -f conftest$ac_exeext
22829 if { (ac_try="$ac_link"
22830 case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22833 esac
22834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835 (eval "$ac_link") 2>&5
22836 ac_status=$?
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22839 { (case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_try") 2>&5
22845 ac_status=$?
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_cv_alignof_short=`cat conftest.val`
22849 else
22850 echo "$as_me: program exited with status $ac_status" >&5
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 ( exit $ac_status )
22855 if test "$ac_cv_type_short" = yes; then
22856 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22857 See \`config.log' for more details." >&5
22858 echo "$as_me: error: cannot compute alignment of short
22859 See \`config.log' for more details." >&2;}
22860 { (exit 77); exit 77; }; }
22861 else
22862 ac_cv_alignof_short=0
22865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22867 rm -f conftest.val
22869 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22870 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22874 cat >>confdefs.h <<_ACEOF
22875 #define ALIGNOF_SHORT $ac_cv_alignof_short
22876 _ACEOF
22879 { echo "$as_me:$LINENO: checking for int" >&5
22880 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22881 if test "${ac_cv_type_int+set}" = set; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22883 else
22884 cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h. */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22890 $ac_includes_default
22891 typedef int ac__type_new_;
22893 main ()
22895 if ((ac__type_new_ *) 0)
22896 return 0;
22897 if (sizeof (ac__type_new_))
22898 return 0;
22900 return 0;
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_compile") 2>conftest.er1
22911 ac_status=$?
22912 grep -v '^ *+' conftest.er1 >conftest.err
22913 rm -f conftest.er1
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest.$ac_objext; then
22920 ac_cv_type_int=yes
22921 else
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 ac_cv_type_int=no
22928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22931 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22933 # The cast to long int works around a bug in the HP C Compiler,
22934 # see AC_CHECK_SIZEOF for more information.
22935 { echo "$as_me:$LINENO: checking alignment of int" >&5
22936 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22937 if test "${ac_cv_alignof_int+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940 if test "$cross_compiling" = yes; then
22941 # Depending upon the size, compute the lo and hi bounds.
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h. */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 $ac_includes_default
22949 #ifndef offsetof
22950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22951 #endif
22952 typedef struct { char x; int y; } ac__type_alignof_;
22954 main ()
22956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22957 test_array [0] = 0
22960 return 0;
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_compile") 2>conftest.er1
22971 ac_status=$?
22972 grep -v '^ *+' conftest.er1 >conftest.err
22973 rm -f conftest.er1
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } && {
22977 test -z "$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 } && test -s conftest.$ac_objext; then
22980 ac_lo=0 ac_mid=0
22981 while :; do
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 $ac_includes_default
22989 #ifndef offsetof
22990 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22991 #endif
22992 typedef struct { char x; int y; } ac__type_alignof_;
22994 main ()
22996 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22997 test_array [0] = 0
23000 return 0;
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (ac_try="$ac_compile"
23005 case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008 esac
23009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23010 (eval "$ac_compile") 2>conftest.er1
23011 ac_status=$?
23012 grep -v '^ *+' conftest.er1 >conftest.err
23013 rm -f conftest.er1
23014 cat conftest.err >&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); } && {
23017 test -z "$ac_c_werror_flag" ||
23018 test ! -s conftest.err
23019 } && test -s conftest.$ac_objext; then
23020 ac_hi=$ac_mid; break
23021 else
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23025 ac_lo=`expr $ac_mid + 1`
23026 if test $ac_lo -le $ac_mid; then
23027 ac_lo= ac_hi=
23028 break
23030 ac_mid=`expr 2 '*' $ac_mid + 1`
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 done
23035 else
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 #ifndef offsetof
23047 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23048 #endif
23049 typedef struct { char x; int y; } ac__type_alignof_;
23051 main ()
23053 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23054 test_array [0] = 0
23057 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_compile") 2>conftest.er1
23068 ac_status=$?
23069 grep -v '^ *+' conftest.er1 >conftest.err
23070 rm -f conftest.er1
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } && {
23074 test -z "$ac_c_werror_flag" ||
23075 test ! -s conftest.err
23076 } && test -s conftest.$ac_objext; then
23077 ac_hi=-1 ac_mid=-1
23078 while :; do
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 $ac_includes_default
23086 #ifndef offsetof
23087 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23088 #endif
23089 typedef struct { char x; int y; } ac__type_alignof_;
23091 main ()
23093 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23094 test_array [0] = 0
23097 return 0;
23099 _ACEOF
23100 rm -f conftest.$ac_objext
23101 if { (ac_try="$ac_compile"
23102 case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23105 esac
23106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_compile") 2>conftest.er1
23108 ac_status=$?
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } && {
23114 test -z "$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23116 } && test -s conftest.$ac_objext; then
23117 ac_lo=$ac_mid; break
23118 else
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_hi=`expr '(' $ac_mid ')' - 1`
23123 if test $ac_mid -le $ac_hi; then
23124 ac_lo= ac_hi=
23125 break
23127 ac_mid=`expr 2 '*' $ac_mid`
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 done
23132 else
23133 echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23136 ac_lo= ac_hi=
23139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 # Binary search between lo and hi bounds.
23144 while test "x$ac_lo" != "x$ac_hi"; do
23145 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23146 cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h. */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 $ac_includes_default
23153 #ifndef offsetof
23154 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23155 #endif
23156 typedef struct { char x; int y; } ac__type_alignof_;
23158 main ()
23160 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23161 test_array [0] = 0
23164 return 0;
23166 _ACEOF
23167 rm -f conftest.$ac_objext
23168 if { (ac_try="$ac_compile"
23169 case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174 (eval "$ac_compile") 2>conftest.er1
23175 ac_status=$?
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } && {
23181 test -z "$ac_c_werror_flag" ||
23182 test ! -s conftest.err
23183 } && test -s conftest.$ac_objext; then
23184 ac_hi=$ac_mid
23185 else
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_lo=`expr '(' $ac_mid ')' + 1`
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23193 done
23194 case $ac_lo in
23195 ?*) ac_cv_alignof_int=$ac_lo;;
23196 '') if test "$ac_cv_type_int" = yes; then
23197 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23198 See \`config.log' for more details." >&5
23199 echo "$as_me: error: cannot compute alignment of int
23200 See \`config.log' for more details." >&2;}
23201 { (exit 77); exit 77; }; }
23202 else
23203 ac_cv_alignof_int=0
23204 fi ;;
23205 esac
23206 else
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23214 #ifndef offsetof
23215 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23216 #endif
23217 typedef struct { char x; int y; } ac__type_alignof_;
23218 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23219 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23220 #include <stdio.h>
23221 #include <stdlib.h>
23223 main ()
23226 FILE *f = fopen ("conftest.val", "w");
23227 if (! f)
23228 return 1;
23229 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23231 long int i = longval ();
23232 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23233 return 1;
23234 fprintf (f, "%ld\n", i);
23236 else
23238 unsigned long int i = ulongval ();
23239 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23240 return 1;
23241 fprintf (f, "%lu\n", i);
23243 return ferror (f) || fclose (f) != 0;
23246 return 0;
23248 _ACEOF
23249 rm -f conftest$ac_exeext
23250 if { (ac_try="$ac_link"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23254 esac
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256 (eval "$ac_link") 2>&5
23257 ac_status=$?
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23260 { (case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23263 esac
23264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23265 (eval "$ac_try") 2>&5
23266 ac_status=$?
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 ac_cv_alignof_int=`cat conftest.val`
23270 else
23271 echo "$as_me: program exited with status $ac_status" >&5
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 ( exit $ac_status )
23276 if test "$ac_cv_type_int" = yes; then
23277 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23278 See \`config.log' for more details." >&5
23279 echo "$as_me: error: cannot compute alignment of int
23280 See \`config.log' for more details." >&2;}
23281 { (exit 77); exit 77; }; }
23282 else
23283 ac_cv_alignof_int=0
23286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23288 rm -f conftest.val
23290 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23291 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23295 cat >>confdefs.h <<_ACEOF
23296 #define ALIGNOF_INT $ac_cv_alignof_int
23297 _ACEOF
23300 { echo "$as_me:$LINENO: checking for long" >&5
23301 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23302 if test "${ac_cv_type_long+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 else
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h. */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 $ac_includes_default
23312 typedef long ac__type_new_;
23314 main ()
23316 if ((ac__type_new_ *) 0)
23317 return 0;
23318 if (sizeof (ac__type_new_))
23319 return 0;
23321 return 0;
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_compile") 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } && {
23338 test -z "$ac_c_werror_flag" ||
23339 test ! -s conftest.err
23340 } && test -s conftest.$ac_objext; then
23341 ac_cv_type_long=yes
23342 else
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ac_cv_type_long=no
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23352 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23354 # The cast to long int works around a bug in the HP C Compiler,
23355 # see AC_CHECK_SIZEOF for more information.
23356 { echo "$as_me:$LINENO: checking alignment of long" >&5
23357 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23358 if test "${ac_cv_alignof_long+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361 if test "$cross_compiling" = yes; then
23362 # Depending upon the size, compute the lo and hi bounds.
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h. */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h. */
23369 $ac_includes_default
23370 #ifndef offsetof
23371 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23372 #endif
23373 typedef struct { char x; long y; } ac__type_alignof_;
23375 main ()
23377 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23378 test_array [0] = 0
23381 return 0;
23383 _ACEOF
23384 rm -f conftest.$ac_objext
23385 if { (ac_try="$ac_compile"
23386 case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391 (eval "$ac_compile") 2>conftest.er1
23392 ac_status=$?
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } && {
23398 test -z "$ac_c_werror_flag" ||
23399 test ! -s conftest.err
23400 } && test -s conftest.$ac_objext; then
23401 ac_lo=0 ac_mid=0
23402 while :; do
23403 cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h. */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 $ac_includes_default
23410 #ifndef offsetof
23411 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23412 #endif
23413 typedef struct { char x; long y; } ac__type_alignof_;
23415 main ()
23417 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23418 test_array [0] = 0
23421 return 0;
23423 _ACEOF
23424 rm -f conftest.$ac_objext
23425 if { (ac_try="$ac_compile"
23426 case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_compile") 2>conftest.er1
23432 ac_status=$?
23433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } && {
23438 test -z "$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23440 } && test -s conftest.$ac_objext; then
23441 ac_hi=$ac_mid; break
23442 else
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ac_lo=`expr $ac_mid + 1`
23447 if test $ac_lo -le $ac_mid; then
23448 ac_lo= ac_hi=
23449 break
23451 ac_mid=`expr 2 '*' $ac_mid + 1`
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 done
23456 else
23457 echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 #ifndef offsetof
23468 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23469 #endif
23470 typedef struct { char x; long y; } ac__type_alignof_;
23472 main ()
23474 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23475 test_array [0] = 0
23478 return 0;
23480 _ACEOF
23481 rm -f conftest.$ac_objext
23482 if { (ac_try="$ac_compile"
23483 case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_compile") 2>conftest.er1
23489 ac_status=$?
23490 grep -v '^ *+' conftest.er1 >conftest.err
23491 rm -f conftest.er1
23492 cat conftest.err >&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } && {
23495 test -z "$ac_c_werror_flag" ||
23496 test ! -s conftest.err
23497 } && test -s conftest.$ac_objext; then
23498 ac_hi=-1 ac_mid=-1
23499 while :; do
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h. */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 $ac_includes_default
23507 #ifndef offsetof
23508 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23509 #endif
23510 typedef struct { char x; long y; } ac__type_alignof_;
23512 main ()
23514 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23515 test_array [0] = 0
23518 return 0;
23520 _ACEOF
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_compile") 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest.$ac_objext; then
23538 ac_lo=$ac_mid; break
23539 else
23540 echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23543 ac_hi=`expr '(' $ac_mid ')' - 1`
23544 if test $ac_mid -le $ac_hi; then
23545 ac_lo= ac_hi=
23546 break
23548 ac_mid=`expr 2 '*' $ac_mid`
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 done
23553 else
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23557 ac_lo= ac_hi=
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564 # Binary search between lo and hi bounds.
23565 while test "x$ac_lo" != "x$ac_hi"; do
23566 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23567 cat >conftest.$ac_ext <<_ACEOF
23568 /* confdefs.h. */
23569 _ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h. */
23573 $ac_includes_default
23574 #ifndef offsetof
23575 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23576 #endif
23577 typedef struct { char x; long y; } ac__type_alignof_;
23579 main ()
23581 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23582 test_array [0] = 0
23585 return 0;
23587 _ACEOF
23588 rm -f conftest.$ac_objext
23589 if { (ac_try="$ac_compile"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23593 esac
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_compile") 2>conftest.er1
23596 ac_status=$?
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } && {
23602 test -z "$ac_c_werror_flag" ||
23603 test ! -s conftest.err
23604 } && test -s conftest.$ac_objext; then
23605 ac_hi=$ac_mid
23606 else
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_lo=`expr '(' $ac_mid ')' + 1`
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 done
23615 case $ac_lo in
23616 ?*) ac_cv_alignof_long=$ac_lo;;
23617 '') if test "$ac_cv_type_long" = yes; then
23618 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23619 See \`config.log' for more details." >&5
23620 echo "$as_me: error: cannot compute alignment of long
23621 See \`config.log' for more details." >&2;}
23622 { (exit 77); exit 77; }; }
23623 else
23624 ac_cv_alignof_long=0
23625 fi ;;
23626 esac
23627 else
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h. */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23634 $ac_includes_default
23635 #ifndef offsetof
23636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23637 #endif
23638 typedef struct { char x; long y; } ac__type_alignof_;
23639 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23640 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23641 #include <stdio.h>
23642 #include <stdlib.h>
23644 main ()
23647 FILE *f = fopen ("conftest.val", "w");
23648 if (! f)
23649 return 1;
23650 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23652 long int i = longval ();
23653 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23654 return 1;
23655 fprintf (f, "%ld\n", i);
23657 else
23659 unsigned long int i = ulongval ();
23660 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23661 return 1;
23662 fprintf (f, "%lu\n", i);
23664 return ferror (f) || fclose (f) != 0;
23667 return 0;
23669 _ACEOF
23670 rm -f conftest$ac_exeext
23671 if { (ac_try="$ac_link"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23675 esac
23676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_link") 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23681 { (case "(($ac_try" in
23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683 *) ac_try_echo=$ac_try;;
23684 esac
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_try") 2>&5
23687 ac_status=$?
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; }; then
23690 ac_cv_alignof_long=`cat conftest.val`
23691 else
23692 echo "$as_me: program exited with status $ac_status" >&5
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23696 ( exit $ac_status )
23697 if test "$ac_cv_type_long" = yes; then
23698 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23699 See \`config.log' for more details." >&5
23700 echo "$as_me: error: cannot compute alignment of long
23701 See \`config.log' for more details." >&2;}
23702 { (exit 77); exit 77; }; }
23703 else
23704 ac_cv_alignof_long=0
23707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23709 rm -f conftest.val
23711 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23712 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23716 cat >>confdefs.h <<_ACEOF
23717 #define ALIGNOF_LONG $ac_cv_alignof_long
23718 _ACEOF
23721 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23722 { echo "$as_me:$LINENO: checking for long long int" >&5
23723 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23724 if test "${ac_cv_type_long_long_int+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727 cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h. */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 $ac_includes_default
23734 typedef long long int ac__type_new_;
23736 main ()
23738 if ((ac__type_new_ *) 0)
23739 return 0;
23740 if (sizeof (ac__type_new_))
23741 return 0;
23743 return 0;
23745 _ACEOF
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_compile") 2>conftest.er1
23754 ac_status=$?
23755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } && {
23760 test -z "$ac_c_werror_flag" ||
23761 test ! -s conftest.err
23762 } && test -s conftest.$ac_objext; then
23763 ac_cv_type_long_long_int=yes
23764 else
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 ac_cv_type_long_long_int=no
23771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23774 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23776 # The cast to long int works around a bug in the HP C Compiler,
23777 # see AC_CHECK_SIZEOF for more information.
23778 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23779 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23780 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783 if test "$cross_compiling" = yes; then
23784 # Depending upon the size, compute the lo and hi bounds.
23785 cat >conftest.$ac_ext <<_ACEOF
23786 /* confdefs.h. */
23787 _ACEOF
23788 cat confdefs.h >>conftest.$ac_ext
23789 cat >>conftest.$ac_ext <<_ACEOF
23790 /* end confdefs.h. */
23791 $ac_includes_default
23792 #ifndef offsetof
23793 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23794 #endif
23795 typedef struct { char x; long long int y; } ac__type_alignof_;
23797 main ()
23799 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23800 test_array [0] = 0
23803 return 0;
23805 _ACEOF
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23811 esac
23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813 (eval "$ac_compile") 2>conftest.er1
23814 ac_status=$?
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } && {
23820 test -z "$ac_c_werror_flag" ||
23821 test ! -s conftest.err
23822 } && test -s conftest.$ac_objext; then
23823 ac_lo=0 ac_mid=0
23824 while :; do
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23832 #ifndef offsetof
23833 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23834 #endif
23835 typedef struct { char x; long long int y; } ac__type_alignof_;
23837 main ()
23839 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23840 test_array [0] = 0
23843 return 0;
23845 _ACEOF
23846 rm -f conftest.$ac_objext
23847 if { (ac_try="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23851 esac
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_compile") 2>conftest.er1
23854 ac_status=$?
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } && {
23860 test -z "$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 } && test -s conftest.$ac_objext; then
23863 ac_hi=$ac_mid; break
23864 else
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 ac_lo=`expr $ac_mid + 1`
23869 if test $ac_lo -le $ac_mid; then
23870 ac_lo= ac_hi=
23871 break
23873 ac_mid=`expr 2 '*' $ac_mid + 1`
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 done
23878 else
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 $ac_includes_default
23889 #ifndef offsetof
23890 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23891 #endif
23892 typedef struct { char x; long long int y; } ac__type_alignof_;
23894 main ()
23896 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23897 test_array [0] = 0
23900 return 0;
23902 _ACEOF
23903 rm -f conftest.$ac_objext
23904 if { (ac_try="$ac_compile"
23905 case "(($ac_try" in
23906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907 *) ac_try_echo=$ac_try;;
23908 esac
23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910 (eval "$ac_compile") 2>conftest.er1
23911 ac_status=$?
23912 grep -v '^ *+' conftest.er1 >conftest.err
23913 rm -f conftest.er1
23914 cat conftest.err >&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } && {
23917 test -z "$ac_c_werror_flag" ||
23918 test ! -s conftest.err
23919 } && test -s conftest.$ac_objext; then
23920 ac_hi=-1 ac_mid=-1
23921 while :; do
23922 cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h. */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23928 $ac_includes_default
23929 #ifndef offsetof
23930 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23931 #endif
23932 typedef struct { char x; long long int y; } ac__type_alignof_;
23934 main ()
23936 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23937 test_array [0] = 0
23940 return 0;
23942 _ACEOF
23943 rm -f conftest.$ac_objext
23944 if { (ac_try="$ac_compile"
23945 case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_compile") 2>conftest.er1
23951 ac_status=$?
23952 grep -v '^ *+' conftest.er1 >conftest.err
23953 rm -f conftest.er1
23954 cat conftest.err >&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } && {
23957 test -z "$ac_c_werror_flag" ||
23958 test ! -s conftest.err
23959 } && test -s conftest.$ac_objext; then
23960 ac_lo=$ac_mid; break
23961 else
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23965 ac_hi=`expr '(' $ac_mid ')' - 1`
23966 if test $ac_mid -le $ac_hi; then
23967 ac_lo= ac_hi=
23968 break
23970 ac_mid=`expr 2 '*' $ac_mid`
23973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974 done
23975 else
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23979 ac_lo= ac_hi=
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 # Binary search between lo and hi bounds.
23987 while test "x$ac_lo" != "x$ac_hi"; do
23988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h. */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 $ac_includes_default
23996 #ifndef offsetof
23997 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23998 #endif
23999 typedef struct { char x; long long int y; } ac__type_alignof_;
24001 main ()
24003 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24004 test_array [0] = 0
24007 return 0;
24009 _ACEOF
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24018 ac_status=$?
24019 grep -v '^ *+' conftest.er1 >conftest.err
24020 rm -f conftest.er1
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 ac_hi=$ac_mid
24028 else
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ac_lo=`expr '(' $ac_mid ')' + 1`
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 done
24037 case $ac_lo in
24038 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
24039 '') if test "$ac_cv_type_long_long_int" = yes; then
24040 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24041 See \`config.log' for more details." >&5
24042 echo "$as_me: error: cannot compute alignment of long long int
24043 See \`config.log' for more details." >&2;}
24044 { (exit 77); exit 77; }; }
24045 else
24046 ac_cv_alignof_long_long_int=0
24047 fi ;;
24048 esac
24049 else
24050 cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h. */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h. */
24056 $ac_includes_default
24057 #ifndef offsetof
24058 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24059 #endif
24060 typedef struct { char x; long long int y; } ac__type_alignof_;
24061 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24062 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24063 #include <stdio.h>
24064 #include <stdlib.h>
24066 main ()
24069 FILE *f = fopen ("conftest.val", "w");
24070 if (! f)
24071 return 1;
24072 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24074 long int i = longval ();
24075 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24076 return 1;
24077 fprintf (f, "%ld\n", i);
24079 else
24081 unsigned long int i = ulongval ();
24082 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24083 return 1;
24084 fprintf (f, "%lu\n", i);
24086 return ferror (f) || fclose (f) != 0;
24089 return 0;
24091 _ACEOF
24092 rm -f conftest$ac_exeext
24093 if { (ac_try="$ac_link"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_link") 2>&5
24100 ac_status=$?
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24103 { (case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_try") 2>&5
24109 ac_status=$?
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 ac_cv_alignof_long_long_int=`cat conftest.val`
24113 else
24114 echo "$as_me: program exited with status $ac_status" >&5
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ( exit $ac_status )
24119 if test "$ac_cv_type_long_long_int" = yes; then
24120 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24121 See \`config.log' for more details." >&5
24122 echo "$as_me: error: cannot compute alignment of long long int
24123 See \`config.log' for more details." >&2;}
24124 { (exit 77); exit 77; }; }
24125 else
24126 ac_cv_alignof_long_long_int=0
24129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24131 rm -f conftest.val
24133 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
24134 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24138 cat >>confdefs.h <<_ACEOF
24139 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24140 _ACEOF
24144 { echo "$as_me:$LINENO: checking for double" >&5
24145 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
24146 if test "${ac_cv_type_double+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149 cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h. */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 $ac_includes_default
24156 typedef double ac__type_new_;
24158 main ()
24160 if ((ac__type_new_ *) 0)
24161 return 0;
24162 if (sizeof (ac__type_new_))
24163 return 0;
24165 return 0;
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24173 esac
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24176 ac_status=$?
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest.$ac_objext; then
24185 ac_cv_type_double=yes
24186 else
24187 echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ac_cv_type_double=no
24193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24196 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24198 # The cast to long int works around a bug in the HP C Compiler,
24199 # see AC_CHECK_SIZEOF for more information.
24200 { echo "$as_me:$LINENO: checking alignment of double" >&5
24201 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
24202 if test "${ac_cv_alignof_double+set}" = set; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24204 else
24205 if test "$cross_compiling" = yes; then
24206 # Depending upon the size, compute the lo and hi bounds.
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h. */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 $ac_includes_default
24214 #ifndef offsetof
24215 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24216 #endif
24217 typedef struct { char x; double y; } ac__type_alignof_;
24219 main ()
24221 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24222 test_array [0] = 0
24225 return 0;
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24233 esac
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235 (eval "$ac_compile") 2>conftest.er1
24236 ac_status=$?
24237 grep -v '^ *+' conftest.er1 >conftest.err
24238 rm -f conftest.er1
24239 cat conftest.err >&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && {
24242 test -z "$ac_c_werror_flag" ||
24243 test ! -s conftest.err
24244 } && test -s conftest.$ac_objext; then
24245 ac_lo=0 ac_mid=0
24246 while :; do
24247 cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h. */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 $ac_includes_default
24254 #ifndef offsetof
24255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24256 #endif
24257 typedef struct { char x; double y; } ac__type_alignof_;
24259 main ()
24261 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24262 test_array [0] = 0
24265 return 0;
24267 _ACEOF
24268 rm -f conftest.$ac_objext
24269 if { (ac_try="$ac_compile"
24270 case "(($ac_try" in
24271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272 *) ac_try_echo=$ac_try;;
24273 esac
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275 (eval "$ac_compile") 2>conftest.er1
24276 ac_status=$?
24277 grep -v '^ *+' conftest.er1 >conftest.err
24278 rm -f conftest.er1
24279 cat conftest.err >&5
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); } && {
24282 test -z "$ac_c_werror_flag" ||
24283 test ! -s conftest.err
24284 } && test -s conftest.$ac_objext; then
24285 ac_hi=$ac_mid; break
24286 else
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24290 ac_lo=`expr $ac_mid + 1`
24291 if test $ac_lo -le $ac_mid; then
24292 ac_lo= ac_hi=
24293 break
24295 ac_mid=`expr 2 '*' $ac_mid + 1`
24298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24299 done
24300 else
24301 echo "$as_me: failed program was:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24304 cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h. */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 $ac_includes_default
24311 #ifndef offsetof
24312 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24313 #endif
24314 typedef struct { char x; double y; } ac__type_alignof_;
24316 main ()
24318 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24319 test_array [0] = 0
24322 return 0;
24324 _ACEOF
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_compile") 2>conftest.er1
24333 ac_status=$?
24334 grep -v '^ *+' conftest.er1 >conftest.err
24335 rm -f conftest.er1
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } && {
24339 test -z "$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 } && test -s conftest.$ac_objext; then
24342 ac_hi=-1 ac_mid=-1
24343 while :; do
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h. */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 $ac_includes_default
24351 #ifndef offsetof
24352 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24353 #endif
24354 typedef struct { char x; double y; } ac__type_alignof_;
24356 main ()
24358 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24359 test_array [0] = 0
24362 return 0;
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_compile") 2>conftest.er1
24373 ac_status=$?
24374 grep -v '^ *+' conftest.er1 >conftest.err
24375 rm -f conftest.er1
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest.$ac_objext; then
24382 ac_lo=$ac_mid; break
24383 else
24384 echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24387 ac_hi=`expr '(' $ac_mid ')' - 1`
24388 if test $ac_mid -le $ac_hi; then
24389 ac_lo= ac_hi=
24390 break
24392 ac_mid=`expr 2 '*' $ac_mid`
24395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396 done
24397 else
24398 echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24401 ac_lo= ac_hi=
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408 # Binary search between lo and hi bounds.
24409 while test "x$ac_lo" != "x$ac_hi"; do
24410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h. */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 $ac_includes_default
24418 #ifndef offsetof
24419 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24420 #endif
24421 typedef struct { char x; double y; } ac__type_alignof_;
24423 main ()
24425 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24426 test_array [0] = 0
24429 return 0;
24431 _ACEOF
24432 rm -f conftest.$ac_objext
24433 if { (ac_try="$ac_compile"
24434 case "(($ac_try" in
24435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24436 *) ac_try_echo=$ac_try;;
24437 esac
24438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24439 (eval "$ac_compile") 2>conftest.er1
24440 ac_status=$?
24441 grep -v '^ *+' conftest.er1 >conftest.err
24442 rm -f conftest.er1
24443 cat conftest.err >&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest.$ac_objext; then
24449 ac_hi=$ac_mid
24450 else
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24454 ac_lo=`expr '(' $ac_mid ')' + 1`
24457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 done
24459 case $ac_lo in
24460 ?*) ac_cv_alignof_double=$ac_lo;;
24461 '') if test "$ac_cv_type_double" = yes; then
24462 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24463 See \`config.log' for more details." >&5
24464 echo "$as_me: error: cannot compute alignment of double
24465 See \`config.log' for more details." >&2;}
24466 { (exit 77); exit 77; }; }
24467 else
24468 ac_cv_alignof_double=0
24469 fi ;;
24470 esac
24471 else
24472 cat >conftest.$ac_ext <<_ACEOF
24473 /* confdefs.h. */
24474 _ACEOF
24475 cat confdefs.h >>conftest.$ac_ext
24476 cat >>conftest.$ac_ext <<_ACEOF
24477 /* end confdefs.h. */
24478 $ac_includes_default
24479 #ifndef offsetof
24480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24481 #endif
24482 typedef struct { char x; double y; } ac__type_alignof_;
24483 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24484 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24485 #include <stdio.h>
24486 #include <stdlib.h>
24488 main ()
24491 FILE *f = fopen ("conftest.val", "w");
24492 if (! f)
24493 return 1;
24494 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24496 long int i = longval ();
24497 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24498 return 1;
24499 fprintf (f, "%ld\n", i);
24501 else
24503 unsigned long int i = ulongval ();
24504 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24505 return 1;
24506 fprintf (f, "%lu\n", i);
24508 return ferror (f) || fclose (f) != 0;
24511 return 0;
24513 _ACEOF
24514 rm -f conftest$ac_exeext
24515 if { (ac_try="$ac_link"
24516 case "(($ac_try" in
24517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24519 esac
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521 (eval "$ac_link") 2>&5
24522 ac_status=$?
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24525 { (case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_try") 2>&5
24531 ac_status=$?
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24534 ac_cv_alignof_double=`cat conftest.val`
24535 else
24536 echo "$as_me: program exited with status $ac_status" >&5
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 ( exit $ac_status )
24541 if test "$ac_cv_type_double" = yes; then
24542 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24543 See \`config.log' for more details." >&5
24544 echo "$as_me: error: cannot compute alignment of double
24545 See \`config.log' for more details." >&2;}
24546 { (exit 77); exit 77; }; }
24547 else
24548 ac_cv_alignof_double=0
24551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24553 rm -f conftest.val
24555 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24556 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24560 cat >>confdefs.h <<_ACEOF
24561 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24562 _ACEOF
24566 # Compute maximum alignment of any basic type.
24567 # We assume long's alignment is at least as strong as char, short, or int;
24568 # but we must check long long (if it exists) and double.
24570 MAX_ALIGNOF=$ac_cv_alignof_long
24571 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24572 MAX_ALIGNOF=$ac_cv_alignof_double
24574 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24575 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24578 cat >>confdefs.h <<_ACEOF
24579 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24580 _ACEOF
24584 # Some platforms predefine the types int8, int16, etc. Only check
24585 # a (hopefully) representative subset.
24586 { echo "$as_me:$LINENO: checking for int8" >&5
24587 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24588 if test "${ac_cv_type_int8+set}" = set; then
24589 echo $ECHO_N "(cached) $ECHO_C" >&6
24590 else
24591 cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h. */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 #include <stdio.h>
24598 #ifdef HAVE_SUPPORTDEFS_H
24599 #include <SupportDefs.h>
24600 #endif
24602 typedef int8 ac__type_new_;
24604 main ()
24606 if ((ac__type_new_ *) 0)
24607 return 0;
24608 if (sizeof (ac__type_new_))
24609 return 0;
24611 return 0;
24613 _ACEOF
24614 rm -f conftest.$ac_objext
24615 if { (ac_try="$ac_compile"
24616 case "(($ac_try" in
24617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24618 *) ac_try_echo=$ac_try;;
24619 esac
24620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24621 (eval "$ac_compile") 2>conftest.er1
24622 ac_status=$?
24623 grep -v '^ *+' conftest.er1 >conftest.err
24624 rm -f conftest.er1
24625 cat conftest.err >&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } && {
24628 test -z "$ac_c_werror_flag" ||
24629 test ! -s conftest.err
24630 } && test -s conftest.$ac_objext; then
24631 ac_cv_type_int8=yes
24632 else
24633 echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24636 ac_cv_type_int8=no
24639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24642 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24643 if test $ac_cv_type_int8 = yes; then
24645 cat >>confdefs.h <<_ACEOF
24646 #define HAVE_INT8 1
24647 _ACEOF
24651 { echo "$as_me:$LINENO: checking for uint8" >&5
24652 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24653 if test "${ac_cv_type_uint8+set}" = set; then
24654 echo $ECHO_N "(cached) $ECHO_C" >&6
24655 else
24656 cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h. */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 #include <stdio.h>
24663 #ifdef HAVE_SUPPORTDEFS_H
24664 #include <SupportDefs.h>
24665 #endif
24667 typedef uint8 ac__type_new_;
24669 main ()
24671 if ((ac__type_new_ *) 0)
24672 return 0;
24673 if (sizeof (ac__type_new_))
24674 return 0;
24676 return 0;
24678 _ACEOF
24679 rm -f conftest.$ac_objext
24680 if { (ac_try="$ac_compile"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_compile") 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } && {
24693 test -z "$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24695 } && test -s conftest.$ac_objext; then
24696 ac_cv_type_uint8=yes
24697 else
24698 echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_cv_type_uint8=no
24704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24707 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24708 if test $ac_cv_type_uint8 = yes; then
24710 cat >>confdefs.h <<_ACEOF
24711 #define HAVE_UINT8 1
24712 _ACEOF
24716 { echo "$as_me:$LINENO: checking for int64" >&5
24717 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24718 if test "${ac_cv_type_int64+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 else
24721 cat >conftest.$ac_ext <<_ACEOF
24722 /* confdefs.h. */
24723 _ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h. */
24727 #include <stdio.h>
24728 #ifdef HAVE_SUPPORTDEFS_H
24729 #include <SupportDefs.h>
24730 #endif
24732 typedef int64 ac__type_new_;
24734 main ()
24736 if ((ac__type_new_ *) 0)
24737 return 0;
24738 if (sizeof (ac__type_new_))
24739 return 0;
24741 return 0;
24743 _ACEOF
24744 rm -f conftest.$ac_objext
24745 if { (ac_try="$ac_compile"
24746 case "(($ac_try" in
24747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748 *) ac_try_echo=$ac_try;;
24749 esac
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751 (eval "$ac_compile") 2>conftest.er1
24752 ac_status=$?
24753 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1
24755 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && {
24758 test -z "$ac_c_werror_flag" ||
24759 test ! -s conftest.err
24760 } && test -s conftest.$ac_objext; then
24761 ac_cv_type_int64=yes
24762 else
24763 echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 ac_cv_type_int64=no
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24772 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24773 if test $ac_cv_type_int64 = yes; then
24775 cat >>confdefs.h <<_ACEOF
24776 #define HAVE_INT64 1
24777 _ACEOF
24781 { echo "$as_me:$LINENO: checking for uint64" >&5
24782 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24783 if test "${ac_cv_type_uint64+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h. */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 #include <stdio.h>
24793 #ifdef HAVE_SUPPORTDEFS_H
24794 #include <SupportDefs.h>
24795 #endif
24797 typedef uint64 ac__type_new_;
24799 main ()
24801 if ((ac__type_new_ *) 0)
24802 return 0;
24803 if (sizeof (ac__type_new_))
24804 return 0;
24806 return 0;
24808 _ACEOF
24809 rm -f conftest.$ac_objext
24810 if { (ac_try="$ac_compile"
24811 case "(($ac_try" in
24812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813 *) ac_try_echo=$ac_try;;
24814 esac
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816 (eval "$ac_compile") 2>conftest.er1
24817 ac_status=$?
24818 grep -v '^ *+' conftest.er1 >conftest.err
24819 rm -f conftest.er1
24820 cat conftest.err >&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); } && {
24823 test -z "$ac_c_werror_flag" ||
24824 test ! -s conftest.err
24825 } && test -s conftest.$ac_objext; then
24826 ac_cv_type_uint64=yes
24827 else
24828 echo "$as_me: failed program was:" >&5
24829 sed 's/^/| /' conftest.$ac_ext >&5
24831 ac_cv_type_uint64=no
24834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24836 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24837 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24838 if test $ac_cv_type_uint64 = yes; then
24840 cat >>confdefs.h <<_ACEOF
24841 #define HAVE_UINT64 1
24842 _ACEOF
24848 # We also check for sig_atomic_t, which *should* be defined per ANSI
24849 # C, but is missing on some old platforms.
24850 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24851 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24852 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855 cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h. */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 #include <signal.h>
24863 typedef sig_atomic_t ac__type_new_;
24865 main ()
24867 if ((ac__type_new_ *) 0)
24868 return 0;
24869 if (sizeof (ac__type_new_))
24870 return 0;
24872 return 0;
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (ac_try="$ac_compile"
24877 case "(($ac_try" in
24878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879 *) ac_try_echo=$ac_try;;
24880 esac
24881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882 (eval "$ac_compile") 2>conftest.er1
24883 ac_status=$?
24884 grep -v '^ *+' conftest.er1 >conftest.err
24885 rm -f conftest.er1
24886 cat conftest.err >&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } && {
24889 test -z "$ac_c_werror_flag" ||
24890 test ! -s conftest.err
24891 } && test -s conftest.$ac_objext; then
24892 ac_cv_type_sig_atomic_t=yes
24893 else
24894 echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24897 ac_cv_type_sig_atomic_t=no
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24903 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24904 if test $ac_cv_type_sig_atomic_t = yes; then
24906 cat >>confdefs.h <<_ACEOF
24907 #define HAVE_SIG_ATOMIC_T 1
24908 _ACEOF
24915 # If the user did not disable integer datetimes, check that
24916 # there is a working 64-bit integral type to use.
24917 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24918 test x"$HAVE_LONG_INT_64" = x"no" &&
24919 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24920 test x"$HAVE_INT64" = x"no" ; then
24921 { { echo "$as_me:$LINENO: error:
24922 Integer-based datetime support requires a 64-bit integer type,
24923 but no such type could be found. The --disable-integer-datetimes
24924 configure option can be used to disable integer-based storage
24925 of datetime values." >&5
24926 echo "$as_me: error:
24927 Integer-based datetime support requires a 64-bit integer type,
24928 but no such type could be found. The --disable-integer-datetimes
24929 configure option can be used to disable integer-based storage
24930 of datetime values." >&2;}
24931 { (exit 1); exit 1; }; }
24935 if test "$PORTNAME" != "win32"
24936 then
24937 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24938 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24939 if test "${pgac_cv_func_posix_signals+set}" = set; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24941 else
24942 cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h. */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 #include <signal.h>
24951 main ()
24953 struct sigaction act, oact;
24954 sigemptyset(&act.sa_mask);
24955 act.sa_flags = SA_RESTART;
24956 sigaction(0, &act, &oact);
24958 return 0;
24960 _ACEOF
24961 rm -f conftest.$ac_objext conftest$ac_exeext
24962 if { (ac_try="$ac_link"
24963 case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24966 esac
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_link") 2>conftest.er1
24969 ac_status=$?
24970 grep -v '^ *+' conftest.er1 >conftest.err
24971 rm -f conftest.er1
24972 cat conftest.err >&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest$ac_exeext &&
24978 $as_test_x conftest$ac_exeext; then
24979 pgac_cv_func_posix_signals=yes
24980 else
24981 echo "$as_me: failed program was:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24984 pgac_cv_func_posix_signals=no
24987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24988 conftest$ac_exeext conftest.$ac_ext
24990 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24991 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24992 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24994 cat >>confdefs.h <<\_ACEOF
24995 #define HAVE_POSIX_SIGNALS
24996 _ACEOF
24999 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
25001 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
25002 { { echo "$as_me:$LINENO: error:
25003 Thread-safety requires POSIX signals, which are not supported by this
25004 operating system." >&5
25005 echo "$as_me: error:
25006 Thread-safety requires POSIX signals, which are not supported by this
25007 operating system." >&2;}
25008 { (exit 1); exit 1; }; }
25012 if test $ac_cv_func_fseeko = yes; then
25013 # Check whether --enable-largefile was given.
25014 if test "${enable_largefile+set}" = set; then
25015 enableval=$enable_largefile;
25018 if test "$enable_largefile" != no; then
25020 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
25021 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
25022 if test "${ac_cv_sys_largefile_CC+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025 ac_cv_sys_largefile_CC=no
25026 if test "$GCC" != yes; then
25027 ac_save_CC=$CC
25028 while :; do
25029 # IRIX 6.2 and later do not support large files by default,
25030 # so use the C compiler's -n32 option if that helps.
25031 cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h. */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25037 #include <sys/types.h>
25038 /* Check that off_t can represent 2**63 - 1 correctly.
25039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25040 since some C++ compilers masquerading as C compilers
25041 incorrectly reject 9223372036854775807. */
25042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25044 && LARGE_OFF_T % 2147483647 == 1)
25045 ? 1 : -1];
25047 main ()
25051 return 0;
25053 _ACEOF
25054 rm -f conftest.$ac_objext
25055 if { (ac_try="$ac_compile"
25056 case "(($ac_try" in
25057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058 *) ac_try_echo=$ac_try;;
25059 esac
25060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25061 (eval "$ac_compile") 2>conftest.er1
25062 ac_status=$?
25063 grep -v '^ *+' conftest.er1 >conftest.err
25064 rm -f conftest.er1
25065 cat conftest.err >&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); } && {
25068 test -z "$ac_c_werror_flag" ||
25069 test ! -s conftest.err
25070 } && test -s conftest.$ac_objext; then
25071 break
25072 else
25073 echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25079 rm -f core conftest.err conftest.$ac_objext
25080 CC="$CC -n32"
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25089 ac_status=$?
25090 grep -v '^ *+' conftest.er1 >conftest.err
25091 rm -f conftest.er1
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.$ac_objext; then
25098 ac_cv_sys_largefile_CC=' -n32'; break
25099 else
25100 echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25106 rm -f core conftest.err conftest.$ac_objext
25107 break
25108 done
25109 CC=$ac_save_CC
25110 rm -f conftest.$ac_ext
25113 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
25114 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
25115 if test "$ac_cv_sys_largefile_CC" != no; then
25116 CC=$CC$ac_cv_sys_largefile_CC
25119 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25120 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25121 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124 while :; do
25125 cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h. */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h. */
25131 #include <sys/types.h>
25132 /* Check that off_t can represent 2**63 - 1 correctly.
25133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25134 since some C++ compilers masquerading as C compilers
25135 incorrectly reject 9223372036854775807. */
25136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25138 && LARGE_OFF_T % 2147483647 == 1)
25139 ? 1 : -1];
25141 main ()
25145 return 0;
25147 _ACEOF
25148 rm -f conftest.$ac_objext
25149 if { (ac_try="$ac_compile"
25150 case "(($ac_try" in
25151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25152 *) ac_try_echo=$ac_try;;
25153 esac
25154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25155 (eval "$ac_compile") 2>conftest.er1
25156 ac_status=$?
25157 grep -v '^ *+' conftest.er1 >conftest.err
25158 rm -f conftest.er1
25159 cat conftest.err >&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } && {
25162 test -z "$ac_c_werror_flag" ||
25163 test ! -s conftest.err
25164 } && test -s conftest.$ac_objext; then
25165 ac_cv_sys_file_offset_bits=no; break
25166 else
25167 echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25174 cat >conftest.$ac_ext <<_ACEOF
25175 /* confdefs.h. */
25176 _ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h. */
25180 #define _FILE_OFFSET_BITS 64
25181 #include <sys/types.h>
25182 /* Check that off_t can represent 2**63 - 1 correctly.
25183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25184 since some C++ compilers masquerading as C compilers
25185 incorrectly reject 9223372036854775807. */
25186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25188 && LARGE_OFF_T % 2147483647 == 1)
25189 ? 1 : -1];
25191 main ()
25195 return 0;
25197 _ACEOF
25198 rm -f conftest.$ac_objext
25199 if { (ac_try="$ac_compile"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_compile") 2>conftest.er1
25206 ac_status=$?
25207 grep -v '^ *+' conftest.er1 >conftest.err
25208 rm -f conftest.er1
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest.$ac_objext; then
25215 ac_cv_sys_file_offset_bits=64; break
25216 else
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25224 ac_cv_sys_file_offset_bits=unknown
25225 break
25226 done
25228 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25229 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25230 case $ac_cv_sys_file_offset_bits in #(
25231 no | unknown) ;;
25233 cat >>confdefs.h <<_ACEOF
25234 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25235 _ACEOF
25237 esac
25238 rm -f conftest*
25239 if test $ac_cv_sys_file_offset_bits = unknown; then
25240 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25241 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25242 if test "${ac_cv_sys_large_files+set}" = set; then
25243 echo $ECHO_N "(cached) $ECHO_C" >&6
25244 else
25245 while :; do
25246 cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h. */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h. */
25252 #include <sys/types.h>
25253 /* Check that off_t can represent 2**63 - 1 correctly.
25254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25255 since some C++ compilers masquerading as C compilers
25256 incorrectly reject 9223372036854775807. */
25257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25259 && LARGE_OFF_T % 2147483647 == 1)
25260 ? 1 : -1];
25262 main ()
25266 return 0;
25268 _ACEOF
25269 rm -f conftest.$ac_objext
25270 if { (ac_try="$ac_compile"
25271 case "(($ac_try" in
25272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273 *) ac_try_echo=$ac_try;;
25274 esac
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276 (eval "$ac_compile") 2>conftest.er1
25277 ac_status=$?
25278 grep -v '^ *+' conftest.er1 >conftest.err
25279 rm -f conftest.er1
25280 cat conftest.err >&5
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); } && {
25283 test -z "$ac_c_werror_flag" ||
25284 test ! -s conftest.err
25285 } && test -s conftest.$ac_objext; then
25286 ac_cv_sys_large_files=no; break
25287 else
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25295 cat >conftest.$ac_ext <<_ACEOF
25296 /* confdefs.h. */
25297 _ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25301 #define _LARGE_FILES 1
25302 #include <sys/types.h>
25303 /* Check that off_t can represent 2**63 - 1 correctly.
25304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25305 since some C++ compilers masquerading as C compilers
25306 incorrectly reject 9223372036854775807. */
25307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25309 && LARGE_OFF_T % 2147483647 == 1)
25310 ? 1 : -1];
25312 main ()
25316 return 0;
25318 _ACEOF
25319 rm -f conftest.$ac_objext
25320 if { (ac_try="$ac_compile"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326 (eval "$ac_compile") 2>conftest.er1
25327 ac_status=$?
25328 grep -v '^ *+' conftest.er1 >conftest.err
25329 rm -f conftest.er1
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } && {
25333 test -z "$ac_c_werror_flag" ||
25334 test ! -s conftest.err
25335 } && test -s conftest.$ac_objext; then
25336 ac_cv_sys_large_files=1; break
25337 else
25338 echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345 ac_cv_sys_large_files=unknown
25346 break
25347 done
25349 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25350 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25351 case $ac_cv_sys_large_files in #(
25352 no | unknown) ;;
25354 cat >>confdefs.h <<_ACEOF
25355 #define _LARGE_FILES $ac_cv_sys_large_files
25356 _ACEOF
25358 esac
25359 rm -f conftest*
25365 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25366 { echo "$as_me:$LINENO: checking for off_t" >&5
25367 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25368 if test "${ac_cv_type_off_t+set}" = set; then
25369 echo $ECHO_N "(cached) $ECHO_C" >&6
25370 else
25371 cat >conftest.$ac_ext <<_ACEOF
25372 /* confdefs.h. */
25373 _ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h. */
25377 $ac_includes_default
25378 typedef off_t ac__type_new_;
25380 main ()
25382 if ((ac__type_new_ *) 0)
25383 return 0;
25384 if (sizeof (ac__type_new_))
25385 return 0;
25387 return 0;
25389 _ACEOF
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25395 esac
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25398 ac_status=$?
25399 grep -v '^ *+' conftest.er1 >conftest.err
25400 rm -f conftest.er1
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.$ac_objext; then
25407 ac_cv_type_off_t=yes
25408 else
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ac_cv_type_off_t=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25418 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25420 # The cast to long int works around a bug in the HP C Compiler
25421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25423 # This bug is HP SR number 8606223364.
25424 { echo "$as_me:$LINENO: checking size of off_t" >&5
25425 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25426 if test "${ac_cv_sizeof_off_t+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429 if test "$cross_compiling" = yes; then
25430 # Depending upon the size, compute the lo and hi bounds.
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h. */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25437 $ac_includes_default
25438 typedef off_t ac__type_sizeof_;
25440 main ()
25442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25443 test_array [0] = 0
25446 return 0;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_compile") 2>conftest.er1
25457 ac_status=$?
25458 grep -v '^ *+' conftest.er1 >conftest.err
25459 rm -f conftest.er1
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } && {
25463 test -z "$ac_c_werror_flag" ||
25464 test ! -s conftest.err
25465 } && test -s conftest.$ac_objext; then
25466 ac_lo=0 ac_mid=0
25467 while :; do
25468 cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h. */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 $ac_includes_default
25475 typedef off_t ac__type_sizeof_;
25477 main ()
25479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25480 test_array [0] = 0
25483 return 0;
25485 _ACEOF
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25491 esac
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493 (eval "$ac_compile") 2>conftest.er1
25494 ac_status=$?
25495 grep -v '^ *+' conftest.er1 >conftest.err
25496 rm -f conftest.er1
25497 cat conftest.err >&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); } && {
25500 test -z "$ac_c_werror_flag" ||
25501 test ! -s conftest.err
25502 } && test -s conftest.$ac_objext; then
25503 ac_hi=$ac_mid; break
25504 else
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 ac_lo=`expr $ac_mid + 1`
25509 if test $ac_lo -le $ac_mid; then
25510 ac_lo= ac_hi=
25511 break
25513 ac_mid=`expr 2 '*' $ac_mid + 1`
25516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25517 done
25518 else
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h. */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 $ac_includes_default
25529 typedef off_t ac__type_sizeof_;
25531 main ()
25533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25534 test_array [0] = 0
25537 return 0;
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_compile") 2>conftest.er1
25548 ac_status=$?
25549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && {
25554 test -z "$ac_c_werror_flag" ||
25555 test ! -s conftest.err
25556 } && test -s conftest.$ac_objext; then
25557 ac_hi=-1 ac_mid=-1
25558 while :; do
25559 cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h. */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 $ac_includes_default
25566 typedef off_t ac__type_sizeof_;
25568 main ()
25570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25571 test_array [0] = 0
25574 return 0;
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25582 esac
25583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25584 (eval "$ac_compile") 2>conftest.er1
25585 ac_status=$?
25586 grep -v '^ *+' conftest.er1 >conftest.err
25587 rm -f conftest.er1
25588 cat conftest.err >&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } && {
25591 test -z "$ac_c_werror_flag" ||
25592 test ! -s conftest.err
25593 } && test -s conftest.$ac_objext; then
25594 ac_lo=$ac_mid; break
25595 else
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25599 ac_hi=`expr '(' $ac_mid ')' - 1`
25600 if test $ac_mid -le $ac_hi; then
25601 ac_lo= ac_hi=
25602 break
25604 ac_mid=`expr 2 '*' $ac_mid`
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 done
25609 else
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ac_lo= ac_hi=
25616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620 # Binary search between lo and hi bounds.
25621 while test "x$ac_lo" != "x$ac_hi"; do
25622 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25623 cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h. */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629 $ac_includes_default
25630 typedef off_t ac__type_sizeof_;
25632 main ()
25634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25635 test_array [0] = 0
25638 return 0;
25640 _ACEOF
25641 rm -f conftest.$ac_objext
25642 if { (ac_try="$ac_compile"
25643 case "(($ac_try" in
25644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25645 *) ac_try_echo=$ac_try;;
25646 esac
25647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25648 (eval "$ac_compile") 2>conftest.er1
25649 ac_status=$?
25650 grep -v '^ *+' conftest.er1 >conftest.err
25651 rm -f conftest.er1
25652 cat conftest.err >&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } && {
25655 test -z "$ac_c_werror_flag" ||
25656 test ! -s conftest.err
25657 } && test -s conftest.$ac_objext; then
25658 ac_hi=$ac_mid
25659 else
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25663 ac_lo=`expr '(' $ac_mid ')' + 1`
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667 done
25668 case $ac_lo in
25669 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25670 '') if test "$ac_cv_type_off_t" = yes; then
25671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25672 See \`config.log' for more details." >&5
25673 echo "$as_me: error: cannot compute sizeof (off_t)
25674 See \`config.log' for more details." >&2;}
25675 { (exit 77); exit 77; }; }
25676 else
25677 ac_cv_sizeof_off_t=0
25678 fi ;;
25679 esac
25680 else
25681 cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h. */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 $ac_includes_default
25688 typedef off_t ac__type_sizeof_;
25689 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25690 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25691 #include <stdio.h>
25692 #include <stdlib.h>
25694 main ()
25697 FILE *f = fopen ("conftest.val", "w");
25698 if (! f)
25699 return 1;
25700 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25702 long int i = longval ();
25703 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25704 return 1;
25705 fprintf (f, "%ld\n", i);
25707 else
25709 unsigned long int i = ulongval ();
25710 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25711 return 1;
25712 fprintf (f, "%lu\n", i);
25714 return ferror (f) || fclose (f) != 0;
25717 return 0;
25719 _ACEOF
25720 rm -f conftest$ac_exeext
25721 if { (ac_try="$ac_link"
25722 case "(($ac_try" in
25723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25724 *) ac_try_echo=$ac_try;;
25725 esac
25726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25727 (eval "$ac_link") 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25731 { (case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25734 esac
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736 (eval "$ac_try") 2>&5
25737 ac_status=$?
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; }; then
25740 ac_cv_sizeof_off_t=`cat conftest.val`
25741 else
25742 echo "$as_me: program exited with status $ac_status" >&5
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ( exit $ac_status )
25747 if test "$ac_cv_type_off_t" = yes; then
25748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25749 See \`config.log' for more details." >&5
25750 echo "$as_me: error: cannot compute sizeof (off_t)
25751 See \`config.log' for more details." >&2;}
25752 { (exit 77); exit 77; }; }
25753 else
25754 ac_cv_sizeof_off_t=0
25757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25759 rm -f conftest.val
25761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25762 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25766 cat >>confdefs.h <<_ACEOF
25767 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25768 _ACEOF
25772 # If we don't have largefile support, can't handle segsize >= 2GB.
25773 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25774 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25775 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25776 { (exit 1); exit 1; }; }
25779 # SunOS doesn't handle negative byte comparisons properly with +/- return
25780 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25781 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25782 if test "${ac_cv_func_memcmp_working+set}" = set; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
25784 else
25785 if test "$cross_compiling" = yes; then
25786 ac_cv_func_memcmp_working=no
25787 else
25788 cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h. */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h. */
25794 $ac_includes_default
25796 main ()
25799 /* Some versions of memcmp are not 8-bit clean. */
25800 char c0 = '\100', c1 = '\200', c2 = '\201';
25801 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25802 return 1;
25804 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25805 or more and with at least one buffer not starting on a 4-byte boundary.
25806 William Lewis provided this test program. */
25808 char foo[21];
25809 char bar[21];
25810 int i;
25811 for (i = 0; i < 4; i++)
25813 char *a = foo + i;
25814 char *b = bar + i;
25815 strcpy (a, "--------01111111");
25816 strcpy (b, "--------10000000");
25817 if (memcmp (a, b, 16) >= 0)
25818 return 1;
25820 return 0;
25824 return 0;
25826 _ACEOF
25827 rm -f conftest$ac_exeext
25828 if { (ac_try="$ac_link"
25829 case "(($ac_try" in
25830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831 *) ac_try_echo=$ac_try;;
25832 esac
25833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834 (eval "$ac_link") 2>&5
25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25838 { (case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25841 esac
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_try") 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_cv_func_memcmp_working=yes
25848 else
25849 echo "$as_me: program exited with status $ac_status" >&5
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 ( exit $ac_status )
25854 ac_cv_func_memcmp_working=no
25856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25861 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25862 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25863 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25864 *" memcmp.$ac_objext "* ) ;;
25865 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25867 esac
25872 # Select semaphore implementation type.
25873 if test "$PORTNAME" != "win32"; then
25874 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25876 cat >>confdefs.h <<\_ACEOF
25877 #define USE_NAMED_POSIX_SEMAPHORES 1
25878 _ACEOF
25880 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25881 else
25882 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25884 cat >>confdefs.h <<\_ACEOF
25885 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25886 _ACEOF
25888 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25889 else
25891 cat >>confdefs.h <<\_ACEOF
25892 #define USE_SYSV_SEMAPHORES 1
25893 _ACEOF
25895 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25898 else
25900 cat >>confdefs.h <<\_ACEOF
25901 #define USE_WIN32_SEMAPHORES 1
25902 _ACEOF
25904 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25908 # Select shared-memory implementation type.
25909 if test "$PORTNAME" != "win32"; then
25911 cat >>confdefs.h <<\_ACEOF
25912 #define USE_SYSV_SHARED_MEMORY 1
25913 _ACEOF
25915 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25916 else
25918 cat >>confdefs.h <<\_ACEOF
25919 #define USE_WIN32_SHARED_MEMORY 1
25920 _ACEOF
25922 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25925 # If not set in template file, set bytes to use libc memset()
25926 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25927 MEMSET_LOOP_LIMIT=1024
25930 cat >>confdefs.h <<_ACEOF
25931 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25932 _ACEOF
25936 if test "$enable_nls" = yes ; then
25938 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25939 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25940 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25941 echo $ECHO_N "(cached) $ECHO_C" >&6
25942 else
25943 ac_func_search_save_LIBS=$LIBS
25944 cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h. */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25951 /* Override any GCC internal prototype to avoid an error.
25952 Use char because int might match the return type of a GCC
25953 builtin and then its argument prototype would still apply. */
25954 #ifdef __cplusplus
25955 extern "C"
25956 #endif
25957 char bind_textdomain_codeset ();
25959 main ()
25961 return bind_textdomain_codeset ();
25963 return 0;
25965 _ACEOF
25966 for ac_lib in '' intl; do
25967 if test -z "$ac_lib"; then
25968 ac_res="none required"
25969 else
25970 ac_res=-l$ac_lib
25971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25973 rm -f conftest.$ac_objext conftest$ac_exeext
25974 if { (ac_try="$ac_link"
25975 case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25978 esac
25979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980 (eval "$ac_link") 2>conftest.er1
25981 ac_status=$?
25982 grep -v '^ *+' conftest.er1 >conftest.err
25983 rm -f conftest.er1
25984 cat conftest.err >&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } && {
25987 test -z "$ac_c_werror_flag" ||
25988 test ! -s conftest.err
25989 } && test -s conftest$ac_exeext &&
25990 $as_test_x conftest$ac_exeext; then
25991 ac_cv_search_bind_textdomain_codeset=$ac_res
25992 else
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26000 conftest$ac_exeext
26001 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26002 break
26004 done
26005 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26007 else
26008 ac_cv_search_bind_textdomain_codeset=no
26010 rm conftest.$ac_ext
26011 LIBS=$ac_func_search_save_LIBS
26013 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
26014 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
26015 ac_res=$ac_cv_search_bind_textdomain_codeset
26016 if test "$ac_res" != no; then
26017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26019 else
26020 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
26021 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
26022 { (exit 1); exit 1; }; }
26025 if test "${ac_cv_header_libintl_h+set}" = set; then
26026 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26027 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26028 if test "${ac_cv_header_libintl_h+set}" = set; then
26029 echo $ECHO_N "(cached) $ECHO_C" >&6
26031 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26032 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26033 else
26034 # Is the header compilable?
26035 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
26036 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
26037 cat >conftest.$ac_ext <<_ACEOF
26038 /* confdefs.h. */
26039 _ACEOF
26040 cat confdefs.h >>conftest.$ac_ext
26041 cat >>conftest.$ac_ext <<_ACEOF
26042 /* end confdefs.h. */
26043 $ac_includes_default
26044 #include <libintl.h>
26045 _ACEOF
26046 rm -f conftest.$ac_objext
26047 if { (ac_try="$ac_compile"
26048 case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26051 esac
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053 (eval "$ac_compile") 2>conftest.er1
26054 ac_status=$?
26055 grep -v '^ *+' conftest.er1 >conftest.err
26056 rm -f conftest.er1
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } && {
26060 test -z "$ac_c_werror_flag" ||
26061 test ! -s conftest.err
26062 } && test -s conftest.$ac_objext; then
26063 ac_header_compiler=yes
26064 else
26065 echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26068 ac_header_compiler=no
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26073 echo "${ECHO_T}$ac_header_compiler" >&6; }
26075 # Is the header present?
26076 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
26077 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
26078 cat >conftest.$ac_ext <<_ACEOF
26079 /* confdefs.h. */
26080 _ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26084 #include <libintl.h>
26085 _ACEOF
26086 if { (ac_try="$ac_cpp conftest.$ac_ext"
26087 case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26090 esac
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26093 ac_status=$?
26094 grep -v '^ *+' conftest.er1 >conftest.err
26095 rm -f conftest.er1
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } >/dev/null && {
26099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26100 test ! -s conftest.err
26101 }; then
26102 ac_header_preproc=yes
26103 else
26104 echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26107 ac_header_preproc=no
26110 rm -f conftest.err conftest.$ac_ext
26111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26112 echo "${ECHO_T}$ac_header_preproc" >&6; }
26114 # So? What about this header?
26115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26116 yes:no: )
26117 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26118 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
26120 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
26121 ac_header_preproc=yes
26123 no:yes:* )
26124 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26125 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26126 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26127 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26128 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26129 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26130 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26131 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26132 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26133 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26134 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26135 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26136 ( cat <<\_ASBOX
26137 ## ---------------------------------------- ##
26138 ## Report this to pgsql-bugs@postgresql.org ##
26139 ## ---------------------------------------- ##
26140 _ASBOX
26141 ) | sed "s/^/$as_me: WARNING: /" >&2
26143 esac
26144 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26145 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26146 if test "${ac_cv_header_libintl_h+set}" = set; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 else
26149 ac_cv_header_libintl_h=$ac_header_preproc
26151 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26152 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26155 if test $ac_cv_header_libintl_h = yes; then
26157 else
26158 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26159 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26160 { (exit 1); exit 1; }; }
26164 for ac_prog in msgfmt
26166 # Extract the first word of "$ac_prog", so it can be a program name with args.
26167 set dummy $ac_prog; ac_word=$2
26168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26170 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173 if test -n "$MSGFMT"; then
26174 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26175 else
26176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26177 for as_dir in $PATH
26179 IFS=$as_save_IFS
26180 test -z "$as_dir" && as_dir=.
26181 for ac_exec_ext in '' $ac_executable_extensions; do
26182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26183 ac_cv_prog_MSGFMT="$ac_prog"
26184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26185 break 2
26187 done
26188 done
26189 IFS=$as_save_IFS
26193 MSGFMT=$ac_cv_prog_MSGFMT
26194 if test -n "$MSGFMT"; then
26195 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26196 echo "${ECHO_T}$MSGFMT" >&6; }
26197 else
26198 { echo "$as_me:$LINENO: result: no" >&5
26199 echo "${ECHO_T}no" >&6; }
26203 test -n "$MSGFMT" && break
26204 done
26206 if test -z "$MSGFMT"; then
26207 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26208 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26209 { (exit 1); exit 1; }; }
26211 for ac_prog in msgmerge
26213 # Extract the first word of "$ac_prog", so it can be a program name with args.
26214 set dummy $ac_prog; ac_word=$2
26215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26217 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26220 if test -n "$MSGMERGE"; then
26221 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26222 else
26223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26224 for as_dir in $PATH
26226 IFS=$as_save_IFS
26227 test -z "$as_dir" && as_dir=.
26228 for ac_exec_ext in '' $ac_executable_extensions; do
26229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26230 ac_cv_prog_MSGMERGE="$ac_prog"
26231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26232 break 2
26234 done
26235 done
26236 IFS=$as_save_IFS
26240 MSGMERGE=$ac_cv_prog_MSGMERGE
26241 if test -n "$MSGMERGE"; then
26242 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26243 echo "${ECHO_T}$MSGMERGE" >&6; }
26244 else
26245 { echo "$as_me:$LINENO: result: no" >&5
26246 echo "${ECHO_T}no" >&6; }
26250 test -n "$MSGMERGE" && break
26251 done
26253 for ac_prog in xgettext
26255 # Extract the first word of "$ac_prog", so it can be a program name with args.
26256 set dummy $ac_prog; ac_word=$2
26257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26259 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26260 echo $ECHO_N "(cached) $ECHO_C" >&6
26261 else
26262 if test -n "$XGETTEXT"; then
26263 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26264 else
26265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26266 for as_dir in $PATH
26268 IFS=$as_save_IFS
26269 test -z "$as_dir" && as_dir=.
26270 for ac_exec_ext in '' $ac_executable_extensions; do
26271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26272 ac_cv_prog_XGETTEXT="$ac_prog"
26273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26274 break 2
26276 done
26277 done
26278 IFS=$as_save_IFS
26282 XGETTEXT=$ac_cv_prog_XGETTEXT
26283 if test -n "$XGETTEXT"; then
26284 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26285 echo "${ECHO_T}$XGETTEXT" >&6; }
26286 else
26287 { echo "$as_me:$LINENO: result: no" >&5
26288 echo "${ECHO_T}no" >&6; }
26292 test -n "$XGETTEXT" && break
26293 done
26298 # Check for Tcl configuration script tclConfig.sh
26299 if test "$with_tcl" = yes; then
26300 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
26302 # Extract the first word of "$ac_prog", so it can be a program name with args.
26303 set dummy $ac_prog; ac_word=$2
26304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26306 if test "${ac_cv_path_TCLSH+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 else
26309 case $TCLSH in
26310 [\\/]* | ?:[\\/]*)
26311 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26315 for as_dir in $PATH
26317 IFS=$as_save_IFS
26318 test -z "$as_dir" && as_dir=.
26319 for ac_exec_ext in '' $ac_executable_extensions; do
26320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26321 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26323 break 2
26325 done
26326 done
26327 IFS=$as_save_IFS
26330 esac
26332 TCLSH=$ac_cv_path_TCLSH
26333 if test -n "$TCLSH"; then
26334 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26335 echo "${ECHO_T}$TCLSH" >&6; }
26336 else
26337 { echo "$as_me:$LINENO: result: no" >&5
26338 echo "${ECHO_T}no" >&6; }
26342 test -n "$TCLSH" && break
26343 done
26345 if test x"$TCLSH" = x""; then
26346 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26347 echo "$as_me: error: Tcl shell not found" >&2;}
26348 { (exit 1); exit 1; }; }
26351 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26352 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26353 # Let user override test
26354 if test -z "$TCL_CONFIG_SH"; then
26355 pgac_test_dirs="$with_tclconfig"
26357 set X $pgac_test_dirs; shift
26358 if test $# -eq 0; then
26359 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26360 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26361 { (exit 1); exit 1; }; }
26362 set X `echo 'puts $auto_path' | $TCLSH`; shift
26365 for pgac_dir do
26366 if test -r "$pgac_dir/tclConfig.sh"; then
26367 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26368 break
26370 done
26373 if test -z "$TCL_CONFIG_SH"; then
26374 { echo "$as_me:$LINENO: result: no" >&5
26375 echo "${ECHO_T}no" >&6; }
26376 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26377 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26378 { (exit 1); exit 1; }; }
26379 else
26380 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26381 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26386 . "$TCL_CONFIG_SH"
26387 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26388 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26389 eval TCL_LIBS=\"$TCL_LIBS\"
26390 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26391 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26393 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26394 ac_save_CPPFLAGS=$CPPFLAGS
26395 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26396 if test "${ac_cv_header_tcl_h+set}" = set; then
26397 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26398 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26399 if test "${ac_cv_header_tcl_h+set}" = set; then
26400 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26403 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26404 else
26405 # Is the header compilable?
26406 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26407 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26408 cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h. */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26414 $ac_includes_default
26415 #include <tcl.h>
26416 _ACEOF
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26422 esac
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424 (eval "$ac_compile") 2>conftest.er1
26425 ac_status=$?
26426 grep -v '^ *+' conftest.er1 >conftest.err
26427 rm -f conftest.er1
26428 cat conftest.err >&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } && {
26431 test -z "$ac_c_werror_flag" ||
26432 test ! -s conftest.err
26433 } && test -s conftest.$ac_objext; then
26434 ac_header_compiler=yes
26435 else
26436 echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26439 ac_header_compiler=no
26442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26444 echo "${ECHO_T}$ac_header_compiler" >&6; }
26446 # Is the header present?
26447 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26448 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h. */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26455 #include <tcl.h>
26456 _ACEOF
26457 if { (ac_try="$ac_cpp conftest.$ac_ext"
26458 case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26461 esac
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26464 ac_status=$?
26465 grep -v '^ *+' conftest.er1 >conftest.err
26466 rm -f conftest.er1
26467 cat conftest.err >&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); } >/dev/null && {
26470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26471 test ! -s conftest.err
26472 }; then
26473 ac_header_preproc=yes
26474 else
26475 echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26478 ac_header_preproc=no
26481 rm -f conftest.err conftest.$ac_ext
26482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26483 echo "${ECHO_T}$ac_header_preproc" >&6; }
26485 # So? What about this header?
26486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26487 yes:no: )
26488 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26489 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26490 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26491 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26492 ac_header_preproc=yes
26494 no:yes:* )
26495 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26496 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26497 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26498 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26499 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26500 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26502 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26503 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26504 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26505 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26506 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26507 ( cat <<\_ASBOX
26508 ## ---------------------------------------- ##
26509 ## Report this to pgsql-bugs@postgresql.org ##
26510 ## ---------------------------------------- ##
26511 _ASBOX
26512 ) | sed "s/^/$as_me: WARNING: /" >&2
26514 esac
26515 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26516 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26517 if test "${ac_cv_header_tcl_h+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 else
26520 ac_cv_header_tcl_h=$ac_header_preproc
26522 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26523 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26526 if test $ac_cv_header_tcl_h = yes; then
26528 else
26529 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26530 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26531 { (exit 1); exit 1; }; }
26535 CPPFLAGS=$ac_save_CPPFLAGS
26539 # Check for DocBook and tools
26541 for ac_prog in onsgmls nsgmls
26543 # Extract the first word of "$ac_prog", so it can be a program name with args.
26544 set dummy $ac_prog; ac_word=$2
26545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26547 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26549 else
26550 if test -n "$NSGMLS"; then
26551 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26552 else
26553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26554 for as_dir in $PATH
26556 IFS=$as_save_IFS
26557 test -z "$as_dir" && as_dir=.
26558 for ac_exec_ext in '' $ac_executable_extensions; do
26559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26560 ac_cv_prog_NSGMLS="$ac_prog"
26561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26562 break 2
26564 done
26565 done
26566 IFS=$as_save_IFS
26570 NSGMLS=$ac_cv_prog_NSGMLS
26571 if test -n "$NSGMLS"; then
26572 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26573 echo "${ECHO_T}$NSGMLS" >&6; }
26574 else
26575 { echo "$as_me:$LINENO: result: no" >&5
26576 echo "${ECHO_T}no" >&6; }
26580 test -n "$NSGMLS" && break
26581 done
26583 for ac_prog in openjade jade
26585 # Extract the first word of "$ac_prog", so it can be a program name with args.
26586 set dummy $ac_prog; ac_word=$2
26587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26589 if test "${ac_cv_prog_JADE+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592 if test -n "$JADE"; then
26593 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26594 else
26595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 for as_dir in $PATH
26598 IFS=$as_save_IFS
26599 test -z "$as_dir" && as_dir=.
26600 for ac_exec_ext in '' $ac_executable_extensions; do
26601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26602 ac_cv_prog_JADE="$ac_prog"
26603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26604 break 2
26606 done
26607 done
26608 IFS=$as_save_IFS
26612 JADE=$ac_cv_prog_JADE
26613 if test -n "$JADE"; then
26614 { echo "$as_me:$LINENO: result: $JADE" >&5
26615 echo "${ECHO_T}$JADE" >&6; }
26616 else
26617 { echo "$as_me:$LINENO: result: no" >&5
26618 echo "${ECHO_T}no" >&6; }
26622 test -n "$JADE" && break
26623 done
26626 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26627 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26628 if test "${pgac_cv_check_docbook+set}" = set; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26630 else
26631 cat >conftest.sgml <<EOF
26632 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26633 <book>
26634 <title>test</title>
26635 <chapter>
26636 <title>random</title>
26637 <sect1>
26638 <title>testsect</title>
26639 <para>text</para>
26640 </sect1>
26641 </chapter>
26642 </book>
26645 pgac_cv_check_docbook=no
26647 if test -n "$NSGMLS"; then
26648 $NSGMLS -s conftest.sgml 1>&5 2>&1
26649 if test $? -eq 0; then
26650 pgac_cv_check_docbook=yes
26653 rm -f conftest.sgml
26655 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26656 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26658 have_docbook=$pgac_cv_check_docbook
26661 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26662 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26663 if test "${pgac_cv_path_stylesheets+set}" = set; then
26664 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 else
26666 if test -n "$DOCBOOKSTYLE"; then
26667 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26668 else
26669 for pgac_prefix in /usr /usr/local /opt /sw; do
26670 for pgac_infix in share lib; do
26671 for pgac_postfix in \
26672 sgml/stylesheets/nwalsh-modular \
26673 sgml/stylesheets/docbook \
26674 sgml/stylesheets/dsssl/docbook \
26675 sgml/docbook-dsssl \
26676 sgml/docbook/dsssl/modular \
26677 sgml/docbook/stylesheet/dsssl/modular \
26678 sgml/docbook/dsssl-stylesheets \
26679 sgml/dsssl/docbook-dsssl-nwalsh
26681 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26682 if test -r "$pgac_candidate/html/docbook.dsl" \
26683 && test -r "$pgac_candidate/print/docbook.dsl"
26684 then
26685 pgac_cv_path_stylesheets=$pgac_candidate
26686 break 3
26688 done
26689 done
26690 done
26694 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26696 if test -n "$DOCBOOKSTYLE"; then
26697 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26698 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26699 else
26700 { echo "$as_me:$LINENO: result: no" >&5
26701 echo "${ECHO_T}no" >&6; }
26703 if test -n "$DOCBOOKSTYLE"; then
26704 for ac_prog in collateindex.pl
26706 # Extract the first word of "$ac_prog", so it can be a program name with args.
26707 set dummy $ac_prog; ac_word=$2
26708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26710 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 else
26713 case $COLLATEINDEX in
26714 [\\/]* | ?:[\\/]*)
26715 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26719 for as_dir in $DOCBOOKSTYLE/bin $PATH
26721 IFS=$as_save_IFS
26722 test -z "$as_dir" && as_dir=.
26723 for ac_exec_ext in '' $ac_executable_extensions; do
26724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26725 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26727 break 2
26729 done
26730 done
26731 IFS=$as_save_IFS
26734 esac
26736 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26737 if test -n "$COLLATEINDEX"; then
26738 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26739 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26740 else
26741 { echo "$as_me:$LINENO: result: no" >&5
26742 echo "${ECHO_T}no" >&6; }
26746 test -n "$COLLATEINDEX" && break
26747 done
26749 else
26750 for ac_prog in collateindex.pl
26752 # Extract the first word of "$ac_prog", so it can be a program name with args.
26753 set dummy $ac_prog; ac_word=$2
26754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26756 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26758 else
26759 case $COLLATEINDEX in
26760 [\\/]* | ?:[\\/]*)
26761 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 for as_dir in $PATH
26767 IFS=$as_save_IFS
26768 test -z "$as_dir" && as_dir=.
26769 for ac_exec_ext in '' $ac_executable_extensions; do
26770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26771 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26773 break 2
26775 done
26776 done
26777 IFS=$as_save_IFS
26780 esac
26782 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26783 if test -n "$COLLATEINDEX"; then
26784 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26785 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26786 else
26787 { echo "$as_me:$LINENO: result: no" >&5
26788 echo "${ECHO_T}no" >&6; }
26792 test -n "$COLLATEINDEX" && break
26793 done
26796 for ac_prog in sgmlspl
26798 # Extract the first word of "$ac_prog", so it can be a program name with args.
26799 set dummy $ac_prog; ac_word=$2
26800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26802 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804 else
26805 if test -n "$SGMLSPL"; then
26806 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26807 else
26808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26809 for as_dir in $PATH
26811 IFS=$as_save_IFS
26812 test -z "$as_dir" && as_dir=.
26813 for ac_exec_ext in '' $ac_executable_extensions; do
26814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26815 ac_cv_prog_SGMLSPL="$ac_prog"
26816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26817 break 2
26819 done
26820 done
26821 IFS=$as_save_IFS
26825 SGMLSPL=$ac_cv_prog_SGMLSPL
26826 if test -n "$SGMLSPL"; then
26827 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26828 echo "${ECHO_T}$SGMLSPL" >&6; }
26829 else
26830 { echo "$as_me:$LINENO: result: no" >&5
26831 echo "${ECHO_T}no" >&6; }
26835 test -n "$SGMLSPL" && break
26836 done
26838 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26839 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26840 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843 if test -z "$DOCBOOK2MAN"; then
26844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26845 for as_dir in $PATH
26847 IFS=$as_save_IFS
26848 test -z "$as_dir" && as_dir=.
26849 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26850 ac_path="$as_dir/$ac_prog"
26851 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26852 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26853 ac_cv_path_DOCBOOK2MAN=$ac_path
26854 break
26856 done
26857 done
26858 IFS=$as_save_IFS
26860 else
26861 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26864 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26865 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26866 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26870 # Thread testing
26872 # We have to run the thread test near the end so we have all our symbols
26873 # defined. Cross compiling throws a warning.
26875 if test "$enable_thread_safety_force" = yes; then
26876 if test "$PORTNAME" != "win32"
26877 then
26878 { echo "$as_me:$LINENO: WARNING:
26879 *** Skipping thread test program. --enable-thread-safety-force was used.
26880 *** Run the program in src/test/thread on the your machine and add proper
26881 *** locking function calls to your applications to guarantee thread safety.
26882 " >&5
26883 echo "$as_me: WARNING:
26884 *** Skipping thread test program. --enable-thread-safety-force was used.
26885 *** Run the program in src/test/thread on the your machine and add proper
26886 *** locking function calls to your applications to guarantee thread safety.
26887 " >&2;}
26888 else
26889 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26890 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26892 elif test "$enable_thread_safety" = yes; then
26893 if test "$PORTNAME" != "win32"
26894 then
26895 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26896 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26898 _CFLAGS="$CFLAGS"
26899 _LIBS="$LIBS"
26900 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26901 LIBS="$LIBS $PTHREAD_LIBS"
26902 if test "$cross_compiling" = yes; then
26903 { echo "$as_me:$LINENO: result: maybe" >&5
26904 echo "${ECHO_T}maybe" >&6; }
26905 { echo "$as_me:$LINENO: WARNING:
26906 *** Skipping thread test program because of cross-compile build.
26907 *** Run the program in src/test/thread on the target machine.
26908 " >&5
26909 echo "$as_me: WARNING:
26910 *** Skipping thread test program because of cross-compile build.
26911 *** Run the program in src/test/thread on the target machine.
26912 " >&2;}
26913 else
26914 cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h. */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 #include "$srcdir/src/test/thread/thread_test.c"
26921 _ACEOF
26922 rm -f conftest$ac_exeext
26923 if { (ac_try="$ac_link"
26924 case "(($ac_try" in
26925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926 *) ac_try_echo=$ac_try;;
26927 esac
26928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929 (eval "$ac_link") 2>&5
26930 ac_status=$?
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26933 { (case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26936 esac
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938 (eval "$ac_try") 2>&5
26939 ac_status=$?
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; }; then
26942 { echo "$as_me:$LINENO: result: yes" >&5
26943 echo "${ECHO_T}yes" >&6; }
26944 else
26945 echo "$as_me: program exited with status $ac_status" >&5
26946 echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26949 ( exit $ac_status )
26950 { echo "$as_me:$LINENO: result: no" >&5
26951 echo "${ECHO_T}no" >&6; }
26952 { { echo "$as_me:$LINENO: error: thread test program failed
26953 This platform is not thread-safe. Check the file 'config.log' for the
26954 exact reason.
26956 You can use the configure option --enable-thread-safety-force to force
26957 threads to be enabled. But you must then run the program in
26958 src/test/thread and add locking function calls to your applications to
26959 guarantee thread safety." >&5
26960 echo "$as_me: error: thread test program failed
26961 This platform is not thread-safe. Check the file 'config.log' for the
26962 exact reason.
26964 You can use the configure option --enable-thread-safety-force to force
26965 threads to be enabled. But you must then run the program in
26966 src/test/thread and add locking function calls to your applications to
26967 guarantee thread safety." >&2;}
26968 { (exit 1); exit 1; }; }
26970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26974 CFLAGS="$_CFLAGS"
26975 LIBS="$_LIBS"
26976 else
26977 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26978 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26982 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26983 # This is much easier than trying to filter LIBS to the minimum for each
26984 # executable. (Note that shared library links won't use this switch, though.)
26985 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26986 # libreadline; therefore we postpone testing it until we know what library
26987 # dependencies readline has. The test code will try to link with $LIBS.
26988 if test "$with_readline" = yes; then
26989 link_test_func=readline
26990 else
26991 link_test_func=exit
26993 if test "$PORTNAME" != "darwin"; then
26994 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26995 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26996 pgac_save_LDFLAGS=$LDFLAGS
26997 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26998 if test "$cross_compiling" = yes; then
26999 LDFLAGS="$pgac_save_LDFLAGS"
27000 { echo "$as_me:$LINENO: result: assuming no" >&5
27001 echo "${ECHO_T}assuming no" >&6; }
27002 else
27003 cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h. */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27011 main ()
27015 return 0;
27017 _ACEOF
27018 rm -f conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_link") 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27029 { (case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27032 esac
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034 (eval "$ac_try") 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; }; then
27038 { echo "$as_me:$LINENO: result: yes" >&5
27039 echo "${ECHO_T}yes" >&6; }
27040 else
27041 echo "$as_me: program exited with status $ac_status" >&5
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27045 ( exit $ac_status )
27046 LDFLAGS="$pgac_save_LDFLAGS"
27047 { echo "$as_me:$LINENO: result: no" >&5
27048 echo "${ECHO_T}no" >&6; }
27050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27055 else
27056 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
27057 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
27058 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
27059 pgac_save_LDFLAGS=$LDFLAGS
27060 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
27061 if test "$cross_compiling" = yes; then
27062 LDFLAGS="$pgac_save_LDFLAGS"
27063 { echo "$as_me:$LINENO: result: assuming no" >&5
27064 echo "${ECHO_T}assuming no" >&6; }
27065 else
27066 cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h. */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h. */
27072 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27074 main ()
27078 return 0;
27080 _ACEOF
27081 rm -f conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_link") 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27092 { (case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_try") 2>&5
27098 ac_status=$?
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); }; }; then
27101 { echo "$as_me:$LINENO: result: yes" >&5
27102 echo "${ECHO_T}yes" >&6; }
27103 else
27104 echo "$as_me: program exited with status $ac_status" >&5
27105 echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27108 ( exit $ac_status )
27109 LDFLAGS="$pgac_save_LDFLAGS"
27110 { echo "$as_me:$LINENO: result: no" >&5
27111 echo "${ECHO_T}no" >&6; }
27113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27121 # Begin output steps
27123 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27124 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27125 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27126 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27127 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27128 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27130 # Create compiler version string
27131 if test x"$GCC" = x"yes" ; then
27132 cc_string="GCC `${CC} --version | sed q`"
27133 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27134 cc_string=`${CC} -V 2>&1 | sed q`
27135 else
27136 cc_string=$CC
27140 cat >>confdefs.h <<_ACEOF
27141 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
27142 _ACEOF
27145 # Supply a numeric version string for use by 3rd party add-ons
27146 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27147 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
27148 tr '.' ' ' |
27149 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27151 cat >>confdefs.h <<_ACEOF
27152 #define PG_VERSION_NUM $PG_VERSION_NUM
27153 _ACEOF
27157 # prepare build tree if outside source tree
27158 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27159 # Note 2: /bin/pwd might be better than shell's built-in at getting
27160 # a symlink-free name.
27161 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
27162 vpath_build=no
27163 else
27164 vpath_build=yes
27165 if test "$no_create" != yes; then
27166 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27167 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27168 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27169 || { { echo "$as_me:$LINENO: error: failed" >&5
27170 echo "$as_me: error: failed" >&2;}
27171 { (exit 1); exit 1; }; }
27172 { echo "$as_me:$LINENO: result: done" >&5
27173 echo "${ECHO_T}done" >&6; }
27179 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27182 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}"
27185 if test "$PORTNAME" = "win32"; then
27186 ac_config_commands="$ac_config_commands check_win32_symlinks"
27190 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27193 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27196 cat >confcache <<\_ACEOF
27197 # This file is a shell script that caches the results of configure
27198 # tests run on this system so they can be shared between configure
27199 # scripts and configure runs, see configure's option --config-cache.
27200 # It is not useful on other systems. If it contains results you don't
27201 # want to keep, you may remove or edit it.
27203 # config.status only pays attention to the cache file if you give it
27204 # the --recheck option to rerun configure.
27206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27208 # following values.
27210 _ACEOF
27212 # The following way of writing the cache mishandles newlines in values,
27213 # but we know of no workaround that is simple, portable, and efficient.
27214 # So, we kill variables containing newlines.
27215 # Ultrix sh set writes to stderr and can't be redirected directly,
27216 # and sets the high bit in the cache file unless we assign to the vars.
27218 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27219 eval ac_val=\$$ac_var
27220 case $ac_val in #(
27221 *${as_nl}*)
27222 case $ac_var in #(
27223 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27224 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27225 esac
27226 case $ac_var in #(
27227 _ | IFS | as_nl) ;; #(
27228 *) $as_unset $ac_var ;;
27229 esac ;;
27230 esac
27231 done
27233 (set) 2>&1 |
27234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27235 *${as_nl}ac_space=\ *)
27236 # `set' does not quote correctly, so add quotes (double-quote
27237 # substitution turns \\\\ into \\, and sed turns \\ into \).
27238 sed -n \
27239 "s/'/'\\\\''/g;
27240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27241 ;; #(
27243 # `set' quotes correctly as required by POSIX, so do not add quotes.
27244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27246 esac |
27247 sort
27249 sed '
27250 /^ac_cv_env_/b end
27251 t clear
27252 :clear
27253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27254 t end
27255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27256 :end' >>confcache
27257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27258 if test -w "$cache_file"; then
27259 test "x$cache_file" != "x/dev/null" &&
27260 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27261 echo "$as_me: updating cache $cache_file" >&6;}
27262 cat confcache >$cache_file
27263 else
27264 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27265 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27268 rm -f confcache
27270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27271 # Let make expand exec_prefix.
27272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27274 DEFS=-DHAVE_CONFIG_H
27276 ac_libobjs=
27277 ac_ltlibobjs=
27278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27279 # 1. Remove the extension, and $U if already installed.
27280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27281 ac_i=`echo "$ac_i" | sed "$ac_script"`
27282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27283 # will be set to the directory where LIBOBJS objects are built.
27284 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27285 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27286 done
27287 LIBOBJS=$ac_libobjs
27289 LTLIBOBJS=$ac_ltlibobjs
27293 : ${CONFIG_STATUS=./config.status}
27294 ac_clean_files_save=$ac_clean_files
27295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27298 cat >$CONFIG_STATUS <<_ACEOF
27299 #! $SHELL
27300 # Generated by $as_me.
27301 # Run this file to recreate the current configuration.
27302 # Compiler output produced by configure, useful for debugging
27303 # configure, is in config.log if it exists.
27305 debug=false
27306 ac_cs_recheck=false
27307 ac_cs_silent=false
27308 SHELL=\${CONFIG_SHELL-$SHELL}
27309 _ACEOF
27311 cat >>$CONFIG_STATUS <<\_ACEOF
27312 ## --------------------- ##
27313 ## M4sh Initialization. ##
27314 ## --------------------- ##
27316 # Be more Bourne compatible
27317 DUALCASE=1; export DUALCASE # for MKS sh
27318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27319 emulate sh
27320 NULLCMD=:
27321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27322 # is contrary to our usage. Disable this feature.
27323 alias -g '${1+"$@"}'='"$@"'
27324 setopt NO_GLOB_SUBST
27325 else
27326 case `(set -o) 2>/dev/null` in
27327 *posix*) set -o posix ;;
27328 esac
27335 # PATH needs CR
27336 # Avoid depending upon Character Ranges.
27337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27340 as_cr_digits='0123456789'
27341 as_cr_alnum=$as_cr_Letters$as_cr_digits
27343 # The user is always right.
27344 if test "${PATH_SEPARATOR+set}" != set; then
27345 echo "#! /bin/sh" >conf$$.sh
27346 echo "exit 0" >>conf$$.sh
27347 chmod +x conf$$.sh
27348 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27349 PATH_SEPARATOR=';'
27350 else
27351 PATH_SEPARATOR=:
27353 rm -f conf$$.sh
27356 # Support unset when possible.
27357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27358 as_unset=unset
27359 else
27360 as_unset=false
27364 # IFS
27365 # We need space, tab and new line, in precisely that order. Quoting is
27366 # there to prevent editors from complaining about space-tab.
27367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27368 # splitting by setting IFS to empty value.)
27369 as_nl='
27371 IFS=" "" $as_nl"
27373 # Find who we are. Look in the path if we contain no directory separator.
27374 case $0 in
27375 *[\\/]* ) as_myself=$0 ;;
27376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377 for as_dir in $PATH
27379 IFS=$as_save_IFS
27380 test -z "$as_dir" && as_dir=.
27381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27382 done
27383 IFS=$as_save_IFS
27386 esac
27387 # We did not find ourselves, most probably we were run as `sh COMMAND'
27388 # in which case we are not to be found in the path.
27389 if test "x$as_myself" = x; then
27390 as_myself=$0
27392 if test ! -f "$as_myself"; then
27393 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27394 { (exit 1); exit 1; }
27397 # Work around bugs in pre-3.0 UWIN ksh.
27398 for as_var in ENV MAIL MAILPATH
27399 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27400 done
27401 PS1='$ '
27402 PS2='> '
27403 PS4='+ '
27405 # NLS nuisances.
27406 for as_var in \
27407 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27408 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27409 LC_TELEPHONE LC_TIME
27411 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27412 eval $as_var=C; export $as_var
27413 else
27414 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27416 done
27418 # Required to use basename.
27419 if expr a : '\(a\)' >/dev/null 2>&1 &&
27420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27421 as_expr=expr
27422 else
27423 as_expr=false
27426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27427 as_basename=basename
27428 else
27429 as_basename=false
27433 # Name of the executable.
27434 as_me=`$as_basename -- "$0" ||
27435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27436 X"$0" : 'X\(//\)$' \| \
27437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27438 echo X/"$0" |
27439 sed '/^.*\/\([^/][^/]*\)\/*$/{
27440 s//\1/
27443 /^X\/\(\/\/\)$/{
27444 s//\1/
27447 /^X\/\(\/\).*/{
27448 s//\1/
27451 s/.*/./; q'`
27453 # CDPATH.
27454 $as_unset CDPATH
27458 as_lineno_1=$LINENO
27459 as_lineno_2=$LINENO
27460 test "x$as_lineno_1" != "x$as_lineno_2" &&
27461 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27463 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27464 # uniformly replaced by the line number. The first 'sed' inserts a
27465 # line-number line after each line using $LINENO; the second 'sed'
27466 # does the real work. The second script uses 'N' to pair each
27467 # line-number line with the line containing $LINENO, and appends
27468 # trailing '-' during substitution so that $LINENO is not a special
27469 # case at line end.
27470 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27471 # scripts with optimization help from Paolo Bonzini. Blame Lee
27472 # E. McMahon (1931-1989) for sed's syntax. :-)
27473 sed -n '
27475 /[$]LINENO/=
27476 ' <$as_myself |
27477 sed '
27478 s/[$]LINENO.*/&-/
27479 t lineno
27481 :lineno
27483 :loop
27484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27485 t loop
27486 s/-\n.*//
27487 ' >$as_me.lineno &&
27488 chmod +x "$as_me.lineno" ||
27489 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27490 { (exit 1); exit 1; }; }
27492 # Don't try to exec as it changes $[0], causing all sort of problems
27493 # (the dirname of $[0] is not the place where we might find the
27494 # original and so on. Autoconf is especially sensitive to this).
27495 . "./$as_me.lineno"
27496 # Exit status is that of the last command.
27497 exit
27501 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27502 as_dirname=dirname
27503 else
27504 as_dirname=false
27507 ECHO_C= ECHO_N= ECHO_T=
27508 case `echo -n x` in
27509 -n*)
27510 case `echo 'x\c'` in
27511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27512 *) ECHO_C='\c';;
27513 esac;;
27515 ECHO_N='-n';;
27516 esac
27518 if expr a : '\(a\)' >/dev/null 2>&1 &&
27519 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27520 as_expr=expr
27521 else
27522 as_expr=false
27525 rm -f conf$$ conf$$.exe conf$$.file
27526 if test -d conf$$.dir; then
27527 rm -f conf$$.dir/conf$$.file
27528 else
27529 rm -f conf$$.dir
27530 mkdir conf$$.dir
27532 echo >conf$$.file
27533 if ln -s conf$$.file conf$$ 2>/dev/null; then
27534 as_ln_s='ln -s'
27535 # ... but there are two gotchas:
27536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27538 # In both cases, we have to default to `cp -p'.
27539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27540 as_ln_s='cp -p'
27541 elif ln conf$$.file conf$$ 2>/dev/null; then
27542 as_ln_s=ln
27543 else
27544 as_ln_s='cp -p'
27546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27547 rmdir conf$$.dir 2>/dev/null
27549 if mkdir -p . 2>/dev/null; then
27550 as_mkdir_p=:
27551 else
27552 test -d ./-p && rmdir ./-p
27553 as_mkdir_p=false
27556 if test -x / >/dev/null 2>&1; then
27557 as_test_x='test -x'
27558 else
27559 if ls -dL / >/dev/null 2>&1; then
27560 as_ls_L_option=L
27561 else
27562 as_ls_L_option=
27564 as_test_x='
27565 eval sh -c '\''
27566 if test -d "$1"; then
27567 test -d "$1/.";
27568 else
27569 case $1 in
27570 -*)set "./$1";;
27571 esac;
27572 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27573 ???[sx]*):;;*)false;;esac;fi
27574 '\'' sh
27577 as_executable_p=$as_test_x
27579 # Sed expression to map a string onto a valid CPP name.
27580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27582 # Sed expression to map a string onto a valid variable name.
27583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27586 exec 6>&1
27588 # Save the log message, to keep $[0] and so on meaningful, and to
27589 # report actual input values of CONFIG_FILES etc. instead of their
27590 # values after options handling.
27591 ac_log="
27592 This file was extended by PostgreSQL $as_me 8.4devel, which was
27593 generated by GNU Autoconf 2.61. Invocation command line was
27595 CONFIG_FILES = $CONFIG_FILES
27596 CONFIG_HEADERS = $CONFIG_HEADERS
27597 CONFIG_LINKS = $CONFIG_LINKS
27598 CONFIG_COMMANDS = $CONFIG_COMMANDS
27599 $ $0 $@
27601 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27604 _ACEOF
27606 cat >>$CONFIG_STATUS <<_ACEOF
27607 # Files that config.status was made for.
27608 config_files="$ac_config_files"
27609 config_headers="$ac_config_headers"
27610 config_links="$ac_config_links"
27611 config_commands="$ac_config_commands"
27613 _ACEOF
27615 cat >>$CONFIG_STATUS <<\_ACEOF
27616 ac_cs_usage="\
27617 \`$as_me' instantiates files from templates according to the
27618 current configuration.
27620 Usage: $0 [OPTIONS] [FILE]...
27622 -h, --help print this help, then exit
27623 -V, --version print version number and configuration settings, then exit
27624 -q, --quiet do not print progress messages
27625 -d, --debug don't remove temporary files
27626 --recheck update $as_me by reconfiguring in the same conditions
27627 --file=FILE[:TEMPLATE]
27628 instantiate the configuration file FILE
27629 --header=FILE[:TEMPLATE]
27630 instantiate the configuration header FILE
27632 Configuration files:
27633 $config_files
27635 Configuration headers:
27636 $config_headers
27638 Configuration links:
27639 $config_links
27641 Configuration commands:
27642 $config_commands
27644 Report bugs to <bug-autoconf@gnu.org>."
27646 _ACEOF
27647 cat >>$CONFIG_STATUS <<_ACEOF
27648 ac_cs_version="\\
27649 PostgreSQL config.status 8.4devel
27650 configured by $0, generated by GNU Autoconf 2.61,
27651 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27653 Copyright (C) 2006 Free Software Foundation, Inc.
27654 This config.status script is free software; the Free Software Foundation
27655 gives unlimited permission to copy, distribute and modify it."
27657 ac_pwd='$ac_pwd'
27658 srcdir='$srcdir'
27659 _ACEOF
27661 cat >>$CONFIG_STATUS <<\_ACEOF
27662 # If no file are specified by the user, then we need to provide default
27663 # value. By we need to know if files were specified by the user.
27664 ac_need_defaults=:
27665 while test $# != 0
27667 case $1 in
27668 --*=*)
27669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27671 ac_shift=:
27674 ac_option=$1
27675 ac_optarg=$2
27676 ac_shift=shift
27678 esac
27680 case $ac_option in
27681 # Handling of the options.
27682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27683 ac_cs_recheck=: ;;
27684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27685 echo "$ac_cs_version"; exit ;;
27686 --debug | --debu | --deb | --de | --d | -d )
27687 debug=: ;;
27688 --file | --fil | --fi | --f )
27689 $ac_shift
27690 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27691 ac_need_defaults=false;;
27692 --header | --heade | --head | --hea )
27693 $ac_shift
27694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27695 ac_need_defaults=false;;
27696 --he | --h)
27697 # Conflict between --help and --header
27698 { echo "$as_me: error: ambiguous option: $1
27699 Try \`$0 --help' for more information." >&2
27700 { (exit 1); exit 1; }; };;
27701 --help | --hel | -h )
27702 echo "$ac_cs_usage"; exit ;;
27703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27705 ac_cs_silent=: ;;
27707 # This is an error.
27708 -*) { echo "$as_me: error: unrecognized option: $1
27709 Try \`$0 --help' for more information." >&2
27710 { (exit 1); exit 1; }; } ;;
27712 *) ac_config_targets="$ac_config_targets $1"
27713 ac_need_defaults=false ;;
27715 esac
27716 shift
27717 done
27719 ac_configure_extra_args=
27721 if $ac_cs_silent; then
27722 exec 6>/dev/null
27723 ac_configure_extra_args="$ac_configure_extra_args --silent"
27726 _ACEOF
27727 cat >>$CONFIG_STATUS <<_ACEOF
27728 if \$ac_cs_recheck; then
27729 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27730 CONFIG_SHELL=$SHELL
27731 export CONFIG_SHELL
27732 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27735 _ACEOF
27736 cat >>$CONFIG_STATUS <<\_ACEOF
27737 exec 5>>config.log
27739 echo
27740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27741 ## Running $as_me. ##
27742 _ASBOX
27743 echo "$ac_log"
27744 } >&5
27746 _ACEOF
27747 cat >>$CONFIG_STATUS <<_ACEOF
27748 _ACEOF
27750 cat >>$CONFIG_STATUS <<\_ACEOF
27752 # Handling of arguments.
27753 for ac_config_target in $ac_config_targets
27755 case $ac_config_target in
27756 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27757 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27758 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27759 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27760 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27761 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27762 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27763 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27764 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27765 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27766 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27767 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27771 { (exit 1); exit 1; }; };;
27772 esac
27773 done
27776 # If the user did not use the arguments to specify the items to instantiate,
27777 # then the envvar interface is used. Set only those that are not.
27778 # We use the long form for the default assignment because of an extremely
27779 # bizarre bug on SunOS 4.1.3.
27780 if $ac_need_defaults; then
27781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27783 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27787 # Have a temporary directory for convenience. Make it in the build tree
27788 # simply because there is no reason against having it here, and in addition,
27789 # creating and moving files from /tmp can sometimes cause problems.
27790 # Hook for its removal unless debugging.
27791 # Note that there is a small window in which the directory will not be cleaned:
27792 # after its creation but before its name has been assigned to `$tmp'.
27793 $debug ||
27795 tmp=
27796 trap 'exit_status=$?
27797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27799 trap '{ (exit 1); exit 1; }' 1 2 13 15
27801 # Create a (secure) tmp directory for tmp files.
27804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27805 test -n "$tmp" && test -d "$tmp"
27806 } ||
27808 tmp=./conf$$-$RANDOM
27809 (umask 077 && mkdir "$tmp")
27810 } ||
27812 echo "$me: cannot create a temporary directory in ." >&2
27813 { (exit 1); exit 1; }
27817 # Set up the sed scripts for CONFIG_FILES section.
27820 # No need to generate the scripts if there are no CONFIG_FILES.
27821 # This happens for instance when ./config.status config.h
27822 if test -n "$CONFIG_FILES"; then
27824 _ACEOF
27828 ac_delim='%!_!# '
27829 for ac_last_try in false false false false false :; do
27830 cat >conf$$subs.sed <<_ACEOF
27831 SHELL!$SHELL$ac_delim
27832 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27833 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27834 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27835 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27836 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27837 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27838 exec_prefix!$exec_prefix$ac_delim
27839 prefix!$prefix$ac_delim
27840 program_transform_name!$program_transform_name$ac_delim
27841 bindir!$bindir$ac_delim
27842 sbindir!$sbindir$ac_delim
27843 libexecdir!$libexecdir$ac_delim
27844 datarootdir!$datarootdir$ac_delim
27845 datadir!$datadir$ac_delim
27846 sysconfdir!$sysconfdir$ac_delim
27847 sharedstatedir!$sharedstatedir$ac_delim
27848 localstatedir!$localstatedir$ac_delim
27849 includedir!$includedir$ac_delim
27850 oldincludedir!$oldincludedir$ac_delim
27851 docdir!$docdir$ac_delim
27852 infodir!$infodir$ac_delim
27853 htmldir!$htmldir$ac_delim
27854 dvidir!$dvidir$ac_delim
27855 pdfdir!$pdfdir$ac_delim
27856 psdir!$psdir$ac_delim
27857 libdir!$libdir$ac_delim
27858 localedir!$localedir$ac_delim
27859 mandir!$mandir$ac_delim
27860 DEFS!$DEFS$ac_delim
27861 ECHO_C!$ECHO_C$ac_delim
27862 ECHO_N!$ECHO_N$ac_delim
27863 ECHO_T!$ECHO_T$ac_delim
27864 LIBS!$LIBS$ac_delim
27865 build_alias!$build_alias$ac_delim
27866 host_alias!$host_alias$ac_delim
27867 target_alias!$target_alias$ac_delim
27868 configure_args!$configure_args$ac_delim
27869 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27870 build!$build$ac_delim
27871 build_cpu!$build_cpu$ac_delim
27872 build_vendor!$build_vendor$ac_delim
27873 build_os!$build_os$ac_delim
27874 host!$host$ac_delim
27875 host_cpu!$host_cpu$ac_delim
27876 host_vendor!$host_vendor$ac_delim
27877 host_os!$host_os$ac_delim
27878 PORTNAME!$PORTNAME$ac_delim
27879 enable_nls!$enable_nls$ac_delim
27880 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27881 default_port!$default_port$ac_delim
27882 enable_shared!$enable_shared$ac_delim
27883 enable_rpath!$enable_rpath$ac_delim
27884 enable_debug!$enable_debug$ac_delim
27885 enable_profiling!$enable_profiling$ac_delim
27886 GCOV!$GCOV$ac_delim
27887 LCOV!$LCOV$ac_delim
27888 GENHTML!$GENHTML$ac_delim
27889 enable_coverage!$enable_coverage$ac_delim
27890 DTRACE!$DTRACE$ac_delim
27891 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27892 enable_dtrace!$enable_dtrace$ac_delim
27893 CC!$CC$ac_delim
27894 CFLAGS!$CFLAGS$ac_delim
27895 LDFLAGS!$LDFLAGS$ac_delim
27896 CPPFLAGS!$CPPFLAGS$ac_delim
27897 ac_ct_CC!$ac_ct_CC$ac_delim
27898 EXEEXT!$EXEEXT$ac_delim
27899 OBJEXT!$OBJEXT$ac_delim
27900 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27901 CPP!$CPP$ac_delim
27902 GCC!$GCC$ac_delim
27903 TAS!$TAS$ac_delim
27904 autodepend!$autodepend$ac_delim
27905 INCLUDES!$INCLUDES$ac_delim
27906 enable_thread_safety!$enable_thread_safety$ac_delim
27907 with_tcl!$with_tcl$ac_delim
27908 with_perl!$with_perl$ac_delim
27909 with_python!$with_python$ac_delim
27910 with_gssapi!$with_gssapi$ac_delim
27911 with_krb5!$with_krb5$ac_delim
27912 krb_srvtab!$krb_srvtab$ac_delim
27913 with_pam!$with_pam$ac_delim
27914 with_ldap!$with_ldap$ac_delim
27915 with_bonjour!$with_bonjour$ac_delim
27916 with_openssl!$with_openssl$ac_delim
27917 with_ossp_uuid!$with_ossp_uuid$ac_delim
27918 XML2_CONFIG!$XML2_CONFIG$ac_delim
27919 with_libxml!$with_libxml$ac_delim
27920 with_libxslt!$with_libxslt$ac_delim
27921 with_system_tzdata!$with_system_tzdata$ac_delim
27922 with_zlib!$with_zlib$ac_delim
27923 GREP!$GREP$ac_delim
27924 EGREP!$EGREP$ac_delim
27925 ELF_SYS!$ELF_SYS$ac_delim
27926 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27927 LD!$LD$ac_delim
27928 _ACEOF
27930 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27931 break
27932 elif $ac_last_try; then
27933 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27934 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27935 { (exit 1); exit 1; }; }
27936 else
27937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27939 done
27941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27942 if test -n "$ac_eof"; then
27943 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27944 ac_eof=`expr $ac_eof + 1`
27947 cat >>$CONFIG_STATUS <<_ACEOF
27948 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27950 _ACEOF
27951 sed '
27952 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27953 s/^/s,@/; s/!/@,|#_!!_#|/
27956 s/'"$ac_delim"'$/,g/; t
27957 s/$/\\/; p
27958 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27959 ' >>$CONFIG_STATUS <conf$$subs.sed
27960 rm -f conf$$subs.sed
27961 cat >>$CONFIG_STATUS <<_ACEOF
27962 CEOF$ac_eof
27963 _ACEOF
27966 ac_delim='%!_!# '
27967 for ac_last_try in false false false false false :; do
27968 cat >conf$$subs.sed <<_ACEOF
27969 with_gnu_ld!$with_gnu_ld$ac_delim
27970 ld_R_works!$ld_R_works$ac_delim
27971 RANLIB!$RANLIB$ac_delim
27972 STRIP!$STRIP$ac_delim
27973 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27974 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27975 AR!$AR$ac_delim
27976 DLLTOOL!$DLLTOOL$ac_delim
27977 DLLWRAP!$DLLWRAP$ac_delim
27978 WINDRES!$WINDRES$ac_delim
27979 TAR!$TAR$ac_delim
27980 LN_S!$LN_S$ac_delim
27981 AWK!$AWK$ac_delim
27982 BISON!$BISON$ac_delim
27983 BISONFLAGS!$BISONFLAGS$ac_delim
27984 FLEX!$FLEX$ac_delim
27985 FLEXFLAGS!$FLEXFLAGS$ac_delim
27986 PERL!$PERL$ac_delim
27987 perl_archlibexp!$perl_archlibexp$ac_delim
27988 perl_privlibexp!$perl_privlibexp$ac_delim
27989 perl_useshrplib!$perl_useshrplib$ac_delim
27990 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27991 PYTHON!$PYTHON$ac_delim
27992 python_version!$python_version$ac_delim
27993 python_configdir!$python_configdir$ac_delim
27994 python_includespec!$python_includespec$ac_delim
27995 python_libdir!$python_libdir$ac_delim
27996 python_libspec!$python_libspec$ac_delim
27997 python_additional_libs!$python_additional_libs$ac_delim
27998 ZIC!$ZIC$ac_delim
27999 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
28000 HAVE_IPV6!$HAVE_IPV6$ac_delim
28001 LIBOBJS!$LIBOBJS$ac_delim
28002 acx_pthread_config!$acx_pthread_config$ac_delim
28003 PTHREAD_CC!$PTHREAD_CC$ac_delim
28004 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28005 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28006 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
28007 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
28008 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
28009 MSGFMT!$MSGFMT$ac_delim
28010 MSGMERGE!$MSGMERGE$ac_delim
28011 XGETTEXT!$XGETTEXT$ac_delim
28012 TCLSH!$TCLSH$ac_delim
28013 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
28014 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
28015 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
28016 TCL_LIBS!$TCL_LIBS$ac_delim
28017 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
28018 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
28019 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
28020 NSGMLS!$NSGMLS$ac_delim
28021 JADE!$JADE$ac_delim
28022 have_docbook!$have_docbook$ac_delim
28023 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
28024 COLLATEINDEX!$COLLATEINDEX$ac_delim
28025 SGMLSPL!$SGMLSPL$ac_delim
28026 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
28027 vpath_build!$vpath_build$ac_delim
28028 LTLIBOBJS!$LTLIBOBJS$ac_delim
28029 _ACEOF
28031 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
28032 break
28033 elif $ac_last_try; then
28034 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28035 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28036 { (exit 1); exit 1; }; }
28037 else
28038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28040 done
28042 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28043 if test -n "$ac_eof"; then
28044 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28045 ac_eof=`expr $ac_eof + 1`
28048 cat >>$CONFIG_STATUS <<_ACEOF
28049 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28051 _ACEOF
28052 sed '
28053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28054 s/^/s,@/; s/!/@,|#_!!_#|/
28057 s/'"$ac_delim"'$/,g/; t
28058 s/$/\\/; p
28059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28060 ' >>$CONFIG_STATUS <conf$$subs.sed
28061 rm -f conf$$subs.sed
28062 cat >>$CONFIG_STATUS <<_ACEOF
28063 :end
28064 s/|#_!!_#|//g
28065 CEOF$ac_eof
28066 _ACEOF
28069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28071 # trailing colons and then remove the whole line if VPATH becomes empty
28072 # (actually we leave an empty line to preserve line numbers).
28073 if test "x$srcdir" = x.; then
28074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28075 s/:*\$(srcdir):*/:/
28076 s/:*\${srcdir}:*/:/
28077 s/:*@srcdir@:*/:/
28078 s/^\([^=]*=[ ]*\):*/\1/
28079 s/:*$//
28080 s/^[^=]*=[ ]*$//
28084 cat >>$CONFIG_STATUS <<\_ACEOF
28085 fi # test -n "$CONFIG_FILES"
28088 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
28090 case $ac_tag in
28091 :[FHLC]) ac_mode=$ac_tag; continue;;
28092 esac
28093 case $ac_mode$ac_tag in
28094 :[FHL]*:*);;
28095 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28096 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28097 { (exit 1); exit 1; }; };;
28098 :[FH]-) ac_tag=-:-;;
28099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28100 esac
28101 ac_save_IFS=$IFS
28102 IFS=:
28103 set x $ac_tag
28104 IFS=$ac_save_IFS
28105 shift
28106 ac_file=$1
28107 shift
28109 case $ac_mode in
28110 :L) ac_source=$1;;
28111 :[FH])
28112 ac_file_inputs=
28113 for ac_f
28115 case $ac_f in
28116 -) ac_f="$tmp/stdin";;
28117 *) # Look for the file first in the build tree, then in the source tree
28118 # (if the path is not absolute). The absolute path cannot be DOS-style,
28119 # because $ac_f cannot contain `:'.
28120 test -f "$ac_f" ||
28121 case $ac_f in
28122 [\\/$]*) false;;
28123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28124 esac ||
28125 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28126 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28127 { (exit 1); exit 1; }; };;
28128 esac
28129 ac_file_inputs="$ac_file_inputs $ac_f"
28130 done
28132 # Let's still pretend it is `configure' which instantiates (i.e., don't
28133 # use $as_me), people would be surprised to read:
28134 # /* config.h. Generated by config.status. */
28135 configure_input="Generated from "`IFS=:
28136 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28137 if test x"$ac_file" != x-; then
28138 configure_input="$ac_file. $configure_input"
28139 { echo "$as_me:$LINENO: creating $ac_file" >&5
28140 echo "$as_me: creating $ac_file" >&6;}
28143 case $ac_tag in
28144 *:-:* | *:-) cat >"$tmp/stdin";;
28145 esac
28147 esac
28149 ac_dir=`$as_dirname -- "$ac_file" ||
28150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28151 X"$ac_file" : 'X\(//\)[^/]' \| \
28152 X"$ac_file" : 'X\(//\)$' \| \
28153 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28154 echo X"$ac_file" |
28155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28156 s//\1/
28159 /^X\(\/\/\)[^/].*/{
28160 s//\1/
28163 /^X\(\/\/\)$/{
28164 s//\1/
28167 /^X\(\/\).*/{
28168 s//\1/
28171 s/.*/./; q'`
28172 { as_dir="$ac_dir"
28173 case $as_dir in #(
28174 -*) as_dir=./$as_dir;;
28175 esac
28176 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28177 as_dirs=
28178 while :; do
28179 case $as_dir in #(
28180 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28181 *) as_qdir=$as_dir;;
28182 esac
28183 as_dirs="'$as_qdir' $as_dirs"
28184 as_dir=`$as_dirname -- "$as_dir" ||
28185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28186 X"$as_dir" : 'X\(//\)[^/]' \| \
28187 X"$as_dir" : 'X\(//\)$' \| \
28188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28189 echo X"$as_dir" |
28190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28191 s//\1/
28194 /^X\(\/\/\)[^/].*/{
28195 s//\1/
28198 /^X\(\/\/\)$/{
28199 s//\1/
28202 /^X\(\/\).*/{
28203 s//\1/
28206 s/.*/./; q'`
28207 test -d "$as_dir" && break
28208 done
28209 test -z "$as_dirs" || eval "mkdir $as_dirs"
28210 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28211 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28212 { (exit 1); exit 1; }; }; }
28213 ac_builddir=.
28215 case "$ac_dir" in
28216 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28219 # A ".." for each directory in $ac_dir_suffix.
28220 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28221 case $ac_top_builddir_sub in
28222 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28223 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28224 esac ;;
28225 esac
28226 ac_abs_top_builddir=$ac_pwd
28227 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28228 # for backward compatibility:
28229 ac_top_builddir=$ac_top_build_prefix
28231 case $srcdir in
28232 .) # We are building in place.
28233 ac_srcdir=.
28234 ac_top_srcdir=$ac_top_builddir_sub
28235 ac_abs_top_srcdir=$ac_pwd ;;
28236 [\\/]* | ?:[\\/]* ) # Absolute name.
28237 ac_srcdir=$srcdir$ac_dir_suffix;
28238 ac_top_srcdir=$srcdir
28239 ac_abs_top_srcdir=$srcdir ;;
28240 *) # Relative name.
28241 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28242 ac_top_srcdir=$ac_top_build_prefix$srcdir
28243 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28244 esac
28245 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28248 case $ac_mode in
28251 # CONFIG_FILE
28254 _ACEOF
28256 cat >>$CONFIG_STATUS <<\_ACEOF
28257 # If the template does not know about datarootdir, expand it.
28258 # FIXME: This hack should be removed a few years after 2.60.
28259 ac_datarootdir_hack=; ac_datarootdir_seen=
28261 case `sed -n '/datarootdir/ {
28265 /@datadir@/p
28266 /@docdir@/p
28267 /@infodir@/p
28268 /@localedir@/p
28269 /@mandir@/p
28270 ' $ac_file_inputs` in
28271 *datarootdir*) ac_datarootdir_seen=yes;;
28272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28273 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28274 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28275 _ACEOF
28276 cat >>$CONFIG_STATUS <<_ACEOF
28277 ac_datarootdir_hack='
28278 s&@datadir@&$datadir&g
28279 s&@docdir@&$docdir&g
28280 s&@infodir@&$infodir&g
28281 s&@localedir@&$localedir&g
28282 s&@mandir@&$mandir&g
28283 s&\\\${datarootdir}&$datarootdir&g' ;;
28284 esac
28285 _ACEOF
28287 # Neutralize VPATH when `$srcdir' = `.'.
28288 # Shell code in configure.ac might set extrasub.
28289 # FIXME: do we really want to maintain this feature?
28290 cat >>$CONFIG_STATUS <<_ACEOF
28291 sed "$ac_vpsub
28292 $extrasub
28293 _ACEOF
28294 cat >>$CONFIG_STATUS <<\_ACEOF
28296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28297 s&@configure_input@&$configure_input&;t t
28298 s&@top_builddir@&$ac_top_builddir_sub&;t t
28299 s&@srcdir@&$ac_srcdir&;t t
28300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28301 s&@top_srcdir@&$ac_top_srcdir&;t t
28302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28303 s&@builddir@&$ac_builddir&;t t
28304 s&@abs_builddir@&$ac_abs_builddir&;t t
28305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28306 $ac_datarootdir_hack
28307 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28309 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28310 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28311 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28312 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28313 which seems to be undefined. Please make sure it is defined." >&5
28314 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28315 which seems to be undefined. Please make sure it is defined." >&2;}
28317 rm -f "$tmp/stdin"
28318 case $ac_file in
28319 -) cat "$tmp/out"; rm -f "$tmp/out";;
28320 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28321 esac
28325 # CONFIG_HEADER
28327 _ACEOF
28329 # Transform confdefs.h into a sed script `conftest.defines', that
28330 # substitutes the proper values into config.h.in to produce config.h.
28331 rm -f conftest.defines conftest.tail
28332 # First, append a space to every undef/define line, to ease matching.
28333 echo 's/$/ /' >conftest.defines
28334 # Then, protect against being on the right side of a sed subst, or in
28335 # an unquoted here document, in config.status. If some macros were
28336 # called several times there might be several #defines for the same
28337 # symbol, which is useless. But do not sort them, since the last
28338 # AC_DEFINE must be honored.
28339 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28340 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28341 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28342 # PARAMS is the parameter list in the macro definition--in most cases, it's
28343 # just an empty string.
28344 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28345 ac_dB='\\)[ (].*,\\1define\\2'
28346 ac_dC=' '
28347 ac_dD=' ,'
28349 uniq confdefs.h |
28350 sed -n '
28351 t rset
28352 :rset
28353 s/^[ ]*#[ ]*define[ ][ ]*//
28354 t ok
28357 s/[\\&,]/\\&/g
28358 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28359 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28360 ' >>conftest.defines
28362 # Remove the space that was appended to ease matching.
28363 # Then replace #undef with comments. This is necessary, for
28364 # example, in the case of _POSIX_SOURCE, which is predefined and required
28365 # on some systems where configure will not decide to define it.
28366 # (The regexp can be short, since the line contains either #define or #undef.)
28367 echo 's/ $//
28368 s,^[ #]*u.*,/* & */,' >>conftest.defines
28370 # Break up conftest.defines:
28371 ac_max_sed_lines=50
28373 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28374 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28375 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28376 # et cetera.
28377 ac_in='$ac_file_inputs'
28378 ac_out='"$tmp/out1"'
28379 ac_nxt='"$tmp/out2"'
28381 while :
28383 # Write a here document:
28384 cat >>$CONFIG_STATUS <<_ACEOF
28385 # First, check the format of the line:
28386 cat >"\$tmp/defines.sed" <<\\CEOF
28387 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28388 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28390 :def
28391 _ACEOF
28392 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28393 echo 'CEOF
28394 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28395 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28396 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28397 grep . conftest.tail >/dev/null || break
28398 rm -f conftest.defines
28399 mv conftest.tail conftest.defines
28400 done
28401 rm -f conftest.defines conftest.tail
28403 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28404 cat >>$CONFIG_STATUS <<\_ACEOF
28405 if test x"$ac_file" != x-; then
28406 echo "/* $configure_input */" >"$tmp/config.h"
28407 cat "$ac_result" >>"$tmp/config.h"
28408 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28409 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28410 echo "$as_me: $ac_file is unchanged" >&6;}
28411 else
28412 rm -f $ac_file
28413 mv "$tmp/config.h" $ac_file
28415 else
28416 echo "/* $configure_input */"
28417 cat "$ac_result"
28419 rm -f "$tmp/out12"
28423 # CONFIG_LINK
28426 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28427 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28429 if test ! -r "$srcdir/$ac_source"; then
28430 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28431 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28432 { (exit 1); exit 1; }; }
28434 rm -f "$ac_file"
28436 # Try a relative symlink, then a hard link, then a copy.
28437 case $srcdir in
28438 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28439 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28440 esac
28441 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28442 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28443 cp -p "$srcdir/$ac_source" "$ac_file" ||
28444 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28445 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28446 { (exit 1); exit 1; }; }
28448 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28449 echo "$as_me: executing $ac_file commands" >&6;}
28451 esac
28454 case $ac_file$ac_mode in
28455 "check_win32_symlinks":C)
28456 # Links sometimes fail undetected on Mingw -
28457 # so here we detect it and warn the user
28458 for FILE in $CONFIG_LINKS
28460 # test -e works for symlinks in the MinGW console
28461 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28462 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28463 done
28465 "src/include/pg_config.h":H)
28466 # Update timestamp for pg_config.h (see Makefile.global)
28467 echo >src/include/stamp-h
28469 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
28471 esac
28472 done # for ac_tag
28475 { (exit 0); exit 0; }
28476 _ACEOF
28477 chmod +x $CONFIG_STATUS
28478 ac_clean_files=$ac_clean_files_save
28481 # configure is writing to config.log, and then calls config.status.
28482 # config.status does its own redirection, appending to config.log.
28483 # Unfortunately, on DOS this fails, as config.log is still kept open
28484 # by configure, so config.status won't be able to write to it; its
28485 # output is simply discarded. So we exec the FD to /dev/null,
28486 # effectively closing config.log, so it can be properly (re)opened and
28487 # appended to by config.status. When coming back to configure, we
28488 # need to make the FD available again.
28489 if test "$no_create" != yes; then
28490 ac_cs_success=:
28491 ac_config_status_args=
28492 test "$silent" = yes &&
28493 ac_config_status_args="$ac_config_status_args --quiet"
28494 exec 5>/dev/null
28495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28496 exec 5>>config.log
28497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28498 # would make configure fail if this is the last instruction.
28499 $ac_cs_success || { (exit 1); exit 1; }
28503 # Warn about unknown options
28504 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28505 for pgac_arg in $pgac_args with_gnu_ld; do
28506 if test "$pgac_var" = "$pgac_arg"; then
28507 continue 2
28509 done
28510 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28511 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28512 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
28513 done