configure check for docbook2man program, used in the new XML-based man
[PostgreSQL.git] / configure
blob89de116af893fc681677d8a430b8d144120066f0
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-2008, 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 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 PORTNAME
668 enable_nls
669 WANTED_LANGUAGES
670 default_port
671 enable_shared
672 enable_rpath
673 enable_debug
674 enable_profiling
675 GCOV
676 LCOV
677 GENHTML
678 enable_coverage
679 DTRACE
680 DTRACEFLAGS
681 enable_dtrace
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 SUN_STUDIO_CC
693 autodepend
694 INCLUDES
695 enable_thread_safety
696 with_tcl
697 with_perl
698 with_python
699 with_gssapi
700 with_krb5
701 krb_srvtab
702 with_pam
703 with_ldap
704 with_bonjour
705 with_openssl
706 with_ossp_uuid
707 XML2_CONFIG
708 with_libxml
709 with_libxslt
710 with_system_tzdata
711 with_zlib
712 GREP
713 EGREP
714 ELF_SYS
715 LDFLAGS_SL
717 with_gnu_ld
718 ld_R_works
719 RANLIB
720 STRIP
721 STRIP_STATIC_LIB
722 STRIP_SHARED_LIB
724 LN_S
726 BISON
727 BISONFLAGS
728 FLEX
729 FLEXFLAGS
730 PERL
731 perl_archlibexp
732 perl_privlibexp
733 perl_useshrplib
734 perl_embed_ldflags
735 PYTHON
736 python_version
737 python_configdir
738 python_includespec
739 python_libdir
740 python_libspec
741 python_additional_libs
742 OSSP_UUID_LIBS
743 HAVE_IPV6
744 LIBOBJS
745 acx_pthread_config
746 PTHREAD_CC
747 PTHREAD_LIBS
748 PTHREAD_CFLAGS
749 LDAP_LIBS_FE
750 LDAP_LIBS_BE
751 HAVE_POSIX_SIGNALS
752 MSGFMT
753 MSGMERGE
754 XGETTEXT
755 TCLSH
756 TCL_CONFIG_SH
757 TCL_INCLUDE_SPEC
758 TCL_LIB_FILE
759 TCL_LIBS
760 TCL_LIB_SPEC
761 TCL_SHARED_BUILD
762 TCL_SHLIB_LD_LIBS
763 NSGMLS
764 JADE
765 have_docbook
766 DOCBOOKSTYLE
767 COLLATEINDEX
768 SGMLSPL
769 DOCBOOK2MAN
770 vpath_build
771 LTLIBOBJS'
772 ac_subst_files=''
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
782 LDFLAGS_SL
783 DOCBOOKSTYLE'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
832 ac_prev=
833 ac_dashdash=
834 for ac_option
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
843 case $ac_option in
844 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *) ac_optarg=yes ;;
846 esac
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
852 ac_dashdash=yes ;;
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
871 --config-cache | -C)
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
890 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
891 { (exit 1); exit 1; }; }
892 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
893 eval enable_$ac_feature=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
905 -enable-* | --enable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
911 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
912 eval enable_$ac_feature=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1102 -with-* | --with-*)
1103 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid package name: $ac_package" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1109 eval with_$ac_package=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=no ;;
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) { echo "$as_me: error: unrecognized option: $ac_option
1139 Try \`$0 --help' for more information." >&2
1140 { (exit 1); exit 1; }; }
1143 *=*)
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1148 { (exit 1); exit 1; }; }
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1160 esac
1161 done
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 { echo "$as_me: error: missing argument to $ac_option" >&2
1166 { (exit 1); exit 1; }; }
1169 # Be sure to have absolute directory names.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1176 case $ac_val in
1177 [\\/$]* | ?:[\\/]* ) continue;;
1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 esac
1180 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1181 { (exit 1); exit 1; }; }
1182 done
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196 If a cross compiler is detected then cross compile mode will be used." >&2
1197 elif test "x$build_alias" != "x$host_alias"; then
1198 cross_compiling=yes
1202 ac_tool_prefix=
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205 test "$silent" = yes && exec 6>/dev/null
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 { echo "$as_me: error: Working directory cannot be determined" >&2
1212 { (exit 1); exit 1; }; }
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 { echo "$as_me: error: pwd does not report name of working directory" >&2
1215 { (exit 1); exit 1; }; }
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$0" ||
1223 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$0" : 'X\(//\)[^/]' \| \
1225 X"$0" : 'X\(//\)$' \| \
1226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 echo X"$0" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 s//\1/
1232 /^X\(\/\/\)[^/].*/{
1233 s//\1/
1236 /^X\(\/\/\)$/{
1237 s//\1/
1240 /^X\(\/\).*/{
1241 s//\1/
1244 s/.*/./; q'`
1245 srcdir=$ac_confdir
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 srcdir=..
1249 else
1250 ac_srcdir_defaulted=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1255 { (exit 1); exit 1; }; }
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 ac_abs_confdir=`(
1259 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1260 { (exit 1); exit 1; }; }
1261 pwd)`
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 srcdir=.
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1269 case $srcdir in
1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 esac
1272 for ac_var in $ac_precious_vars; do
1273 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_env_${ac_var}_value=\$${ac_var}
1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 done
1280 # Report the --help message.
1282 if test "$ac_init_help" = "long"; then
1283 # Omit some internal or obsolete options to make the list less imposing.
1284 # This message is too long to be a string in the A/UX 3.1 sh.
1285 cat <<_ACEOF
1286 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE. See below for descriptions of some of the useful variables.
1293 Defaults for the options are specified in brackets.
1295 Configuration:
1296 -h, --help display this help and exit
1297 --help=short display options specific to this package
1298 --help=recursive display the short help of all the included packages
1299 -V, --version display version information and exit
1300 -q, --quiet, --silent do not print \`checking...' messages
1301 --cache-file=FILE cache test results in FILE [disabled]
1302 -C, --config-cache alias for \`--cache-file=config.cache'
1303 -n, --no-create do not create output files
1304 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306 Installation directories:
1307 --prefix=PREFIX install architecture-independent files in PREFIX
1308 [$ac_default_prefix]
1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 [PREFIX]
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1317 For better control, use the options below.
1319 Fine tuning of the installation directories:
1320 --bindir=DIR user executables [EPREFIX/bin]
1321 --sbindir=DIR system admin executables [EPREFIX/sbin]
1322 --libexecdir=DIR program executables [EPREFIX/libexec]
1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1339 _ACEOF
1341 cat <<\_ACEOF
1343 System types:
1344 --build=BUILD configure for building on BUILD [guessed]
1345 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1346 _ACEOF
1349 if test -n "$ac_init_help"; then
1350 case $ac_init_help in
1351 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1352 esac
1353 cat <<\_ACEOF
1355 Optional Features:
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --disable-integer-datetimes
1359 disable 64-bit integer date/time support
1360 --enable-nls[=LANGUAGES]
1361 enable Native Language Support
1362 --disable-shared do not build shared libraries
1363 --disable-rpath do not embed shared library search path in
1364 executables
1365 --disable-spinlocks do not use spinlocks
1366 --enable-debug build with debugging symbols (-g)
1367 --enable-profiling build with profiling enabled
1368 --enable-coverage build with coverage testing instrumentation
1369 --enable-dtrace build with DTrace support
1370 --enable-depend turn on automatic dependency tracking
1371 --enable-cassert enable assertion checks (for debugging)
1372 --enable-thread-safety make client libraries thread-safe
1373 --enable-thread-safety-force
1374 force thread-safety despite thread test failure
1375 --disable-float4-byval disable float4 passed by value
1376 --disable-float8-byval disable float8 passed by value
1377 --disable-largefile omit support for large files
1379 Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-template=NAME override operating system template
1383 --with-includes=DIRS look for additional header files in DIRS
1384 --with-libraries=DIRS look for additional libraries in DIRS
1385 --with-libs=DIRS alternative spelling of --with-libraries
1386 --with-pgport=PORTNUM set default port number [5432]
1387 --with-blocksize=BLOCKSIZE
1388 set table block size in kB [8]
1389 --with-segsize=SEGSIZE set table segment size in GB [1]
1390 --with-wal-blocksize=BLOCKSIZE
1391 set WAL block size in kB [8]
1392 --with-wal-segsize=SEGSIZE
1393 set WAL segment size in MB [16]
1394 --with-CC=CMD set compiler (deprecated)
1395 --with-tcl build Tcl modules (PL/Tcl)
1396 --with-tclconfig=DIR tclConfig.sh is in DIR
1397 --with-perl build Perl modules (PL/Perl)
1398 --with-python build Python modules (PL/Python)
1399 --with-gssapi build with GSSAPI support
1400 --with-krb5 build with Kerberos 5 support
1401 --with-krb-srvnam=NAME default service principal name in Kerberos
1402 [postgres]
1403 --with-pam build with PAM support
1404 --with-ldap build with LDAP support
1405 --with-bonjour build with Bonjour support
1406 --with-openssl build with OpenSSL support
1407 --without-readline do not use GNU Readline nor BSD Libedit for editing
1408 --with-libedit-preferred
1409 prefer BSD Libedit over GNU Readline
1410 --with-ossp-uuid use OSSP UUID library when building
1411 contrib/uuid-ossp
1412 --with-libxml build with XML support
1413 --with-libxslt use XSLT support when building contrib/xml2
1414 --with-system-tzdata=DIR
1415 use system time zone data in DIR
1416 --without-zlib do not use Zlib
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CPP C preprocessor
1428 LDFLAGS_SL
1429 DOCBOOKSTYLE
1430 location of DocBook stylesheets
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1435 Report bugs to <pgsql-bugs@postgresql.org>.
1436 _ACEOF
1437 ac_status=$?
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" || continue
1444 ac_builddir=.
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1462 case $srcdir in
1463 .) # We are building in place.
1464 ac_srcdir=.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1486 else
1487 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1490 done
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495 cat <<\_ACEOF
1496 PostgreSQL configure 8.4devel
1497 generated by GNU Autoconf 2.61
1499 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1504 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1505 _ACEOF
1506 exit
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1512 It was created by PostgreSQL $as_me 8.4devel, which was
1513 generated by GNU Autoconf 2.61. Invocation command line was
1515 $ $0 $@
1517 _ACEOF
1518 exec 5>>config.log
1520 cat <<_ASUNAME
1521 ## --------- ##
1522 ## Platform. ##
1523 ## --------- ##
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1534 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1535 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1538 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1539 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1540 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1542 _ASUNAME
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 echo "PATH: $as_dir"
1550 done
1551 IFS=$as_save_IFS
1553 } >&5
1555 cat >&5 <<_ACEOF
1558 ## ----------- ##
1559 ## Core tests. ##
1560 ## ----------- ##
1562 _ACEOF
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_configure_args=
1571 ac_configure_args0=
1572 ac_configure_args1=
1573 ac_must_keep_next=false
1574 for ac_pass in 1 2
1576 for ac_arg
1578 case $ac_arg in
1579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581 | -silent | --silent | --silen | --sile | --sil)
1582 continue ;;
1583 *\'*)
1584 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585 esac
1586 case $ac_pass in
1587 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1589 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590 if test $ac_must_keep_next = true; then
1591 ac_must_keep_next=false # Got value, back to normal.
1592 else
1593 case $ac_arg in
1594 *=* | --config-cache | -C | -disable-* | --disable-* \
1595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597 | -with-* | --with-* | -without-* | --without-* | --x)
1598 case "$ac_configure_args0 " in
1599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600 esac
1602 -* ) ac_must_keep_next=true ;;
1603 esac
1605 ac_configure_args="$ac_configure_args '$ac_arg'"
1607 esac
1608 done
1609 done
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log. We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619 # Save into config.log some information that might help in debugging.
1621 echo
1623 cat <<\_ASBOX
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1627 _ASBOX
1628 echo
1629 # The following way of writing the cache mishandles newlines in values,
1631 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632 eval ac_val=\$$ac_var
1633 case $ac_val in #(
1634 *${as_nl}*)
1635 case $ac_var in #(
1636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1638 esac
1639 case $ac_var in #(
1640 _ | IFS | as_nl) ;; #(
1641 *) $as_unset $ac_var ;;
1642 esac ;;
1643 esac
1644 done
1645 (set) 2>&1 |
1646 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1648 sed -n \
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651 ;; #(
1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1655 esac |
1656 sort
1658 echo
1660 cat <<\_ASBOX
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1664 _ASBOX
1665 echo
1666 for ac_var in $ac_subst_vars
1668 eval ac_val=\$$ac_var
1669 case $ac_val in
1670 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 esac
1672 echo "$ac_var='\''$ac_val'\''"
1673 done | sort
1674 echo
1676 if test -n "$ac_subst_files"; then
1677 cat <<\_ASBOX
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1681 _ASBOX
1682 echo
1683 for ac_var in $ac_subst_files
1685 eval ac_val=\$$ac_var
1686 case $ac_val in
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 esac
1689 echo "$ac_var='\''$ac_val'\''"
1690 done | sort
1691 echo
1694 if test -s confdefs.h; then
1695 cat <<\_ASBOX
1696 ## ----------- ##
1697 ## confdefs.h. ##
1698 ## ----------- ##
1699 _ASBOX
1700 echo
1701 cat confdefs.h
1702 echo
1704 test "$ac_signal" != 0 &&
1705 echo "$as_me: caught signal $ac_signal"
1706 echo "$as_me: exit $exit_status"
1707 } >&5
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1710 exit $exit_status
1712 for ac_signal in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 done
1715 ac_signal=0
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1720 # Predefined preprocessor variables.
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 _ACEOF
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 _ACEOF
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 _ACEOF
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 _ACEOF
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 _ACEOF
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750 set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 else
1754 set x "$ac_default_prefix/share/config.site" \
1755 "$ac_default_prefix/etc/config.site"
1757 shift
1758 for ac_site_file
1760 if test -r "$ac_site_file"; then
1761 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763 sed 's/^/| /' "$ac_site_file" >&5
1764 . "$ac_site_file"
1766 done
1768 if test -r "$cache_file"; then
1769 # Some versions of bash will fail to source /dev/null (special
1770 # files actually), so we avoid doing that.
1771 if test -f "$cache_file"; then
1772 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1774 case $cache_file in
1775 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776 *) . "./$cache_file";;
1777 esac
1779 else
1780 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1782 >$cache_file
1785 # Check that the precious variables saved in the cache have kept the same
1786 # value.
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790 eval ac_new_set=\$ac_env_${ac_var}_set
1791 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792 eval ac_new_val=\$ac_env_${ac_var}_value
1793 case $ac_old_set,$ac_new_set in
1794 set,)
1795 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797 ac_cache_corrupted=: ;;
1798 ,set)
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1802 ,);;
1804 if test "x$ac_old_val" != "x$ac_new_val"; then
1805 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1808 echo "$as_me: former value: $ac_old_val" >&2;}
1809 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1810 echo "$as_me: current value: $ac_new_val" >&2;}
1811 ac_cache_corrupted=:
1812 fi;;
1813 esac
1814 # Pass precious variables to config.status.
1815 if test "$ac_new_set" = set; then
1816 case $ac_new_val in
1817 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 *) ac_arg=$ac_var=$ac_new_val ;;
1819 esac
1820 case " $ac_configure_args " in
1821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1822 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 esac
1825 done
1826 if $ac_cache_corrupted; then
1827 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831 { (exit 1); exit 1; }; }
1858 ac_ext=c
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 ac_aux_dir=
1870 for ac_dir in config "$srcdir"/config; do
1871 if test -f "$ac_dir/install-sh"; then
1872 ac_aux_dir=$ac_dir
1873 ac_install_sh="$ac_aux_dir/install-sh -c"
1874 break
1875 elif test -f "$ac_dir/install.sh"; then
1876 ac_aux_dir=$ac_dir
1877 ac_install_sh="$ac_aux_dir/install.sh -c"
1878 break
1879 elif test -f "$ac_dir/shtool"; then
1880 ac_aux_dir=$ac_dir
1881 ac_install_sh="$ac_aux_dir/shtool install -c"
1882 break
1884 done
1885 if test -z "$ac_aux_dir"; then
1886 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1887 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1888 { (exit 1); exit 1; }; }
1891 # These three variables are undocumented and unsupported,
1892 # and are intended to be withdrawn in a future Autoconf release.
1893 # They can cause serious problems if a builder's source tree is in a directory
1894 # whose full name contains unusual characters.
1895 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1896 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1897 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1901 configure_args=$ac_configure_args
1905 cat >>confdefs.h <<_ACEOF
1906 #define PG_VERSION "$PACKAGE_VERSION"
1907 _ACEOF
1910 # Make sure we can run config.sub.
1911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1912 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1913 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1914 { (exit 1); exit 1; }; }
1916 { echo "$as_me:$LINENO: checking build system type" >&5
1917 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1918 if test "${ac_cv_build+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 ac_build_alias=$build_alias
1922 test "x$ac_build_alias" = x &&
1923 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1924 test "x$ac_build_alias" = x &&
1925 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1926 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1927 { (exit 1); exit 1; }; }
1928 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1929 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1930 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1931 { (exit 1); exit 1; }; }
1934 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1935 echo "${ECHO_T}$ac_cv_build" >&6; }
1936 case $ac_cv_build in
1937 *-*-*) ;;
1938 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1939 echo "$as_me: error: invalid value of canonical build" >&2;}
1940 { (exit 1); exit 1; }; };;
1941 esac
1942 build=$ac_cv_build
1943 ac_save_IFS=$IFS; IFS='-'
1944 set x $ac_cv_build
1945 shift
1946 build_cpu=$1
1947 build_vendor=$2
1948 shift; shift
1949 # Remember, the first character of IFS is used to create $*,
1950 # except with old shells:
1951 build_os=$*
1952 IFS=$ac_save_IFS
1953 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1956 { echo "$as_me:$LINENO: checking host system type" >&5
1957 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1958 if test "${ac_cv_host+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test "x$host_alias" = x; then
1962 ac_cv_host=$ac_cv_build
1963 else
1964 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1965 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1966 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1967 { (exit 1); exit 1; }; }
1971 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972 echo "${ECHO_T}$ac_cv_host" >&6; }
1973 case $ac_cv_host in
1974 *-*-*) ;;
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1976 echo "$as_me: error: invalid value of canonical host" >&2;}
1977 { (exit 1); exit 1; }; };;
1978 esac
1979 host=$ac_cv_host
1980 ac_save_IFS=$IFS; IFS='-'
1981 set x $ac_cv_host
1982 shift
1983 host_cpu=$1
1984 host_vendor=$2
1985 shift; shift
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1988 host_os=$*
1989 IFS=$ac_save_IFS
1990 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1994 template=
1995 { echo "$as_me:$LINENO: checking which template to use" >&5
1996 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1999 pgac_args="$pgac_args with_template"
2002 # Check whether --with-template was given.
2003 if test "${with_template+set}" = set; then
2004 withval=$with_template;
2005 case $withval in
2006 yes)
2007 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2008 echo "$as_me: error: argument required for --with-template option" >&2;}
2009 { (exit 1); exit 1; }; }
2012 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2013 echo "$as_me: error: argument required for --with-template option" >&2;}
2014 { (exit 1); exit 1; }; }
2018 case $withval in
2019 list) echo; ls "$srcdir/src/template"; exit;;
2020 *) if test -f "$srcdir/src/template/$with_template" ; then
2021 template=$withval
2022 else
2023 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2024 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2025 { (exit 1); exit 1; }; }
2026 fi;;
2027 esac
2030 esac
2032 else
2034 # --with-template not given
2036 case $host_os in
2037 aix*) template=aix ;;
2038 bsdi*) template=bsdi ;;
2039 cygwin*) template=cygwin ;;
2040 darwin*) template=darwin ;;
2041 dgux*) template=dgux ;;
2042 freebsd*) template=freebsd ;;
2043 hpux*) template=hpux ;;
2044 irix*) template=irix ;;
2045 linux*|gnu*|k*bsd*-gnu)
2046 template=linux ;;
2047 mingw*) template=win32 ;;
2048 netbsd*) template=netbsd ;;
2049 nextstep*) template=nextstep ;;
2050 openbsd*) template=openbsd ;;
2051 osf*) template=osf ;;
2052 sco*) template=sco ;;
2053 solaris*) template=solaris ;;
2054 sunos*) template=sunos4 ;;
2055 sysv4.2*)
2056 case $host_vendor in
2057 univel) template=univel ;;
2058 esac ;;
2059 sysv4*) template=svr4 ;;
2060 sysv5*) template=unixware ;;
2061 ultrix*) template=ultrix4 ;;
2062 esac
2064 if test x"$template" = x"" ; then
2065 { { echo "$as_me:$LINENO: error:
2066 *******************************************************************
2067 PostgreSQL has apparently not been ported to your platform yet.
2068 To try a manual configuration, look into the src/template directory
2069 for a similar platform and use the '--with-template=' option.
2071 Please also contact <pgsql-ports@postgresql.org> to see about
2072 rectifying this. Include the above 'checking host system type...'
2073 line.
2074 *******************************************************************
2075 " >&5
2076 echo "$as_me: error:
2077 *******************************************************************
2078 PostgreSQL has apparently not been ported to your platform yet.
2079 To try a manual configuration, look into the src/template directory
2080 for a similar platform and use the '--with-template=' option.
2082 Please also contact <pgsql-ports@postgresql.org> to see about
2083 rectifying this. Include the above 'checking host system type...'
2084 line.
2085 *******************************************************************
2086 " >&2;}
2087 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $template" >&5
2096 echo "${ECHO_T}$template" >&6; }
2098 PORTNAME=$template
2101 # Initialize default assumption that we do not need separate assembly code
2102 # for TAS (test-and-set). This can be overridden by the template file
2103 # when it's executed.
2104 need_tas=no
2105 tas_file=dummy.s
2110 ## Command line options
2114 # Add non-standard directories to the include path
2117 pgac_args="$pgac_args with_includes"
2120 # Check whether --with-includes was given.
2121 if test "${with_includes+set}" = set; then
2122 withval=$with_includes;
2123 case $withval in
2124 yes)
2125 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2126 echo "$as_me: error: argument required for --with-includes option" >&2;}
2127 { (exit 1); exit 1; }; }
2130 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2131 echo "$as_me: error: argument required for --with-includes option" >&2;}
2132 { (exit 1); exit 1; }; }
2137 esac
2145 # Add non-standard directories to the library search path
2148 pgac_args="$pgac_args with_libraries"
2151 # Check whether --with-libraries was given.
2152 if test "${with_libraries+set}" = set; then
2153 withval=$with_libraries;
2154 case $withval in
2155 yes)
2156 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2157 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2158 { (exit 1); exit 1; }; }
2161 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2162 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2163 { (exit 1); exit 1; }; }
2166 LIBRARY_DIRS=$withval
2168 esac
2175 pgac_args="$pgac_args with_libs"
2178 # Check whether --with-libs was given.
2179 if test "${with_libs+set}" = set; then
2180 withval=$with_libs;
2181 case $withval in
2182 yes)
2183 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2184 echo "$as_me: error: argument required for --with-libs option" >&2;}
2185 { (exit 1); exit 1; }; }
2188 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2189 echo "$as_me: error: argument required for --with-libs option" >&2;}
2190 { (exit 1); exit 1; }; }
2193 LIBRARY_DIRS=$withval
2195 esac
2203 # 64-bit integer date/time storage: enabled by default.
2205 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2206 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2208 pgac_args="$pgac_args enable_integer_datetimes"
2210 # Check whether --enable-integer-datetimes was given.
2211 if test "${enable_integer_datetimes+set}" = set; then
2212 enableval=$enable_integer_datetimes;
2213 case $enableval in
2214 yes)
2216 cat >>confdefs.h <<\_ACEOF
2217 #define USE_INTEGER_DATETIMES 1
2218 _ACEOF
2225 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2226 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2227 { (exit 1); exit 1; }; }
2229 esac
2231 else
2232 enable_integer_datetimes=yes
2234 cat >>confdefs.h <<\_ACEOF
2235 #define USE_INTEGER_DATETIMES 1
2236 _ACEOF
2241 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2242 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2246 # NLS
2248 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2249 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2251 pgac_args="$pgac_args enable_nls"
2253 # Check whether --enable-nls was given.
2254 if test "${enable_nls+set}" = set; then
2255 enableval=$enable_nls;
2256 case $enableval in
2257 yes)
2264 enable_nls=yes
2265 WANTED_LANGUAGES=$enableval
2267 esac
2269 else
2270 enable_nls=no
2275 if test "$enable_nls" = yes; then
2277 cat >>confdefs.h <<\_ACEOF
2278 #define ENABLE_NLS 1
2279 _ACEOF
2283 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2284 echo "${ECHO_T}$enable_nls" >&6; }
2289 # Default port number (--with-pgport), default 5432
2291 { echo "$as_me:$LINENO: checking for default port number" >&5
2292 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2294 pgac_args="$pgac_args with_pgport"
2297 # Check whether --with-pgport was given.
2298 if test "${with_pgport+set}" = set; then
2299 withval=$with_pgport;
2300 case $withval in
2301 yes)
2302 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2303 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2304 { (exit 1); exit 1; }; }
2307 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2308 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2309 { (exit 1); exit 1; }; }
2312 default_port=$withval
2314 esac
2316 else
2317 default_port=5432
2321 { echo "$as_me:$LINENO: result: $default_port" >&5
2322 echo "${ECHO_T}$default_port" >&6; }
2323 # Need both of these because some places want an integer and some a string
2325 cat >>confdefs.h <<_ACEOF
2326 #define DEF_PGPORT ${default_port}
2327 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define DEF_PGPORT_STR "${default_port}"
2332 _ACEOF
2337 # Option to disable shared libraries
2340 pgac_args="$pgac_args enable_shared"
2342 # Check whether --enable-shared was given.
2343 if test "${enable_shared+set}" = set; then
2344 enableval=$enable_shared;
2345 case $enableval in
2346 yes)
2353 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2354 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2355 { (exit 1); exit 1; }; }
2357 esac
2359 else
2360 enable_shared=yes
2368 # '-rpath'-like feature can be disabled
2371 pgac_args="$pgac_args enable_rpath"
2373 # Check whether --enable-rpath was given.
2374 if test "${enable_rpath+set}" = set; then
2375 enableval=$enable_rpath;
2376 case $enableval in
2377 yes)
2384 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2385 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2386 { (exit 1); exit 1; }; }
2388 esac
2390 else
2391 enable_rpath=yes
2399 # Spinlocks
2402 pgac_args="$pgac_args enable_spinlocks"
2404 # Check whether --enable-spinlocks was given.
2405 if test "${enable_spinlocks+set}" = set; then
2406 enableval=$enable_spinlocks;
2407 case $enableval in
2408 yes)
2415 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2416 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2417 { (exit 1); exit 1; }; }
2419 esac
2421 else
2422 enable_spinlocks=yes
2429 # --enable-debug adds -g to compiler flags
2432 pgac_args="$pgac_args enable_debug"
2434 # Check whether --enable-debug was given.
2435 if test "${enable_debug+set}" = set; then
2436 enableval=$enable_debug;
2437 case $enableval in
2438 yes)
2445 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2446 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2447 { (exit 1); exit 1; }; }
2449 esac
2451 else
2452 enable_debug=no
2460 # --enable-profiling enables gcc profiling
2463 pgac_args="$pgac_args enable_profiling"
2465 # Check whether --enable-profiling was given.
2466 if test "${enable_profiling+set}" = set; then
2467 enableval=$enable_profiling;
2468 case $enableval in
2469 yes)
2476 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2477 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2478 { (exit 1); exit 1; }; }
2480 esac
2482 else
2483 enable_profiling=no
2491 # --enable-coverage enables generation of code coverage metrics with gcov
2494 pgac_args="$pgac_args enable_coverage"
2496 # Check whether --enable-coverage was given.
2497 if test "${enable_coverage+set}" = set; then
2498 enableval=$enable_coverage;
2499 case $enableval in
2500 yes)
2501 for ac_prog in gcov
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_GCOV+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$GCOV"; then
2511 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_GCOV="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2526 IFS=$as_save_IFS
2530 GCOV=$ac_cv_prog_GCOV
2531 if test -n "$GCOV"; then
2532 { echo "$as_me:$LINENO: result: $GCOV" >&5
2533 echo "${ECHO_T}$GCOV" >&6; }
2534 else
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2540 test -n "$GCOV" && break
2541 done
2543 if test -z "$GCOV"; then
2544 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2545 echo "$as_me: error: gcov not found" >&2;}
2546 { (exit 1); exit 1; }; }
2548 for ac_prog in lcov
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551 set dummy $ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_LCOV+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if test -n "$LCOV"; then
2558 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_LCOV="$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2571 done
2572 done
2573 IFS=$as_save_IFS
2577 LCOV=$ac_cv_prog_LCOV
2578 if test -n "$LCOV"; then
2579 { echo "$as_me:$LINENO: result: $LCOV" >&5
2580 echo "${ECHO_T}$LCOV" >&6; }
2581 else
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2587 test -n "$LCOV" && break
2588 done
2590 if test -z "$LCOV"; then
2591 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2592 echo "$as_me: error: lcov not found" >&2;}
2593 { (exit 1); exit 1; }; }
2595 for ac_prog in genhtml
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_GENHTML+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604 if test -n "$GENHTML"; then
2605 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_GENHTML="$ac_prog"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2618 done
2619 done
2620 IFS=$as_save_IFS
2624 GENHTML=$ac_cv_prog_GENHTML
2625 if test -n "$GENHTML"; then
2626 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2627 echo "${ECHO_T}$GENHTML" >&6; }
2628 else
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2634 test -n "$GENHTML" && break
2635 done
2637 if test -z "$GENHTML"; then
2638 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2639 echo "$as_me: error: genhtml not found" >&2;}
2640 { (exit 1); exit 1; }; }
2647 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2648 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2649 { (exit 1); exit 1; }; }
2651 esac
2653 else
2654 enable_coverage=no
2662 # DTrace
2665 pgac_args="$pgac_args enable_dtrace"
2667 # Check whether --enable-dtrace was given.
2668 if test "${enable_dtrace+set}" = set; then
2669 enableval=$enable_dtrace;
2670 case $enableval in
2671 yes)
2673 cat >>confdefs.h <<\_ACEOF
2674 #define ENABLE_DTRACE 1
2675 _ACEOF
2677 for ac_prog in dtrace
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_DTRACE+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$DTRACE"; then
2687 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_DTRACE="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2702 IFS=$as_save_IFS
2706 DTRACE=$ac_cv_prog_DTRACE
2707 if test -n "$DTRACE"; then
2708 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2709 echo "${ECHO_T}$DTRACE" >&6; }
2710 else
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2716 test -n "$DTRACE" && break
2717 done
2719 if test -z "$DTRACE"; then
2720 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2721 echo "$as_me: error: dtrace not found" >&2;}
2722 { (exit 1); exit 1; }; }
2730 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2731 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2732 { (exit 1); exit 1; }; }
2734 esac
2736 else
2737 enable_dtrace=no
2745 # Block size
2747 { echo "$as_me:$LINENO: checking for block size" >&5
2748 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2750 pgac_args="$pgac_args with_blocksize"
2753 # Check whether --with-blocksize was given.
2754 if test "${with_blocksize+set}" = set; then
2755 withval=$with_blocksize;
2756 case $withval in
2757 yes)
2758 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2759 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2760 { (exit 1); exit 1; }; }
2763 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2764 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2765 { (exit 1); exit 1; }; }
2768 blocksize=$withval
2770 esac
2772 else
2773 blocksize=8
2777 case ${blocksize} in
2778 1) BLCKSZ=1024;;
2779 2) BLCKSZ=2048;;
2780 4) BLCKSZ=4096;;
2781 8) BLCKSZ=8192;;
2782 16) BLCKSZ=16384;;
2783 32) BLCKSZ=32768;;
2784 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2785 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2786 { (exit 1); exit 1; }; }
2787 esac
2788 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2789 echo "${ECHO_T}${blocksize}kB" >&6; }
2792 cat >>confdefs.h <<_ACEOF
2793 #define BLCKSZ ${BLCKSZ}
2794 _ACEOF
2798 # Relation segment size
2800 { echo "$as_me:$LINENO: checking for segment size" >&5
2801 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2803 pgac_args="$pgac_args with_segsize"
2806 # Check whether --with-segsize was given.
2807 if test "${with_segsize+set}" = set; then
2808 withval=$with_segsize;
2809 case $withval in
2810 yes)
2811 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2812 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2813 { (exit 1); exit 1; }; }
2816 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2817 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2818 { (exit 1); exit 1; }; }
2821 segsize=$withval
2823 esac
2825 else
2826 segsize=1
2830 # this expression is set up to avoid unnecessary integer overflow
2831 # blocksize is already guaranteed to be a factor of 1024
2832 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2833 test $? -eq 0 || exit 1
2834 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2835 echo "${ECHO_T}${segsize}GB" >&6; }
2838 cat >>confdefs.h <<_ACEOF
2839 #define RELSEG_SIZE ${RELSEG_SIZE}
2840 _ACEOF
2844 # WAL block size
2846 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2847 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2849 pgac_args="$pgac_args with_wal_blocksize"
2852 # Check whether --with-wal-blocksize was given.
2853 if test "${with_wal_blocksize+set}" = set; then
2854 withval=$with_wal_blocksize;
2855 case $withval in
2856 yes)
2857 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2858 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2859 { (exit 1); exit 1; }; }
2862 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2863 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2864 { (exit 1); exit 1; }; }
2867 wal_blocksize=$withval
2869 esac
2871 else
2872 wal_blocksize=8
2876 case ${wal_blocksize} in
2877 1) XLOG_BLCKSZ=1024;;
2878 2) XLOG_BLCKSZ=2048;;
2879 4) XLOG_BLCKSZ=4096;;
2880 8) XLOG_BLCKSZ=8192;;
2881 16) XLOG_BLCKSZ=16384;;
2882 32) XLOG_BLCKSZ=32768;;
2883 64) XLOG_BLCKSZ=65536;;
2884 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2885 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2886 { (exit 1); exit 1; }; }
2887 esac
2888 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2889 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2892 cat >>confdefs.h <<_ACEOF
2893 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2894 _ACEOF
2898 # WAL segment size
2900 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2901 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2903 pgac_args="$pgac_args with_wal_segsize"
2906 # Check whether --with-wal-segsize was given.
2907 if test "${with_wal_segsize+set}" = set; then
2908 withval=$with_wal_segsize;
2909 case $withval in
2910 yes)
2911 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2912 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2913 { (exit 1); exit 1; }; }
2916 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2917 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2918 { (exit 1); exit 1; }; }
2921 wal_segsize=$withval
2923 esac
2925 else
2926 wal_segsize=16
2930 case ${wal_segsize} in
2931 1) ;;
2932 2) ;;
2933 4) ;;
2934 8) ;;
2935 16) ;;
2936 32) ;;
2937 64) ;;
2938 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2939 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2940 { (exit 1); exit 1; }; }
2941 esac
2942 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2943 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2946 cat >>confdefs.h <<_ACEOF
2947 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2948 _ACEOF
2952 # C compiler
2955 # For historical reasons you can also use --with-CC to specify the C compiler
2956 # to use, although the standard way to do this is to set the CC environment
2957 # variable.
2959 pgac_args="$pgac_args with_CC"
2962 # Check whether --with-CC was given.
2963 if test "${with_CC+set}" = set; then
2964 withval=$with_CC;
2965 case $withval in
2966 yes)
2967 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2968 echo "$as_me: error: argument required for --with-CC option" >&2;}
2969 { (exit 1); exit 1; }; }
2972 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2973 echo "$as_me: error: argument required for --with-CC option" >&2;}
2974 { (exit 1); exit 1; }; }
2977 CC=$with_CC
2979 esac
2985 case $template in
2986 aix) pgac_cc_list="gcc xlc";;
2987 irix) pgac_cc_list="cc";; # no gcc
2988 *) pgac_cc_list="gcc cc";;
2989 esac
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 if test -n "$ac_tool_prefix"; then
2997 for ac_prog in $pgac_cc_list
2999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_CC+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { echo "$as_me:$LINENO: result: $CC" >&5
3029 echo "${ECHO_T}$CC" >&6; }
3030 else
3031 { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3036 test -n "$CC" && break
3037 done
3039 if test -z "$CC"; then
3040 ac_ct_CC=$CC
3041 for ac_prog in $pgac_cc_list
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC="$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3066 IFS=$as_save_IFS
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 echo "${ECHO_T}$ac_ct_CC" >&6; }
3074 else
3075 { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3080 test -n "$ac_ct_CC" && break
3081 done
3083 if test "x$ac_ct_CC" = x; then
3084 CC=""
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet. If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&5
3091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3092 whose name does not start with the host triplet. If you think this
3093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3094 ac_tool_warned=yes ;;
3095 esac
3096 CC=$ac_ct_CC
3101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: no acceptable C compiler found in \$PATH
3104 See \`config.log' for more details." >&2;}
3105 { (exit 1); exit 1; }; }
3107 # Provide some information about the compiler.
3108 echo "$as_me:$LINENO: checking for C compiler version" >&5
3109 ac_compiler=`set X $ac_compile; echo $2`
3110 { (ac_try="$ac_compiler --version >&5"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compiler --version >&5") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }
3120 { (ac_try="$ac_compiler -v >&5"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compiler -v >&5") 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }
3130 { (ac_try="$ac_compiler -V >&5"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compiler -V >&5") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 ac_clean_files_save=$ac_clean_files
3157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3158 # Try to create an executable without -o first, disregard a.out.
3159 # It will help us diagnose broken compilers, and finding out an intuition
3160 # of exeext.
3161 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3165 # List of possible output files, starting from the most likely.
3166 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3167 # only as a last resort. b.out is created by i960 compilers.
3168 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3170 # The IRIX 6 linker writes into existing files which may not be
3171 # executable, retaining their permissions. Remove them first so a
3172 # subsequent execution test works.
3173 ac_rmfiles=
3174 for ac_file in $ac_files
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3179 esac
3180 done
3181 rm -f $ac_rmfiles
3183 if { (ac_try="$ac_link_default"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_link_default") 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; then
3193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3196 # so that the user can short-circuit this test for compilers unknown to
3197 # Autoconf.
3198 for ac_file in $ac_files ''
3200 test -f "$ac_file" || continue
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3204 [ab].out )
3205 # We found the default executable, but exeext='' is most
3206 # certainly right.
3207 break;;
3208 *.* )
3209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 then :; else
3211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 # We set ac_cv_exeext here because the later test for it is not
3214 # safe: cross compilers may not add the suffix if given an `-o'
3215 # argument, so we may need to know it at that point already.
3216 # Even if this section looks crufty: it has the advantage of
3217 # actually working.
3218 break;;
3220 break;;
3221 esac
3222 done
3223 test "$ac_cv_exeext" = no && ac_cv_exeext=
3225 else
3226 ac_file=''
3229 { echo "$as_me:$LINENO: result: $ac_file" >&5
3230 echo "${ECHO_T}$ac_file" >&6; }
3231 if test -z "$ac_file"; then
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: C compiler cannot create executables
3238 See \`config.log' for more details." >&2;}
3239 { (exit 77); exit 77; }; }
3242 ac_exeext=$ac_cv_exeext
3244 # Check that the compiler produces executables we can run. If not, either
3245 # the compiler is broken, or we cross compile.
3246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3249 # If not cross compiling, check that we can run a simple program.
3250 if test "$cross_compiling" != yes; then
3251 if { ac_try='./$ac_file'
3252 { (case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_try") 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 cross_compiling=no
3262 else
3263 if test "$cross_compiling" = maybe; then
3264 cross_compiling=yes
3265 else
3266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \`config.log' for more details." >&5
3269 echo "$as_me: error: cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3276 { echo "$as_me:$LINENO: result: yes" >&5
3277 echo "${ECHO_T}yes" >&6; }
3279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3280 ac_clean_files=$ac_clean_files_save
3281 # Check that the compiler produces executables we can run. If not, either
3282 # the compiler is broken, or we cross compile.
3283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3286 echo "${ECHO_T}$cross_compiling" >&6; }
3288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3290 if { (ac_try="$ac_link"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_link") 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; then
3300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3302 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 # `rm'.
3304 for ac_file in conftest.exe conftest conftest.*; do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 break;;
3310 * ) break;;
3311 esac
3312 done
3313 else
3314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3317 See \`config.log' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3321 rm -f conftest$ac_cv_exeext
3322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3325 rm -f conftest.$ac_ext
3326 EXEEXT=$ac_cv_exeext
3327 ac_exeext=$EXEEXT
3328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3330 if test "${ac_cv_objext+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3341 main ()
3345 return 0;
3347 _ACEOF
3348 rm -f conftest.o conftest.obj
3349 if { (ac_try="$ac_compile"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; then
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 break;;
3365 esac
3366 done
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details." >&5
3373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3374 See \`config.log' for more details." >&2;}
3375 { (exit 1); exit 1; }; }
3378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3381 echo "${ECHO_T}$ac_cv_objext" >&6; }
3382 OBJEXT=$ac_cv_objext
3383 ac_objext=$OBJEXT
3384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 main ()
3399 #ifndef __GNUC__
3400 choke me
3401 #endif
3404 return 0;
3406 _ACEOF
3407 rm -f conftest.$ac_objext
3408 if { (ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_compile") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
3424 ac_compiler_gnu=yes
3425 else
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 ac_compiler_gnu=no
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3436 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3438 GCC=`test $ac_compiler_gnu = yes && echo yes`
3439 ac_test_CFLAGS=${CFLAGS+set}
3440 ac_save_CFLAGS=$CFLAGS
3441 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3442 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_cc_g+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 ac_save_c_werror_flag=$ac_c_werror_flag
3447 ac_c_werror_flag=yes
3448 ac_cv_prog_cc_g=no
3449 CFLAGS="-g"
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 main ()
3462 return 0;
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (ac_try="$ac_compile"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3482 ac_cv_prog_cc_g=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 CFLAGS=""
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3496 main ()
3500 return 0;
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && {
3517 test -z "$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.$ac_objext; then
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 ac_c_werror_flag=$ac_save_c_werror_flag
3526 CFLAGS="-g"
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3535 main ()
3539 return 0;
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3559 ac_cv_prog_cc_g=yes
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579 CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581 if test "$GCC" = yes; then
3582 CFLAGS="-g -O2"
3583 else
3584 CFLAGS="-g"
3586 else
3587 if test "$GCC" = yes; then
3588 CFLAGS="-O2"
3589 else
3590 CFLAGS=
3593 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3594 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3595 if test "${ac_cv_prog_cc_c89+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 ac_cv_prog_cc_c89=no
3599 ac_save_CC=$CC
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3614 char **p;
3615 int i;
3617 return p[i];
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3621 char *s;
3622 va_list v;
3623 va_start (v,p);
3624 s = g (p, va_arg (v,int));
3625 va_end (v);
3626 return s;
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3640 #define FOO(x) 'x'
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 int argc;
3648 char **argv;
3650 main ()
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 return 0;
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3678 ac_cv_prog_cc_c89=$ac_arg
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f core conftest.err conftest.$ac_objext
3687 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3696 { echo "$as_me:$LINENO: result: none needed" >&5
3697 echo "${ECHO_T}none needed" >&6; } ;;
3698 xno)
3699 { echo "$as_me:$LINENO: result: unsupported" >&5
3700 echo "${ECHO_T}unsupported" >&6; } ;;
3702 CC="$CC $ac_cv_prog_cc_c89"
3703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3704 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3716 # but has idiosyncrasies of its own. We assume icc will define
3717 # __INTEL_COMPILER regardless of CFLAGS.
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3727 main ()
3729 #ifndef __INTEL_COMPILER
3730 choke me
3731 #endif
3733 return 0;
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (ac_try="$ac_compile"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3743 (eval "$ac_compile") 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } && {
3750 test -z "$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 } && test -s conftest.$ac_objext; then
3753 ICC=yes
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ICC=no
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 # Check if it's Sun Studio compiler. We assume that
3764 # __SUNPRO_C will be defined for Sun Studio compilers
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3773 main ()
3775 #ifndef __SUNPRO_C
3776 choke me
3777 #endif
3779 return 0;
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (ac_try="$ac_compile"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3799 SUN_STUDIO_CC=yes
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 SUN_STUDIO_CC=no
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 unset CFLAGS
3814 # Read the template
3816 . "$srcdir/src/template/$template" || exit
3818 # CFLAGS are selected so:
3819 # If the user specifies something in the environment, that is used.
3820 # else: If the template file set something, that is used.
3821 # else: If coverage was enabled, don't set anything.
3822 # else: If the compiler is GCC, then we use -O2.
3823 # else: If the compiler is something else, then we use -O.
3825 if test "$ac_env_CFLAGS_set" = set; then
3826 CFLAGS=$ac_env_CFLAGS_value
3827 elif test "${CFLAGS+set}" = set; then
3828 : # (keep what template set)
3829 elif test "$enable_coverage" = yes; then
3830 : # no optimization by default
3831 elif test "$GCC" = yes; then
3832 CFLAGS="-O2"
3833 else
3834 # if the user selected debug mode, don't use -O
3835 if test "$enable_debug" != yes; then
3836 CFLAGS="-O"
3840 # Some versions of GCC support some additional useful warning flags.
3841 # Check whether they are supported, and add them to CFLAGS if so.
3842 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3844 if test "$GCC" = yes -a "$ICC" = no; then
3845 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3846 # These work in some but not all gcc versions
3847 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3848 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3849 pgac_save_CFLAGS=$CFLAGS
3850 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3859 main ()
3863 return 0;
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3883 { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 CFLAGS="$pgac_save_CFLAGS"
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3897 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3898 pgac_save_CFLAGS=$CFLAGS
3899 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_compile") 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } && {
3929 test -z "$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3931 } && test -s conftest.$ac_objext; then
3932 { echo "$as_me:$LINENO: result: yes" >&5
3933 echo "${ECHO_T}yes" >&6; }
3934 else
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 CFLAGS="$pgac_save_CFLAGS"
3939 { echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6; }
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 # Disable strict-aliasing rules; needed for gcc 3.3+
3946 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3947 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3948 pgac_save_CFLAGS=$CFLAGS
3949 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3958 main ()
3962 return 0;
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (ac_try="$ac_compile"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_compile") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest.$ac_objext; then
3982 { echo "$as_me:$LINENO: result: yes" >&5
3983 echo "${ECHO_T}yes" >&6; }
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 CFLAGS="$pgac_save_CFLAGS"
3989 { echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6; }
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3996 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3997 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3998 pgac_save_CFLAGS=$CFLAGS
3999 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 { echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6; }
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 CFLAGS="$pgac_save_CFLAGS"
4039 { echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6; }
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 elif test "$ICC" = yes; then
4046 # Intel's compiler has a bug/misoptimization in checking for
4047 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4048 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4049 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4050 pgac_save_CFLAGS=$CFLAGS
4051 CFLAGS="$pgac_save_CFLAGS -mp1"
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4060 main ()
4064 return 0;
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 { echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6; }
4086 else
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 CFLAGS="$pgac_save_CFLAGS"
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 # Make sure strict aliasing is off (though this is said to be the default)
4098 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4099 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4100 pgac_save_CFLAGS=$CFLAGS
4101 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } && {
4131 test -z "$ac_c_werror_flag" ||
4132 test ! -s conftest.err
4133 } && test -s conftest.$ac_objext; then
4134 { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4136 else
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 CFLAGS="$pgac_save_CFLAGS"
4141 { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 elif test x"${CC}" = x"xlc"; then
4148 # AIX xlc has to have strict aliasing turned off too
4149 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4150 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4151 pgac_save_CFLAGS=$CFLAGS
4152 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_compile") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest.$ac_objext; then
4185 { echo "$as_me:$LINENO: result: yes" >&5
4186 echo "${ECHO_T}yes" >&6; }
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 CFLAGS="$pgac_save_CFLAGS"
4192 { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 # supply -g if --enable-debug
4201 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4202 CFLAGS="$CFLAGS -g"
4205 # enable code coverage if --enable-coverage
4206 if test "$enable_coverage" = yes; then
4207 if test "$GCC" = yes; then
4208 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4209 else
4210 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4211 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4212 { (exit 1); exit 1; }; }
4216 # enable profiling if --enable-profiling
4217 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4218 if test "$GCC" = yes; then
4220 cat >>confdefs.h <<\_ACEOF
4221 #define PROFILE_PID_DIR 1
4222 _ACEOF
4224 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4225 else
4226 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4227 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4228 { (exit 1); exit 1; }; }
4232 # We already have this in Makefile.win32, but configure needs it too
4233 if test "$PORTNAME" = "win32"; then
4234 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4237 # Check if the compiler still works with the template settings
4238 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4239 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4248 main ()
4250 return 0;
4252 return 0;
4254 _ACEOF
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_link") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && {
4269 test -z "$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4271 } && test -s conftest$ac_exeext &&
4272 $as_test_x conftest$ac_exeext; then
4273 { echo "$as_me:$LINENO: result: yes" >&5
4274 echo "${ECHO_T}yes" >&6; }
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4281 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4282 echo "$as_me: error: cannot proceed" >&2;}
4283 { (exit 1); exit 1; }; }
4286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4287 conftest$ac_exeext conftest.$ac_ext
4289 # Defend against gcc -ffast-math
4290 if test "$GCC" = yes; then
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4299 main ()
4301 #ifdef __FAST_MATH__
4302 choke me
4303 #endif
4305 return 0;
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (ac_try="$ac_compile"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_compile") 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
4324 } && test -s conftest.$ac_objext; then
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4331 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4332 { (exit 1); exit 1; }; }
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347 CPP=
4349 if test -z "$CPP"; then
4350 if test "${ac_cv_prog_CPP+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356 ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #ifdef __STDC__
4372 # include <limits.h>
4373 #else
4374 # include <assert.h>
4375 #endif
4376 Syntax error
4377 _ACEOF
4378 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } >/dev/null && {
4391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 }; then
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 # Broken: fails on valid input.
4400 continue
4403 rm -f conftest.err conftest.$ac_ext
4405 # OK, works on sane cases. Now check whether nonexistent headers
4406 # can be detected and how.
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <ac_nonexistent.h>
4414 _ACEOF
4415 if { (ac_try="$ac_cpp conftest.$ac_ext"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } >/dev/null && {
4428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4430 }; then
4431 # Broken: success on invalid input.
4432 continue
4433 else
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 # Passes both tests.
4438 ac_preproc_ok=:
4439 break
4442 rm -f conftest.err conftest.$ac_ext
4444 done
4445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4446 rm -f conftest.err conftest.$ac_ext
4447 if $ac_preproc_ok; then
4448 break
4451 done
4452 ac_cv_prog_CPP=$CPP
4455 CPP=$ac_cv_prog_CPP
4456 else
4457 ac_cv_prog_CPP=$CPP
4459 { echo "$as_me:$LINENO: result: $CPP" >&5
4460 echo "${ECHO_T}$CPP" >&6; }
4461 ac_preproc_ok=false
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #ifdef __STDC__
4477 # include <limits.h>
4478 #else
4479 # include <assert.h>
4480 #endif
4481 Syntax error
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 }; then
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Broken: fails on valid input.
4505 continue
4508 rm -f conftest.err conftest.$ac_ext
4510 # OK, works on sane cases. Now check whether nonexistent headers
4511 # can be detected and how.
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h. */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null && {
4533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 }; then
4536 # Broken: success on invalid input.
4537 continue
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 # Passes both tests.
4543 ac_preproc_ok=:
4544 break
4547 rm -f conftest.err conftest.$ac_ext
4549 done
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then
4554 else
4555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4556 See \`config.log' for more details." >&5
4557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details." >&2;}
4559 { (exit 1); exit 1; }; }
4562 ac_ext=c
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570 # Create compiler version string
4571 if test x"$GCC" = x"yes" ; then
4572 cc_string="GCC `${CC} --version | sed q`"
4573 else
4574 cc_string=$CC
4577 cat >>confdefs.h <<_ACEOF
4578 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4579 _ACEOF
4584 # Set up TAS assembly code if needed; the template file has now had its
4585 # chance to request this.
4587 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4590 if test "$need_tas" = yes ; then
4591 TAS=tas.o
4592 else
4593 TAS=""
4599 # Automatic dependency tracking
4602 pgac_args="$pgac_args enable_depend"
4604 # Check whether --enable-depend was given.
4605 if test "${enable_depend+set}" = set; then
4606 enableval=$enable_depend;
4607 case $enableval in
4608 yes)
4609 autodepend=yes
4615 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4616 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4617 { (exit 1); exit 1; }; }
4619 esac
4621 else
4622 enable_depend=no
4631 # Enable assert checks
4634 pgac_args="$pgac_args enable_cassert"
4636 # Check whether --enable-cassert was given.
4637 if test "${enable_cassert+set}" = set; then
4638 enableval=$enable_cassert;
4639 case $enableval in
4640 yes)
4642 cat >>confdefs.h <<\_ACEOF
4643 #define USE_ASSERT_CHECKING 1
4644 _ACEOF
4651 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4652 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4653 { (exit 1); exit 1; }; }
4655 esac
4657 else
4658 enable_cassert=no
4666 # Include directories
4668 ac_save_IFS=$IFS
4669 IFS="${IFS}${PATH_SEPARATOR}"
4670 # SRCH_INC comes from the template file
4671 for dir in $with_includes $SRCH_INC; do
4672 if test -d "$dir"; then
4673 INCLUDES="$INCLUDES -I$dir"
4674 else
4675 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4676 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4678 done
4679 IFS=$ac_save_IFS
4684 # Library directories
4686 ac_save_IFS=$IFS
4687 IFS="${IFS}${PATH_SEPARATOR}"
4688 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4689 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4690 if test -d "$dir"; then
4691 LIBDIRS="$LIBDIRS -L$dir"
4692 else
4693 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4694 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4696 done
4697 IFS=$ac_save_IFS
4700 # Enable thread-safe client libraries
4702 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4703 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4704 if test "$PORTNAME" != "win32"; then
4706 pgac_args="$pgac_args enable_thread_safety"
4708 # Check whether --enable-thread-safety was given.
4709 if test "${enable_thread_safety+set}" = set; then
4710 enableval=$enable_thread_safety;
4711 case $enableval in
4712 yes)
4719 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4720 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4721 { (exit 1); exit 1; }; }
4723 esac
4725 else
4726 enable_thread_safety=no
4731 else
4732 # Win32 should always use threads
4734 pgac_args="$pgac_args enable_thread_safety"
4736 # Check whether --enable-thread-safety was given.
4737 if test "${enable_thread_safety+set}" = set; then
4738 enableval=$enable_thread_safety;
4739 case $enableval in
4740 yes)
4747 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4748 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4749 { (exit 1); exit 1; }; }
4751 esac
4753 else
4754 enable_thread_safety=yes
4762 pgac_args="$pgac_args enable_thread_safety_force"
4764 # Check whether --enable-thread-safety-force was given.
4765 if test "${enable_thread_safety_force+set}" = set; then
4766 enableval=$enable_thread_safety_force;
4767 case $enableval in
4768 yes)
4775 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4776 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4777 { (exit 1); exit 1; }; }
4779 esac
4781 else
4782 enable_thread_safety_force=no
4787 if test "$enable_thread_safety" = yes -o \
4788 "$enable_thread_safety_force" = yes; then
4789 enable_thread_safety="yes" # for 'force'
4791 cat >>confdefs.h <<\_ACEOF
4792 #define ENABLE_THREAD_SAFETY 1
4793 _ACEOF
4796 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4797 echo "${ECHO_T}$enable_thread_safety" >&6; }
4801 # Optionally build Tcl modules (PL/Tcl)
4803 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4804 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4806 pgac_args="$pgac_args with_tcl"
4809 # Check whether --with-tcl was given.
4810 if test "${with_tcl+set}" = set; then
4811 withval=$with_tcl;
4812 case $withval in
4813 yes)
4820 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4821 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4822 { (exit 1); exit 1; }; }
4824 esac
4826 else
4827 with_tcl=no
4832 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4833 echo "${ECHO_T}$with_tcl" >&6; }
4836 # We see if the path to the Tcl/Tk configuration scripts is specified.
4837 # This will override the use of tclsh to find the paths to search.
4840 pgac_args="$pgac_args with_tclconfig"
4843 # Check whether --with-tclconfig was given.
4844 if test "${with_tclconfig+set}" = set; then
4845 withval=$with_tclconfig;
4846 case $withval in
4847 yes)
4848 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4849 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4850 { (exit 1); exit 1; }; }
4853 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4854 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4855 { (exit 1); exit 1; }; }
4860 esac
4867 # Optionally build Perl modules (PL/Perl)
4869 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4870 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4872 pgac_args="$pgac_args with_perl"
4875 # Check whether --with-perl was given.
4876 if test "${with_perl+set}" = set; then
4877 withval=$with_perl;
4878 case $withval in
4879 yes)
4886 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4887 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4888 { (exit 1); exit 1; }; }
4890 esac
4892 else
4893 with_perl=no
4898 { echo "$as_me:$LINENO: result: $with_perl" >&5
4899 echo "${ECHO_T}$with_perl" >&6; }
4903 # Optionally build Python modules (PL/Python)
4905 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4906 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4908 pgac_args="$pgac_args with_python"
4911 # Check whether --with-python was given.
4912 if test "${with_python+set}" = set; then
4913 withval=$with_python;
4914 case $withval in
4915 yes)
4922 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4923 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4924 { (exit 1); exit 1; }; }
4926 esac
4928 else
4929 with_python=no
4934 { echo "$as_me:$LINENO: result: $with_python" >&5
4935 echo "${ECHO_T}$with_python" >&6; }
4939 # GSSAPI
4941 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4942 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4944 pgac_args="$pgac_args with_gssapi"
4947 # Check whether --with-gssapi was given.
4948 if test "${with_gssapi+set}" = set; then
4949 withval=$with_gssapi;
4950 case $withval in
4951 yes)
4954 cat >>confdefs.h <<\_ACEOF
4955 #define ENABLE_GSS 1
4956 _ACEOF
4958 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4965 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4966 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4967 { (exit 1); exit 1; }; }
4969 esac
4971 else
4972 with_gssapi=no
4977 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4978 echo "${ECHO_T}$with_gssapi" >&6; }
4982 # Kerberos 5
4984 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4985 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4987 pgac_args="$pgac_args with_krb5"
4990 # Check whether --with-krb5 was given.
4991 if test "${with_krb5+set}" = set; then
4992 withval=$with_krb5;
4993 case $withval in
4994 yes)
4997 cat >>confdefs.h <<\_ACEOF
4998 #define KRB5 1
4999 _ACEOF
5001 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5008 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5009 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5010 { (exit 1); exit 1; }; }
5012 esac
5014 else
5015 with_krb5=no
5020 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5021 echo "${ECHO_T}$with_krb5" >&6; }
5029 # Kerberos configuration parameters
5032 pgac_args="$pgac_args with_krb_srvnam"
5035 # Check whether --with-krb-srvnam was given.
5036 if test "${with_krb_srvnam+set}" = set; then
5037 withval=$with_krb_srvnam;
5038 case $withval in
5039 yes)
5040 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5041 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5042 { (exit 1); exit 1; }; }
5045 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5046 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5047 { (exit 1); exit 1; }; }
5052 esac
5054 else
5055 with_krb_srvnam="postgres"
5060 cat >>confdefs.h <<_ACEOF
5061 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5062 _ACEOF
5067 # PAM
5069 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5070 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5072 pgac_args="$pgac_args with_pam"
5075 # Check whether --with-pam was given.
5076 if test "${with_pam+set}" = set; then
5077 withval=$with_pam;
5078 case $withval in
5079 yes)
5081 cat >>confdefs.h <<\_ACEOF
5082 #define USE_PAM 1
5083 _ACEOF
5090 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5091 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5092 { (exit 1); exit 1; }; }
5094 esac
5096 else
5097 with_pam=no
5102 { echo "$as_me:$LINENO: result: $with_pam" >&5
5103 echo "${ECHO_T}$with_pam" >&6; }
5108 # LDAP
5110 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5111 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5113 pgac_args="$pgac_args with_ldap"
5116 # Check whether --with-ldap was given.
5117 if test "${with_ldap+set}" = set; then
5118 withval=$with_ldap;
5119 case $withval in
5120 yes)
5122 cat >>confdefs.h <<\_ACEOF
5123 #define USE_LDAP 1
5124 _ACEOF
5131 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5132 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5133 { (exit 1); exit 1; }; }
5135 esac
5137 else
5138 with_ldap=no
5143 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5144 echo "${ECHO_T}$with_ldap" >&6; }
5149 # Bonjour
5151 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5152 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5154 pgac_args="$pgac_args with_bonjour"
5157 # Check whether --with-bonjour was given.
5158 if test "${with_bonjour+set}" = set; then
5159 withval=$with_bonjour;
5160 case $withval in
5161 yes)
5163 cat >>confdefs.h <<\_ACEOF
5164 #define USE_BONJOUR 1
5165 _ACEOF
5172 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5173 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5174 { (exit 1); exit 1; }; }
5176 esac
5178 else
5179 with_bonjour=no
5184 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5185 echo "${ECHO_T}$with_bonjour" >&6; }
5190 # OpenSSL
5192 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5193 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5195 pgac_args="$pgac_args with_openssl"
5198 # Check whether --with-openssl was given.
5199 if test "${with_openssl+set}" = set; then
5200 withval=$with_openssl;
5201 case $withval in
5202 yes)
5204 cat >>confdefs.h <<\_ACEOF
5205 #define USE_SSL 1
5206 _ACEOF
5213 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5214 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5215 { (exit 1); exit 1; }; }
5217 esac
5219 else
5220 with_openssl=no
5225 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5226 echo "${ECHO_T}$with_openssl" >&6; }
5231 # Readline
5234 pgac_args="$pgac_args with_readline"
5237 # Check whether --with-readline was given.
5238 if test "${with_readline+set}" = set; then
5239 withval=$with_readline;
5240 case $withval in
5241 yes)
5248 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5249 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5250 { (exit 1); exit 1; }; }
5252 esac
5254 else
5255 with_readline=yes
5260 # readline on MinGW has problems with backslashes in psql and other bugs.
5261 # This is particularly a problem with non-US code pages.
5262 # Therefore disable its use until we understand the cause. 2004-07-20
5263 if test "$PORTNAME" = "win32"; then
5264 if test "$with_readline" = yes; then
5265 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5266 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5267 with_readline=no
5273 # Prefer libedit
5276 pgac_args="$pgac_args with_libedit_preferred"
5279 # Check whether --with-libedit-preferred was given.
5280 if test "${with_libedit_preferred+set}" = set; then
5281 withval=$with_libedit_preferred;
5282 case $withval in
5283 yes)
5290 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5291 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5292 { (exit 1); exit 1; }; }
5294 esac
5296 else
5297 with_libedit_preferred=no
5305 # OSSP UUID library
5308 pgac_args="$pgac_args with_ossp_uuid"
5311 # Check whether --with-ossp-uuid was given.
5312 if test "${with_ossp_uuid+set}" = set; then
5313 withval=$with_ossp_uuid;
5314 case $withval in
5315 yes)
5322 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5323 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5324 { (exit 1); exit 1; }; }
5326 esac
5328 else
5329 with_ossp_uuid=no
5338 # XML
5341 pgac_args="$pgac_args with_libxml"
5344 # Check whether --with-libxml was given.
5345 if test "${with_libxml+set}" = set; then
5346 withval=$with_libxml;
5347 case $withval in
5348 yes)
5350 cat >>confdefs.h <<\_ACEOF
5351 #define USE_LIBXML 1
5352 _ACEOF
5359 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5360 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5361 { (exit 1); exit 1; }; }
5363 esac
5365 else
5366 with_libxml=no
5372 if test "$with_libxml" = yes ; then
5373 for ac_prog in xml2-config
5375 # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy $ac_prog; ac_word=$2
5377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5379 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 if test -n "$XML2_CONFIG"; then
5383 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_XML2_CONFIG="$ac_prog"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5403 if test -n "$XML2_CONFIG"; then
5404 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5405 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5406 else
5407 { echo "$as_me:$LINENO: result: no" >&5
5408 echo "${ECHO_T}no" >&6; }
5412 test -n "$XML2_CONFIG" && break
5413 done
5415 if test -n "$XML2_CONFIG"; then
5416 for pgac_option in `$XML2_CONFIG --cflags`; do
5417 case $pgac_option in
5418 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5419 esac
5420 done
5421 for pgac_option in `$XML2_CONFIG --libs`; do
5422 case $pgac_option in
5423 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5424 esac
5425 done
5432 # XSLT
5435 pgac_args="$pgac_args with_libxslt"
5438 # Check whether --with-libxslt was given.
5439 if test "${with_libxslt+set}" = set; then
5440 withval=$with_libxslt;
5441 case $withval in
5442 yes)
5444 cat >>confdefs.h <<\_ACEOF
5445 #define USE_LIBXSLT 1
5446 _ACEOF
5453 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5454 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5455 { (exit 1); exit 1; }; }
5457 esac
5459 else
5460 with_libxslt=no
5470 # tzdata
5473 pgac_args="$pgac_args with_system_tzdata"
5476 # Check whether --with-system-tzdata was given.
5477 if test "${with_system_tzdata+set}" = set; then
5478 withval=$with_system_tzdata;
5479 case $withval in
5480 yes)
5481 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5482 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5483 { (exit 1); exit 1; }; }
5486 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5487 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5488 { (exit 1); exit 1; }; }
5493 esac
5501 # Zlib
5504 pgac_args="$pgac_args with_zlib"
5507 # Check whether --with-zlib was given.
5508 if test "${with_zlib+set}" = set; then
5509 withval=$with_zlib;
5510 case $withval in
5511 yes)
5518 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5519 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5520 { (exit 1); exit 1; }; }
5522 esac
5524 else
5525 with_zlib=yes
5533 # Elf
5536 # Assume system is ELF if it predefines __ELF__ as 1,
5537 # otherwise believe host_os based default.
5538 case $host_os in
5539 freebsd1*|freebsd2*) elf=no;;
5540 freebsd3*|freebsd4*) elf=yes;;
5541 esac
5544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_GREP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 # Extract the first word of "grep ggrep" to use in msg output
5550 if test -z "$GREP"; then
5551 set dummy grep ggrep; ac_prog_name=$2
5552 if test "${ac_cv_path_GREP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 ac_path_GREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in grep ggrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5566 # Check for GNU ac_path_GREP and select it if it is found.
5567 # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in
5569 *GNU*)
5570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5572 ac_count=0
5573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5574 while :
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 echo 'GREP' >> "conftest.nl"
5580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 ac_count=`expr $ac_count + 1`
5583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_GREP="$ac_path_GREP"
5586 ac_path_GREP_max=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5595 $ac_path_GREP_found && break 3
5596 done
5597 done
5599 done
5600 IFS=$as_save_IFS
5605 GREP="$ac_cv_path_GREP"
5606 if test -z "$GREP"; then
5607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5609 { (exit 1); exit 1; }; }
5612 else
5613 ac_cv_path_GREP=$GREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5620 GREP="$ac_cv_path_GREP"
5623 { echo "$as_me:$LINENO: checking for egrep" >&5
5624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5629 then ac_cv_path_EGREP="$GREP -E"
5630 else
5631 # Extract the first word of "egrep" to use in msg output
5632 if test -z "$EGREP"; then
5633 set dummy egrep; ac_prog_name=$2
5634 if test "${ac_cv_path_EGREP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 ac_path_EGREP_found=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_prog in egrep; do
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5647 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5648 # Check for GNU ac_path_EGREP and select it if it is found.
5649 # Check for GNU $ac_path_EGREP
5650 case `"$ac_path_EGREP" --version 2>&1` in
5651 *GNU*)
5652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5654 ac_count=0
5655 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5656 while :
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 echo 'EGREP' >> "conftest.nl"
5662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664 ac_count=`expr $ac_count + 1`
5665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_EGREP="$ac_path_EGREP"
5668 ac_path_EGREP_max=$ac_count
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5672 done
5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674 esac
5677 $ac_path_EGREP_found && break 3
5678 done
5679 done
5681 done
5682 IFS=$as_save_IFS
5687 EGREP="$ac_cv_path_EGREP"
5688 if test -z "$EGREP"; then
5689 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5691 { (exit 1); exit 1; }; }
5694 else
5695 ac_cv_path_EGREP=$EGREP
5701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5703 EGREP="$ac_cv_path_EGREP"
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #if __ELF__
5714 #endif
5716 _ACEOF
5717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5718 $EGREP "yes" >/dev/null 2>&1; then
5719 ELF_SYS=true
5720 else
5721 if test "X$elf" = "Xyes" ; then
5722 ELF_SYS=true
5723 else
5724 ELF_SYS=
5727 rm -f conftest*
5732 # Assignments
5735 CPPFLAGS="$CPPFLAGS $INCLUDES"
5736 LDFLAGS="$LDFLAGS $LIBDIRS"
5741 # Check whether --with-gnu-ld was given.
5742 if test "${with_gnu_ld+set}" = set; then
5743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5744 else
5745 with_gnu_ld=no
5748 ac_prog=ld
5749 if test "$GCC" = yes; then
5750 # Check if gcc -print-prog-name=ld gives a path.
5751 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5752 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5753 case $host in
5754 *-*-mingw*)
5755 # gcc leaves a trailing carriage return which upsets mingw
5756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5759 esac
5760 case "$ac_prog" in
5761 # Accept absolute paths.
5762 [\\/]* | [A-Za-z]:[\\/]*)
5763 re_direlt='/[^/][^/]*/\.\./'
5764 # Canonicalize the path of ld
5765 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5767 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5768 done
5769 test -z "$LD" && LD="$ac_prog"
5772 # If it fails, then pretend we aren't using GCC.
5773 ac_prog=ld
5776 # If it is relative, then search for the first ld in PATH.
5777 with_gnu_ld=unknown
5779 esac
5780 elif test "$with_gnu_ld" = yes; then
5781 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5783 else
5784 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5787 if test "${ac_cv_path_LD+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 if test -z "$LD"; then
5791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5792 for ac_dir in $PATH; do
5793 test -z "$ac_dir" && ac_dir=.
5794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5795 ac_cv_path_LD="$ac_dir/$ac_prog"
5796 # Check to see if the program is GNU ld. I'd rather use --version,
5797 # but apparently some GNU ld's only accept -v.
5798 # Break only if it was the GNU/non-GNU ld that we prefer.
5799 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5800 test "$with_gnu_ld" != no && break
5801 else
5802 test "$with_gnu_ld" != yes && break
5805 done
5806 IFS="$ac_save_ifs"
5807 else
5808 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5812 LD="$ac_cv_path_LD"
5813 if test -n "$LD"; then
5814 { echo "$as_me:$LINENO: result: $LD" >&5
5815 echo "${ECHO_T}$LD" >&6; }
5816 else
5817 { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5820 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5821 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5822 { (exit 1); exit 1; }; }
5823 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5824 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5825 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5830 ac_cv_prog_gnu_ld=yes
5831 else
5832 ac_cv_prog_gnu_ld=no
5835 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5836 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5837 with_gnu_ld=$ac_cv_prog_gnu_ld
5842 case $host_os in sysv5*)
5843 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5844 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5845 if test "${pgac_cv_prog_ld_R+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5849 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5858 main ()
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (ac_try="$ac_link"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_link") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest$ac_exeext &&
5882 $as_test_x conftest$ac_exeext; then
5883 pgac_cv_prog_ld_R=yes
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 pgac_cv_prog_ld_R=no
5891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5892 conftest$ac_exeext conftest.$ac_ext
5893 LDFLAGS=$pgac_save_LDFLAGS
5896 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5897 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5898 ld_R_works=$pgac_cv_prog_ld_R
5900 esac
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5923 done
5924 done
5925 IFS=$as_save_IFS
5929 RANLIB=$ac_cv_prog_RANLIB
5930 if test -n "$RANLIB"; then
5931 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5932 echo "${ECHO_T}$RANLIB" >&6; }
5933 else
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5940 if test -z "$ac_cv_prog_RANLIB"; then
5941 ac_ct_RANLIB=$RANLIB
5942 # Extract the first word of "ranlib", so it can be a program name with args.
5943 set dummy ranlib; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 if test -n "$ac_ct_RANLIB"; then
5950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_RANLIB="ranlib"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5963 done
5964 done
5965 IFS=$as_save_IFS
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5972 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5973 else
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5978 if test "x$ac_ct_RANLIB" = x; then
5979 RANLIB=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5984 whose name does not start with the host triplet. If you think this
5985 configuration is useful to you, please write to autoconf@gnu.org." >&5
5986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet. If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991 RANLIB=$ac_ct_RANLIB
5993 else
5994 RANLIB="$ac_cv_prog_RANLIB"
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6022 IFS=$as_save_IFS
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { echo "$as_me:$LINENO: result: $STRIP" >&5
6029 echo "${ECHO_T}$STRIP" >&6; }
6030 else
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6038 ac_ct_STRIP=$STRIP
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6060 done
6061 done
6062 IFS=$as_save_IFS
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6069 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6070 else
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6075 if test "x$ac_ct_STRIP" = x; then
6076 STRIP=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6081 whose name does not start with the host triplet. If you think this
6082 configuration is useful to you, please write to autoconf@gnu.org." >&5
6083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6084 whose name does not start with the host triplet. If you think this
6085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 STRIP=$ac_ct_STRIP
6090 else
6091 STRIP="$ac_cv_prog_STRIP"
6095 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6096 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6097 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6098 STRIP_STATIC_LIB="$STRIP -x"
6099 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6100 { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6102 else
6103 STRIP_STATIC_LIB=:
6104 STRIP_SHARED_LIB=:
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6112 # Extract the first word of "tar", so it can be a program name with args.
6113 set dummy tar; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_path_TAR+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 case $TAR in
6120 [\\/]* | ?:[\\/]*)
6121 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
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_path_TAR="$as_dir/$ac_word$ac_exec_ext"
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
6140 esac
6142 TAR=$ac_cv_path_TAR
6143 if test -n "$TAR"; then
6144 { echo "$as_me:$LINENO: result: $TAR" >&5
6145 echo "${ECHO_T}$TAR" >&6; }
6146 else
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6152 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6153 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6154 LN_S=$as_ln_s
6155 if test "$LN_S" = "ln -s"; then
6156 { echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6; }
6158 else
6159 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6160 echo "${ECHO_T}no, using $LN_S" >&6; }
6163 for ac_prog in gawk mawk nawk awk
6165 # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_AWK+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 if test -n "$AWK"; then
6173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_AWK="$ac_prog"
6183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6186 done
6187 done
6188 IFS=$as_save_IFS
6192 AWK=$ac_cv_prog_AWK
6193 if test -n "$AWK"; then
6194 { echo "$as_me:$LINENO: result: $AWK" >&5
6195 echo "${ECHO_T}$AWK" >&6; }
6196 else
6197 { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6202 test -n "$AWK" && break
6203 done
6206 # Let the user override the search
6207 if test -z "$BISON"; then
6208 for ac_prog in bison
6210 # Extract the first word of "$ac_prog", so it can be a program name with args.
6211 set dummy $ac_prog; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_BISON+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 if test -n "$BISON"; then
6218 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_BISON="$ac_prog"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6237 BISON=$ac_cv_prog_BISON
6238 if test -n "$BISON"; then
6239 { echo "$as_me:$LINENO: result: $BISON" >&5
6240 echo "${ECHO_T}$BISON" >&6; }
6241 else
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6247 test -n "$BISON" && break
6248 done
6252 if test "$BISON"; then
6253 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6254 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6255 echo "$as_me: using $pgac_bison_version" >&6;}
6256 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6257 then
6258 { echo "$as_me:$LINENO: WARNING:
6259 *** The installed version of Bison is too old to use with PostgreSQL.
6260 *** Bison version 1.875 or later is required." >&5
6261 echo "$as_me: WARNING:
6262 *** The installed version of Bison is too old to use with PostgreSQL.
6263 *** Bison version 1.875 or later is required." >&2;}
6264 BISON=""
6268 if test -z "$BISON"; then
6269 { echo "$as_me:$LINENO: WARNING:
6270 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6271 *** change any of the parser definition files. You can obtain Bison from
6272 *** a GNU mirror site. (If you are using the official distribution of
6273 *** PostgreSQL then you do not need to worry about this, because the Bison
6274 *** output is pre-generated.)" >&5
6275 echo "$as_me: WARNING:
6276 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6277 *** change any of the parser definition files. You can obtain Bison from
6278 *** a GNU mirror site. (If you are using the official distribution of
6279 *** PostgreSQL then you do not need to worry about this, because the Bison
6280 *** output is pre-generated.)" >&2;}
6282 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6285 { echo "$as_me:$LINENO: checking for flex" >&5
6286 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6287 if test "${pgac_cv_path_flex+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 # Let the user override the test
6291 if test -n "$FLEX"; then
6292 pgac_cv_path_flex=$FLEX
6293 else
6294 pgac_save_IFS=$IFS
6295 IFS=$PATH_SEPARATOR
6296 for pgac_dir in $PATH; do
6297 IFS=$pgac_save_IFS
6298 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6299 pgac_dir=`pwd`
6301 for pgac_prog in flex lex; do
6302 pgac_candidate="$pgac_dir/$pgac_prog"
6303 if test -f "$pgac_candidate" \
6304 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6305 then
6306 echo '%%' > conftest.l
6307 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6308 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6309 pgac_broken_flex=$pgac_candidate
6310 continue
6313 pgac_cv_path_flex=$pgac_candidate
6314 break 2
6317 done
6318 done
6319 rm -f conftest.l lex.yy.c
6320 : ${pgac_cv_path_flex=no}
6324 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6325 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6326 if test x"$pgac_cv_path_flex" = x"no"; then
6327 if test -n "$pgac_broken_flex"; then
6328 { echo "$as_me:$LINENO: WARNING:
6329 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6330 *** should get version 2.5.4 or later." >&5
6331 echo "$as_me: WARNING:
6332 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6333 *** should get version 2.5.4 or later." >&2;}
6336 { echo "$as_me:$LINENO: WARNING:
6337 *** Without Flex you will not be able to build PostgreSQL from CVS or
6338 *** change any of the scanner definition files. You can obtain Flex from
6339 *** a GNU mirror site. (If you are using the official distribution of
6340 *** PostgreSQL then you do not need to worry about this because the Flex
6341 *** output is pre-generated.)" >&5
6342 echo "$as_me: WARNING:
6343 *** Without Flex you will not be able to build PostgreSQL from CVS or
6344 *** change any of the scanner definition files. You can obtain Flex from
6345 *** a GNU mirror site. (If you are using the official distribution of
6346 *** PostgreSQL then you do not need to worry about this because the Flex
6347 *** output is pre-generated.)" >&2;}
6349 FLEX=
6350 else
6351 FLEX=$pgac_cv_path_flex
6352 pgac_flex_version=`$FLEX -V 2>/dev/null`
6353 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6354 echo "$as_me: using $pgac_flex_version" >&6;}
6361 # Extract the first word of "perl", so it can be a program name with args.
6362 set dummy perl; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_PERL+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368 case $PERL in
6369 [\\/]* | ?:[\\/]*)
6370 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6384 done
6385 done
6386 IFS=$as_save_IFS
6389 esac
6391 PERL=$ac_cv_path_PERL
6392 if test -n "$PERL"; then
6393 { echo "$as_me:$LINENO: result: $PERL" >&5
6394 echo "${ECHO_T}$PERL" >&6; }
6395 else
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6401 if test "$with_perl" = yes; then
6403 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6404 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6405 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6406 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6407 echo "${ECHO_T}$perl_archlibexp" >&6; }
6408 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6409 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6410 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6411 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6412 echo "${ECHO_T}$perl_privlibexp" >&6; }
6413 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6414 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6415 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6416 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6417 echo "${ECHO_T}$perl_useshrplib" >&6; }
6419 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6420 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6421 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6422 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6423 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6424 if test -z "$perl_embed_ldflags" ; then
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6428 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6429 installed." >&5
6430 echo "$as_me: error: could not determine flags for linking embedded Perl.
6431 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6432 installed." >&2;}
6433 { (exit 1); exit 1; }; }
6434 else
6435 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6436 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6441 if test "$with_python" = yes; then
6442 # Extract the first word of "python", so it can be a program name with args.
6443 set dummy python; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_path_PYTHON+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 case $PYTHON in
6450 [\\/]* | ?:[\\/]*)
6451 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6465 done
6466 done
6467 IFS=$as_save_IFS
6470 esac
6472 PYTHON=$ac_cv_path_PYTHON
6473 if test -n "$PYTHON"; then
6474 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6475 echo "${ECHO_T}$PYTHON" >&6; }
6476 else
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6482 if test x"$PYTHON" = x""; then
6483 { { echo "$as_me:$LINENO: error: Python not found" >&5
6484 echo "$as_me: error: Python not found" >&2;}
6485 { (exit 1); exit 1; }; }
6489 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6490 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6491 if "${PYTHON}" 2>&- -c 'import distutils'
6492 then
6493 { echo "$as_me:$LINENO: result: yes" >&5
6494 echo "${ECHO_T}yes" >&6; }
6495 else
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6499 echo "$as_me: error: distutils module not found" >&2;}
6500 { (exit 1); exit 1; }; }
6502 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6503 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6504 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6505 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')"`
6506 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6508 # This should be enough of a message.
6509 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6510 echo "${ECHO_T}$python_configdir" >&6; }
6513 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6514 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6516 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6517 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6518 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6519 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6521 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6522 then
6523 # New way: use the official shared library
6524 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6525 python_libspec="-L${python_libdir} -l${ldlibrary}"
6526 else
6527 # Old way: use libpython from python_configdir
6528 python_libdir="${python_configdir}"
6529 python_libspec="-L${python_libdir} -lpython${python_version}"
6532 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6534 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6535 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6538 # threaded python is not supported on bsd's
6539 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6540 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6541 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6542 if test "$pythreads" = "1"; then
6543 { echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6; }
6545 case $host_os in
6546 openbsd*|freebsd*)
6547 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6548 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6549 { (exit 1); exit 1; }; }
6551 esac
6552 else
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6560 # Supply a numeric version string for use by 3rd party add-ons
6561 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6562 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6563 tr '.' ' ' |
6564 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6566 cat >>confdefs.h <<_ACEOF
6567 #define PG_VERSION_NUM $PG_VERSION_NUM
6568 _ACEOF
6572 ## Libraries
6574 ## Most libraries are included only if they demonstrably provide a function
6575 ## we need, but libm is an exception: always include it, because there are
6576 ## too many compilers that play cute optimization games that will break
6577 ## probes for standard functions such as pow().
6581 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6582 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6583 if test "${ac_cv_lib_m_main+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 ac_check_lib_save_LIBS=$LIBS
6587 LIBS="-lm $LIBS"
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6597 main ()
6599 return main ();
6601 return 0;
6603 _ACEOF
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (ac_try="$ac_link"
6606 case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609 esac
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_link") 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest$ac_exeext &&
6621 $as_test_x conftest$ac_exeext; then
6622 ac_cv_lib_m_main=yes
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_cv_lib_m_main=no
6630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6631 conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_check_lib_save_LIBS
6634 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6635 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6636 if test $ac_cv_lib_m_main = yes; then
6637 cat >>confdefs.h <<_ACEOF
6638 #define HAVE_LIBM 1
6639 _ACEOF
6641 LIBS="-lm $LIBS"
6645 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6646 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6647 if test "${ac_cv_search_setproctitle+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 ac_func_search_save_LIBS=$LIBS
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 char setproctitle ();
6666 main ()
6668 return setproctitle ();
6670 return 0;
6672 _ACEOF
6673 for ac_lib in '' util; do
6674 if test -z "$ac_lib"; then
6675 ac_res="none required"
6676 else
6677 ac_res=-l$ac_lib
6678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6682 case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_link") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest$ac_exeext &&
6697 $as_test_x conftest$ac_exeext; then
6698 ac_cv_search_setproctitle=$ac_res
6699 else
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6707 conftest$ac_exeext
6708 if test "${ac_cv_search_setproctitle+set}" = set; then
6709 break
6711 done
6712 if test "${ac_cv_search_setproctitle+set}" = set; then
6714 else
6715 ac_cv_search_setproctitle=no
6717 rm conftest.$ac_ext
6718 LIBS=$ac_func_search_save_LIBS
6720 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6721 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6722 ac_res=$ac_cv_search_setproctitle
6723 if test "$ac_res" != no; then
6724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6728 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6729 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6730 if test "${ac_cv_search_dlopen+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 ac_func_search_save_LIBS=$LIBS
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6741 /* Override any GCC internal prototype to avoid an error.
6742 Use char because int might match the return type of a GCC
6743 builtin and then its argument prototype would still apply. */
6744 #ifdef __cplusplus
6745 extern "C"
6746 #endif
6747 char dlopen ();
6749 main ()
6751 return dlopen ();
6753 return 0;
6755 _ACEOF
6756 for ac_lib in '' dl; do
6757 if test -z "$ac_lib"; then
6758 ac_res="none required"
6759 else
6760 ac_res=-l$ac_lib
6761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6763 rm -f conftest.$ac_objext conftest$ac_exeext
6764 if { (ac_try="$ac_link"
6765 case "(($ac_try" in
6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767 *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_link") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest$ac_exeext &&
6780 $as_test_x conftest$ac_exeext; then
6781 ac_cv_search_dlopen=$ac_res
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6790 conftest$ac_exeext
6791 if test "${ac_cv_search_dlopen+set}" = set; then
6792 break
6794 done
6795 if test "${ac_cv_search_dlopen+set}" = set; then
6797 else
6798 ac_cv_search_dlopen=no
6800 rm conftest.$ac_ext
6801 LIBS=$ac_func_search_save_LIBS
6803 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6804 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6805 ac_res=$ac_cv_search_dlopen
6806 if test "$ac_res" != no; then
6807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6811 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6812 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6813 if test "${ac_cv_search_socket+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 ac_func_search_save_LIBS=$LIBS
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6824 /* Override any GCC internal prototype to avoid an error.
6825 Use char because int might match the return type of a GCC
6826 builtin and then its argument prototype would still apply. */
6827 #ifdef __cplusplus
6828 extern "C"
6829 #endif
6830 char socket ();
6832 main ()
6834 return socket ();
6836 return 0;
6838 _ACEOF
6839 for ac_lib in '' socket wsock32; do
6840 if test -z "$ac_lib"; then
6841 ac_res="none required"
6842 else
6843 ac_res=-l$ac_lib
6844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6846 rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (ac_try="$ac_link"
6848 case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_link") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest$ac_exeext &&
6863 $as_test_x conftest$ac_exeext; then
6864 ac_cv_search_socket=$ac_res
6865 else
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873 conftest$ac_exeext
6874 if test "${ac_cv_search_socket+set}" = set; then
6875 break
6877 done
6878 if test "${ac_cv_search_socket+set}" = set; then
6880 else
6881 ac_cv_search_socket=no
6883 rm conftest.$ac_ext
6884 LIBS=$ac_func_search_save_LIBS
6886 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6887 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6888 ac_res=$ac_cv_search_socket
6889 if test "$ac_res" != no; then
6890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6894 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6895 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6896 if test "${ac_cv_search_shl_load+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 ac_func_search_save_LIBS=$LIBS
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6907 /* Override any GCC internal prototype to avoid an error.
6908 Use char because int might match the return type of a GCC
6909 builtin and then its argument prototype would still apply. */
6910 #ifdef __cplusplus
6911 extern "C"
6912 #endif
6913 char shl_load ();
6915 main ()
6917 return shl_load ();
6919 return 0;
6921 _ACEOF
6922 for ac_lib in '' dld; do
6923 if test -z "$ac_lib"; then
6924 ac_res="none required"
6925 else
6926 ac_res=-l$ac_lib
6927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
6947 ac_cv_search_shl_load=$ac_res
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 conftest$ac_exeext
6957 if test "${ac_cv_search_shl_load+set}" = set; then
6958 break
6960 done
6961 if test "${ac_cv_search_shl_load+set}" = set; then
6963 else
6964 ac_cv_search_shl_load=no
6966 rm conftest.$ac_ext
6967 LIBS=$ac_func_search_save_LIBS
6969 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6970 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6971 ac_res=$ac_cv_search_shl_load
6972 if test "$ac_res" != no; then
6973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6977 # We only use libld in port/dynloader/aix.c
6978 case $host_os in
6979 aix*)
6980 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6981 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6982 if test "${ac_cv_search_ldopen+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 ac_func_search_save_LIBS=$LIBS
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6993 /* Override any GCC internal prototype to avoid an error.
6994 Use char because int might match the return type of a GCC
6995 builtin and then its argument prototype would still apply. */
6996 #ifdef __cplusplus
6997 extern "C"
6998 #endif
6999 char ldopen ();
7001 main ()
7003 return ldopen ();
7005 return 0;
7007 _ACEOF
7008 for ac_lib in '' ld; do
7009 if test -z "$ac_lib"; then
7010 ac_res="none required"
7011 else
7012 ac_res=-l$ac_lib
7013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (ac_try="$ac_link"
7017 case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_link") 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest$ac_exeext &&
7032 $as_test_x conftest$ac_exeext; then
7033 ac_cv_search_ldopen=$ac_res
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042 conftest$ac_exeext
7043 if test "${ac_cv_search_ldopen+set}" = set; then
7044 break
7046 done
7047 if test "${ac_cv_search_ldopen+set}" = set; then
7049 else
7050 ac_cv_search_ldopen=no
7052 rm conftest.$ac_ext
7053 LIBS=$ac_func_search_save_LIBS
7055 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7056 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7057 ac_res=$ac_cv_search_ldopen
7058 if test "$ac_res" != no; then
7059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7064 esac
7065 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7066 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7067 if test "${ac_cv_search_getopt_long+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 ac_func_search_save_LIBS=$LIBS
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7078 /* Override any GCC internal prototype to avoid an error.
7079 Use char because int might match the return type of a GCC
7080 builtin and then its argument prototype would still apply. */
7081 #ifdef __cplusplus
7082 extern "C"
7083 #endif
7084 char getopt_long ();
7086 main ()
7088 return getopt_long ();
7090 return 0;
7092 _ACEOF
7093 for ac_lib in '' getopt gnugetopt; do
7094 if test -z "$ac_lib"; then
7095 ac_res="none required"
7096 else
7097 ac_res=-l$ac_lib
7098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (ac_try="$ac_link"
7102 case "(($ac_try" in
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_link") 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest$ac_exeext &&
7117 $as_test_x conftest$ac_exeext; then
7118 ac_cv_search_getopt_long=$ac_res
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7127 conftest$ac_exeext
7128 if test "${ac_cv_search_getopt_long+set}" = set; then
7129 break
7131 done
7132 if test "${ac_cv_search_getopt_long+set}" = set; then
7134 else
7135 ac_cv_search_getopt_long=no
7137 rm conftest.$ac_ext
7138 LIBS=$ac_func_search_save_LIBS
7140 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7141 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7142 ac_res=$ac_cv_search_getopt_long
7143 if test "$ac_res" != no; then
7144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7148 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7149 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7150 if test "${ac_cv_search_crypt+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 ac_func_search_save_LIBS=$LIBS
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7161 /* Override any GCC internal prototype to avoid an error.
7162 Use char because int might match the return type of a GCC
7163 builtin and then its argument prototype would still apply. */
7164 #ifdef __cplusplus
7165 extern "C"
7166 #endif
7167 char crypt ();
7169 main ()
7171 return crypt ();
7173 return 0;
7175 _ACEOF
7176 for ac_lib in '' crypt; do
7177 if test -z "$ac_lib"; then
7178 ac_res="none required"
7179 else
7180 ac_res=-l$ac_lib
7181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (ac_try="$ac_link"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_link") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest$ac_exeext &&
7200 $as_test_x conftest$ac_exeext; then
7201 ac_cv_search_crypt=$ac_res
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7210 conftest$ac_exeext
7211 if test "${ac_cv_search_crypt+set}" = set; then
7212 break
7214 done
7215 if test "${ac_cv_search_crypt+set}" = set; then
7217 else
7218 ac_cv_search_crypt=no
7220 rm conftest.$ac_ext
7221 LIBS=$ac_func_search_save_LIBS
7223 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7224 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7225 ac_res=$ac_cv_search_crypt
7226 if test "$ac_res" != no; then
7227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7231 # Solaris:
7232 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7233 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7234 if test "${ac_cv_search_fdatasync+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 ac_func_search_save_LIBS=$LIBS
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7245 /* Override any GCC internal prototype to avoid an error.
7246 Use char because int might match the return type of a GCC
7247 builtin and then its argument prototype would still apply. */
7248 #ifdef __cplusplus
7249 extern "C"
7250 #endif
7251 char fdatasync ();
7253 main ()
7255 return fdatasync ();
7257 return 0;
7259 _ACEOF
7260 for ac_lib in '' rt posix4; do
7261 if test -z "$ac_lib"; then
7262 ac_res="none required"
7263 else
7264 ac_res=-l$ac_lib
7265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7269 case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_link") 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && {
7281 test -z "$ac_c_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest$ac_exeext &&
7284 $as_test_x conftest$ac_exeext; then
7285 ac_cv_search_fdatasync=$ac_res
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7294 conftest$ac_exeext
7295 if test "${ac_cv_search_fdatasync+set}" = set; then
7296 break
7298 done
7299 if test "${ac_cv_search_fdatasync+set}" = set; then
7301 else
7302 ac_cv_search_fdatasync=no
7304 rm conftest.$ac_ext
7305 LIBS=$ac_func_search_save_LIBS
7307 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7308 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7309 ac_res=$ac_cv_search_fdatasync
7310 if test "$ac_res" != no; then
7311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7315 # Cygwin:
7316 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7317 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7318 if test "${ac_cv_search_shmget+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 ac_func_search_save_LIBS=$LIBS
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7332 #ifdef __cplusplus
7333 extern "C"
7334 #endif
7335 char shmget ();
7337 main ()
7339 return shmget ();
7341 return 0;
7343 _ACEOF
7344 for ac_lib in '' cygipc; do
7345 if test -z "$ac_lib"; then
7346 ac_res="none required"
7347 else
7348 ac_res=-l$ac_lib
7349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (ac_try="$ac_link"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_link") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest$ac_exeext &&
7368 $as_test_x conftest$ac_exeext; then
7369 ac_cv_search_shmget=$ac_res
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378 conftest$ac_exeext
7379 if test "${ac_cv_search_shmget+set}" = set; then
7380 break
7382 done
7383 if test "${ac_cv_search_shmget+set}" = set; then
7385 else
7386 ac_cv_search_shmget=no
7388 rm conftest.$ac_ext
7389 LIBS=$ac_func_search_save_LIBS
7391 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7392 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7393 ac_res=$ac_cv_search_shmget
7394 if test "$ac_res" != no; then
7395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7400 if test "$with_readline" = yes; then
7403 if test "${pgac_cv_check_readline+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 pgac_cv_check_readline=no
7407 pgac_save_LIBS=$LIBS
7408 if test x"$with_libedit_preferred" != x"yes"
7409 then READLINE_ORDER="-lreadline -ledit"
7410 else READLINE_ORDER="-ledit -lreadline"
7412 for pgac_rllib in $READLINE_ORDER ; do
7413 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7414 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7415 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7416 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 char readline ();
7432 main ()
7434 return readline ();
7436 return 0;
7438 _ACEOF
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest$ac_exeext &&
7456 $as_test_x conftest$ac_exeext; then
7458 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7459 # recognize dependent libraries; assume curses is needed if we didn't
7460 # find any dependency.
7461 case $host_os in
7462 netbsd* | openbsd* | irix*)
7463 if test x"$pgac_lib" = x"" ; then
7464 pgac_lib=" -lcurses"
7465 fi ;;
7466 esac
7468 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7469 break
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7479 conftest$ac_exeext conftest.$ac_ext
7480 done
7481 if test "$pgac_cv_check_readline" != no ; then
7482 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7483 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7484 break
7485 else
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7489 done
7490 LIBS=$pgac_save_LIBS
7494 if test "$pgac_cv_check_readline" != no ; then
7495 LIBS="$pgac_cv_check_readline $LIBS"
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_LIBREADLINE 1
7499 _ACEOF
7504 if test x"$pgac_cv_check_readline" = x"no"; then
7505 { { echo "$as_me:$LINENO: error: readline library not found
7506 If you have readline already installed, see config.log for details on the
7507 failure. It is possible the compiler isn't looking in the proper directory.
7508 Use --without-readline to disable readline support." >&5
7509 echo "$as_me: error: readline library not found
7510 If you have readline already installed, see config.log for details on the
7511 failure. It is possible the compiler isn't looking in the proper directory.
7512 Use --without-readline to disable readline support." >&2;}
7513 { (exit 1); exit 1; }; }
7517 if test "$with_zlib" = yes; then
7519 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7520 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7521 if test "${ac_cv_lib_z_inflate+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 ac_check_lib_save_LIBS=$LIBS
7525 LIBS="-lz $LIBS"
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 /* Override any GCC internal prototype to avoid an error.
7534 Use char because int might match the return type of a GCC
7535 builtin and then its argument prototype would still apply. */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 char inflate ();
7541 main ()
7543 return inflate ();
7545 return 0;
7547 _ACEOF
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7550 case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_link") 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest$ac_exeext &&
7565 $as_test_x conftest$ac_exeext; then
7566 ac_cv_lib_z_inflate=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_lib_z_inflate=no
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7578 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7579 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7580 if test $ac_cv_lib_z_inflate = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define HAVE_LIBZ 1
7583 _ACEOF
7585 LIBS="-lz $LIBS"
7587 else
7588 { { echo "$as_me:$LINENO: error: zlib library not found
7589 If you have zlib already installed, see config.log for details on the
7590 failure. It is possible the compiler isn't looking in the proper directory.
7591 Use --without-zlib to disable zlib support." >&5
7592 echo "$as_me: error: zlib library not found
7593 If you have zlib already installed, see config.log for details on the
7594 failure. It is possible the compiler isn't looking in the proper directory.
7595 Use --without-zlib to disable zlib support." >&2;}
7596 { (exit 1); exit 1; }; }
7601 if test "$enable_spinlocks" = yes; then
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_SPINLOCKS 1
7605 _ACEOF
7607 else
7608 { echo "$as_me:$LINENO: WARNING:
7609 *** Not using spinlocks will cause poor performance." >&5
7610 echo "$as_me: WARNING:
7611 *** Not using spinlocks will cause poor performance." >&2;}
7614 if test "$with_gssapi" = yes ; then
7615 if test "$PORTNAME" != "win32"; then
7616 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7617 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7618 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 ac_func_search_save_LIBS=$LIBS
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7632 #ifdef __cplusplus
7633 extern "C"
7634 #endif
7635 char gss_init_sec_context ();
7637 main ()
7639 return gss_init_sec_context ();
7641 return 0;
7643 _ACEOF
7644 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7645 if test -z "$ac_lib"; then
7646 ac_res="none required"
7647 else
7648 ac_res=-l$ac_lib
7649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7651 rm -f conftest.$ac_objext conftest$ac_exeext
7652 if { (ac_try="$ac_link"
7653 case "(($ac_try" in
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_link") 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && {
7665 test -z "$ac_c_werror_flag" ||
7666 test ! -s conftest.err
7667 } && test -s conftest$ac_exeext &&
7668 $as_test_x conftest$ac_exeext; then
7669 ac_cv_search_gss_init_sec_context=$ac_res
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7678 conftest$ac_exeext
7679 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7680 break
7682 done
7683 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7685 else
7686 ac_cv_search_gss_init_sec_context=no
7688 rm conftest.$ac_ext
7689 LIBS=$ac_func_search_save_LIBS
7691 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7692 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7693 ac_res=$ac_cv_search_gss_init_sec_context
7694 if test "$ac_res" != no; then
7695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7697 else
7698 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7699 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7700 { (exit 1); exit 1; }; }
7703 else
7704 LIBS="$LIBS -lgssapi32"
7708 if test "$with_krb5" = yes ; then
7709 if test "$PORTNAME" != "win32"; then
7710 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7711 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7712 if test "${ac_cv_search_com_err+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 ac_func_search_save_LIBS=$LIBS
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 /* Override any GCC internal prototype to avoid an error.
7724 Use char because int might match the return type of a GCC
7725 builtin and then its argument prototype would still apply. */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 char com_err ();
7731 main ()
7733 return com_err ();
7735 return 0;
7737 _ACEOF
7738 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7739 if test -z "$ac_lib"; then
7740 ac_res="none required"
7741 else
7742 ac_res=-l$ac_lib
7743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7747 case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_link") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest$ac_exeext &&
7762 $as_test_x conftest$ac_exeext; then
7763 ac_cv_search_com_err=$ac_res
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7772 conftest$ac_exeext
7773 if test "${ac_cv_search_com_err+set}" = set; then
7774 break
7776 done
7777 if test "${ac_cv_search_com_err+set}" = set; then
7779 else
7780 ac_cv_search_com_err=no
7782 rm conftest.$ac_ext
7783 LIBS=$ac_func_search_save_LIBS
7785 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7786 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7787 ac_res=$ac_cv_search_com_err
7788 if test "$ac_res" != no; then
7789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7791 else
7792 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7793 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7794 { (exit 1); exit 1; }; }
7797 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7798 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7799 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 ac_func_search_save_LIBS=$LIBS
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 char krb5_sendauth ();
7818 main ()
7820 return krb5_sendauth ();
7822 return 0;
7824 _ACEOF
7825 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7826 if test -z "$ac_lib"; then
7827 ac_res="none required"
7828 else
7829 ac_res=-l$ac_lib
7830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7834 case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_link") 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && {
7846 test -z "$ac_c_werror_flag" ||
7847 test ! -s conftest.err
7848 } && test -s conftest$ac_exeext &&
7849 $as_test_x conftest$ac_exeext; then
7850 ac_cv_search_krb5_sendauth=$ac_res
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7859 conftest$ac_exeext
7860 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7861 break
7863 done
7864 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7866 else
7867 ac_cv_search_krb5_sendauth=no
7869 rm conftest.$ac_ext
7870 LIBS=$ac_func_search_save_LIBS
7872 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7873 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7874 ac_res=$ac_cv_search_krb5_sendauth
7875 if test "$ac_res" != no; then
7876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7878 else
7879 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7880 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7881 { (exit 1); exit 1; }; }
7884 else
7885 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7886 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7887 if test "${ac_cv_search_com_err+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 ac_func_search_save_LIBS=$LIBS
7891 cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h. */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7898 /* Override any GCC internal prototype to avoid an error.
7899 Use char because int might match the return type of a GCC
7900 builtin and then its argument prototype would still apply. */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 char com_err ();
7906 main ()
7908 return com_err ();
7910 return 0;
7912 _ACEOF
7913 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7914 if test -z "$ac_lib"; then
7915 ac_res="none required"
7916 else
7917 ac_res=-l$ac_lib
7918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7920 rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (ac_try="$ac_link"
7922 case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_link") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest$ac_exeext &&
7937 $as_test_x conftest$ac_exeext; then
7938 ac_cv_search_com_err=$ac_res
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7947 conftest$ac_exeext
7948 if test "${ac_cv_search_com_err+set}" = set; then
7949 break
7951 done
7952 if test "${ac_cv_search_com_err+set}" = set; then
7954 else
7955 ac_cv_search_com_err=no
7957 rm conftest.$ac_ext
7958 LIBS=$ac_func_search_save_LIBS
7960 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7961 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7962 ac_res=$ac_cv_search_com_err
7963 if test "$ac_res" != no; then
7964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7966 else
7967 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7968 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7969 { (exit 1); exit 1; }; }
7975 if test "$with_openssl" = yes ; then
7976 if test "$PORTNAME" != "win32"; then
7978 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7979 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7980 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-lcrypto $LIBS"
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7995 #ifdef __cplusplus
7996 extern "C"
7997 #endif
7998 char CRYPTO_new_ex_data ();
8000 main ()
8002 return CRYPTO_new_ex_data ();
8004 return 0;
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (ac_try="$ac_link"
8009 case "(($ac_try" in
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8012 esac
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_link") 2>conftest.er1
8015 ac_status=$?
8016 grep -v '^ *+' conftest.er1 >conftest.err
8017 rm -f conftest.er1
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest$ac_exeext &&
8024 $as_test_x conftest$ac_exeext; then
8025 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8037 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8038 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8039 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_LIBCRYPTO 1
8042 _ACEOF
8044 LIBS="-lcrypto $LIBS"
8046 else
8047 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8048 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8049 { (exit 1); exit 1; }; }
8053 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8054 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8055 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lssl $LIBS"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8067 /* Override any GCC internal prototype to avoid an error.
8068 Use char because int might match the return type of a GCC
8069 builtin and then its argument prototype would still apply. */
8070 #ifdef __cplusplus
8071 extern "C"
8072 #endif
8073 char SSL_library_init ();
8075 main ()
8077 return SSL_library_init ();
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (ac_try="$ac_link"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_link") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest$ac_exeext &&
8099 $as_test_x conftest$ac_exeext; then
8100 ac_cv_lib_ssl_SSL_library_init=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_lib_ssl_SSL_library_init=no
8108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109 conftest$ac_exeext conftest.$ac_ext
8110 LIBS=$ac_check_lib_save_LIBS
8112 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8113 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8114 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8115 cat >>confdefs.h <<_ACEOF
8116 #define HAVE_LIBSSL 1
8117 _ACEOF
8119 LIBS="-lssl $LIBS"
8121 else
8122 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8123 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8124 { (exit 1); exit 1; }; }
8127 else
8129 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8130 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8131 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 ac_check_lib_save_LIBS=$LIBS
8135 LIBS="-leay32 $LIBS"
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 /* Override any GCC internal prototype to avoid an error.
8144 Use char because int might match the return type of a GCC
8145 builtin and then its argument prototype would still apply. */
8146 #ifdef __cplusplus
8147 extern "C"
8148 #endif
8149 char CRYPTO_new_ex_data ();
8151 main ()
8153 return CRYPTO_new_ex_data ();
8155 return 0;
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest$ac_exeext &&
8175 $as_test_x conftest$ac_exeext; then
8176 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186 LIBS=$ac_check_lib_save_LIBS
8188 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8189 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8190 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_LIBEAY32 1
8193 _ACEOF
8195 LIBS="-leay32 $LIBS"
8197 else
8198 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8199 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8200 { (exit 1); exit 1; }; }
8204 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8205 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8206 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209 ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-lssleay32 $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char SSL_library_init ();
8226 main ()
8228 return SSL_library_init ();
8230 return 0;
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_link") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest$ac_exeext &&
8250 $as_test_x conftest$ac_exeext; then
8251 ac_cv_lib_ssleay32_SSL_library_init=yes
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 ac_cv_lib_ssleay32_SSL_library_init=no
8259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8263 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8264 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8265 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8266 cat >>confdefs.h <<_ACEOF
8267 #define HAVE_LIBSSLEAY32 1
8268 _ACEOF
8270 LIBS="-lssleay32 $LIBS"
8272 else
8273 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8274 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8275 { (exit 1); exit 1; }; }
8281 if test "$with_pam" = yes ; then
8283 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8284 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8285 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-lpam $LIBS"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8297 /* Override any GCC internal prototype to avoid an error.
8298 Use char because int might match the return type of a GCC
8299 builtin and then its argument prototype would still apply. */
8300 #ifdef __cplusplus
8301 extern "C"
8302 #endif
8303 char pam_start ();
8305 main ()
8307 return pam_start ();
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (ac_try="$ac_link"
8314 case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_link") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest$ac_exeext &&
8329 $as_test_x conftest$ac_exeext; then
8330 ac_cv_lib_pam_pam_start=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_cv_lib_pam_pam_start=no
8338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8339 conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8342 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8343 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8344 if test $ac_cv_lib_pam_pam_start = yes; then
8345 cat >>confdefs.h <<_ACEOF
8346 #define HAVE_LIBPAM 1
8347 _ACEOF
8349 LIBS="-lpam $LIBS"
8351 else
8352 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8353 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8354 { (exit 1); exit 1; }; }
8359 if test "$with_libxml" = yes ; then
8361 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8362 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8363 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 ac_check_lib_save_LIBS=$LIBS
8367 LIBS="-lxml2 $LIBS"
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8375 /* Override any GCC internal prototype to avoid an error.
8376 Use char because int might match the return type of a GCC
8377 builtin and then its argument prototype would still apply. */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 char xmlSaveToBuffer ();
8383 main ()
8385 return xmlSaveToBuffer ();
8387 return 0;
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (ac_try="$ac_link"
8392 case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_link") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest$ac_exeext &&
8407 $as_test_x conftest$ac_exeext; then
8408 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_lib_xml2_xmlSaveToBuffer=no
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8421 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8422 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_LIBXML2 1
8425 _ACEOF
8427 LIBS="-lxml2 $LIBS"
8429 else
8430 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8431 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8432 { (exit 1); exit 1; }; }
8437 if test "$with_libxslt" = yes ; then
8439 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8440 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8441 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444 ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lxslt $LIBS"
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8453 /* Override any GCC internal prototype to avoid an error.
8454 Use char because int might match the return type of a GCC
8455 builtin and then its argument prototype would still apply. */
8456 #ifdef __cplusplus
8457 extern "C"
8458 #endif
8459 char xsltCleanupGlobals ();
8461 main ()
8463 return xsltCleanupGlobals ();
8465 return 0;
8467 _ACEOF
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8470 case "(($ac_try" in
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_link") 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest$ac_exeext &&
8485 $as_test_x conftest$ac_exeext; then
8486 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_lib_xslt_xsltCleanupGlobals=no
8494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8495 conftest$ac_exeext conftest.$ac_ext
8496 LIBS=$ac_check_lib_save_LIBS
8498 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8499 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8500 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_LIBXSLT 1
8503 _ACEOF
8505 LIBS="-lxslt $LIBS"
8507 else
8508 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8509 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8510 { (exit 1); exit 1; }; }
8515 # for contrib/uuid-ossp
8516 if test "$with_ossp_uuid" = yes ; then
8517 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8518 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8519 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522 ac_check_lib_save_LIBS=$LIBS
8523 LIBS="-lossp-uuid $LIBS"
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h. */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 /* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 char uuid_export ();
8539 main ()
8541 return uuid_export ();
8543 return 0;
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext &&
8563 $as_test_x conftest$ac_exeext; then
8564 ac_cv_lib_ossp_uuid_uuid_export=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_cv_lib_ossp_uuid_uuid_export=no
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8577 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8578 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8579 OSSP_UUID_LIBS="-lossp-uuid"
8580 else
8581 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8582 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8583 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 ac_check_lib_save_LIBS=$LIBS
8587 LIBS="-luuid $LIBS"
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h. */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8595 /* Override any GCC internal prototype to avoid an error.
8596 Use char because int might match the return type of a GCC
8597 builtin and then its argument prototype would still apply. */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 char uuid_export ();
8603 main ()
8605 return uuid_export ();
8607 return 0;
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (ac_try="$ac_link"
8612 case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_link") 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest$ac_exeext &&
8627 $as_test_x conftest$ac_exeext; then
8628 ac_cv_lib_uuid_uuid_export=yes
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_cv_lib_uuid_uuid_export=no
8636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8637 conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8640 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8641 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8642 if test $ac_cv_lib_uuid_uuid_export = yes; then
8643 OSSP_UUID_LIBS="-luuid"
8644 else
8645 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8646 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8647 { (exit 1); exit 1; }; }
8657 ## Header files
8660 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8662 if test "${ac_cv_header_stdc+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h. */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 #include <stdlib.h>
8672 #include <stdarg.h>
8673 #include <string.h>
8674 #include <float.h>
8677 main ()
8681 return 0;
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 ac_cv_header_stdc=yes
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_header_stdc=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 if test $ac_cv_header_stdc = yes; then
8712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <string.h>
8721 _ACEOF
8722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8723 $EGREP "memchr" >/dev/null 2>&1; then
8725 else
8726 ac_cv_header_stdc=no
8728 rm -f conftest*
8732 if test $ac_cv_header_stdc = yes; then
8733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h. */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 #include <stdlib.h>
8742 _ACEOF
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744 $EGREP "free" >/dev/null 2>&1; then
8746 else
8747 ac_cv_header_stdc=no
8749 rm -f conftest*
8753 if test $ac_cv_header_stdc = yes; then
8754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8755 if test "$cross_compiling" = yes; then
8757 else
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 #include <ctype.h>
8765 #include <stdlib.h>
8766 #if ((' ' & 0x0FF) == 0x020)
8767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8769 #else
8770 # define ISLOWER(c) \
8771 (('a' <= (c) && (c) <= 'i') \
8772 || ('j' <= (c) && (c) <= 'r') \
8773 || ('s' <= (c) && (c) <= 'z'))
8774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8775 #endif
8777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8779 main ()
8781 int i;
8782 for (i = 0; i < 256; i++)
8783 if (XOR (islower (i), ISLOWER (i))
8784 || toupper (i) != TOUPPER (i))
8785 return 2;
8786 return 0;
8788 _ACEOF
8789 rm -f conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8791 case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_link") 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8810 else
8811 echo "$as_me: program exited with status $ac_status" >&5
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ( exit $ac_status )
8816 ac_cv_header_stdc=no
8818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8824 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8825 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8826 if test $ac_cv_header_stdc = yes; then
8828 cat >>confdefs.h <<\_ACEOF
8829 #define STDC_HEADERS 1
8830 _ACEOF
8834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8844 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8845 inttypes.h stdint.h unistd.h
8847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8861 #include <$ac_header>
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 eval "$as_ac_Header=yes"
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 eval "$as_ac_Header=no"
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 ac_res=`eval echo '${'$as_ac_Header'}'`
8891 { echo "$as_me:$LINENO: result: $ac_res" >&5
8892 echo "${ECHO_T}$ac_res" >&6; }
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8900 done
8930 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
8932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_res=`eval echo '${'$as_ac_Header'}'`
8940 { echo "$as_me:$LINENO: result: $ac_res" >&5
8941 echo "${ECHO_T}$ac_res" >&6; }
8942 else
8943 # Is the header compilable?
8944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 #include <$ac_header>
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 ac_header_compiler=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_header_compiler=no
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6; }
8984 # Is the header present?
8985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <$ac_header>
8994 _ACEOF
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null && {
9008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 }; then
9011 ac_header_preproc=yes
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_header_preproc=no
9019 rm -f conftest.err conftest.$ac_ext
9020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9021 echo "${ECHO_T}$ac_header_preproc" >&6; }
9023 # So? What about this header?
9024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9025 yes:no: )
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9030 ac_header_preproc=yes
9032 no:yes:* )
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9045 ( cat <<\_ASBOX
9046 ## ---------------------------------------- ##
9047 ## Report this to pgsql-bugs@postgresql.org ##
9048 ## ---------------------------------------- ##
9049 _ASBOX
9050 ) | sed "s/^/$as_me: WARNING: /" >&2
9052 esac
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058 eval "$as_ac_Header=\$ac_header_preproc"
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066 cat >>confdefs.h <<_ACEOF
9067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9068 _ACEOF
9072 done
9075 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9076 # netinet/in.h is included first.
9078 for ac_header in netinet/in.h
9080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_res=`eval echo '${'$as_ac_Header'}'`
9088 { echo "$as_me:$LINENO: result: $ac_res" >&5
9089 echo "${ECHO_T}$ac_res" >&6; }
9090 else
9091 # Is the header compilable?
9092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 #include <$ac_header>
9102 _ACEOF
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_compile") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && {
9117 test -z "$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9119 } && test -s conftest.$ac_objext; then
9120 ac_header_compiler=yes
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_header_compiler=no
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6; }
9132 # Is the header present?
9133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 #include <$ac_header>
9142 _ACEOF
9143 if { (ac_try="$ac_cpp conftest.$ac_ext"
9144 case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } >/dev/null && {
9156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 }; then
9159 ac_header_preproc=yes
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 ac_header_preproc=no
9167 rm -f conftest.err conftest.$ac_ext
9168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169 echo "${ECHO_T}$ac_header_preproc" >&6; }
9171 # So? What about this header?
9172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173 yes:no: )
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178 ac_header_preproc=yes
9180 no:yes:* )
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193 ( cat <<\_ASBOX
9194 ## ---------------------------------------- ##
9195 ## Report this to pgsql-bugs@postgresql.org ##
9196 ## ---------------------------------------- ##
9197 _ASBOX
9198 ) | sed "s/^/$as_me: WARNING: /" >&2
9200 esac
9201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206 eval "$as_ac_Header=\$ac_header_preproc"
9208 ac_res=`eval echo '${'$as_ac_Header'}'`
9209 { echo "$as_me:$LINENO: result: $ac_res" >&5
9210 echo "${ECHO_T}$ac_res" >&6; }
9213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9216 _ACEOF
9220 done
9223 for ac_header in netinet/tcp.h
9225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 $ac_includes_default
9238 #ifdef HAVE_NETINET_IN_H
9239 #include <netinet/in.h>
9240 #endif
9243 #include <$ac_header>
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (ac_try="$ac_compile"
9247 case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 eval "$as_ac_Header=yes"
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 eval "$as_ac_Header=no"
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 ac_res=`eval echo '${'$as_ac_Header'}'`
9273 { echo "$as_me:$LINENO: result: $ac_res" >&5
9274 echo "${ECHO_T}$ac_res" >&6; }
9275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9276 cat >>confdefs.h <<_ACEOF
9277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9278 _ACEOF
9282 done
9285 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9287 for ac_header in readline/readline.h
9289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 ac_res=`eval echo '${'$as_ac_Header'}'`
9297 { echo "$as_me:$LINENO: result: $ac_res" >&5
9298 echo "${ECHO_T}$ac_res" >&6; }
9299 else
9300 # Is the header compilable?
9301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 #include <$ac_header>
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (ac_try="$ac_compile"
9314 case "(($ac_try" in
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_compile") 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && {
9326 test -z "$ac_c_werror_flag" ||
9327 test ! -s conftest.err
9328 } && test -s conftest.$ac_objext; then
9329 ac_header_compiler=yes
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_header_compiler=no
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9339 echo "${ECHO_T}$ac_header_compiler" >&6; }
9341 # Is the header present?
9342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 #include <$ac_header>
9351 _ACEOF
9352 if { (ac_try="$ac_cpp conftest.$ac_ext"
9353 case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } >/dev/null && {
9365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 }; then
9368 ac_header_preproc=yes
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_header_preproc=no
9376 rm -f conftest.err conftest.$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9378 echo "${ECHO_T}$ac_header_preproc" >&6; }
9380 # So? What about this header?
9381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9382 yes:no: )
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9387 ac_header_preproc=yes
9389 no:yes:* )
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9402 ( cat <<\_ASBOX
9403 ## ---------------------------------------- ##
9404 ## Report this to pgsql-bugs@postgresql.org ##
9405 ## ---------------------------------------- ##
9406 _ASBOX
9407 ) | sed "s/^/$as_me: WARNING: /" >&2
9409 esac
9410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415 eval "$as_ac_Header=\$ac_header_preproc"
9417 ac_res=`eval echo '${'$as_ac_Header'}'`
9418 { echo "$as_me:$LINENO: result: $ac_res" >&5
9419 echo "${ECHO_T}$ac_res" >&6; }
9422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9423 cat >>confdefs.h <<_ACEOF
9424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9425 _ACEOF
9427 else
9429 for ac_header in readline.h
9431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 ac_res=`eval echo '${'$as_ac_Header'}'`
9439 { echo "$as_me:$LINENO: result: $ac_res" >&5
9440 echo "${ECHO_T}$ac_res" >&6; }
9441 else
9442 # Is the header compilable?
9443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 $ac_includes_default
9452 #include <$ac_header>
9453 _ACEOF
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9456 case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_compile") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest.$ac_objext; then
9471 ac_header_compiler=yes
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_header_compiler=no
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9481 echo "${ECHO_T}$ac_header_compiler" >&6; }
9483 # Is the header present?
9484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <$ac_header>
9493 _ACEOF
9494 if { (ac_try="$ac_cpp conftest.$ac_ext"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } >/dev/null && {
9507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 }; then
9510 ac_header_preproc=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_preproc=no
9518 rm -f conftest.err conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 echo "${ECHO_T}$ac_header_preproc" >&6; }
9522 # So? What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524 yes:no: )
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9529 ac_header_preproc=yes
9531 no:yes:* )
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9544 ( cat <<\_ASBOX
9545 ## ---------------------------------------- ##
9546 ## Report this to pgsql-bugs@postgresql.org ##
9547 ## ---------------------------------------- ##
9548 _ASBOX
9549 ) | sed "s/^/$as_me: WARNING: /" >&2
9551 esac
9552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 eval "$as_ac_Header=\$ac_header_preproc"
9559 ac_res=`eval echo '${'$as_ac_Header'}'`
9560 { echo "$as_me:$LINENO: result: $ac_res" >&5
9561 echo "${ECHO_T}$ac_res" >&6; }
9564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9565 cat >>confdefs.h <<_ACEOF
9566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9567 _ACEOF
9569 else
9570 { { echo "$as_me:$LINENO: error: readline header not found
9571 If you have readline already installed, see config.log for details on the
9572 failure. It is possible the compiler isn't looking in the proper directory.
9573 Use --without-readline to disable readline support." >&5
9574 echo "$as_me: error: readline header not found
9575 If you have readline already installed, see config.log for details on the
9576 failure. It is possible the compiler isn't looking in the proper directory.
9577 Use --without-readline to disable readline support." >&2;}
9578 { (exit 1); exit 1; }; }
9581 done
9585 done
9588 for ac_header in readline/history.h
9590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 ac_res=`eval echo '${'$as_ac_Header'}'`
9598 { echo "$as_me:$LINENO: result: $ac_res" >&5
9599 echo "${ECHO_T}$ac_res" >&6; }
9600 else
9601 # Is the header compilable?
9602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 #include <$ac_header>
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9630 ac_header_compiler=yes
9631 else
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 ac_header_compiler=no
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6; }
9642 # Is the header present?
9643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9652 _ACEOF
9653 if { (ac_try="$ac_cpp conftest.$ac_ext"
9654 case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } >/dev/null && {
9666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 }; then
9669 ac_header_preproc=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_header_preproc=no
9677 rm -f conftest.err conftest.$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9679 echo "${ECHO_T}$ac_header_preproc" >&6; }
9681 # So? What about this header?
9682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9683 yes:no: )
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9688 ac_header_preproc=yes
9690 no:yes:* )
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9703 ( cat <<\_ASBOX
9704 ## ---------------------------------------- ##
9705 ## Report this to pgsql-bugs@postgresql.org ##
9706 ## ---------------------------------------- ##
9707 _ASBOX
9708 ) | sed "s/^/$as_me: WARNING: /" >&2
9710 esac
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 eval "$as_ac_Header=\$ac_header_preproc"
9718 ac_res=`eval echo '${'$as_ac_Header'}'`
9719 { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9728 else
9730 for ac_header in history.h
9732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 ac_res=`eval echo '${'$as_ac_Header'}'`
9740 { echo "$as_me:$LINENO: result: $ac_res" >&5
9741 echo "${ECHO_T}$ac_res" >&6; }
9742 else
9743 # Is the header compilable?
9744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 #include <$ac_header>
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (ac_try="$ac_compile"
9757 case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_compile") 2>conftest.er1
9763 ac_status=$?
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest.$ac_objext; then
9772 ac_header_compiler=yes
9773 else
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_header_compiler=no
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9782 echo "${ECHO_T}$ac_header_compiler" >&6; }
9784 # Is the header present?
9785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <$ac_header>
9794 _ACEOF
9795 if { (ac_try="$ac_cpp conftest.$ac_ext"
9796 case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null && {
9808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 }; then
9811 ac_header_preproc=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_header_preproc=no
9819 rm -f conftest.err conftest.$ac_ext
9820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 echo "${ECHO_T}$ac_header_preproc" >&6; }
9823 # So? What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825 yes:no: )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830 ac_header_preproc=yes
9832 no:yes:* )
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845 ( cat <<\_ASBOX
9846 ## ---------------------------------------- ##
9847 ## Report this to pgsql-bugs@postgresql.org ##
9848 ## ---------------------------------------- ##
9849 _ASBOX
9850 ) | sed "s/^/$as_me: WARNING: /" >&2
9852 esac
9853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 eval "$as_ac_Header=\$ac_header_preproc"
9860 ac_res=`eval echo '${'$as_ac_Header'}'`
9861 { echo "$as_me:$LINENO: result: $ac_res" >&5
9862 echo "${ECHO_T}$ac_res" >&6; }
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9868 _ACEOF
9870 else
9871 { { echo "$as_me:$LINENO: error: history header not found
9872 If you have readline already installed, see config.log for details on the
9873 failure. It is possible the compiler isn't looking in the proper directory.
9874 Use --without-readline to disable readline support." >&5
9875 echo "$as_me: error: history header not found
9876 If you have readline already installed, see config.log for details on the
9877 failure. It is possible the compiler isn't looking in the proper directory.
9878 Use --without-readline to disable readline support." >&2;}
9879 { (exit 1); exit 1; }; }
9882 done
9886 done
9890 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9891 # Some installations of libedit usurp /usr/include/readline/, which seems
9892 # bad practice, since in combined installations readline will have its headers
9893 # there. We might have to resort to AC_EGREP checks to make sure we found
9894 # the proper header...
9896 for ac_header in editline/readline.h
9898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_res=`eval echo '${'$as_ac_Header'}'`
9906 { echo "$as_me:$LINENO: result: $ac_res" >&5
9907 echo "${ECHO_T}$ac_res" >&6; }
9908 else
9909 # Is the header compilable?
9910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 $ac_includes_default
9919 #include <$ac_header>
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 ac_header_compiler=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_header_compiler=no
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9948 echo "${ECHO_T}$ac_header_compiler" >&6; }
9950 # Is the header present?
9951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <$ac_header>
9960 _ACEOF
9961 if { (ac_try="$ac_cpp conftest.$ac_ext"
9962 case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } >/dev/null && {
9974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 }; then
9977 ac_header_preproc=yes
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_header_preproc=no
9985 rm -f conftest.err conftest.$ac_ext
9986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9987 echo "${ECHO_T}$ac_header_preproc" >&6; }
9989 # So? What about this header?
9990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9991 yes:no: )
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9996 ac_header_preproc=yes
9998 no:yes:* )
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10011 ( cat <<\_ASBOX
10012 ## ---------------------------------------- ##
10013 ## Report this to pgsql-bugs@postgresql.org ##
10014 ## ---------------------------------------- ##
10015 _ASBOX
10016 ) | sed "s/^/$as_me: WARNING: /" >&2
10018 esac
10019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 eval "$as_ac_Header=\$ac_header_preproc"
10026 ac_res=`eval echo '${'$as_ac_Header'}'`
10027 { echo "$as_me:$LINENO: result: $ac_res" >&5
10028 echo "${ECHO_T}$ac_res" >&6; }
10031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10034 _ACEOF
10036 else
10038 for ac_header in readline.h
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 ac_res=`eval echo '${'$as_ac_Header'}'`
10048 { echo "$as_me:$LINENO: result: $ac_res" >&5
10049 echo "${ECHO_T}$ac_res" >&6; }
10050 else
10051 # Is the header compilable?
10052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 #include <$ac_header>
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_header_compiler=yes
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_header_compiler=no
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10090 echo "${ECHO_T}$ac_header_compiler" >&6; }
10092 # Is the header present?
10093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10095 cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h. */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10101 #include <$ac_header>
10102 _ACEOF
10103 if { (ac_try="$ac_cpp conftest.$ac_ext"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } >/dev/null && {
10116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 }; then
10119 ac_header_preproc=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_header_preproc=no
10127 rm -f conftest.err conftest.$ac_ext
10128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10129 echo "${ECHO_T}$ac_header_preproc" >&6; }
10131 # So? What about this header?
10132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10133 yes:no: )
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10138 ac_header_preproc=yes
10140 no:yes:* )
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10153 ( cat <<\_ASBOX
10154 ## ---------------------------------------- ##
10155 ## Report this to pgsql-bugs@postgresql.org ##
10156 ## ---------------------------------------- ##
10157 _ASBOX
10158 ) | sed "s/^/$as_me: WARNING: /" >&2
10160 esac
10161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 eval "$as_ac_Header=\$ac_header_preproc"
10168 ac_res=`eval echo '${'$as_ac_Header'}'`
10169 { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 echo "${ECHO_T}$ac_res" >&6; }
10173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10174 cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10176 _ACEOF
10178 else
10180 for ac_header in readline/readline.h
10182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 ac_res=`eval echo '${'$as_ac_Header'}'`
10190 { echo "$as_me:$LINENO: result: $ac_res" >&5
10191 echo "${ECHO_T}$ac_res" >&6; }
10192 else
10193 # Is the header compilable?
10194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 $ac_includes_default
10203 #include <$ac_header>
10204 _ACEOF
10205 rm -f conftest.$ac_objext
10206 if { (ac_try="$ac_compile"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_compile") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest.$ac_objext; then
10222 ac_header_compiler=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_compiler=no
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10232 echo "${ECHO_T}$ac_header_compiler" >&6; }
10234 # Is the header present?
10235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <$ac_header>
10244 _ACEOF
10245 if { (ac_try="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null && {
10258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 }; then
10261 ac_header_preproc=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_header_preproc=no
10269 rm -f conftest.err conftest.$ac_ext
10270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6; }
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 yes:no: )
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10282 no:yes:* )
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10295 ( cat <<\_ASBOX
10296 ## ---------------------------------------- ##
10297 ## Report this to pgsql-bugs@postgresql.org ##
10298 ## ---------------------------------------- ##
10299 _ASBOX
10300 ) | sed "s/^/$as_me: WARNING: /" >&2
10302 esac
10303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 eval "$as_ac_Header=\$ac_header_preproc"
10310 ac_res=`eval echo '${'$as_ac_Header'}'`
10311 { echo "$as_me:$LINENO: result: $ac_res" >&5
10312 echo "${ECHO_T}$ac_res" >&6; }
10315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318 _ACEOF
10320 else
10321 { { echo "$as_me:$LINENO: error: readline header not found
10322 If you have libedit already installed, see config.log for details on the
10323 failure. It is possible the compiler isn't looking in the proper directory.
10324 Use --without-readline to disable libedit support." >&5
10325 echo "$as_me: error: readline header not found
10326 If you have libedit already installed, see config.log for details on the
10327 failure. It is possible the compiler isn't looking in the proper directory.
10328 Use --without-readline to disable libedit support." >&2;}
10329 { (exit 1); exit 1; }; }
10332 done
10336 done
10340 done
10342 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10343 # not be there at all. Hence, don't complain if not found. We must check
10344 # though, since in yet other versions it is an independent header.
10346 for ac_header in editline/history.h
10348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 ac_res=`eval echo '${'$as_ac_Header'}'`
10356 { echo "$as_me:$LINENO: result: $ac_res" >&5
10357 echo "${ECHO_T}$ac_res" >&6; }
10358 else
10359 # Is the header compilable?
10360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h. */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 #include <$ac_header>
10370 _ACEOF
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.$ac_objext; then
10388 ac_header_compiler=yes
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_header_compiler=no
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10398 echo "${ECHO_T}$ac_header_compiler" >&6; }
10400 # Is the header present?
10401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 #include <$ac_header>
10410 _ACEOF
10411 if { (ac_try="$ac_cpp conftest.$ac_ext"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 }; then
10427 ac_header_preproc=yes
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_header_preproc=no
10435 rm -f conftest.err conftest.$ac_ext
10436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 echo "${ECHO_T}$ac_header_preproc" >&6; }
10439 # So? What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 yes:no: )
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10448 no:yes:* )
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461 ( cat <<\_ASBOX
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10465 _ASBOX
10466 ) | sed "s/^/$as_me: WARNING: /" >&2
10468 esac
10469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 eval "$as_ac_Header=\$ac_header_preproc"
10476 ac_res=`eval echo '${'$as_ac_Header'}'`
10477 { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10482 cat >>confdefs.h <<_ACEOF
10483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10484 _ACEOF
10486 else
10488 for ac_header in history.h
10490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 ac_res=`eval echo '${'$as_ac_Header'}'`
10498 { echo "$as_me:$LINENO: result: $ac_res" >&5
10499 echo "${ECHO_T}$ac_res" >&6; }
10500 else
10501 # Is the header compilable?
10502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10511 #include <$ac_header>
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest.$ac_objext; then
10530 ac_header_compiler=yes
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_header_compiler=no
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10540 echo "${ECHO_T}$ac_header_compiler" >&6; }
10542 # Is the header present?
10543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <$ac_header>
10552 _ACEOF
10553 if { (ac_try="$ac_cpp conftest.$ac_ext"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } >/dev/null && {
10566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 }; then
10569 ac_header_preproc=yes
10570 else
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_header_preproc=no
10577 rm -f conftest.err conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579 echo "${ECHO_T}$ac_header_preproc" >&6; }
10581 # So? What about this header?
10582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 yes:no: )
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588 ac_header_preproc=yes
10590 no:yes:* )
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603 ( cat <<\_ASBOX
10604 ## ---------------------------------------- ##
10605 ## Report this to pgsql-bugs@postgresql.org ##
10606 ## ---------------------------------------- ##
10607 _ASBOX
10608 ) | sed "s/^/$as_me: WARNING: /" >&2
10610 esac
10611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616 eval "$as_ac_Header=\$ac_header_preproc"
10618 ac_res=`eval echo '${'$as_ac_Header'}'`
10619 { echo "$as_me:$LINENO: result: $ac_res" >&5
10620 echo "${ECHO_T}$ac_res" >&6; }
10623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10624 cat >>confdefs.h <<_ACEOF
10625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626 _ACEOF
10628 else
10630 for ac_header in readline/history.h
10632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 ac_res=`eval echo '${'$as_ac_Header'}'`
10640 { echo "$as_me:$LINENO: result: $ac_res" >&5
10641 echo "${ECHO_T}$ac_res" >&6; }
10642 else
10643 # Is the header compilable?
10644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 $ac_includes_default
10653 #include <$ac_header>
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_compile") 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && {
10669 test -z "$ac_c_werror_flag" ||
10670 test ! -s conftest.err
10671 } && test -s conftest.$ac_objext; then
10672 ac_header_compiler=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_header_compiler=no
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10682 echo "${ECHO_T}$ac_header_compiler" >&6; }
10684 # Is the header present?
10685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 #include <$ac_header>
10694 _ACEOF
10695 if { (ac_try="$ac_cpp conftest.$ac_ext"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } >/dev/null && {
10708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 }; then
10711 ac_header_preproc=yes
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_header_preproc=no
10719 rm -f conftest.err conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10721 echo "${ECHO_T}$ac_header_preproc" >&6; }
10723 # So? What about this header?
10724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10725 yes:no: )
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10730 ac_header_preproc=yes
10732 no:yes:* )
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10745 ( cat <<\_ASBOX
10746 ## ---------------------------------------- ##
10747 ## Report this to pgsql-bugs@postgresql.org ##
10748 ## ---------------------------------------- ##
10749 _ASBOX
10750 ) | sed "s/^/$as_me: WARNING: /" >&2
10752 esac
10753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 eval "$as_ac_Header=\$ac_header_preproc"
10760 ac_res=`eval echo '${'$as_ac_Header'}'`
10761 { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768 _ACEOF
10772 done
10776 done
10780 done
10784 if test "$with_zlib" = yes; then
10785 if test "${ac_cv_header_zlib_h+set}" = set; then
10786 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10787 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10788 if test "${ac_cv_header_zlib_h+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10792 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10793 else
10794 # Is the header compilable?
10795 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10796 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 #include <zlib.h>
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (ac_try="$ac_compile"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_compile") 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && {
10820 test -z "$ac_c_werror_flag" ||
10821 test ! -s conftest.err
10822 } && test -s conftest.$ac_objext; then
10823 ac_header_compiler=yes
10824 else
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_header_compiler=no
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6; }
10835 # Is the header present?
10836 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10837 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 #include <zlib.h>
10845 _ACEOF
10846 if { (ac_try="$ac_cpp conftest.$ac_ext"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } >/dev/null && {
10859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 }; then
10862 ac_header_preproc=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_preproc=no
10870 rm -f conftest.err conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10872 echo "${ECHO_T}$ac_header_preproc" >&6; }
10874 # So? What about this header?
10875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876 yes:no: )
10877 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10878 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10880 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10881 ac_header_preproc=yes
10883 no:yes:* )
10884 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10889 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10891 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10893 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10895 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10896 ( cat <<\_ASBOX
10897 ## ---------------------------------------- ##
10898 ## Report this to pgsql-bugs@postgresql.org ##
10899 ## ---------------------------------------- ##
10900 _ASBOX
10901 ) | sed "s/^/$as_me: WARNING: /" >&2
10903 esac
10904 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10905 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10906 if test "${ac_cv_header_zlib_h+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 ac_cv_header_zlib_h=$ac_header_preproc
10911 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10912 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10915 if test $ac_cv_header_zlib_h = yes; then
10917 else
10918 { { echo "$as_me:$LINENO: error: zlib header not found
10919 If you have zlib already installed, see config.log for details on the
10920 failure. It is possible the compiler isn't looking in the proper directory.
10921 Use --without-zlib to disable zlib support." >&5
10922 echo "$as_me: error: zlib header not found
10923 If you have zlib already installed, see config.log for details on the
10924 failure. It is possible the compiler isn't looking in the proper directory.
10925 Use --without-zlib to disable zlib support." >&2;}
10926 { (exit 1); exit 1; }; }
10932 if test "$with_gssapi" = yes ; then
10934 for ac_header in gssapi/gssapi.h
10936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10946 else
10947 # Is the header compilable?
10948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10957 #include <$ac_header>
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10976 ac_header_compiler=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_header_compiler=no
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10986 echo "${ECHO_T}$ac_header_compiler" >&6; }
10988 # Is the header present?
10989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <$ac_header>
10998 _ACEOF
10999 if { (ac_try="$ac_cpp conftest.$ac_ext"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } >/dev/null && {
11012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 }; then
11015 ac_header_preproc=yes
11016 else
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_header_preproc=no
11023 rm -f conftest.err conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025 echo "${ECHO_T}$ac_header_preproc" >&6; }
11027 # So? What about this header?
11028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029 yes:no: )
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11034 ac_header_preproc=yes
11036 no:yes:* )
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11049 ( cat <<\_ASBOX
11050 ## ---------------------------------------- ##
11051 ## Report this to pgsql-bugs@postgresql.org ##
11052 ## ---------------------------------------- ##
11053 _ASBOX
11054 ) | sed "s/^/$as_me: WARNING: /" >&2
11056 esac
11057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 eval "$as_ac_Header=\$ac_header_preproc"
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11070 cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11072 _ACEOF
11074 else
11076 for ac_header in gssapi.h
11078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11088 else
11089 # Is the header compilable?
11090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h. */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 $ac_includes_default
11099 #include <$ac_header>
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest.$ac_objext; then
11118 ac_header_compiler=yes
11119 else
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_header_compiler=no
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11128 echo "${ECHO_T}$ac_header_compiler" >&6; }
11130 # Is the header present?
11131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <$ac_header>
11140 _ACEOF
11141 if { (ac_try="$ac_cpp conftest.$ac_ext"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } >/dev/null && {
11154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 }; then
11157 ac_header_preproc=yes
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_header_preproc=no
11165 rm -f conftest.err conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6; }
11169 # So? What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171 yes:no: )
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176 ac_header_preproc=yes
11178 no:yes:* )
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191 ( cat <<\_ASBOX
11192 ## ---------------------------------------- ##
11193 ## Report this to pgsql-bugs@postgresql.org ##
11194 ## ---------------------------------------- ##
11195 _ASBOX
11196 ) | sed "s/^/$as_me: WARNING: /" >&2
11198 esac
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204 eval "$as_ac_Header=\$ac_header_preproc"
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212 cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 _ACEOF
11216 else
11217 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11218 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11219 { (exit 1); exit 1; }; }
11222 done
11226 done
11230 if test "$with_krb5" = yes ; then
11231 if test "${ac_cv_header_krb5_h+set}" = set; then
11232 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11233 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11234 if test "${ac_cv_header_krb5_h+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11238 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11239 else
11240 # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11242 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 #include <krb5.h>
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11269 ac_header_compiler=yes
11270 else
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_header_compiler=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 echo "${ECHO_T}$ac_header_compiler" >&6; }
11281 # Is the header present?
11282 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11283 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 #include <krb5.h>
11291 _ACEOF
11292 if { (ac_try="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } >/dev/null && {
11305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11307 }; then
11308 ac_header_preproc=yes
11309 else
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_header_preproc=no
11316 rm -f conftest.err conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11318 echo "${ECHO_T}$ac_header_preproc" >&6; }
11320 # So? What about this header?
11321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11322 yes:no: )
11323 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11324 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11326 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11327 ac_header_preproc=yes
11329 no:yes:* )
11330 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11331 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11333 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11335 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11337 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11339 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11341 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11342 ( cat <<\_ASBOX
11343 ## ---------------------------------------- ##
11344 ## Report this to pgsql-bugs@postgresql.org ##
11345 ## ---------------------------------------- ##
11346 _ASBOX
11347 ) | sed "s/^/$as_me: WARNING: /" >&2
11349 esac
11350 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11351 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11352 if test "${ac_cv_header_krb5_h+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 ac_cv_header_krb5_h=$ac_header_preproc
11357 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11361 if test $ac_cv_header_krb5_h = yes; then
11363 else
11364 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11365 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11366 { (exit 1); exit 1; }; }
11372 if test "$with_openssl" = yes ; then
11373 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11374 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11375 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11376 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11380 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11381 else
11382 # Is the header compilable?
11383 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11384 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 #include <openssl/ssl.h>
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_compile") 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } && {
11408 test -z "$ac_c_werror_flag" ||
11409 test ! -s conftest.err
11410 } && test -s conftest.$ac_objext; then
11411 ac_header_compiler=yes
11412 else
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 ac_header_compiler=no
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11421 echo "${ECHO_T}$ac_header_compiler" >&6; }
11423 # Is the header present?
11424 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11425 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 #include <openssl/ssl.h>
11433 _ACEOF
11434 if { (ac_try="$ac_cpp conftest.$ac_ext"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } >/dev/null && {
11447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 }; then
11450 ac_header_preproc=yes
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_preproc=no
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 yes:no: )
11465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11471 no:yes:* )
11472 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11484 ( cat <<\_ASBOX
11485 ## ---------------------------------------- ##
11486 ## Report this to pgsql-bugs@postgresql.org ##
11487 ## ---------------------------------------- ##
11488 _ASBOX
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11491 esac
11492 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11493 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11494 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11499 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11500 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11503 if test $ac_cv_header_openssl_ssl_h = yes; then
11505 else
11506 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11507 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11508 { (exit 1); exit 1; }; }
11512 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11513 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11514 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11515 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11519 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11520 else
11521 # Is the header compilable?
11522 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11523 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h. */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 $ac_includes_default
11531 #include <openssl/err.h>
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest.$ac_objext; then
11550 ac_header_compiler=yes
11551 else
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 ac_header_compiler=no
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 echo "${ECHO_T}$ac_header_compiler" >&6; }
11562 # Is the header present?
11563 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11564 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 #include <openssl/err.h>
11572 _ACEOF
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } >/dev/null && {
11586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 }; then
11589 ac_header_preproc=yes
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_header_preproc=no
11597 rm -f conftest.err conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599 echo "${ECHO_T}$ac_header_preproc" >&6; }
11601 # So? What about this header?
11602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603 yes:no: )
11604 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11605 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11607 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11608 ac_header_preproc=yes
11610 no:yes:* )
11611 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11612 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11614 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11616 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11618 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11622 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11623 ( cat <<\_ASBOX
11624 ## ---------------------------------------- ##
11625 ## Report this to pgsql-bugs@postgresql.org ##
11626 ## ---------------------------------------- ##
11627 _ASBOX
11628 ) | sed "s/^/$as_me: WARNING: /" >&2
11630 esac
11631 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11632 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11633 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 ac_cv_header_openssl_err_h=$ac_header_preproc
11638 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11639 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11642 if test $ac_cv_header_openssl_err_h = yes; then
11644 else
11645 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11646 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11647 { (exit 1); exit 1; }; }
11652 for ac_func in ERR_set_mark
11654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11668 #define $ac_func innocuous_$ac_func
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func (); below.
11672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673 <limits.h> exists even on freestanding compilers. */
11675 #ifdef __STDC__
11676 # include <limits.h>
11677 #else
11678 # include <assert.h>
11679 #endif
11681 #undef $ac_func
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char $ac_func ();
11690 /* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
11693 #if defined __stub_$ac_func || defined __stub___$ac_func
11694 choke me
11695 #endif
11698 main ()
11700 return $ac_func ();
11702 return 0;
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest$ac_exeext &&
11722 $as_test_x conftest$ac_exeext; then
11723 eval "$as_ac_var=yes"
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 eval "$as_ac_var=no"
11731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11732 conftest$ac_exeext conftest.$ac_ext
11734 ac_res=`eval echo '${'$as_ac_var'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 _ACEOF
11743 done
11747 if test "$with_pam" = yes ; then
11749 for ac_header in security/pam_appl.h
11751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 ac_res=`eval echo '${'$as_ac_Header'}'`
11759 { echo "$as_me:$LINENO: result: $ac_res" >&5
11760 echo "${ECHO_T}$ac_res" >&6; }
11761 else
11762 # Is the header compilable?
11763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 $ac_includes_default
11772 #include <$ac_header>
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (ac_try="$ac_compile"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest.$ac_objext; then
11791 ac_header_compiler=yes
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_compiler=no
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 echo "${ECHO_T}$ac_header_compiler" >&6; }
11803 # Is the header present?
11804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h. */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 #include <$ac_header>
11813 _ACEOF
11814 if { (ac_try="$ac_cpp conftest.$ac_ext"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } >/dev/null && {
11827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 }; then
11830 ac_header_preproc=yes
11831 else
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 ac_header_preproc=no
11838 rm -f conftest.err conftest.$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 echo "${ECHO_T}$ac_header_preproc" >&6; }
11842 # So? What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 yes:no: )
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11849 ac_header_preproc=yes
11851 no:yes:* )
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11864 ( cat <<\_ASBOX
11865 ## ---------------------------------------- ##
11866 ## Report this to pgsql-bugs@postgresql.org ##
11867 ## ---------------------------------------- ##
11868 _ASBOX
11869 ) | sed "s/^/$as_me: WARNING: /" >&2
11871 esac
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 eval "$as_ac_Header=\$ac_header_preproc"
11879 ac_res=`eval echo '${'$as_ac_Header'}'`
11880 { echo "$as_me:$LINENO: result: $ac_res" >&5
11881 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11887 _ACEOF
11889 else
11891 for ac_header in pam/pam_appl.h
11893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 ac_res=`eval echo '${'$as_ac_Header'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 else
11904 # Is the header compilable?
11905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 $ac_includes_default
11914 #include <$ac_header>
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_compile") 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest.$ac_objext; then
11933 ac_header_compiler=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_compiler=no
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <$ac_header>
11955 _ACEOF
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev/null && {
11969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 }; then
11972 ac_header_preproc=yes
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_header_preproc=no
11980 rm -f conftest.err conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11984 # So? What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 yes:no: )
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc=yes
11993 no:yes:* )
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12006 ( cat <<\_ASBOX
12007 ## ---------------------------------------- ##
12008 ## Report this to pgsql-bugs@postgresql.org ##
12009 ## ---------------------------------------- ##
12010 _ASBOX
12011 ) | sed "s/^/$as_me: WARNING: /" >&2
12013 esac
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019 eval "$as_ac_Header=\$ac_header_preproc"
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12029 _ACEOF
12031 else
12032 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12033 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12034 { (exit 1); exit 1; }; }
12037 done
12041 done
12045 if test "$with_libxml" = yes ; then
12046 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12047 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12048 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12049 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12053 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12054 else
12055 # Is the header compilable?
12056 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12057 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 $ac_includes_default
12065 #include <libxml/parser.h>
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (ac_try="$ac_compile"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_header_compiler=yes
12085 else
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_header_compiler=no
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12094 echo "${ECHO_T}$ac_header_compiler" >&6; }
12096 # Is the header present?
12097 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12098 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h. */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 #include <libxml/parser.h>
12106 _ACEOF
12107 if { (ac_try="$ac_cpp conftest.$ac_ext"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } >/dev/null && {
12120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 }; then
12123 ac_header_preproc=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_header_preproc=no
12131 rm -f conftest.err conftest.$ac_ext
12132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12133 echo "${ECHO_T}$ac_header_preproc" >&6; }
12135 # So? What about this header?
12136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12137 yes:no: )
12138 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12141 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12142 ac_header_preproc=yes
12144 no:yes:* )
12145 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12146 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12148 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12150 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12152 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12154 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12156 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12157 ( cat <<\_ASBOX
12158 ## ---------------------------------------- ##
12159 ## Report this to pgsql-bugs@postgresql.org ##
12160 ## ---------------------------------------- ##
12161 _ASBOX
12162 ) | sed "s/^/$as_me: WARNING: /" >&2
12164 esac
12165 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12166 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12167 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 ac_cv_header_libxml_parser_h=$ac_header_preproc
12172 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12173 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12176 if test $ac_cv_header_libxml_parser_h = yes; then
12178 else
12179 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12180 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12181 { (exit 1); exit 1; }; }
12187 if test "$with_libxslt" = yes ; then
12188 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12189 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12190 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12191 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12195 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12196 else
12197 # Is the header compilable?
12198 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12199 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 #include <libxslt/xslt.h>
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_header_compiler=yes
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_compiler=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6; }
12238 # Is the header present?
12239 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12240 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <libxslt/xslt.h>
12248 _ACEOF
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } >/dev/null && {
12262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 }; then
12265 ac_header_preproc=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_preproc=no
12273 rm -f conftest.err conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12277 # So? What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 yes:no: )
12280 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12286 no:yes:* )
12287 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12299 ( cat <<\_ASBOX
12300 ## ---------------------------------------- ##
12301 ## Report this to pgsql-bugs@postgresql.org ##
12302 ## ---------------------------------------- ##
12303 _ASBOX
12304 ) | sed "s/^/$as_me: WARNING: /" >&2
12306 esac
12307 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12308 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12309 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12314 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12315 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12318 if test $ac_cv_header_libxslt_xslt_h = yes; then
12320 else
12321 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12322 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12323 { (exit 1); exit 1; }; }
12329 if test "$with_ldap" = yes ; then
12330 if test "$PORTNAME" != "win32"; then
12332 for ac_header in ldap.h
12334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_res=`eval echo '${'$as_ac_Header'}'`
12342 { echo "$as_me:$LINENO: result: $ac_res" >&5
12343 echo "${ECHO_T}$ac_res" >&6; }
12344 else
12345 # Is the header compilable?
12346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 $ac_includes_default
12355 #include <$ac_header>
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 ac_header_compiler=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_header_compiler=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 echo "${ECHO_T}$ac_header_compiler" >&6; }
12386 # Is the header present?
12387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <$ac_header>
12396 _ACEOF
12397 if { (ac_try="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } >/dev/null && {
12410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 }; then
12413 ac_header_preproc=yes
12414 else
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_header_preproc=no
12421 rm -f conftest.err conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6; }
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12434 no:yes:* )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447 ( cat <<\_ASBOX
12448 ## ---------------------------------------- ##
12449 ## Report this to pgsql-bugs@postgresql.org ##
12450 ## ---------------------------------------- ##
12451 _ASBOX
12452 ) | sed "s/^/$as_me: WARNING: /" >&2
12454 esac
12455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 eval "$as_ac_Header=\$ac_header_preproc"
12462 ac_res=`eval echo '${'$as_ac_Header'}'`
12463 { echo "$as_me:$LINENO: result: $ac_res" >&5
12464 echo "${ECHO_T}$ac_res" >&6; }
12467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12468 cat >>confdefs.h <<_ACEOF
12469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12470 _ACEOF
12472 else
12473 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12474 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12475 { (exit 1); exit 1; }; }
12478 done
12480 else
12482 for ac_header in winldap.h
12484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 $ac_includes_default
12497 #include <windows.h>
12500 #include <$ac_header>
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (ac_try="$ac_compile"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_compile") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest.$ac_objext; then
12519 eval "$as_ac_Header=yes"
12520 else
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 eval "$as_ac_Header=no"
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529 ac_res=`eval echo '${'$as_ac_Header'}'`
12530 { echo "$as_me:$LINENO: result: $ac_res" >&5
12531 echo "${ECHO_T}$ac_res" >&6; }
12532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12533 cat >>confdefs.h <<_ACEOF
12534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12535 _ACEOF
12537 else
12538 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12539 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12540 { (exit 1); exit 1; }; }
12543 done
12548 if test "$with_bonjour" = yes ; then
12549 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12550 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12551 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12552 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12556 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12557 else
12558 # Is the header compilable?
12559 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12560 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (ac_try="$ac_compile"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_compile") 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest.$ac_objext; then
12587 ac_header_compiler=yes
12588 else
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_header_compiler=no
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12597 echo "${ECHO_T}$ac_header_compiler" >&6; }
12599 # Is the header present?
12600 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12601 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h. */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12609 _ACEOF
12610 if { (ac_try="$ac_cpp conftest.$ac_ext"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } >/dev/null && {
12623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 }; then
12626 ac_header_preproc=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_header_preproc=no
12634 rm -f conftest.err conftest.$ac_ext
12635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12636 echo "${ECHO_T}$ac_header_preproc" >&6; }
12638 # So? What about this header?
12639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12640 yes:no: )
12641 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12643 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12644 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12645 ac_header_preproc=yes
12647 no:yes:* )
12648 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12649 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12651 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12653 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12655 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12657 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12659 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12660 ( cat <<\_ASBOX
12661 ## ---------------------------------------- ##
12662 ## Report this to pgsql-bugs@postgresql.org ##
12663 ## ---------------------------------------- ##
12664 _ASBOX
12665 ) | sed "s/^/$as_me: WARNING: /" >&2
12667 esac
12668 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12669 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12670 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12675 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12676 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12679 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12681 else
12682 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12683 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12684 { (exit 1); exit 1; }; }
12690 # for contrib/uuid-ossp
12691 if test "$with_ossp_uuid" = yes ; then
12693 for ac_header in ossp/uuid.h
12695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 ac_res=`eval echo '${'$as_ac_Header'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12705 else
12706 # Is the header compilable?
12707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h. */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 $ac_includes_default
12716 #include <$ac_header>
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (ac_try="$ac_compile"
12720 case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_compile") 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } && {
12732 test -z "$ac_c_werror_flag" ||
12733 test ! -s conftest.err
12734 } && test -s conftest.$ac_objext; then
12735 ac_header_compiler=yes
12736 else
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_header_compiler=no
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12745 echo "${ECHO_T}$ac_header_compiler" >&6; }
12747 # Is the header present?
12748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h. */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 #include <$ac_header>
12757 _ACEOF
12758 if { (ac_try="$ac_cpp conftest.$ac_ext"
12759 case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12762 esac
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } >/dev/null && {
12771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12772 test ! -s conftest.err
12773 }; then
12774 ac_header_preproc=yes
12775 else
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12779 ac_header_preproc=no
12782 rm -f conftest.err conftest.$ac_ext
12783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12784 echo "${ECHO_T}$ac_header_preproc" >&6; }
12786 # So? What about this header?
12787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12788 yes:no: )
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12793 ac_header_preproc=yes
12795 no:yes:* )
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12808 ( cat <<\_ASBOX
12809 ## ---------------------------------------- ##
12810 ## Report this to pgsql-bugs@postgresql.org ##
12811 ## ---------------------------------------- ##
12812 _ASBOX
12813 ) | sed "s/^/$as_me: WARNING: /" >&2
12815 esac
12816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 eval "$as_ac_Header=\$ac_header_preproc"
12823 ac_res=`eval echo '${'$as_ac_Header'}'`
12824 { echo "$as_me:$LINENO: result: $ac_res" >&5
12825 echo "${ECHO_T}$ac_res" >&6; }
12828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12831 _ACEOF
12833 else
12836 for ac_header in uuid.h
12838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 ac_res=`eval echo '${'$as_ac_Header'}'`
12846 { echo "$as_me:$LINENO: result: $ac_res" >&5
12847 echo "${ECHO_T}$ac_res" >&6; }
12848 else
12849 # Is the header compilable?
12850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858 $ac_includes_default
12859 #include <$ac_header>
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (ac_try="$ac_compile"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_compile") 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } && {
12875 test -z "$ac_c_werror_flag" ||
12876 test ! -s conftest.err
12877 } && test -s conftest.$ac_objext; then
12878 ac_header_compiler=yes
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 ac_header_compiler=no
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12888 echo "${ECHO_T}$ac_header_compiler" >&6; }
12890 # Is the header present?
12891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #include <$ac_header>
12900 _ACEOF
12901 if { (ac_try="$ac_cpp conftest.$ac_ext"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } >/dev/null && {
12914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 }; then
12917 ac_header_preproc=yes
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_header_preproc=no
12925 rm -f conftest.err conftest.$ac_ext
12926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12927 echo "${ECHO_T}$ac_header_preproc" >&6; }
12929 # So? What about this header?
12930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12931 yes:no: )
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12936 ac_header_preproc=yes
12938 no:yes:* )
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12951 ( cat <<\_ASBOX
12952 ## ---------------------------------------- ##
12953 ## Report this to pgsql-bugs@postgresql.org ##
12954 ## ---------------------------------------- ##
12955 _ASBOX
12956 ) | sed "s/^/$as_me: WARNING: /" >&2
12958 esac
12959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964 eval "$as_ac_Header=\$ac_header_preproc"
12966 ac_res=`eval echo '${'$as_ac_Header'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12972 cat >>confdefs.h <<_ACEOF
12973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12974 _ACEOF
12976 else
12977 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12978 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12979 { (exit 1); exit 1; }; }
12982 done
12986 done
12992 ## Types, structures, compiler characteristics
12995 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12996 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12997 if test "${ac_cv_c_bigendian+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 # See if sys/param.h defines the BYTE_ORDER macro.
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <sys/types.h>
13008 #include <sys/param.h>
13011 main ()
13013 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13014 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13015 bogus endian macros
13016 #endif
13019 return 0;
13021 _ACEOF
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.$ac_objext; then
13039 # It does; now see whether it defined to BIG_ENDIAN or not.
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h. */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 #include <sys/types.h>
13047 #include <sys/param.h>
13050 main ()
13052 #if BYTE_ORDER != BIG_ENDIAN
13053 not big endian
13054 #endif
13057 return 0;
13059 _ACEOF
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_compile") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && {
13074 test -z "$ac_c_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest.$ac_objext; then
13077 ac_cv_c_bigendian=yes
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_c_bigendian=no
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 # It does not; compile a test program.
13091 if test "$cross_compiling" = yes; then
13092 # try to guess the endianness by grepping values into an object file
13093 ac_cv_c_bigendian=unknown
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h. */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13101 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13103 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13104 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13107 main ()
13109 _ascii (); _ebcdic ();
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (ac_try="$ac_compile"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
13131 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13132 ac_cv_c_bigendian=yes
13134 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13135 if test "$ac_cv_c_bigendian" = unknown; then
13136 ac_cv_c_bigendian=no
13137 else
13138 # finding both strings is unlikely to happen, but who knows?
13139 ac_cv_c_bigendian=unknown
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 else
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13159 main ()
13162 /* Are we little or big endian? From Harbison&Steele. */
13163 union
13165 long int l;
13166 char c[sizeof (long int)];
13167 } u;
13168 u.l = 1;
13169 return u.c[sizeof (long int) - 1] == 1;
13172 return 0;
13174 _ACEOF
13175 rm -f conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_c_bigendian=no
13196 else
13197 echo "$as_me: program exited with status $ac_status" >&5
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ( exit $ac_status )
13202 ac_cv_c_bigendian=yes
13204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13213 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13214 case $ac_cv_c_bigendian in
13215 yes)
13217 cat >>confdefs.h <<\_ACEOF
13218 #define WORDS_BIGENDIAN 1
13219 _ACEOF
13224 { { echo "$as_me:$LINENO: error: unknown endianness
13225 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13226 echo "$as_me: error: unknown endianness
13227 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13228 { (exit 1); exit 1; }; } ;;
13229 esac
13231 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13233 if test "${ac_cv_c_const+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13244 main ()
13246 /* FIXME: Include the comments suggested by Paul. */
13247 #ifndef __cplusplus
13248 /* Ultrix mips cc rejects this. */
13249 typedef int charset[2];
13250 const charset cs;
13251 /* SunOS 4.1.1 cc rejects this. */
13252 char const *const *pcpcc;
13253 char **ppc;
13254 /* NEC SVR4.0.2 mips cc rejects this. */
13255 struct point {int x, y;};
13256 static struct point const zero = {0,0};
13257 /* AIX XL C 1.02.0.0 rejects this.
13258 It does not let you subtract one const X* pointer from another in
13259 an arm of an if-expression whose if-part is not a constant
13260 expression */
13261 const char *g = "string";
13262 pcpcc = &g + (g ? g-g : 0);
13263 /* HPUX 7.0 cc rejects these. */
13264 ++pcpcc;
13265 ppc = (char**) pcpcc;
13266 pcpcc = (char const *const *) ppc;
13267 { /* SCO 3.2v4 cc rejects this. */
13268 char *t;
13269 char const *s = 0 ? (char *) 0 : (char const *) 0;
13271 *t++ = 0;
13272 if (s) return 0;
13274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13275 int x[] = {25, 17};
13276 const int *foo = &x[0];
13277 ++foo;
13279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13280 typedef const int *iptr;
13281 iptr p = 0;
13282 ++p;
13284 { /* AIX XL C 1.02.0.0 rejects this saying
13285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13286 struct s { int j; const int *ap[3]; };
13287 struct s *b; b->j = 5;
13289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13290 const int foo = 10;
13291 if (!foo) return 0;
13293 return !cs[0] && !zero.x;
13294 #endif
13297 return 0;
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (ac_try="$ac_compile"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_compile") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest.$ac_objext; then
13317 ac_cv_c_const=yes
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_cv_c_const=no
13325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13328 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13329 if test $ac_cv_c_const = no; then
13331 cat >>confdefs.h <<\_ACEOF
13332 #define const
13333 _ACEOF
13337 { echo "$as_me:$LINENO: checking for inline" >&5
13338 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13339 if test "${ac_cv_c_inline+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 ac_cv_c_inline=no
13343 for ac_kw in inline __inline__ __inline; do
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 #ifndef __cplusplus
13351 typedef int foo_t;
13352 static $ac_kw foo_t static_foo () {return 0; }
13353 $ac_kw foo_t foo () {return 0; }
13354 #endif
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (ac_try="$ac_compile"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_compile") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } && {
13371 test -z "$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 } && test -s conftest.$ac_objext; then
13374 ac_cv_c_inline=$ac_kw
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 test "$ac_cv_c_inline" != no && break
13384 done
13387 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13388 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13391 case $ac_cv_c_inline in
13392 inline | yes) ;;
13394 case $ac_cv_c_inline in
13395 no) ac_val=;;
13396 *) ac_val=$ac_cv_c_inline;;
13397 esac
13398 cat >>confdefs.h <<_ACEOF
13399 #ifndef __cplusplus
13400 #define inline $ac_val
13401 #endif
13402 _ACEOF
13404 esac
13406 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13407 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13408 if test "${ac_cv_c_stringize+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #define x(y) #y
13419 char *s = x(teststring);
13420 _ACEOF
13421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422 $EGREP "#teststring" >/dev/null 2>&1; then
13423 ac_cv_c_stringize=no
13424 else
13425 ac_cv_c_stringize=yes
13427 rm -f conftest*
13430 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13431 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13432 if test $ac_cv_c_stringize = yes; then
13434 cat >>confdefs.h <<\_ACEOF
13435 #define HAVE_STRINGIZE 1
13436 _ACEOF
13440 { echo "$as_me:$LINENO: checking for signed types" >&5
13441 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13442 if test "${pgac_cv_c_signed+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445 cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h. */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13453 main ()
13455 signed char c; signed short s; signed int i;
13457 return 0;
13459 _ACEOF
13460 rm -f conftest.$ac_objext
13461 if { (ac_try="$ac_compile"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_compile") 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest.$ac_objext; then
13477 pgac_cv_c_signed=yes
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 pgac_cv_c_signed=no
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13488 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13489 if test x"$pgac_cv_c_signed" = xno ; then
13491 cat >>confdefs.h <<\_ACEOF
13492 #define signed
13493 _ACEOF
13496 { echo "$as_me:$LINENO: checking for working volatile" >&5
13497 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13498 if test "${ac_cv_c_volatile+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h. */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13509 main ()
13512 volatile int x;
13513 int * volatile y = (int *) 0;
13514 return !x && !y;
13516 return 0;
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (ac_try="$ac_compile"
13521 case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_compile") 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && {
13533 test -z "$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest.$ac_objext; then
13536 ac_cv_c_volatile=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_cv_c_volatile=no
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13547 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13548 if test $ac_cv_c_volatile = no; then
13550 cat >>confdefs.h <<\_ACEOF
13551 #define volatile
13552 _ACEOF
13556 { echo "$as_me:$LINENO: checking for __func__" >&5
13557 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13558 if test "${pgac_cv_funcname_func_support+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #include <stdio.h>
13569 main ()
13571 printf("%s\n", __func__);
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 pgac_cv_funcname_func_support=yes
13594 else
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 pgac_cv_funcname_func_support=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13604 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13605 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13607 cat >>confdefs.h <<\_ACEOF
13608 #define HAVE_FUNCNAME__FUNC 1
13609 _ACEOF
13611 else
13612 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13613 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13614 if test "${pgac_cv_funcname_function_support+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h. */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <stdio.h>
13625 main ()
13627 printf("%s\n", __FUNCTION__);
13629 return 0;
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest.$ac_objext; then
13649 pgac_cv_funcname_function_support=yes
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 pgac_cv_funcname_function_support=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13660 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13661 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_FUNCNAME__FUNCTION 1
13665 _ACEOF
13669 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13670 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13671 if test "${ac_cv_struct_tm+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <sys/types.h>
13681 #include <time.h>
13684 main ()
13686 struct tm tm;
13687 int *p = &tm.tm_sec;
13688 return !p;
13690 return 0;
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (ac_try="$ac_compile"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_compile") 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest.$ac_objext; then
13710 ac_cv_struct_tm=time.h
13711 else
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_cv_struct_tm=sys/time.h
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13721 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13722 if test $ac_cv_struct_tm = sys/time.h; then
13724 cat >>confdefs.h <<\_ACEOF
13725 #define TM_IN_SYS_TIME 1
13726 _ACEOF
13730 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13731 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13732 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h. */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13741 #include <sys/types.h>
13742 #include <$ac_cv_struct_tm>
13746 main ()
13748 static struct tm ac_aggr;
13749 if (ac_aggr.tm_zone)
13750 return 0;
13752 return 0;
13754 _ACEOF
13755 rm -f conftest.$ac_objext
13756 if { (ac_try="$ac_compile"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.$ac_objext; then
13772 ac_cv_member_struct_tm_tm_zone=yes
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <sys/types.h>
13784 #include <$ac_cv_struct_tm>
13788 main ()
13790 static struct tm ac_aggr;
13791 if (sizeof ac_aggr.tm_zone)
13792 return 0;
13794 return 0;
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (ac_try="$ac_compile"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_compile") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest.$ac_objext; then
13814 ac_cv_member_struct_tm_tm_zone=yes
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_cv_member_struct_tm_tm_zone=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13828 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13829 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_STRUCT_TM_TM_ZONE 1
13833 _ACEOF
13838 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_TM_ZONE 1
13842 _ACEOF
13845 { echo "$as_me:$LINENO: checking for tzname" >&5
13846 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13847 if test "${ac_cv_var_tzname+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h. */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 #include <time.h>
13857 #ifndef tzname /* For SGI. */
13858 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13859 #endif
13862 main ()
13864 atoi(*tzname);
13866 return 0;
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13887 ac_cv_var_tzname=yes
13888 else
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_var_tzname=no
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13899 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13900 if test $ac_cv_var_tzname = yes; then
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_TZNAME 1
13904 _ACEOF
13908 { echo "$as_me:$LINENO: checking for union semun" >&5
13909 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13910 if test "${ac_cv_type_union_semun+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h. */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 #include <sys/types.h>
13920 #include <sys/ipc.h>
13921 #include <sys/sem.h>
13923 typedef union semun ac__type_new_;
13925 main ()
13927 if ((ac__type_new_ *) 0)
13928 return 0;
13929 if (sizeof (ac__type_new_))
13930 return 0;
13932 return 0;
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (ac_try="$ac_compile"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13952 ac_cv_type_union_semun=yes
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_cv_type_union_semun=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13963 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13964 if test $ac_cv_type_union_semun = yes; then
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_UNION_SEMUN 1
13968 _ACEOF
13973 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13974 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13975 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <sys/types.h>
13985 #ifdef HAVE_SYS_UN_H
13986 #include <sys/un.h>
13987 #endif
13990 typedef struct sockaddr_un ac__type_new_;
13992 main ()
13994 if ((ac__type_new_ *) 0)
13995 return 0;
13996 if (sizeof (ac__type_new_))
13997 return 0;
13999 return 0;
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (ac_try="$ac_compile"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_compile") 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } && {
14016 test -z "$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 } && test -s conftest.$ac_objext; then
14019 ac_cv_type_struct_sockaddr_un=yes
14020 else
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_cv_type_struct_sockaddr_un=no
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14030 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14031 if test $ac_cv_type_struct_sockaddr_un = yes; then
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_STRUCT_SOCKADDR_UN 1
14035 _ACEOF
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_UNIX_SOCKETS 1
14040 _ACEOF
14044 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14045 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14046 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 #include <sys/types.h>
14056 #ifdef HAVE_SYS_SOCKET_H
14057 #include <sys/socket.h>
14058 #endif
14061 typedef struct sockaddr_storage ac__type_new_;
14063 main ()
14065 if ((ac__type_new_ *) 0)
14066 return 0;
14067 if (sizeof (ac__type_new_))
14068 return 0;
14070 return 0;
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (ac_try="$ac_compile"
14075 case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && {
14087 test -z "$ac_c_werror_flag" ||
14088 test ! -s conftest.err
14089 } && test -s conftest.$ac_objext; then
14090 ac_cv_type_struct_sockaddr_storage=yes
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ac_cv_type_struct_sockaddr_storage=no
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14101 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14102 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14106 _ACEOF
14111 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14112 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14113 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 #include <sys/types.h>
14123 #ifdef HAVE_SYS_SOCKET_H
14124 #include <sys/socket.h>
14125 #endif
14129 main ()
14131 static struct sockaddr_storage ac_aggr;
14132 if (ac_aggr.ss_family)
14133 return 0;
14135 return 0;
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.$ac_objext; then
14155 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14156 else
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h. */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 #include <sys/types.h>
14167 #ifdef HAVE_SYS_SOCKET_H
14168 #include <sys/socket.h>
14169 #endif
14173 main ()
14175 static struct sockaddr_storage ac_aggr;
14176 if (sizeof ac_aggr.ss_family)
14177 return 0;
14179 return 0;
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (ac_try="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14200 else
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_member_struct_sockaddr_storage_ss_family=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14213 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14214 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14218 _ACEOF
14222 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14223 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14224 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h. */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14234 #ifdef HAVE_SYS_SOCKET_H
14235 #include <sys/socket.h>
14236 #endif
14240 main ()
14242 static struct sockaddr_storage ac_aggr;
14243 if (ac_aggr.__ss_family)
14244 return 0;
14246 return 0;
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14257 ac_status=$?
14258 grep -v '^ *+' conftest.er1 >conftest.err
14259 rm -f conftest.er1
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.$ac_objext; then
14266 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <sys/types.h>
14278 #ifdef HAVE_SYS_SOCKET_H
14279 #include <sys/socket.h>
14280 #endif
14284 main ()
14286 static struct sockaddr_storage ac_aggr;
14287 if (sizeof ac_aggr.__ss_family)
14288 return 0;
14290 return 0;
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14310 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_cv_member_struct_sockaddr_storage___ss_family=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14325 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14329 _ACEOF
14333 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14334 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14335 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <sys/types.h>
14345 #ifdef HAVE_SYS_SOCKET_H
14346 #include <sys/socket.h>
14347 #endif
14351 main ()
14353 static struct sockaddr_storage ac_aggr;
14354 if (ac_aggr.ss_len)
14355 return 0;
14357 return 0;
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_compile") 2>conftest.er1
14368 ac_status=$?
14369 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest.$ac_objext; then
14377 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h. */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 #include <sys/types.h>
14389 #ifdef HAVE_SYS_SOCKET_H
14390 #include <sys/socket.h>
14391 #endif
14395 main ()
14397 static struct sockaddr_storage ac_aggr;
14398 if (sizeof ac_aggr.ss_len)
14399 return 0;
14401 return 0;
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_compile") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest.$ac_objext; then
14421 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_member_struct_sockaddr_storage_ss_len=no
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14435 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14436 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14440 _ACEOF
14444 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14445 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14446 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <sys/types.h>
14456 #ifdef HAVE_SYS_SOCKET_H
14457 #include <sys/socket.h>
14458 #endif
14462 main ()
14464 static struct sockaddr_storage ac_aggr;
14465 if (ac_aggr.__ss_len)
14466 return 0;
14468 return 0;
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest.$ac_objext; then
14488 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <sys/types.h>
14500 #ifdef HAVE_SYS_SOCKET_H
14501 #include <sys/socket.h>
14502 #endif
14506 main ()
14508 static struct sockaddr_storage ac_aggr;
14509 if (sizeof ac_aggr.__ss_len)
14510 return 0;
14512 return 0;
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_compile") 2>conftest.er1
14523 ac_status=$?
14524 grep -v '^ *+' conftest.er1 >conftest.err
14525 rm -f conftest.er1
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && {
14529 test -z "$ac_c_werror_flag" ||
14530 test ! -s conftest.err
14531 } && test -s conftest.$ac_objext; then
14532 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14533 else
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 ac_cv_member_struct_sockaddr_storage___ss_len=no
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14546 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14547 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14551 _ACEOF
14555 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14556 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14557 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14567 #ifdef HAVE_SYS_SOCKET_H
14568 #include <sys/socket.h>
14569 #endif
14573 main ()
14575 static struct sockaddr ac_aggr;
14576 if (ac_aggr.sa_len)
14577 return 0;
14579 return 0;
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest.$ac_objext; then
14599 ac_cv_member_struct_sockaddr_sa_len=yes
14600 else
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h. */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #include <sys/types.h>
14611 #ifdef HAVE_SYS_SOCKET_H
14612 #include <sys/socket.h>
14613 #endif
14617 main ()
14619 static struct sockaddr ac_aggr;
14620 if (sizeof ac_aggr.sa_len)
14621 return 0;
14623 return 0;
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 ac_cv_member_struct_sockaddr_sa_len=yes
14644 else
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_cv_member_struct_sockaddr_sa_len=no
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14657 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14658 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14662 _ACEOF
14667 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14668 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14669 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h. */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <sys/types.h>
14679 #include <sys/socket.h>
14680 #include <netdb.h>
14683 typedef struct addrinfo ac__type_new_;
14685 main ()
14687 if ((ac__type_new_ *) 0)
14688 return 0;
14689 if (sizeof (ac__type_new_))
14690 return 0;
14692 return 0;
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (ac_try="$ac_compile"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_compile") 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest.$ac_objext; then
14712 ac_cv_type_struct_addrinfo=yes
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_type_struct_addrinfo=no
14720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14723 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14724 if test $ac_cv_type_struct_addrinfo = yes; then
14726 cat >>confdefs.h <<_ACEOF
14727 #define HAVE_STRUCT_ADDRINFO 1
14728 _ACEOF
14734 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14735 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14736 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 #include <sys/param.h>
14746 #include <sys/types.h>
14747 #include <sys/socket.h>
14748 #include <sys/ucred.h>
14750 typedef struct cmsgcred ac__type_new_;
14752 main ()
14754 if ((ac__type_new_ *) 0)
14755 return 0;
14756 if (sizeof (ac__type_new_))
14757 return 0;
14759 return 0;
14761 _ACEOF
14762 rm -f conftest.$ac_objext
14763 if { (ac_try="$ac_compile"
14764 case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14767 esac
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_compile") 2>conftest.er1
14770 ac_status=$?
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -f conftest.er1
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && {
14776 test -z "$ac_c_werror_flag" ||
14777 test ! -s conftest.err
14778 } && test -s conftest.$ac_objext; then
14779 ac_cv_type_struct_cmsgcred=yes
14780 else
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_type_struct_cmsgcred=no
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14790 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14791 if test $ac_cv_type_struct_cmsgcred = yes; then
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_STRUCT_CMSGCRED 1
14795 _ACEOF
14799 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14800 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14801 if test "${ac_cv_type_struct_fcred+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h. */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 #include <sys/param.h>
14811 #include <sys/types.h>
14812 #include <sys/socket.h>
14813 #include <sys/ucred.h>
14815 typedef struct fcred ac__type_new_;
14817 main ()
14819 if ((ac__type_new_ *) 0)
14820 return 0;
14821 if (sizeof (ac__type_new_))
14822 return 0;
14824 return 0;
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_compile") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest.$ac_objext; then
14844 ac_cv_type_struct_fcred=yes
14845 else
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_cv_type_struct_fcred=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14855 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14856 if test $ac_cv_type_struct_fcred = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_STRUCT_FCRED 1
14860 _ACEOF
14864 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14865 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14866 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869 cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h. */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 #include <sys/param.h>
14876 #include <sys/types.h>
14877 #include <sys/socket.h>
14878 #include <sys/ucred.h>
14880 typedef struct sockcred ac__type_new_;
14882 main ()
14884 if ((ac__type_new_ *) 0)
14885 return 0;
14886 if (sizeof (ac__type_new_))
14887 return 0;
14889 return 0;
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_compile") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest.$ac_objext; then
14909 ac_cv_type_struct_sockcred=yes
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_cv_type_struct_sockcred=no
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14920 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14921 if test $ac_cv_type_struct_sockcred = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924 #define HAVE_STRUCT_SOCKCRED 1
14925 _ACEOF
14931 { echo "$as_me:$LINENO: checking for struct option" >&5
14932 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14933 if test "${ac_cv_type_struct_option+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 #ifdef HAVE_GETOPT_H
14943 #include <getopt.h>
14944 #endif
14946 typedef struct option ac__type_new_;
14948 main ()
14950 if ((ac__type_new_ *) 0)
14951 return 0;
14952 if (sizeof (ac__type_new_))
14953 return 0;
14955 return 0;
14957 _ACEOF
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.$ac_objext; then
14975 ac_cv_type_struct_option=yes
14976 else
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 ac_cv_type_struct_option=no
14983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14986 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14987 if test $ac_cv_type_struct_option = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_STRUCT_OPTION 1
14991 _ACEOF
14997 if test "$with_zlib" = yes; then
14998 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14999 # did not). While we could work around the lack of z_streamp, it
15000 # seems unwise to encourage people to use such old zlib versions...
15001 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15002 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15003 if test "${ac_cv_type_z_streamp+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <zlib.h>
15014 typedef z_streamp ac__type_new_;
15016 main ()
15018 if ((ac__type_new_ *) 0)
15019 return 0;
15020 if (sizeof (ac__type_new_))
15021 return 0;
15023 return 0;
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 ac_cv_type_z_streamp=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_type_z_streamp=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15054 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15055 if test $ac_cv_type_z_streamp = yes; then
15057 else
15058 { { echo "$as_me:$LINENO: error: zlib version is too old
15059 Use --without-zlib to disable zlib support." >&5
15060 echo "$as_me: error: zlib version is too old
15061 Use --without-zlib to disable zlib support." >&2;}
15062 { (exit 1); exit 1; }; }
15067 if test "$with_krb5" = yes; then
15068 # Check for differences between MIT and Heimdal (KTH) releases
15069 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15070 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15071 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <krb5.h>
15083 main ()
15085 static krb5_ticket ac_aggr;
15086 if (ac_aggr.enc_part2)
15087 return 0;
15089 return 0;
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (ac_try="$ac_compile"
15094 case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_compile") 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest.$ac_objext; then
15109 ac_cv_member_krb5_ticket_enc_part2=yes
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h. */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 #include <krb5.h>
15123 main ()
15125 static krb5_ticket ac_aggr;
15126 if (sizeof ac_aggr.enc_part2)
15127 return 0;
15129 return 0;
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 ac_cv_member_krb5_ticket_enc_part2=yes
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_cv_member_krb5_ticket_enc_part2=no
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15163 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15164 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15166 cat >>confdefs.h <<_ACEOF
15167 #define HAVE_KRB5_TICKET_ENC_PART2 1
15168 _ACEOF
15171 else
15172 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15173 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15174 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 #include <krb5.h>
15186 main ()
15188 static krb5_ticket ac_aggr;
15189 if (ac_aggr.client)
15190 return 0;
15192 return 0;
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_compile") 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && {
15209 test -z "$ac_c_werror_flag" ||
15210 test ! -s conftest.err
15211 } && test -s conftest.$ac_objext; then
15212 ac_cv_member_krb5_ticket_client=yes
15213 else
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 #include <krb5.h>
15226 main ()
15228 static krb5_ticket ac_aggr;
15229 if (sizeof ac_aggr.client)
15230 return 0;
15232 return 0;
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (ac_try="$ac_compile"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_compile") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } && {
15249 test -z "$ac_c_werror_flag" ||
15250 test ! -s conftest.err
15251 } && test -s conftest.$ac_objext; then
15252 ac_cv_member_krb5_ticket_client=yes
15253 else
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_cv_member_krb5_ticket_client=no
15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15266 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15267 if test $ac_cv_member_krb5_ticket_client = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define HAVE_KRB5_TICKET_CLIENT 1
15271 _ACEOF
15274 else
15275 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15276 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15277 { (exit 1); exit 1; }; }
15282 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15283 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15284 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include <krb5.h>
15296 main ()
15298 static krb5_error ac_aggr;
15299 if (ac_aggr.text.data)
15300 return 0;
15302 return 0;
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
15321 } && test -s conftest.$ac_objext; then
15322 ac_cv_member_krb5_error_text_data=yes
15323 else
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h. */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <krb5.h>
15336 main ()
15338 static krb5_error ac_aggr;
15339 if (sizeof ac_aggr.text.data)
15340 return 0;
15342 return 0;
15344 _ACEOF
15345 rm -f conftest.$ac_objext
15346 if { (ac_try="$ac_compile"
15347 case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_compile") 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && {
15359 test -z "$ac_c_werror_flag" ||
15360 test ! -s conftest.err
15361 } && test -s conftest.$ac_objext; then
15362 ac_cv_member_krb5_error_text_data=yes
15363 else
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_member_krb5_error_text_data=no
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15376 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15377 if test $ac_cv_member_krb5_error_text_data = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15381 _ACEOF
15384 else
15385 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15386 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15387 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h. */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 #include <krb5.h>
15399 main ()
15401 static krb5_error ac_aggr;
15402 if (ac_aggr.e_data)
15403 return 0;
15405 return 0;
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_compile") 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest.$ac_objext; then
15425 ac_cv_member_krb5_error_e_data=yes
15426 else
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h. */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 #include <krb5.h>
15439 main ()
15441 static krb5_error ac_aggr;
15442 if (sizeof ac_aggr.e_data)
15443 return 0;
15445 return 0;
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (ac_try="$ac_compile"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest.$ac_objext; then
15465 ac_cv_member_krb5_error_e_data=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_member_krb5_error_e_data=no
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15479 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15480 if test $ac_cv_member_krb5_error_e_data = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_KRB5_ERROR_E_DATA 1
15484 _ACEOF
15487 else
15488 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15489 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15490 { (exit 1); exit 1; }; }
15496 # Win32 requires headers to be loaded for __stdcall, so can't use
15497 # AC_CHECK_FUNCS here.
15498 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15499 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15500 cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h. */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 #include <krb5.h>
15508 main ()
15510 krb5_free_unparsed_name(NULL,NULL);
15512 return 0;
15514 _ACEOF
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_link") 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } && {
15529 test -z "$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15531 } && test -s conftest$ac_exeext &&
15532 $as_test_x conftest$ac_exeext; then
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15536 _ACEOF
15538 { echo "$as_me:$LINENO: result: yes" >&5
15539 echo "${ECHO_T}yes" >&6; }
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 { echo "$as_me:$LINENO: result: no" >&5
15545 echo "${ECHO_T}no" >&6; }
15548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549 conftest$ac_exeext conftest.$ac_ext
15554 ## Functions, global variables
15557 { echo "$as_me:$LINENO: checking for int timezone" >&5
15558 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15559 if test "${pgac_cv_var_int_timezone+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h. */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <time.h>
15569 int res;
15571 main ()
15573 #ifndef __CYGWIN__
15574 res = timezone / 60;
15575 #else
15576 res = _timezone / 60;
15577 #endif
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest$ac_exeext &&
15599 $as_test_x conftest$ac_exeext; then
15600 pgac_cv_var_int_timezone=yes
15601 else
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 pgac_cv_var_int_timezone=no
15608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609 conftest$ac_exeext conftest.$ac_ext
15611 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15612 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15613 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_INT_TIMEZONE
15617 _ACEOF
15620 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15621 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15622 if test "${ac_cv_func_accept_return+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625 if test "${ac_cv_func_accept_arg1+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628 if test "${ac_cv_func_accept_arg2+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631 if test "${ac_cv_func_accept_arg3+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15635 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15636 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15637 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #ifdef HAVE_SYS_TYPES_H
15645 #include <sys/types.h>
15646 #endif
15647 #ifdef HAVE_SYS_SOCKET_H
15648 #include <sys/socket.h>
15649 #endif
15650 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15652 main ()
15656 return 0;
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (ac_try="$ac_compile"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.$ac_objext; then
15676 ac_not_found=no; break 4
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_not_found=yes
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 done
15686 done
15687 done
15688 done
15689 if test "$ac_not_found" = yes; then
15690 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15691 echo "$as_me: error: could not determine argument types" >&2;}
15692 { (exit 1); exit 1; }; }
15694 if test "$ac_cv_func_accept_arg3" = "void"; then
15695 ac_cv_func_accept_arg3=int
15705 { 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
15706 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15708 cat >>confdefs.h <<_ACEOF
15709 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15710 _ACEOF
15713 cat >>confdefs.h <<_ACEOF
15714 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15715 _ACEOF
15718 cat >>confdefs.h <<_ACEOF
15719 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15720 _ACEOF
15723 cat >>confdefs.h <<_ACEOF
15724 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15725 _ACEOF
15728 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15729 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15730 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <sys/time.h>
15741 main ()
15743 struct timeval *tp;
15744 struct timezone *tzp;
15745 gettimeofday(tp,tzp);
15747 return 0;
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_compile") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest.$ac_objext; then
15767 pgac_cv_func_gettimeofday_1arg=no
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 pgac_cv_func_gettimeofday_1arg=yes
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15778 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15779 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15781 cat >>confdefs.h <<\_ACEOF
15782 #define GETTIMEOFDAY_1ARG
15783 _ACEOF
15810 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15833 #ifdef __STDC__
15834 # include <limits.h>
15835 #else
15836 # include <assert.h>
15837 #endif
15839 #undef $ac_func
15841 /* Override any GCC internal prototype to avoid an error.
15842 Use char because int might match the return type of a GCC
15843 builtin and then its argument prototype would still apply. */
15844 #ifdef __cplusplus
15845 extern "C"
15846 #endif
15847 char $ac_func ();
15848 /* The GNU C library defines this for functions which it implements
15849 to always fail with ENOSYS. Some functions are actually named
15850 something starting with __ and the normal name is an alias. */
15851 #if defined __stub_$ac_func || defined __stub___$ac_func
15852 choke me
15853 #endif
15856 main ()
15858 return $ac_func ();
15860 return 0;
15862 _ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_link") 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest$ac_exeext &&
15880 $as_test_x conftest$ac_exeext; then
15881 eval "$as_ac_var=yes"
15882 else
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15886 eval "$as_ac_var=no"
15889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15890 conftest$ac_exeext conftest.$ac_ext
15892 ac_res=`eval echo '${'$as_ac_var'}'`
15893 { echo "$as_me:$LINENO: result: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15895 if test `eval echo '${'$as_ac_var'}'` = yes; then
15896 cat >>confdefs.h <<_ACEOF
15897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15898 _ACEOF
15901 done
15904 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15905 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15906 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h. */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <unistd.h>
15918 main ()
15920 #ifndef fdatasync
15921 (void) fdatasync;
15922 #endif
15925 return 0;
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (ac_try="$ac_compile"
15930 case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_compile") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest.$ac_objext; then
15945 ac_cv_have_decl_fdatasync=yes
15946 else
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_cv_have_decl_fdatasync=no
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15956 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15957 if test $ac_cv_have_decl_fdatasync = yes; then
15959 cat >>confdefs.h <<_ACEOF
15960 #define HAVE_DECL_FDATASYNC 1
15961 _ACEOF
15964 else
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_DECL_FDATASYNC 0
15967 _ACEOF
15973 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15974 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15975 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <fcntl.h>
15987 main ()
15989 #ifndef posix_fadvise
15990 (void) posix_fadvise;
15991 #endif
15994 return 0;
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_compile") 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest.$ac_objext; then
16014 ac_cv_have_decl_posix_fadvise=yes
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_cv_have_decl_posix_fadvise=no
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16025 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16026 if test $ac_cv_have_decl_posix_fadvise = yes; then
16028 cat >>confdefs.h <<_ACEOF
16029 #define HAVE_DECL_POSIX_FADVISE 1
16030 _ACEOF
16033 else
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_DECL_POSIX_FADVISE 0
16036 _ACEOF
16042 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16043 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16044 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16055 main ()
16057 #ifndef strlcat
16058 (void) strlcat;
16059 #endif
16062 return 0;
16064 _ACEOF
16065 rm -f conftest.$ac_objext
16066 if { (ac_try="$ac_compile"
16067 case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_compile") 2>conftest.er1
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } && {
16079 test -z "$ac_c_werror_flag" ||
16080 test ! -s conftest.err
16081 } && test -s conftest.$ac_objext; then
16082 ac_cv_have_decl_strlcat=yes
16083 else
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 ac_cv_have_decl_strlcat=no
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16093 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16094 if test $ac_cv_have_decl_strlcat = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_STRLCAT 1
16098 _ACEOF
16101 else
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_DECL_STRLCAT 0
16104 _ACEOF
16108 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16109 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16110 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h. */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 $ac_includes_default
16121 main ()
16123 #ifndef strlcpy
16124 (void) strlcpy;
16125 #endif
16128 return 0;
16130 _ACEOF
16131 rm -f conftest.$ac_objext
16132 if { (ac_try="$ac_compile"
16133 case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_compile") 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } && {
16145 test -z "$ac_c_werror_flag" ||
16146 test ! -s conftest.err
16147 } && test -s conftest.$ac_objext; then
16148 ac_cv_have_decl_strlcpy=yes
16149 else
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16153 ac_cv_have_decl_strlcpy=no
16156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16159 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16160 if test $ac_cv_have_decl_strlcpy = yes; then
16162 cat >>confdefs.h <<_ACEOF
16163 #define HAVE_DECL_STRLCPY 1
16164 _ACEOF
16167 else
16168 cat >>confdefs.h <<_ACEOF
16169 #define HAVE_DECL_STRLCPY 0
16170 _ACEOF
16176 # This is probably only present on Darwin, but may as well check always
16177 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16178 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16179 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h. */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188 #include <fcntl.h>
16191 main ()
16193 #ifndef F_FULLFSYNC
16194 (void) F_FULLFSYNC;
16195 #endif
16198 return 0;
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_compile") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest.$ac_objext; then
16218 ac_cv_have_decl_F_FULLFSYNC=yes
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_cv_have_decl_F_FULLFSYNC=no
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16229 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16230 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_DECL_F_FULLFSYNC 1
16234 _ACEOF
16237 else
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_DECL_F_FULLFSYNC 0
16240 _ACEOF
16247 HAVE_IPV6=no
16248 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16249 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16250 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <netinet/in.h>
16262 typedef struct sockaddr_in6 ac__type_new_;
16264 main ()
16266 if ((ac__type_new_ *) 0)
16267 return 0;
16268 if (sizeof (ac__type_new_))
16269 return 0;
16271 return 0;
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (ac_try="$ac_compile"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_compile") 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest.$ac_objext; then
16291 ac_cv_type_struct_sockaddr_in6=yes
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_cv_type_struct_sockaddr_in6=no
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16302 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16303 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16305 cat >>confdefs.h <<\_ACEOF
16306 #define HAVE_IPV6 1
16307 _ACEOF
16309 HAVE_IPV6=yes
16314 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16315 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16316 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <machine/vmparam.h>
16326 #include <sys/exec.h>
16329 main ()
16331 PS_STRINGS->ps_nargvstr = 1;
16332 PS_STRINGS->ps_argvstr = "foo";
16334 return 0;
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_link") 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } && {
16351 test -z "$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 } && test -s conftest$ac_exeext &&
16354 $as_test_x conftest$ac_exeext; then
16355 pgac_cv_var_PS_STRINGS=yes
16356 else
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 pgac_cv_var_PS_STRINGS=no
16363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16364 conftest$ac_exeext conftest.$ac_ext
16366 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16367 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16368 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_PS_STRINGS
16372 _ACEOF
16377 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16378 # is missing. Yes, there are machines that have only one. We may
16379 # also decide to use snprintf.c if snprintf() is present but does not
16380 # have all the features we need --- see below.
16382 if test "$PORTNAME" = "win32"; then
16383 # Win32 gets snprintf.c built unconditionally.
16385 # To properly translate all NLS languages strings, we must support the
16386 # *printf() %$ format, which allows *printf() arguments to be selected
16387 # by position in the translated string.
16389 # libintl versions < 0.13 use the native *printf() functions, and Win32
16390 # *printf() doesn't understand %$, so we must use our /port versions,
16391 # which do understand %$. libintl versions >= 0.13 include their own
16392 # *printf versions on Win32. The libintl 0.13 release note text is:
16394 # C format strings with positions, as they arise when a translator
16395 # needs to reorder a sentence, are now supported on all platforms.
16396 # On those few platforms (NetBSD and Woe32) for which the native
16397 # printf()/fprintf()/... functions don't support such format
16398 # strings, replacements are provided through <libintl.h>.
16400 # We could use libintl >= 0.13's *printf() if we were sure that we had
16401 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16402 # to guarantee that, it is best to just use our own, so we are sure to
16403 # get %$ support. In include/port.h we disable the *printf() macros
16404 # that might have been defined by libintl.
16406 # We do this unconditionally whether NLS is used or not so we are sure
16407 # that all Win32 libraries and binaries behave the same.
16408 pgac_need_repl_snprintf=yes
16409 else
16410 pgac_need_repl_snprintf=no
16412 for ac_func in snprintf
16414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420 cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h. */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16428 #define $ac_func innocuous_$ac_func
16430 /* System header to define __stub macros and hopefully few prototypes,
16431 which can conflict with char $ac_func (); below.
16432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16433 <limits.h> exists even on freestanding compilers. */
16435 #ifdef __STDC__
16436 # include <limits.h>
16437 #else
16438 # include <assert.h>
16439 #endif
16441 #undef $ac_func
16443 /* Override any GCC internal prototype to avoid an error.
16444 Use char because int might match the return type of a GCC
16445 builtin and then its argument prototype would still apply. */
16446 #ifdef __cplusplus
16447 extern "C"
16448 #endif
16449 char $ac_func ();
16450 /* The GNU C library defines this for functions which it implements
16451 to always fail with ENOSYS. Some functions are actually named
16452 something starting with __ and the normal name is an alias. */
16453 #if defined __stub_$ac_func || defined __stub___$ac_func
16454 choke me
16455 #endif
16458 main ()
16460 return $ac_func ();
16462 return 0;
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_link") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest$ac_exeext &&
16482 $as_test_x conftest$ac_exeext; then
16483 eval "$as_ac_var=yes"
16484 else
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 eval "$as_ac_var=no"
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492 conftest$ac_exeext conftest.$ac_ext
16494 ac_res=`eval echo '${'$as_ac_var'}'`
16495 { echo "$as_me:$LINENO: result: $ac_res" >&5
16496 echo "${ECHO_T}$ac_res" >&6; }
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498 cat >>confdefs.h <<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500 _ACEOF
16502 else
16503 pgac_need_repl_snprintf=yes
16505 done
16508 for ac_func in vsnprintf
16510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h. */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16524 #define $ac_func innocuous_$ac_func
16526 /* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func (); below.
16528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16529 <limits.h> exists even on freestanding compilers. */
16531 #ifdef __STDC__
16532 # include <limits.h>
16533 #else
16534 # include <assert.h>
16535 #endif
16537 #undef $ac_func
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16542 #ifdef __cplusplus
16543 extern "C"
16544 #endif
16545 char $ac_func ();
16546 /* The GNU C library defines this for functions which it implements
16547 to always fail with ENOSYS. Some functions are actually named
16548 something starting with __ and the normal name is an alias. */
16549 #if defined __stub_$ac_func || defined __stub___$ac_func
16550 choke me
16551 #endif
16554 main ()
16556 return $ac_func ();
16558 return 0;
16560 _ACEOF
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_link") 2>conftest.er1
16569 ac_status=$?
16570 grep -v '^ *+' conftest.er1 >conftest.err
16571 rm -f conftest.er1
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest$ac_exeext &&
16578 $as_test_x conftest$ac_exeext; then
16579 eval "$as_ac_var=yes"
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 eval "$as_ac_var=no"
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588 conftest$ac_exeext conftest.$ac_ext
16590 ac_res=`eval echo '${'$as_ac_var'}'`
16591 { echo "$as_me:$LINENO: result: $ac_res" >&5
16592 echo "${ECHO_T}$ac_res" >&6; }
16593 if test `eval echo '${'$as_ac_var'}'` = yes; then
16594 cat >>confdefs.h <<_ACEOF
16595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596 _ACEOF
16598 else
16599 pgac_need_repl_snprintf=yes
16601 done
16606 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16607 # include/c.h will provide declarations. Note this is a separate test
16608 # from whether the functions exist in the C library --- there are
16609 # systems that have the functions but don't bother to declare them :-(
16611 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16612 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16613 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 $ac_includes_default
16624 main ()
16626 #ifndef snprintf
16627 (void) snprintf;
16628 #endif
16631 return 0;
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.$ac_objext; then
16651 ac_cv_have_decl_snprintf=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_have_decl_snprintf=no
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16662 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16663 if test $ac_cv_have_decl_snprintf = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_DECL_SNPRINTF 1
16667 _ACEOF
16670 else
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_SNPRINTF 0
16673 _ACEOF
16677 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16678 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16679 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h. */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 $ac_includes_default
16690 main ()
16692 #ifndef vsnprintf
16693 (void) vsnprintf;
16694 #endif
16697 return 0;
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (ac_try="$ac_compile"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_compile") 2>conftest.er1
16708 ac_status=$?
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && {
16714 test -z "$ac_c_werror_flag" ||
16715 test ! -s conftest.err
16716 } && test -s conftest.$ac_objext; then
16717 ac_cv_have_decl_vsnprintf=yes
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ac_cv_have_decl_vsnprintf=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16728 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16729 if test $ac_cv_have_decl_vsnprintf = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define HAVE_DECL_VSNPRINTF 1
16733 _ACEOF
16736 else
16737 cat >>confdefs.h <<_ACEOF
16738 #define HAVE_DECL_VSNPRINTF 0
16739 _ACEOF
16747 { echo "$as_me:$LINENO: checking for isinf" >&5
16748 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16749 if test "${ac_cv_func_isinf+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h. */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16759 #include <math.h>
16760 double glob_double;
16763 main ()
16765 return isinf(glob_double) ? 0 : 1;
16767 return 0;
16769 _ACEOF
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (ac_try="$ac_link"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_link") 2>conftest.er1
16778 ac_status=$?
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest$ac_exeext &&
16787 $as_test_x conftest$ac_exeext; then
16788 ac_cv_func_isinf=yes
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 ac_cv_func_isinf=no
16796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16797 conftest$ac_exeext conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16800 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16802 if test $ac_cv_func_isinf = yes ; then
16804 cat >>confdefs.h <<\_ACEOF
16805 #define HAVE_ISINF 1
16806 _ACEOF
16808 else
16809 case " $LIBOBJS " in
16810 *" isinf.$ac_objext "* ) ;;
16811 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16813 esac
16815 # Look for a way to implement a substitute for isinf()
16820 for ac_func in fpclass fp_class fp_class_d class
16822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16836 #define $ac_func innocuous_$ac_func
16838 /* System header to define __stub macros and hopefully few prototypes,
16839 which can conflict with char $ac_func (); below.
16840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16841 <limits.h> exists even on freestanding compilers. */
16843 #ifdef __STDC__
16844 # include <limits.h>
16845 #else
16846 # include <assert.h>
16847 #endif
16849 #undef $ac_func
16851 /* Override any GCC internal prototype to avoid an error.
16852 Use char because int might match the return type of a GCC
16853 builtin and then its argument prototype would still apply. */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 char $ac_func ();
16858 /* The GNU C library defines this for functions which it implements
16859 to always fail with ENOSYS. Some functions are actually named
16860 something starting with __ and the normal name is an alias. */
16861 #if defined __stub_$ac_func || defined __stub___$ac_func
16862 choke me
16863 #endif
16866 main ()
16868 return $ac_func ();
16870 return 0;
16872 _ACEOF
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } && {
16887 test -z "$ac_c_werror_flag" ||
16888 test ! -s conftest.err
16889 } && test -s conftest$ac_exeext &&
16890 $as_test_x conftest$ac_exeext; then
16891 eval "$as_ac_var=yes"
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 eval "$as_ac_var=no"
16899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16900 conftest$ac_exeext conftest.$ac_ext
16902 ac_res=`eval echo '${'$as_ac_var'}'`
16903 { echo "$as_me:$LINENO: result: $ac_res" >&5
16904 echo "${ECHO_T}$ac_res" >&6; }
16905 if test `eval echo '${'$as_ac_var'}'` = yes; then
16906 cat >>confdefs.h <<_ACEOF
16907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16908 _ACEOF
16909 break
16911 done
16915 # Some versions of libedit contain strlcpy(); so disregard that library while
16916 # checking for these standard libc functions.
16917 pgac_save_LIBS="$LIBS"
16918 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16934 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16950 #define $ac_func innocuous_$ac_func
16952 /* System header to define __stub macros and hopefully few prototypes,
16953 which can conflict with char $ac_func (); below.
16954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955 <limits.h> exists even on freestanding compilers. */
16957 #ifdef __STDC__
16958 # include <limits.h>
16959 #else
16960 # include <assert.h>
16961 #endif
16963 #undef $ac_func
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16968 #ifdef __cplusplus
16969 extern "C"
16970 #endif
16971 char $ac_func ();
16972 /* The GNU C library defines this for functions which it implements
16973 to always fail with ENOSYS. Some functions are actually named
16974 something starting with __ and the normal name is an alias. */
16975 #if defined __stub_$ac_func || defined __stub___$ac_func
16976 choke me
16977 #endif
16980 main ()
16982 return $ac_func ();
16984 return 0;
16986 _ACEOF
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_link") 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest$ac_exeext &&
17004 $as_test_x conftest$ac_exeext; then
17005 eval "$as_ac_var=yes"
17006 else
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 eval "$as_ac_var=no"
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014 conftest$ac_exeext conftest.$ac_ext
17016 ac_res=`eval echo '${'$as_ac_var'}'`
17017 { echo "$as_me:$LINENO: result: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17019 if test `eval echo '${'$as_ac_var'}'` = yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17022 _ACEOF
17024 else
17025 case " $LIBOBJS " in
17026 *" $ac_func.$ac_objext "* ) ;;
17027 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17029 esac
17032 done
17036 LIBS="$pgac_save_LIBS"
17038 # System's version of getaddrinfo(), if any, may be used only if we found
17039 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17040 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17041 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17042 # because we want to use our own getaddrinfo.c on Windows anyway.)
17043 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17045 for ac_func in getaddrinfo
17047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053 cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h. */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17061 #define $ac_func innocuous_$ac_func
17063 /* System header to define __stub macros and hopefully few prototypes,
17064 which can conflict with char $ac_func (); below.
17065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066 <limits.h> exists even on freestanding compilers. */
17068 #ifdef __STDC__
17069 # include <limits.h>
17070 #else
17071 # include <assert.h>
17072 #endif
17074 #undef $ac_func
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char $ac_func ();
17083 /* The GNU C library defines this for functions which it implements
17084 to always fail with ENOSYS. Some functions are actually named
17085 something starting with __ and the normal name is an alias. */
17086 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 choke me
17088 #endif
17091 main ()
17093 return $ac_func ();
17095 return 0;
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_link") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext &&
17115 $as_test_x conftest$ac_exeext; then
17116 eval "$as_ac_var=yes"
17117 else
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 eval "$as_ac_var=no"
17124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17125 conftest$ac_exeext conftest.$ac_ext
17127 ac_res=`eval echo '${'$as_ac_var'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131 cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133 _ACEOF
17135 else
17136 case " $LIBOBJS " in
17137 *" $ac_func.$ac_objext "* ) ;;
17138 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17140 esac
17143 done
17146 else
17147 case " $LIBOBJS " in
17148 *" getaddrinfo.$ac_objext "* ) ;;
17149 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17151 esac
17155 # Similarly, use system's getopt_long() only if system provides struct option.
17156 # Solaris' getopt() doesn't do what we want for long options, so always use
17157 # our versions on that platform.
17158 if test "$PORTNAME" = "solaris"; then
17159 case " $LIBOBJS " in
17160 *" getopt.$ac_objext "* ) ;;
17161 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17163 esac
17165 case " $LIBOBJS " in
17166 *" getopt_long.$ac_objext "* ) ;;
17167 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17169 esac
17171 elif test x"$ac_cv_type_struct_option" = xyes ; then
17173 for ac_func in getopt_long
17175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17189 #define $ac_func innocuous_$ac_func
17191 /* System header to define __stub macros and hopefully few prototypes,
17192 which can conflict with char $ac_func (); below.
17193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17194 <limits.h> exists even on freestanding compilers. */
17196 #ifdef __STDC__
17197 # include <limits.h>
17198 #else
17199 # include <assert.h>
17200 #endif
17202 #undef $ac_func
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char $ac_func ();
17211 /* The GNU C library defines this for functions which it implements
17212 to always fail with ENOSYS. Some functions are actually named
17213 something starting with __ and the normal name is an alias. */
17214 #if defined __stub_$ac_func || defined __stub___$ac_func
17215 choke me
17216 #endif
17219 main ()
17221 return $ac_func ();
17223 return 0;
17225 _ACEOF
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest$ac_exeext &&
17243 $as_test_x conftest$ac_exeext; then
17244 eval "$as_ac_var=yes"
17245 else
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 eval "$as_ac_var=no"
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17255 ac_res=`eval echo '${'$as_ac_var'}'`
17256 { echo "$as_me:$LINENO: result: $ac_res" >&5
17257 echo "${ECHO_T}$ac_res" >&6; }
17258 if test `eval echo '${'$as_ac_var'}'` = yes; then
17259 cat >>confdefs.h <<_ACEOF
17260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17261 _ACEOF
17263 else
17264 case " $LIBOBJS " in
17265 *" $ac_func.$ac_objext "* ) ;;
17266 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17268 esac
17271 done
17274 else
17275 case " $LIBOBJS " in
17276 *" getopt_long.$ac_objext "* ) ;;
17277 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17279 esac
17283 # Win32 support
17284 if test "$PORTNAME" = "win32"; then
17286 for ac_func in gettimeofday
17288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302 #define $ac_func innocuous_$ac_func
17304 /* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17309 #ifdef __STDC__
17310 # include <limits.h>
17311 #else
17312 # include <assert.h>
17313 #endif
17315 #undef $ac_func
17317 /* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 char $ac_func ();
17324 /* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17328 choke me
17329 #endif
17332 main ()
17334 return $ac_func ();
17336 return 0;
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } && {
17353 test -z "$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 } && test -s conftest$ac_exeext &&
17356 $as_test_x conftest$ac_exeext; then
17357 eval "$as_ac_var=yes"
17358 else
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 eval "$as_ac_var=no"
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366 conftest$ac_exeext conftest.$ac_ext
17368 ac_res=`eval echo '${'$as_ac_var'}'`
17369 { echo "$as_me:$LINENO: result: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17371 if test `eval echo '${'$as_ac_var'}'` = yes; then
17372 cat >>confdefs.h <<_ACEOF
17373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17374 _ACEOF
17376 else
17377 case " $LIBOBJS " in
17378 *" $ac_func.$ac_objext "* ) ;;
17379 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17381 esac
17384 done
17387 case " $LIBOBJS " in
17388 *" kill.$ac_objext "* ) ;;
17389 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17391 esac
17393 case " $LIBOBJS " in
17394 *" open.$ac_objext "* ) ;;
17395 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17397 esac
17399 case " $LIBOBJS " in
17400 *" rand.$ac_objext "* ) ;;
17401 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17403 esac
17405 case " $LIBOBJS " in
17406 *" win32error.$ac_objext "* ) ;;
17407 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17409 esac
17412 cat >>confdefs.h <<\_ACEOF
17413 #define HAVE_SYMLINK 1
17414 _ACEOF
17418 if test "$with_readline" = yes; then
17419 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17420 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17421 cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h. */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17427 #include <stdio.h>
17428 #ifdef HAVE_READLINE_READLINE_H
17429 # include <readline/readline.h>
17430 #elif defined(HAVE_READLINE_H)
17431 # include <readline.h>
17432 #endif
17435 main ()
17437 rl_completion_append_character = 'x';
17439 return 0;
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest$ac_exeext &&
17459 $as_test_x conftest$ac_exeext; then
17460 { echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6; }
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17465 _ACEOF
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 { echo "$as_me:$LINENO: result: no" >&5
17472 echo "${ECHO_T}no" >&6; }
17475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17476 conftest$ac_exeext conftest.$ac_ext
17479 for ac_func in rl_completion_matches rl_filename_completion_function
17481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17486 else
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17495 #define $ac_func innocuous_$ac_func
17497 /* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char $ac_func (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17502 #ifdef __STDC__
17503 # include <limits.h>
17504 #else
17505 # include <assert.h>
17506 #endif
17508 #undef $ac_func
17510 /* Override any GCC internal prototype to avoid an error.
17511 Use char because int might match the return type of a GCC
17512 builtin and then its argument prototype would still apply. */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 char $ac_func ();
17517 /* The GNU C library defines this for functions which it implements
17518 to always fail with ENOSYS. Some functions are actually named
17519 something starting with __ and the normal name is an alias. */
17520 #if defined __stub_$ac_func || defined __stub___$ac_func
17521 choke me
17522 #endif
17525 main ()
17527 return $ac_func ();
17529 return 0;
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest$ac_exeext &&
17549 $as_test_x conftest$ac_exeext; then
17550 eval "$as_ac_var=yes"
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 eval "$as_ac_var=no"
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559 conftest$ac_exeext conftest.$ac_ext
17561 ac_res=`eval echo '${'$as_ac_var'}'`
17562 { echo "$as_me:$LINENO: result: $ac_res" >&5
17563 echo "${ECHO_T}$ac_res" >&6; }
17564 if test `eval echo '${'$as_ac_var'}'` = yes; then
17565 cat >>confdefs.h <<_ACEOF
17566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17567 _ACEOF
17570 done
17573 for ac_func in replace_history_entry
17575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581 cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h. */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17589 #define $ac_func innocuous_$ac_func
17591 /* System header to define __stub macros and hopefully few prototypes,
17592 which can conflict with char $ac_func (); below.
17593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594 <limits.h> exists even on freestanding compilers. */
17596 #ifdef __STDC__
17597 # include <limits.h>
17598 #else
17599 # include <assert.h>
17600 #endif
17602 #undef $ac_func
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17607 #ifdef __cplusplus
17608 extern "C"
17609 #endif
17610 char $ac_func ();
17611 /* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614 #if defined __stub_$ac_func || defined __stub___$ac_func
17615 choke me
17616 #endif
17619 main ()
17621 return $ac_func ();
17623 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest$ac_exeext &&
17643 $as_test_x conftest$ac_exeext; then
17644 eval "$as_ac_var=yes"
17645 else
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653 conftest$ac_exeext conftest.$ac_ext
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17664 done
17669 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17670 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 #include <setjmp.h>
17679 main ()
17681 sigjmp_buf x; sigsetjmp(x, 1);
17683 return 0;
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } && {
17700 test -z "$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 } && test -s conftest$ac_exeext &&
17703 $as_test_x conftest$ac_exeext; then
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_SIGSETJMP 1
17707 _ACEOF
17709 { echo "$as_me:$LINENO: result: yes" >&5
17710 echo "${ECHO_T}yes" >&6; }
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 { echo "$as_me:$LINENO: result: no" >&5
17716 echo "${ECHO_T}no" >&6; }
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720 conftest$ac_exeext conftest.$ac_ext
17722 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17723 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17724 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <signal.h>
17734 /* NetBSD declares sys_siglist in unistd.h. */
17735 #ifdef HAVE_UNISTD_H
17736 # include <unistd.h>
17737 #endif
17741 main ()
17743 #ifndef sys_siglist
17744 (void) sys_siglist;
17745 #endif
17748 return 0;
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.$ac_objext; then
17768 ac_cv_have_decl_sys_siglist=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_cv_have_decl_sys_siglist=no
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17779 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17780 if test $ac_cv_have_decl_sys_siglist = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define HAVE_DECL_SYS_SIGLIST 1
17784 _ACEOF
17787 else
17788 cat >>confdefs.h <<_ACEOF
17789 #define HAVE_DECL_SYS_SIGLIST 0
17790 _ACEOF
17798 { echo "$as_me:$LINENO: checking for syslog" >&5
17799 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17800 if test "${ac_cv_func_syslog+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h. */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17809 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17811 #define syslog innocuous_syslog
17813 /* System header to define __stub macros and hopefully few prototypes,
17814 which can conflict with char syslog (); below.
17815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17816 <limits.h> exists even on freestanding compilers. */
17818 #ifdef __STDC__
17819 # include <limits.h>
17820 #else
17821 # include <assert.h>
17822 #endif
17824 #undef syslog
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char syslog ();
17833 /* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836 #if defined __stub_syslog || defined __stub___syslog
17837 choke me
17838 #endif
17841 main ()
17843 return syslog ();
17845 return 0;
17847 _ACEOF
17848 rm -f conftest.$ac_objext conftest$ac_exeext
17849 if { (ac_try="$ac_link"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_link") 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } && {
17862 test -z "$ac_c_werror_flag" ||
17863 test ! -s conftest.err
17864 } && test -s conftest$ac_exeext &&
17865 $as_test_x conftest$ac_exeext; then
17866 ac_cv_func_syslog=yes
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_cv_func_syslog=no
17874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17875 conftest$ac_exeext conftest.$ac_ext
17877 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17878 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17879 if test $ac_cv_func_syslog = yes; then
17880 if test "${ac_cv_header_syslog_h+set}" = set; then
17881 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17882 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17883 if test "${ac_cv_header_syslog_h+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17887 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17888 else
17889 # Is the header compilable?
17890 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17891 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17892 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h. */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 $ac_includes_default
17899 #include <syslog.h>
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest.$ac_objext; then
17918 ac_header_compiler=yes
17919 else
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 ac_header_compiler=no
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17928 echo "${ECHO_T}$ac_header_compiler" >&6; }
17930 # Is the header present?
17931 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17932 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17933 cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h. */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17939 #include <syslog.h>
17940 _ACEOF
17941 if { (ac_try="$ac_cpp conftest.$ac_ext"
17942 case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } >/dev/null && {
17954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 }; then
17957 ac_header_preproc=yes
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_header_preproc=no
17965 rm -f conftest.err conftest.$ac_ext
17966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17967 echo "${ECHO_T}$ac_header_preproc" >&6; }
17969 # So? What about this header?
17970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17971 yes:no: )
17972 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17973 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17975 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17976 ac_header_preproc=yes
17978 no:yes:* )
17979 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17980 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17981 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17982 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17984 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17986 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17990 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17991 ( cat <<\_ASBOX
17992 ## ---------------------------------------- ##
17993 ## Report this to pgsql-bugs@postgresql.org ##
17994 ## ---------------------------------------- ##
17995 _ASBOX
17996 ) | sed "s/^/$as_me: WARNING: /" >&2
17998 esac
17999 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18000 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18001 if test "${ac_cv_header_syslog_h+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004 ac_cv_header_syslog_h=$ac_header_preproc
18006 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18007 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18010 if test $ac_cv_header_syslog_h = yes; then
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_SYSLOG 1
18014 _ACEOF
18022 { echo "$as_me:$LINENO: checking for optreset" >&5
18023 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18024 if test "${pgac_cv_var_int_optreset+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h. */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <unistd.h>
18035 main ()
18037 extern int optreset; optreset = 1;
18039 return 0;
18041 _ACEOF
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_link") 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest$ac_exeext &&
18059 $as_test_x conftest$ac_exeext; then
18060 pgac_cv_var_int_optreset=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 pgac_cv_var_int_optreset=no
18068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18069 conftest$ac_exeext conftest.$ac_ext
18071 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18072 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18073 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18075 cat >>confdefs.h <<\_ACEOF
18076 #define HAVE_INT_OPTRESET 1
18077 _ACEOF
18083 for ac_func in strtoll strtoq
18085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099 #define $ac_func innocuous_$ac_func
18101 /* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18106 #ifdef __STDC__
18107 # include <limits.h>
18108 #else
18109 # include <assert.h>
18110 #endif
18112 #undef $ac_func
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 char $ac_func ();
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined __stub_$ac_func || defined __stub___$ac_func
18125 choke me
18126 #endif
18129 main ()
18131 return $ac_func ();
18133 return 0;
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 eval "$as_ac_var=yes"
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 eval "$as_ac_var=no"
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163 conftest$ac_exeext conftest.$ac_ext
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18172 break
18174 done
18178 for ac_func in strtoull strtouq
18180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18194 #define $ac_func innocuous_$ac_func
18196 /* System header to define __stub macros and hopefully few prototypes,
18197 which can conflict with char $ac_func (); below.
18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199 <limits.h> exists even on freestanding compilers. */
18201 #ifdef __STDC__
18202 # include <limits.h>
18203 #else
18204 # include <assert.h>
18205 #endif
18207 #undef $ac_func
18209 /* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18212 #ifdef __cplusplus
18213 extern "C"
18214 #endif
18215 char $ac_func ();
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined __stub_$ac_func || defined __stub___$ac_func
18220 choke me
18221 #endif
18224 main ()
18226 return $ac_func ();
18228 return 0;
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest$ac_exeext &&
18248 $as_test_x conftest$ac_exeext; then
18249 eval "$as_ac_var=yes"
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 eval "$as_ac_var=no"
18257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18258 conftest$ac_exeext conftest.$ac_ext
18260 ac_res=`eval echo '${'$as_ac_var'}'`
18261 { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264 cat >>confdefs.h <<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 _ACEOF
18267 break
18269 done
18272 # Check for one of atexit() or on_exit()
18274 for ac_func in atexit
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h. */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290 #define $ac_func innocuous_$ac_func
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18303 #undef $ac_func
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char $ac_func ();
18312 /* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18316 choke me
18317 #endif
18320 main ()
18322 return $ac_func ();
18324 return 0;
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } && {
18341 test -z "$ac_c_werror_flag" ||
18342 test ! -s conftest.err
18343 } && test -s conftest$ac_exeext &&
18344 $as_test_x conftest$ac_exeext; then
18345 eval "$as_ac_var=yes"
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 eval "$as_ac_var=no"
18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354 conftest$ac_exeext conftest.$ac_ext
18356 ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358 echo "${ECHO_T}$ac_res" >&6; }
18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
18360 cat >>confdefs.h <<_ACEOF
18361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18362 _ACEOF
18364 else
18366 for ac_func in on_exit
18368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18382 #define $ac_func innocuous_$ac_func
18384 /* System header to define __stub macros and hopefully few prototypes,
18385 which can conflict with char $ac_func (); below.
18386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18387 <limits.h> exists even on freestanding compilers. */
18389 #ifdef __STDC__
18390 # include <limits.h>
18391 #else
18392 # include <assert.h>
18393 #endif
18395 #undef $ac_func
18397 /* Override any GCC internal prototype to avoid an error.
18398 Use char because int might match the return type of a GCC
18399 builtin and then its argument prototype would still apply. */
18400 #ifdef __cplusplus
18401 extern "C"
18402 #endif
18403 char $ac_func ();
18404 /* The GNU C library defines this for functions which it implements
18405 to always fail with ENOSYS. Some functions are actually named
18406 something starting with __ and the normal name is an alias. */
18407 #if defined __stub_$ac_func || defined __stub___$ac_func
18408 choke me
18409 #endif
18412 main ()
18414 return $ac_func ();
18416 return 0;
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && {
18433 test -z "$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 } && test -s conftest$ac_exeext &&
18436 $as_test_x conftest$ac_exeext; then
18437 eval "$as_ac_var=yes"
18438 else
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 eval "$as_ac_var=no"
18445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18446 conftest$ac_exeext conftest.$ac_ext
18448 ac_res=`eval echo '${'$as_ac_var'}'`
18449 { echo "$as_me:$LINENO: result: $ac_res" >&5
18450 echo "${ECHO_T}$ac_res" >&6; }
18451 if test `eval echo '${'$as_ac_var'}'` = yes; then
18452 cat >>confdefs.h <<_ACEOF
18453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18454 _ACEOF
18456 else
18457 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18458 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18459 { (exit 1); exit 1; }; }
18461 done
18464 done
18468 for ac_func in fseeko
18470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484 #define $ac_func innocuous_$ac_func
18486 /* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char $ac_func (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18491 #ifdef __STDC__
18492 # include <limits.h>
18493 #else
18494 # include <assert.h>
18495 #endif
18497 #undef $ac_func
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502 #ifdef __cplusplus
18503 extern "C"
18504 #endif
18505 char $ac_func ();
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined __stub_$ac_func || defined __stub___$ac_func
18510 choke me
18511 #endif
18514 main ()
18516 return $ac_func ();
18518 return 0;
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (ac_try="$ac_link"
18523 case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_link") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } && {
18535 test -z "$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 } && test -s conftest$ac_exeext &&
18538 $as_test_x conftest$ac_exeext; then
18539 eval "$as_ac_var=yes"
18540 else
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 eval "$as_ac_var=no"
18547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18548 conftest$ac_exeext conftest.$ac_ext
18550 ac_res=`eval echo '${'$as_ac_var'}'`
18551 { echo "$as_me:$LINENO: result: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18553 if test `eval echo '${'$as_ac_var'}'` = yes; then
18554 cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18556 _ACEOF
18558 else
18559 case " $LIBOBJS " in
18560 *" $ac_func.$ac_objext "* ) ;;
18561 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18563 esac
18566 done
18569 case $host_os in
18570 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18571 bsdi*|netbsd*)
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_FSEEKO 1
18575 _ACEOF
18577 ac_cv_func_fseeko=yes;;
18579 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18580 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18581 if test "${ac_cv_sys_largefile_source+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 while :; do
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <sys/types.h> /* for off_t */
18592 #include <stdio.h>
18594 main ()
18596 int (*fp) (FILE *, off_t, int) = fseeko;
18597 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18599 return 0;
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_link") 2>conftest.er1
18610 ac_status=$?
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } && {
18616 test -z "$ac_c_werror_flag" ||
18617 test ! -s conftest.err
18618 } && test -s conftest$ac_exeext &&
18619 $as_test_x conftest$ac_exeext; then
18620 ac_cv_sys_largefile_source=no; break
18621 else
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18629 conftest$ac_exeext conftest.$ac_ext
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h. */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #define _LARGEFILE_SOURCE 1
18637 #include <sys/types.h> /* for off_t */
18638 #include <stdio.h>
18640 main ()
18642 int (*fp) (FILE *, off_t, int) = fseeko;
18643 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18645 return 0;
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ac_cv_sys_largefile_source=1; break
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18676 ac_cv_sys_largefile_source=unknown
18677 break
18678 done
18680 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18681 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18682 case $ac_cv_sys_largefile_source in #(
18683 no | unknown) ;;
18685 cat >>confdefs.h <<_ACEOF
18686 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18687 _ACEOF
18689 esac
18690 rm -f conftest*
18692 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18693 # in glibc 2.1.3, but that breaks too many other things.
18694 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18695 if test $ac_cv_sys_largefile_source != unknown; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_FSEEKO 1
18699 _ACEOF
18703 esac
18707 # Pthreads
18709 # For each platform, we need to know about any special compile and link
18710 # libraries, and whether the normal C function names are thread-safe.
18711 # See the comment at the top of src/port/thread.c for more information.
18712 # WIN32 doesn't need the pthread tests; it always uses threads
18713 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18717 ac_ext=c
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723 acx_pthread_ok=no
18725 # We used to check for pthread.h first, but this fails if pthread.h
18726 # requires special compiler flags (e.g. on True64 or Sequent).
18727 # It gets checked for in the link test anyway.
18729 # First of all, check if the user has set any of the PTHREAD_LIBS,
18730 # etcetera environment variables, and if threads linking works using
18731 # them:
18732 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18733 save_CFLAGS="$CFLAGS"
18734 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18735 save_LIBS="$LIBS"
18736 LIBS="$PTHREAD_LIBS $LIBS"
18737 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18738 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h. */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char pthread_join ();
18754 main ()
18756 return pthread_join ();
18758 return 0;
18760 _ACEOF
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_link") 2>conftest.er1
18769 ac_status=$?
18770 grep -v '^ *+' conftest.er1 >conftest.err
18771 rm -f conftest.er1
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } && {
18775 test -z "$ac_c_werror_flag" ||
18776 test ! -s conftest.err
18777 } && test -s conftest$ac_exeext &&
18778 $as_test_x conftest$ac_exeext; then
18779 acx_pthread_ok=yes
18780 else
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18789 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18790 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18791 if test x"$acx_pthread_ok" = xno; then
18792 PTHREAD_LIBS=""
18793 PTHREAD_CFLAGS=""
18795 LIBS="$save_LIBS"
18796 CFLAGS="$save_CFLAGS"
18799 # We must check for the threads library under a number of different
18800 # names; the ordering is very important because some systems
18801 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18802 # libraries is broken (non-POSIX).
18804 # Create a list of thread flags to try. Items starting with a "-" are
18805 # C compiler flags, and other items are library names, except for "none"
18806 # which indicates that we try without any flags at all, and "pthread-config"
18807 # which is a program returning the flags for the Pth emulation library.
18809 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18811 # The ordering *is* (sometimes) important. Some notes on the
18812 # individual items follow:
18814 # pthreads: AIX (must check this before -lpthread)
18815 # none: in case threads are in libc; should be tried before -Kthread and
18816 # other compiler flags to prevent continual compiler warnings
18817 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18818 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18819 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18820 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18821 # -pthreads: Solaris/gcc
18822 # -mthreads: Mingw32/gcc, Lynx/gcc
18823 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18824 # doesn't hurt to check since this sometimes defines pthreads too;
18825 # also defines -D_REENTRANT)
18826 # pthread: Linux, etcetera
18827 # --thread-safe: KAI C++
18828 # pthread-config: use pthread-config program (for GNU Pth library)
18830 case "${host_cpu}-${host_os}" in
18831 *solaris*)
18833 # On Solaris (at least, for some versions), libc contains stubbed
18834 # (non-functional) versions of the pthreads routines, so link-based
18835 # tests will erroneously succeed. (We need to link with -pthread or
18836 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18837 # a function called by this macro, so we could check for that, but
18838 # who knows whether they'll stub that too in a future libc.) So,
18839 # we'll just look for -pthreads and -lpthread first:
18841 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18843 esac
18845 if test x"$acx_pthread_ok" = xno; then
18846 for flag in $acx_pthread_flags; do
18848 tryPTHREAD_CFLAGS=""
18849 tryPTHREAD_LIBS=""
18850 case $flag in
18851 none)
18852 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18853 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18857 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18858 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18859 tryPTHREAD_CFLAGS="$flag"
18862 pthread-config)
18863 # skip this if we already have flags defined, for PostgreSQL
18864 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18865 # Extract the first word of "pthread-config", so it can be a program name with args.
18866 set dummy pthread-config; ac_word=$2
18867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18869 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872 if test -n "$acx_pthread_config"; then
18873 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18874 else
18875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18876 for as_dir in $PATH
18878 IFS=$as_save_IFS
18879 test -z "$as_dir" && as_dir=.
18880 for ac_exec_ext in '' $ac_executable_extensions; do
18881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18882 ac_cv_prog_acx_pthread_config="yes"
18883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18884 break 2
18886 done
18887 done
18888 IFS=$as_save_IFS
18890 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18893 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18894 if test -n "$acx_pthread_config"; then
18895 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18896 echo "${ECHO_T}$acx_pthread_config" >&6; }
18897 else
18898 { echo "$as_me:$LINENO: result: no" >&5
18899 echo "${ECHO_T}no" >&6; }
18903 if test x"$acx_pthread_config" = xno; then continue; fi
18904 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18905 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18909 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18910 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18911 tryPTHREAD_LIBS="-l$flag"
18913 esac
18915 save_LIBS="$LIBS"
18916 save_CFLAGS="$CFLAGS"
18917 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18918 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18920 # Check for various functions. We must include pthread.h,
18921 # since some functions may be macros. (On the Sequent, we
18922 # need a special flag -Kthread to make this header compile.)
18923 # We check for pthread_join because it is in -lpthread on IRIX
18924 # while pthread_create is in libc. We check for pthread_attr_init
18925 # due to DEC craziness with -lpthreads. We check for
18926 # pthread_cleanup_push because it is one of the few pthread
18927 # functions on Solaris that doesn't have a non-functional libc stub.
18928 # We try pthread_create on general principles.
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <pthread.h>
18937 main ()
18939 pthread_t th; pthread_join(th, 0);
18940 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18941 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_link") 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest$ac_exeext &&
18963 $as_test_x conftest$ac_exeext; then
18964 acx_pthread_ok=yes
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 acx_pthread_ok=no
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973 conftest$ac_exeext conftest.$ac_ext
18975 if test "x$acx_pthread_ok" = xyes; then
18976 # Don't use options that are ignored by the compiler.
18977 # We find them by checking stderror.
18978 cat >conftest.$ac_ext <<_ACEOF
18980 main (int argc, char **argv)
18982 (void) argc;
18983 (void) argv;
18984 return 0;
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18989 # we continue with more flags because Linux needs -lpthread
18990 # for libpq builds on PostgreSQL. The test above only
18991 # tests for building binaries, not shared libraries.
18992 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18993 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18994 else acx_pthread_ok=no
18998 LIBS="$save_LIBS"
18999 CFLAGS="$save_CFLAGS"
19001 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19002 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19003 done
19006 # Various other checks:
19007 if test "x$acx_pthread_ok" = xyes; then
19008 save_LIBS="$LIBS"
19009 LIBS="$PTHREAD_LIBS $LIBS"
19010 save_CFLAGS="$CFLAGS"
19011 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19013 # Detect AIX lossage: threads are created detached by default
19014 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19015 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19016 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <pthread.h>
19025 main ()
19027 int attr=PTHREAD_CREATE_JOINABLE;
19029 return 0;
19031 _ACEOF
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (ac_try="$ac_link"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_link") 2>conftest.er1
19040 ac_status=$?
19041 grep -v '^ *+' conftest.er1 >conftest.err
19042 rm -f conftest.er1
19043 cat conftest.err >&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } && {
19046 test -z "$ac_c_werror_flag" ||
19047 test ! -s conftest.err
19048 } && test -s conftest$ac_exeext &&
19049 $as_test_x conftest$ac_exeext; then
19050 ok=PTHREAD_CREATE_JOINABLE
19051 else
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ok=unknown
19058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19059 conftest$ac_exeext conftest.$ac_ext
19060 if test x"$ok" = xunknown; then
19061 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h. */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <pthread.h>
19069 main ()
19071 int attr=PTHREAD_CREATE_UNDETACHED;
19073 return 0;
19075 _ACEOF
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_link") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } && {
19090 test -z "$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19092 } && test -s conftest$ac_exeext &&
19093 $as_test_x conftest$ac_exeext; then
19094 ok=PTHREAD_CREATE_UNDETACHED
19095 else
19096 echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19099 ok=unknown
19102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19103 conftest$ac_exeext conftest.$ac_ext
19105 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19107 cat >>confdefs.h <<\_ACEOF
19108 #define PTHREAD_CREATE_JOINABLE $ok
19109 _ACEOF
19112 { echo "$as_me:$LINENO: result: ${ok}" >&5
19113 echo "${ECHO_T}${ok}" >&6; }
19114 if test x"$ok" = xunknown; then
19115 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19116 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19119 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19120 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19121 flag=no
19122 # We always add these in PostgreSQL
19123 # case "${host_cpu}-${host_os}" in
19124 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19125 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19126 # esac
19127 { echo "$as_me:$LINENO: result: ${flag}" >&5
19128 echo "${ECHO_T}${flag}" >&6; }
19129 if test "x$flag" != xno; then
19130 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19133 LIBS="$save_LIBS"
19134 CFLAGS="$save_CFLAGS"
19136 # Supporting cc_r would require a special CC in all places that
19137 # use libpq, and that is ugly, so we don't do it. Users can still
19138 # define their compiler as cc_r to do thread builds of everything.
19139 # More AIX lossage: must compile with cc_r
19140 # Extract the first word of "cc_r", so it can be a program name with args.
19141 set dummy cc_r; ac_word=$2
19142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19144 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147 if test -n "$PTHREAD_CC"; then
19148 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19149 else
19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19153 IFS=$as_save_IFS
19154 test -z "$as_dir" && as_dir=.
19155 for ac_exec_ext in '' $ac_executable_extensions; do
19156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19157 ac_cv_prog_PTHREAD_CC="cc_r"
19158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19159 break 2
19161 done
19162 done
19163 IFS=$as_save_IFS
19165 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19168 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19169 if test -n "$PTHREAD_CC"; then
19170 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19171 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19172 else
19173 { echo "$as_me:$LINENO: result: no" >&5
19174 echo "${ECHO_T}no" >&6; }
19178 else
19179 PTHREAD_CC="$CC"
19186 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19187 if test x"$acx_pthread_ok" = xyes; then
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_PTHREAD 1
19191 _ACEOF
19194 else
19195 acx_pthread_ok=no
19198 ac_ext=c
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19204 # set thread flags
19206 # Some platforms use these, so just define them. They can't hurt if they
19207 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19208 # enables 5-arg getpwuid_r, among other things.
19209 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19212 # At this point, we don't want to muck with the compiler name for threading.
19213 # Let's see who fails, perhaps AIX. 2004-04-23
19214 if test "$PTHREAD_CC" != "$CC"; then
19215 { { echo "$as_me:$LINENO: error:
19216 PostgreSQL does not support platforms that require a special compiler
19217 for thread safety." >&5
19218 echo "$as_me: error:
19219 PostgreSQL does not support platforms that require a special compiler
19220 for thread safety." >&2;}
19221 { (exit 1); exit 1; }; }
19224 if test "$THREAD_SUPPORT" = no; then
19225 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19226 This platform is known to not support thread-safe programs. For details,
19227 compile and run src/bin/pg_thread_test." >&5
19228 echo "$as_me: error: cannot enable threads on this platform
19229 This platform is known to not support thread-safe programs. For details,
19230 compile and run src/bin/pg_thread_test." >&2;}
19231 { (exit 1); exit 1; }; }
19234 # Check for *_r functions
19235 _CFLAGS="$CFLAGS"
19236 _LIBS="$LIBS"
19237 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19238 LIBS="$LIBS $PTHREAD_LIBS"
19240 if test "$PORTNAME" != "win32"; then
19241 if test "${ac_cv_header_pthread_h+set}" = set; then
19242 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19243 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19244 if test "${ac_cv_header_pthread_h+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19248 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19249 else
19250 # Is the header compilable?
19251 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19252 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 $ac_includes_default
19260 #include <pthread.h>
19261 _ACEOF
19262 rm -f conftest.$ac_objext
19263 if { (ac_try="$ac_compile"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_compile") 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } && {
19276 test -z "$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19278 } && test -s conftest.$ac_objext; then
19279 ac_header_compiler=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_compiler=no
19287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19289 echo "${ECHO_T}$ac_header_compiler" >&6; }
19291 # Is the header present?
19292 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19293 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <pthread.h>
19301 _ACEOF
19302 if { (ac_try="$ac_cpp conftest.$ac_ext"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } >/dev/null && {
19315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 }; then
19318 ac_header_preproc=yes
19319 else
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_header_preproc=no
19326 rm -f conftest.err conftest.$ac_ext
19327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6; }
19330 # So? What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19332 yes:no: )
19333 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19337 ac_header_preproc=yes
19339 no:yes:* )
19340 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19352 ( cat <<\_ASBOX
19353 ## ---------------------------------------- ##
19354 ## Report this to pgsql-bugs@postgresql.org ##
19355 ## ---------------------------------------- ##
19356 _ASBOX
19357 ) | sed "s/^/$as_me: WARNING: /" >&2
19359 esac
19360 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19361 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19362 if test "${ac_cv_header_pthread_h+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 ac_cv_header_pthread_h=$ac_header_preproc
19367 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19368 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19371 if test $ac_cv_header_pthread_h = yes; then
19373 else
19374 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19375 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19376 { (exit 1); exit 1; }; }
19385 for ac_func in strerror_r getpwuid_r gethostbyname_r
19387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19401 #define $ac_func innocuous_$ac_func
19403 /* System header to define __stub macros and hopefully few prototypes,
19404 which can conflict with char $ac_func (); below.
19405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19406 <limits.h> exists even on freestanding compilers. */
19408 #ifdef __STDC__
19409 # include <limits.h>
19410 #else
19411 # include <assert.h>
19412 #endif
19414 #undef $ac_func
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char $ac_func ();
19423 /* The GNU C library defines this for functions which it implements
19424 to always fail with ENOSYS. Some functions are actually named
19425 something starting with __ and the normal name is an alias. */
19426 #if defined __stub_$ac_func || defined __stub___$ac_func
19427 choke me
19428 #endif
19431 main ()
19433 return $ac_func ();
19435 return 0;
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_link") 2>conftest.er1
19446 ac_status=$?
19447 grep -v '^ *+' conftest.er1 >conftest.err
19448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } && {
19452 test -z "$ac_c_werror_flag" ||
19453 test ! -s conftest.err
19454 } && test -s conftest$ac_exeext &&
19455 $as_test_x conftest$ac_exeext; then
19456 eval "$as_ac_var=yes"
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 eval "$as_ac_var=no"
19464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19465 conftest$ac_exeext conftest.$ac_ext
19467 ac_res=`eval echo '${'$as_ac_var'}'`
19468 { echo "$as_me:$LINENO: result: $ac_res" >&5
19469 echo "${ECHO_T}$ac_res" >&6; }
19470 if test `eval echo '${'$as_ac_var'}'` = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19473 _ACEOF
19476 done
19479 # Do test here with the proper thread flags
19480 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19481 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19482 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 #include <sys/types.h>
19492 #include <pwd.h>
19494 main ()
19496 uid_t uid;
19497 struct passwd *space;
19498 char *buf;
19499 size_t bufsize;
19500 struct passwd **result;
19501 getpwuid_r(uid, space, buf, bufsize, result);
19503 return 0;
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest.$ac_objext; then
19523 pgac_cv_func_getpwuid_r_5arg=yes
19524 else
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 pgac_cv_func_getpwuid_r_5arg=no
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19534 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19535 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define GETPWUID_R_5ARG
19539 _ACEOF
19543 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19544 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19545 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h. */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <string.h>
19556 main ()
19558 #ifndef _AIX
19559 int strerror_r(int, char *, size_t);
19560 #else
19561 /* Older AIX has 'int' for the third argument so we don't test the args. */
19562 int strerror_r();
19563 #endif
19565 return 0;
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.$ac_objext; then
19585 pgac_cv_func_strerror_r_int=yes
19586 else
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 pgac_cv_func_strerror_r_int=no
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19596 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19597 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define STRERROR_R_INT
19601 _ACEOF
19606 CFLAGS="$_CFLAGS"
19607 LIBS="$_LIBS"
19609 else
19610 # do not use values from template file
19611 PTHREAD_CFLAGS=
19612 PTHREAD_LIBS=
19619 # We can test for libldap_r only after we know PTHREAD_LIBS
19620 if test "$with_ldap" = yes ; then
19621 _LIBS="$LIBS"
19622 if test "$PORTNAME" != "win32"; then
19624 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19625 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19626 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 ac_check_lib_save_LIBS=$LIBS
19630 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19631 cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h. */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19638 /* Override any GCC internal prototype to avoid an error.
19639 Use char because int might match the return type of a GCC
19640 builtin and then its argument prototype would still apply. */
19641 #ifdef __cplusplus
19642 extern "C"
19643 #endif
19644 char ldap_bind ();
19646 main ()
19648 return ldap_bind ();
19650 return 0;
19652 _ACEOF
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (ac_try="$ac_link"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_link") 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && {
19667 test -z "$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 } && test -s conftest$ac_exeext &&
19670 $as_test_x conftest$ac_exeext; then
19671 ac_cv_lib_ldap_ldap_bind=yes
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_cv_lib_ldap_ldap_bind=no
19679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19680 conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19683 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19684 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19685 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19686 cat >>confdefs.h <<_ACEOF
19687 #define HAVE_LIBLDAP 1
19688 _ACEOF
19690 LIBS="-lldap $LIBS"
19692 else
19693 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19694 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19695 { (exit 1); exit 1; }; }
19698 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19699 if test "$enable_thread_safety" = yes; then
19700 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19702 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19703 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char ldap_simple_bind ();
19724 main ()
19726 return ldap_simple_bind ();
19728 return 0;
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_lib_ldap_r_ldap_simple_bind=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19762 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19763 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_LIBLDAP_R 1
19766 _ACEOF
19768 LIBS="-lldap_r $LIBS"
19770 else
19771 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19772 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19773 { (exit 1); exit 1; }; }
19776 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19777 else
19778 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19780 else
19782 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19783 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19784 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787 ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lwldap32 $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19796 /* Override any GCC internal prototype to avoid an error.
19797 Use char because int might match the return type of a GCC
19798 builtin and then its argument prototype would still apply. */
19799 #ifdef __cplusplus
19800 extern "C"
19801 #endif
19802 char ldap_bind ();
19804 main ()
19806 return ldap_bind ();
19808 return 0;
19810 _ACEOF
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && {
19825 test -z "$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19827 } && test -s conftest$ac_exeext &&
19828 $as_test_x conftest$ac_exeext; then
19829 ac_cv_lib_wldap32_ldap_bind=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_lib_wldap32_ldap_bind=no
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19841 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19842 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19843 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19844 cat >>confdefs.h <<_ACEOF
19845 #define HAVE_LIBWLDAP32 1
19846 _ACEOF
19848 LIBS="-lwldap32 $LIBS"
19850 else
19851 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19852 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19853 { (exit 1); exit 1; }; }
19856 LDAP_LIBS_FE="-lwldap32"
19857 LDAP_LIBS_BE="-lwldap32"
19859 LIBS="$_LIBS"
19865 # This test makes sure that run tests work at all. Sometimes a shared
19866 # library is found by the linker, but the runtime linker can't find it.
19867 # This check should come after all modifications of compiler or linker
19868 # variables, and before any other run tests.
19869 { echo "$as_me:$LINENO: checking test program" >&5
19870 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19871 if test "$cross_compiling" = yes; then
19872 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19873 echo "${ECHO_T}cross-compiling" >&6; }
19874 else
19875 cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h. */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 int main() { return 0; }
19882 _ACEOF
19883 rm -f conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 { echo "$as_me:$LINENO: result: ok" >&5
19904 echo "${ECHO_T}ok" >&6; }
19905 else
19906 echo "$as_me: program exited with status $ac_status" >&5
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ( exit $ac_status )
19911 { echo "$as_me:$LINENO: result: failed" >&5
19912 echo "${ECHO_T}failed" >&6; }
19913 { { echo "$as_me:$LINENO: error:
19914 Could not execute a simple test program. This may be a problem
19915 related to locating shared libraries. Check the file 'config.log'
19916 for the exact reason." >&5
19917 echo "$as_me: error:
19918 Could not execute a simple test program. This may be a problem
19919 related to locating shared libraries. Check the file 'config.log'
19920 for the exact reason." >&2;}
19921 { (exit 1); exit 1; }; }
19923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19928 # --------------------
19929 # Run tests below here
19930 # --------------------
19932 # Force use of our snprintf if system's doesn't do arg control
19933 # See comment above at snprintf test for details.
19934 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19935 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19936 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19937 if test "${pgac_cv_printf_arg_control+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940 if test "$cross_compiling" = yes; then
19941 pgac_cv_printf_arg_control=cross
19942 else
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 #include <stdio.h>
19950 #include <string.h>
19952 int main()
19954 char buf[100];
19956 /* can it swap arguments? */
19957 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19958 if (strcmp(buf, "4 3") != 0)
19959 return 1;
19960 return 0;
19962 _ACEOF
19963 rm -f conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 pgac_cv_printf_arg_control=yes
19984 else
19985 echo "$as_me: program exited with status $ac_status" >&5
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ( exit $ac_status )
19990 pgac_cv_printf_arg_control=no
19992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19999 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20001 if test $pgac_cv_printf_arg_control != yes ; then
20002 pgac_need_repl_snprintf=yes
20008 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20009 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20010 if test "${pgac_cv_type_long_int_64+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013 if test "$cross_compiling" = yes; then
20014 # If cross-compiling, check the size reported by the compiler and
20015 # trust that the arithmetic works.
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20024 main ()
20026 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20027 test_array [0] = 0
20030 return 0;
20032 _ACEOF
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && {
20047 test -z "$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 } && test -s conftest.$ac_objext; then
20050 pgac_cv_type_long_int_64=yes
20051 else
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 pgac_cv_type_long_int_64=no
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 else
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h. */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 typedef long int ac_int64;
20069 * These are globals to discourage the compiler from folding all the
20070 * arithmetic tests down to compile-time constants.
20072 ac_int64 a = 20000001;
20073 ac_int64 b = 40000005;
20075 int does_int64_work()
20077 ac_int64 c,d;
20079 if (sizeof(ac_int64) != 8)
20080 return 0; /* definitely not the right size */
20082 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20083 c = a * b;
20084 d = (c + b) / b;
20085 if (d != a+1)
20086 return 0;
20087 return 1;
20089 main() {
20090 exit(! does_int64_work());
20092 _ACEOF
20093 rm -f conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20104 { (case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_try") 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 pgac_cv_type_long_int_64=yes
20114 else
20115 echo "$as_me: program exited with status $ac_status" >&5
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ( exit $ac_status )
20120 pgac_cv_type_long_int_64=no
20122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20127 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20128 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20130 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20131 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20133 cat >>confdefs.h <<\_ACEOF
20134 #define HAVE_LONG_INT_64 1
20135 _ACEOF
20140 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20141 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20142 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20143 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 if test "$cross_compiling" = yes; then
20147 # If cross-compiling, check the size reported by the compiler and
20148 # trust that the arithmetic works.
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20157 main ()
20159 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20160 test_array [0] = 0
20163 return 0;
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (ac_try="$ac_compile"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_compile") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest.$ac_objext; then
20183 pgac_cv_type_long_long_int_64=yes
20184 else
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 pgac_cv_type_long_long_int_64=no
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 else
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 typedef long long int ac_int64;
20202 * These are globals to discourage the compiler from folding all the
20203 * arithmetic tests down to compile-time constants.
20205 ac_int64 a = 20000001;
20206 ac_int64 b = 40000005;
20208 int does_int64_work()
20210 ac_int64 c,d;
20212 if (sizeof(ac_int64) != 8)
20213 return 0; /* definitely not the right size */
20215 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20216 c = a * b;
20217 d = (c + b) / b;
20218 if (d != a+1)
20219 return 0;
20220 return 1;
20222 main() {
20223 exit(! does_int64_work());
20225 _ACEOF
20226 rm -f conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 pgac_cv_type_long_long_int_64=yes
20247 else
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ( exit $ac_status )
20253 pgac_cv_type_long_long_int_64=no
20255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20260 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20261 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20263 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20264 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_LONG_LONG_INT_64 1
20268 _ACEOF
20276 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h. */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20284 #define INT64CONST(x) x##LL
20285 long long int foo = INT64CONST(0x1234567890123456);
20288 main ()
20292 return 0;
20294 _ACEOF
20295 rm -f conftest.$ac_objext
20296 if { (ac_try="$ac_compile"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_compile") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest.$ac_objext; then
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_LL_CONSTANTS 1
20315 _ACEOF
20317 else
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328 # If we found "long int" is 64 bits, assume snprintf handles it. If
20329 # we found we need to use "long long int", better check. We cope with
20330 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20331 # work, fall back to our own snprintf emulation (which we know uses %lld).
20333 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20334 if test $pgac_need_repl_snprintf = no; then
20335 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20336 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20337 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 else
20340 for pgac_format in '%lld' '%qd' '%I64d'; do
20341 if test "$cross_compiling" = yes; then
20342 pgac_cv_snprintf_long_long_int_format=cross; break
20343 else
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 #include <stdio.h>
20351 typedef long long int ac_int64;
20352 #define INT64_FORMAT "$pgac_format"
20354 ac_int64 a = 20000001;
20355 ac_int64 b = 40000005;
20357 int does_int64_snprintf_work()
20359 ac_int64 c;
20360 char buf[100];
20362 if (sizeof(ac_int64) != 8)
20363 return 0; /* doesn't look like the right size */
20365 c = a * b;
20366 snprintf(buf, 100, INT64_FORMAT, c);
20367 if (strcmp(buf, "800000140000005") != 0)
20368 return 0; /* either multiply or snprintf is busted */
20369 return 1;
20371 main() {
20372 exit(! does_int64_snprintf_work());
20374 _ACEOF
20375 rm -f conftest$ac_exeext
20376 if { (ac_try="$ac_link"
20377 case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_link") 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20396 else
20397 echo "$as_me: program exited with status $ac_status" >&5
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20406 done
20409 LONG_LONG_INT_FORMAT=''
20411 case $pgac_cv_snprintf_long_long_int_format in
20412 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20413 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20414 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20415 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20416 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20417 *) { echo "$as_me:$LINENO: result: none" >&5
20418 echo "${ECHO_T}none" >&6; };;
20419 esac
20420 if test "$LONG_LONG_INT_FORMAT" = ""; then
20421 # Force usage of our own snprintf, since system snprintf is broken
20422 pgac_need_repl_snprintf=yes
20423 LONG_LONG_INT_FORMAT='%lld'
20425 else
20426 # Here if we previously decided we needed to use our own snprintf
20427 LONG_LONG_INT_FORMAT='%lld'
20429 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20430 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20431 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20432 else
20433 # Here if we are not using 'long long int' at all
20434 INT64_FORMAT='"%ld"'
20435 UINT64_FORMAT='"%lu"'
20439 cat >>confdefs.h <<_ACEOF
20440 #define INT64_FORMAT $INT64_FORMAT
20441 _ACEOF
20445 cat >>confdefs.h <<_ACEOF
20446 #define UINT64_FORMAT $UINT64_FORMAT
20447 _ACEOF
20450 # Now we have checked all the reasons to replace snprintf
20451 if test $pgac_need_repl_snprintf = yes; then
20453 cat >>confdefs.h <<\_ACEOF
20454 #define USE_REPL_SNPRINTF 1
20455 _ACEOF
20457 case " $LIBOBJS " in
20458 *" snprintf.$ac_objext "* ) ;;
20459 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20461 esac
20465 # Need a #define for the size of Datum (unsigned long)
20466 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20467 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20468 if test "${ac_cv_type_unsigned_long+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20478 typedef unsigned long ac__type_new_;
20480 main ()
20482 if ((ac__type_new_ *) 0)
20483 return 0;
20484 if (sizeof (ac__type_new_))
20485 return 0;
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest.$ac_objext; then
20507 ac_cv_type_unsigned_long=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_type_unsigned_long=no
20515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20518 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20520 # The cast to long int works around a bug in the HP C Compiler
20521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20523 # This bug is HP SR number 8606223364.
20524 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20525 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20526 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529 if test "$cross_compiling" = yes; then
20530 # Depending upon the size, compute the lo and hi bounds.
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h. */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 $ac_includes_default
20538 typedef unsigned long ac__type_sizeof_;
20540 main ()
20542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20543 test_array [0] = 0
20546 return 0;
20548 _ACEOF
20549 rm -f conftest.$ac_objext
20550 if { (ac_try="$ac_compile"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_compile") 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest.$ac_objext; then
20566 ac_lo=0 ac_mid=0
20567 while :; do
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 $ac_includes_default
20575 typedef unsigned long ac__type_sizeof_;
20577 main ()
20579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20580 test_array [0] = 0
20583 return 0;
20585 _ACEOF
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_compile") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest.$ac_objext; then
20603 ac_hi=$ac_mid; break
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_lo=`expr $ac_mid + 1`
20609 if test $ac_lo -le $ac_mid; then
20610 ac_lo= ac_hi=
20611 break
20613 ac_mid=`expr 2 '*' $ac_mid + 1`
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 done
20618 else
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20629 typedef unsigned long ac__type_sizeof_;
20631 main ()
20633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20634 test_array [0] = 0
20637 return 0;
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20648 ac_status=$?
20649 grep -v '^ *+' conftest.er1 >conftest.err
20650 rm -f conftest.er1
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest.$ac_objext; then
20657 ac_hi=-1 ac_mid=-1
20658 while :; do
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 $ac_includes_default
20666 typedef unsigned long ac__type_sizeof_;
20668 main ()
20670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20671 test_array [0] = 0
20674 return 0;
20676 _ACEOF
20677 rm -f conftest.$ac_objext
20678 if { (ac_try="$ac_compile"
20679 case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682 esac
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20694 ac_lo=$ac_mid; break
20695 else
20696 echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20699 ac_hi=`expr '(' $ac_mid ')' - 1`
20700 if test $ac_mid -le $ac_hi; then
20701 ac_lo= ac_hi=
20702 break
20704 ac_mid=`expr 2 '*' $ac_mid`
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708 done
20709 else
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ac_lo= ac_hi=
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 # Binary search between lo and hi bounds.
20721 while test "x$ac_lo" != "x$ac_hi"; do
20722 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h. */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20730 typedef unsigned long ac__type_sizeof_;
20732 main ()
20734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20735 test_array [0] = 0
20738 return 0;
20740 _ACEOF
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.$ac_objext; then
20758 ac_hi=$ac_mid
20759 else
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_lo=`expr '(' $ac_mid ')' + 1`
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 done
20768 case $ac_lo in
20769 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20770 '') if test "$ac_cv_type_unsigned_long" = yes; then
20771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20772 See \`config.log' for more details." >&5
20773 echo "$as_me: error: cannot compute sizeof (unsigned long)
20774 See \`config.log' for more details." >&2;}
20775 { (exit 77); exit 77; }; }
20776 else
20777 ac_cv_sizeof_unsigned_long=0
20778 fi ;;
20779 esac
20780 else
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 $ac_includes_default
20788 typedef unsigned long ac__type_sizeof_;
20789 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20790 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20791 #include <stdio.h>
20792 #include <stdlib.h>
20794 main ()
20797 FILE *f = fopen ("conftest.val", "w");
20798 if (! f)
20799 return 1;
20800 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20802 long int i = longval ();
20803 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20804 return 1;
20805 fprintf (f, "%ld\n", i);
20807 else
20809 unsigned long int i = ulongval ();
20810 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20811 return 1;
20812 fprintf (f, "%lu\n", i);
20814 return ferror (f) || fclose (f) != 0;
20817 return 0;
20819 _ACEOF
20820 rm -f conftest$ac_exeext
20821 if { (ac_try="$ac_link"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_link") 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20831 { (case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_try") 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20841 else
20842 echo "$as_me: program exited with status $ac_status" >&5
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ( exit $ac_status )
20847 if test "$ac_cv_type_unsigned_long" = yes; then
20848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20849 See \`config.log' for more details." >&5
20850 echo "$as_me: error: cannot compute sizeof (unsigned long)
20851 See \`config.log' for more details." >&2;}
20852 { (exit 77); exit 77; }; }
20853 else
20854 ac_cv_sizeof_unsigned_long=0
20857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20859 rm -f conftest.val
20861 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20862 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20866 cat >>confdefs.h <<_ACEOF
20867 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20868 _ACEOF
20872 # And one for the size of size_t (enables tweaks for > 32bit address space)
20873 { echo "$as_me:$LINENO: checking for size_t" >&5
20874 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20875 if test "${ac_cv_type_size_t+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 $ac_includes_default
20885 typedef size_t ac__type_new_;
20887 main ()
20889 if ((ac__type_new_ *) 0)
20890 return 0;
20891 if (sizeof (ac__type_new_))
20892 return 0;
20894 return 0;
20896 _ACEOF
20897 rm -f conftest.$ac_objext
20898 if { (ac_try="$ac_compile"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20905 ac_status=$?
20906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
20914 ac_cv_type_size_t=yes
20915 else
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_type_size_t=no
20922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20925 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20927 # The cast to long int works around a bug in the HP C Compiler
20928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20930 # This bug is HP SR number 8606223364.
20931 { echo "$as_me:$LINENO: checking size of size_t" >&5
20932 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20933 if test "${ac_cv_sizeof_size_t+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 if test "$cross_compiling" = yes; then
20937 # Depending upon the size, compute the lo and hi bounds.
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h. */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 $ac_includes_default
20945 typedef size_t ac__type_sizeof_;
20947 main ()
20949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20950 test_array [0] = 0
20953 return 0;
20955 _ACEOF
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_compile") 2>conftest.er1
20964 ac_status=$?
20965 grep -v '^ *+' conftest.er1 >conftest.err
20966 rm -f conftest.er1
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && {
20970 test -z "$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 } && test -s conftest.$ac_objext; then
20973 ac_lo=0 ac_mid=0
20974 while :; do
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h. */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 $ac_includes_default
20982 typedef size_t ac__type_sizeof_;
20984 main ()
20986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20987 test_array [0] = 0
20990 return 0;
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } && {
21007 test -z "$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21009 } && test -s conftest.$ac_objext; then
21010 ac_hi=$ac_mid; break
21011 else
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_lo=`expr $ac_mid + 1`
21016 if test $ac_lo -le $ac_mid; then
21017 ac_lo= ac_hi=
21018 break
21020 ac_mid=`expr 2 '*' $ac_mid + 1`
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 done
21025 else
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 typedef size_t ac__type_sizeof_;
21038 main ()
21040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21041 test_array [0] = 0
21044 return 0;
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 ac_hi=-1 ac_mid=-1
21065 while :; do
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 $ac_includes_default
21073 typedef size_t ac__type_sizeof_;
21075 main ()
21077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21078 test_array [0] = 0
21081 return 0;
21083 _ACEOF
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_compile") 2>conftest.er1
21092 ac_status=$?
21093 grep -v '^ *+' conftest.er1 >conftest.err
21094 rm -f conftest.er1
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest.$ac_objext; then
21101 ac_lo=$ac_mid; break
21102 else
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_hi=`expr '(' $ac_mid ')' - 1`
21107 if test $ac_mid -le $ac_hi; then
21108 ac_lo= ac_hi=
21109 break
21111 ac_mid=`expr 2 '*' $ac_mid`
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 done
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 ac_lo= ac_hi=
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 # Binary search between lo and hi bounds.
21128 while test "x$ac_lo" != "x$ac_hi"; do
21129 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 $ac_includes_default
21137 typedef size_t ac__type_sizeof_;
21139 main ()
21141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21142 test_array [0] = 0
21145 return 0;
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest.$ac_objext; then
21165 ac_hi=$ac_mid
21166 else
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_lo=`expr '(' $ac_mid ')' + 1`
21173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21174 done
21175 case $ac_lo in
21176 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21177 '') if test "$ac_cv_type_size_t" = yes; then
21178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21179 See \`config.log' for more details." >&5
21180 echo "$as_me: error: cannot compute sizeof (size_t)
21181 See \`config.log' for more details." >&2;}
21182 { (exit 77); exit 77; }; }
21183 else
21184 ac_cv_sizeof_size_t=0
21185 fi ;;
21186 esac
21187 else
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 $ac_includes_default
21195 typedef size_t ac__type_sizeof_;
21196 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21197 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21198 #include <stdio.h>
21199 #include <stdlib.h>
21201 main ()
21204 FILE *f = fopen ("conftest.val", "w");
21205 if (! f)
21206 return 1;
21207 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21209 long int i = longval ();
21210 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21211 return 1;
21212 fprintf (f, "%ld\n", i);
21214 else
21216 unsigned long int i = ulongval ();
21217 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21218 return 1;
21219 fprintf (f, "%lu\n", i);
21221 return ferror (f) || fclose (f) != 0;
21224 return 0;
21226 _ACEOF
21227 rm -f conftest$ac_exeext
21228 if { (ac_try="$ac_link"
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_link") 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_cv_sizeof_size_t=`cat conftest.val`
21248 else
21249 echo "$as_me: program exited with status $ac_status" >&5
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 ( exit $ac_status )
21254 if test "$ac_cv_type_size_t" = yes; then
21255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21256 See \`config.log' for more details." >&5
21257 echo "$as_me: error: cannot compute sizeof (size_t)
21258 See \`config.log' for more details." >&2;}
21259 { (exit 77); exit 77; }; }
21260 else
21261 ac_cv_sizeof_size_t=0
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21266 rm -f conftest.val
21268 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21269 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21273 cat >>confdefs.h <<_ACEOF
21274 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21275 _ACEOF
21279 # Decide whether float4 is passed by value: user-selectable, enabled by default
21280 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21281 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21283 pgac_args="$pgac_args enable_float4_byval"
21285 # Check whether --enable-float4-byval was given.
21286 if test "${enable_float4_byval+set}" = set; then
21287 enableval=$enable_float4_byval;
21288 case $enableval in
21289 yes)
21291 cat >>confdefs.h <<\_ACEOF
21292 #define USE_FLOAT4_BYVAL 1
21293 _ACEOF
21295 float4passbyval=true
21298 float4passbyval=false
21301 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21302 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21303 { (exit 1); exit 1; }; }
21305 esac
21307 else
21308 enable_float4_byval=yes
21310 cat >>confdefs.h <<\_ACEOF
21311 #define USE_FLOAT4_BYVAL 1
21312 _ACEOF
21314 float4passbyval=true
21318 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21319 echo "${ECHO_T}$enable_float4_byval" >&6; }
21321 cat >>confdefs.h <<_ACEOF
21322 #define FLOAT4PASSBYVAL $float4passbyval
21323 _ACEOF
21326 # Decide whether float8 is passed by value.
21327 # Note: this setting also controls int8 and related types such as timestamp.
21328 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21329 # If not, trying to select it is an error.
21330 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21331 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21332 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21334 pgac_args="$pgac_args enable_float8_byval"
21336 # Check whether --enable-float8-byval was given.
21337 if test "${enable_float8_byval+set}" = set; then
21338 enableval=$enable_float8_byval;
21339 case $enableval in
21340 yes)
21347 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21348 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21349 { (exit 1); exit 1; }; }
21351 esac
21353 else
21354 enable_float8_byval=yes
21359 else
21361 pgac_args="$pgac_args enable_float8_byval"
21363 # Check whether --enable-float8-byval was given.
21364 if test "${enable_float8_byval+set}" = set; then
21365 enableval=$enable_float8_byval;
21366 case $enableval in
21367 yes)
21374 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21375 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21376 { (exit 1); exit 1; }; }
21378 esac
21380 else
21381 enable_float8_byval=no
21386 if test "$enable_float8_byval" = yes ; then
21387 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21388 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21389 { (exit 1); exit 1; }; }
21392 if test "$enable_float8_byval" = yes ; then
21394 cat >>confdefs.h <<\_ACEOF
21395 #define USE_FLOAT8_BYVAL 1
21396 _ACEOF
21398 float8passbyval=true
21399 else
21400 float8passbyval=false
21402 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21403 echo "${ECHO_T}$enable_float8_byval" >&6; }
21405 cat >>confdefs.h <<_ACEOF
21406 #define FLOAT8PASSBYVAL $float8passbyval
21407 _ACEOF
21410 # Determine memory alignment requirements for the basic C data types.
21412 { echo "$as_me:$LINENO: checking for short" >&5
21413 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21414 if test "${ac_cv_type_short+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 typedef short ac__type_new_;
21426 main ()
21428 if ((ac__type_new_ *) 0)
21429 return 0;
21430 if (sizeof (ac__type_new_))
21431 return 0;
21433 return 0;
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21444 ac_status=$?
21445 grep -v '^ *+' conftest.er1 >conftest.err
21446 rm -f conftest.er1
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_cv_type_short=yes
21454 else
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_cv_type_short=no
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21463 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21464 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21466 # The cast to long int works around a bug in the HP C Compiler,
21467 # see AC_CHECK_SIZEOF for more information.
21468 { echo "$as_me:$LINENO: checking alignment of short" >&5
21469 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21470 if test "${ac_cv_alignof_short+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 else
21473 if test "$cross_compiling" = yes; then
21474 # Depending upon the size, compute the lo and hi bounds.
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 $ac_includes_default
21482 #ifndef offsetof
21483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21484 #endif
21485 typedef struct { char x; short y; } ac__type_alignof_;
21487 main ()
21489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21490 test_array [0] = 0
21493 return 0;
21495 _ACEOF
21496 rm -f conftest.$ac_objext
21497 if { (ac_try="$ac_compile"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_compile") 2>conftest.er1
21504 ac_status=$?
21505 grep -v '^ *+' conftest.er1 >conftest.err
21506 rm -f conftest.er1
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest.$ac_objext; then
21513 ac_lo=0 ac_mid=0
21514 while :; do
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21522 #ifndef offsetof
21523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21524 #endif
21525 typedef struct { char x; short y; } ac__type_alignof_;
21527 main ()
21529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21530 test_array [0] = 0
21533 return 0;
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.$ac_objext; then
21553 ac_hi=$ac_mid; break
21554 else
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_lo=`expr $ac_mid + 1`
21559 if test $ac_lo -le $ac_mid; then
21560 ac_lo= ac_hi=
21561 break
21563 ac_mid=`expr 2 '*' $ac_mid + 1`
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 done
21568 else
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h. */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 $ac_includes_default
21579 #ifndef offsetof
21580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21581 #endif
21582 typedef struct { char x; short y; } ac__type_alignof_;
21584 main ()
21586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21587 test_array [0] = 0
21590 return 0;
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_compile") 2>conftest.er1
21601 ac_status=$?
21602 grep -v '^ *+' conftest.er1 >conftest.err
21603 rm -f conftest.er1
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest.$ac_objext; then
21610 ac_hi=-1 ac_mid=-1
21611 while :; do
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 $ac_includes_default
21619 #ifndef offsetof
21620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21621 #endif
21622 typedef struct { char x; short y; } ac__type_alignof_;
21624 main ()
21626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21627 test_array [0] = 0
21630 return 0;
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.$ac_objext; then
21650 ac_lo=$ac_mid; break
21651 else
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_hi=`expr '(' $ac_mid ')' - 1`
21656 if test $ac_mid -le $ac_hi; then
21657 ac_lo= ac_hi=
21658 break
21660 ac_mid=`expr 2 '*' $ac_mid`
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 done
21665 else
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_lo= ac_hi=
21672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 # Binary search between lo and hi bounds.
21677 while test "x$ac_lo" != "x$ac_hi"; do
21678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 $ac_includes_default
21686 #ifndef offsetof
21687 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21688 #endif
21689 typedef struct { char x; short y; } ac__type_alignof_;
21691 main ()
21693 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21694 test_array [0] = 0
21697 return 0;
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21717 ac_hi=$ac_mid
21718 else
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_lo=`expr '(' $ac_mid ')' + 1`
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 done
21727 case $ac_lo in
21728 ?*) ac_cv_alignof_short=$ac_lo;;
21729 '') if test "$ac_cv_type_short" = yes; then
21730 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21731 See \`config.log' for more details." >&5
21732 echo "$as_me: error: cannot compute alignment of short
21733 See \`config.log' for more details." >&2;}
21734 { (exit 77); exit 77; }; }
21735 else
21736 ac_cv_alignof_short=0
21737 fi ;;
21738 esac
21739 else
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 $ac_includes_default
21747 #ifndef offsetof
21748 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21749 #endif
21750 typedef struct { char x; short y; } ac__type_alignof_;
21751 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21752 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21753 #include <stdio.h>
21754 #include <stdlib.h>
21756 main ()
21759 FILE *f = fopen ("conftest.val", "w");
21760 if (! f)
21761 return 1;
21762 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21764 long int i = longval ();
21765 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21766 return 1;
21767 fprintf (f, "%ld\n", i);
21769 else
21771 unsigned long int i = ulongval ();
21772 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21773 return 1;
21774 fprintf (f, "%lu\n", i);
21776 return ferror (f) || fclose (f) != 0;
21779 return 0;
21781 _ACEOF
21782 rm -f conftest$ac_exeext
21783 if { (ac_try="$ac_link"
21784 case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_link") 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21793 { (case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_try") 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; }; then
21802 ac_cv_alignof_short=`cat conftest.val`
21803 else
21804 echo "$as_me: program exited with status $ac_status" >&5
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ( exit $ac_status )
21809 if test "$ac_cv_type_short" = yes; then
21810 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21811 See \`config.log' for more details." >&5
21812 echo "$as_me: error: cannot compute alignment of short
21813 See \`config.log' for more details." >&2;}
21814 { (exit 77); exit 77; }; }
21815 else
21816 ac_cv_alignof_short=0
21819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821 rm -f conftest.val
21823 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21824 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21828 cat >>confdefs.h <<_ACEOF
21829 #define ALIGNOF_SHORT $ac_cv_alignof_short
21830 _ACEOF
21833 { echo "$as_me:$LINENO: checking for int" >&5
21834 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21835 if test "${ac_cv_type_int+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838 cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h. */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21845 typedef int ac__type_new_;
21847 main ()
21849 if ((ac__type_new_ *) 0)
21850 return 0;
21851 if (sizeof (ac__type_new_))
21852 return 0;
21854 return 0;
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_cv_type_int=yes
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_cv_type_int=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21885 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21887 # The cast to long int works around a bug in the HP C Compiler,
21888 # see AC_CHECK_SIZEOF for more information.
21889 { echo "$as_me:$LINENO: checking alignment of int" >&5
21890 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21891 if test "${ac_cv_alignof_int+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894 if test "$cross_compiling" = yes; then
21895 # Depending upon the size, compute the lo and hi bounds.
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h. */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 $ac_includes_default
21903 #ifndef offsetof
21904 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21905 #endif
21906 typedef struct { char x; int y; } ac__type_alignof_;
21908 main ()
21910 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21911 test_array [0] = 0
21914 return 0;
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21925 ac_status=$?
21926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21934 ac_lo=0 ac_mid=0
21935 while :; do
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21943 #ifndef offsetof
21944 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21945 #endif
21946 typedef struct { char x; int y; } ac__type_alignof_;
21948 main ()
21950 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21951 test_array [0] = 0
21954 return 0;
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_compile") 2>conftest.er1
21965 ac_status=$?
21966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && {
21971 test -z "$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21973 } && test -s conftest.$ac_objext; then
21974 ac_hi=$ac_mid; break
21975 else
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21979 ac_lo=`expr $ac_mid + 1`
21980 if test $ac_lo -le $ac_mid; then
21981 ac_lo= ac_hi=
21982 break
21984 ac_mid=`expr 2 '*' $ac_mid + 1`
21987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21988 done
21989 else
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #ifndef offsetof
22001 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22002 #endif
22003 typedef struct { char x; int y; } ac__type_alignof_;
22005 main ()
22007 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22008 test_array [0] = 0
22011 return 0;
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22022 ac_status=$?
22023 grep -v '^ *+' conftest.er1 >conftest.err
22024 rm -f conftest.er1
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22031 ac_hi=-1 ac_mid=-1
22032 while :; do
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22040 #ifndef offsetof
22041 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22042 #endif
22043 typedef struct { char x; int y; } ac__type_alignof_;
22045 main ()
22047 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22048 test_array [0] = 0
22051 return 0;
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_lo=$ac_mid; break
22072 else
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 ac_hi=`expr '(' $ac_mid ')' - 1`
22077 if test $ac_mid -le $ac_hi; then
22078 ac_lo= ac_hi=
22079 break
22081 ac_mid=`expr 2 '*' $ac_mid`
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 done
22086 else
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_lo= ac_hi=
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 # Binary search between lo and hi bounds.
22098 while test "x$ac_lo" != "x$ac_hi"; do
22099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22100 cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h. */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106 $ac_includes_default
22107 #ifndef offsetof
22108 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22109 #endif
22110 typedef struct { char x; int y; } ac__type_alignof_;
22112 main ()
22114 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22115 test_array [0] = 0
22118 return 0;
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_compile") 2>conftest.er1
22129 ac_status=$?
22130 grep -v '^ *+' conftest.er1 >conftest.err
22131 rm -f conftest.er1
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } && {
22135 test -z "$ac_c_werror_flag" ||
22136 test ! -s conftest.err
22137 } && test -s conftest.$ac_objext; then
22138 ac_hi=$ac_mid
22139 else
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ac_lo=`expr '(' $ac_mid ')' + 1`
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 done
22148 case $ac_lo in
22149 ?*) ac_cv_alignof_int=$ac_lo;;
22150 '') if test "$ac_cv_type_int" = yes; then
22151 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22152 See \`config.log' for more details." >&5
22153 echo "$as_me: error: cannot compute alignment of int
22154 See \`config.log' for more details." >&2;}
22155 { (exit 77); exit 77; }; }
22156 else
22157 ac_cv_alignof_int=0
22158 fi ;;
22159 esac
22160 else
22161 cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h. */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22167 $ac_includes_default
22168 #ifndef offsetof
22169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22170 #endif
22171 typedef struct { char x; int y; } ac__type_alignof_;
22172 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22173 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22174 #include <stdio.h>
22175 #include <stdlib.h>
22177 main ()
22180 FILE *f = fopen ("conftest.val", "w");
22181 if (! f)
22182 return 1;
22183 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22185 long int i = longval ();
22186 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22187 return 1;
22188 fprintf (f, "%ld\n", i);
22190 else
22192 unsigned long int i = ulongval ();
22193 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22194 return 1;
22195 fprintf (f, "%lu\n", i);
22197 return ferror (f) || fclose (f) != 0;
22200 return 0;
22202 _ACEOF
22203 rm -f conftest$ac_exeext
22204 if { (ac_try="$ac_link"
22205 case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_link") 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22214 { (case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_try") 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
22223 ac_cv_alignof_int=`cat conftest.val`
22224 else
22225 echo "$as_me: program exited with status $ac_status" >&5
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ( exit $ac_status )
22230 if test "$ac_cv_type_int" = yes; then
22231 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22232 See \`config.log' for more details." >&5
22233 echo "$as_me: error: cannot compute alignment of int
22234 See \`config.log' for more details." >&2;}
22235 { (exit 77); exit 77; }; }
22236 else
22237 ac_cv_alignof_int=0
22240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22242 rm -f conftest.val
22244 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22245 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22249 cat >>confdefs.h <<_ACEOF
22250 #define ALIGNOF_INT $ac_cv_alignof_int
22251 _ACEOF
22254 { echo "$as_me:$LINENO: checking for long" >&5
22255 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22256 if test "${ac_cv_type_long+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259 cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h. */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22266 typedef long ac__type_new_;
22268 main ()
22270 if ((ac__type_new_ *) 0)
22271 return 0;
22272 if (sizeof (ac__type_new_))
22273 return 0;
22275 return 0;
22277 _ACEOF
22278 rm -f conftest.$ac_objext
22279 if { (ac_try="$ac_compile"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_compile") 2>conftest.er1
22286 ac_status=$?
22287 grep -v '^ *+' conftest.er1 >conftest.err
22288 rm -f conftest.er1
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest.$ac_objext; then
22295 ac_cv_type_long=yes
22296 else
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ac_cv_type_long=no
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22306 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22308 # The cast to long int works around a bug in the HP C Compiler,
22309 # see AC_CHECK_SIZEOF for more information.
22310 { echo "$as_me:$LINENO: checking alignment of long" >&5
22311 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22312 if test "${ac_cv_alignof_long+set}" = set; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 else
22315 if test "$cross_compiling" = yes; then
22316 # Depending upon the size, compute the lo and hi bounds.
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h. */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 $ac_includes_default
22324 #ifndef offsetof
22325 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22326 #endif
22327 typedef struct { char x; long y; } ac__type_alignof_;
22329 main ()
22331 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22332 test_array [0] = 0
22335 return 0;
22337 _ACEOF
22338 rm -f conftest.$ac_objext
22339 if { (ac_try="$ac_compile"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_compile") 2>conftest.er1
22346 ac_status=$?
22347 grep -v '^ *+' conftest.er1 >conftest.err
22348 rm -f conftest.er1
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && {
22352 test -z "$ac_c_werror_flag" ||
22353 test ! -s conftest.err
22354 } && test -s conftest.$ac_objext; then
22355 ac_lo=0 ac_mid=0
22356 while :; do
22357 cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h. */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 $ac_includes_default
22364 #ifndef offsetof
22365 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22366 #endif
22367 typedef struct { char x; long y; } ac__type_alignof_;
22369 main ()
22371 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22372 test_array [0] = 0
22375 return 0;
22377 _ACEOF
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_compile") 2>conftest.er1
22386 ac_status=$?
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest.$ac_objext; then
22395 ac_hi=$ac_mid; break
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_lo=`expr $ac_mid + 1`
22401 if test $ac_lo -le $ac_mid; then
22402 ac_lo= ac_hi=
22403 break
22405 ac_mid=`expr 2 '*' $ac_mid + 1`
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 done
22410 else
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h. */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 $ac_includes_default
22421 #ifndef offsetof
22422 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22423 #endif
22424 typedef struct { char x; long y; } ac__type_alignof_;
22426 main ()
22428 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22429 test_array [0] = 0
22432 return 0;
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_compile") 2>conftest.er1
22443 ac_status=$?
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest.$ac_objext; then
22452 ac_hi=-1 ac_mid=-1
22453 while :; do
22454 cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h. */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 $ac_includes_default
22461 #ifndef offsetof
22462 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22463 #endif
22464 typedef struct { char x; long y; } ac__type_alignof_;
22466 main ()
22468 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22469 test_array [0] = 0
22472 return 0;
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22483 ac_status=$?
22484 grep -v '^ *+' conftest.er1 >conftest.err
22485 rm -f conftest.er1
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && {
22489 test -z "$ac_c_werror_flag" ||
22490 test ! -s conftest.err
22491 } && test -s conftest.$ac_objext; then
22492 ac_lo=$ac_mid; break
22493 else
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 ac_hi=`expr '(' $ac_mid ')' - 1`
22498 if test $ac_mid -le $ac_hi; then
22499 ac_lo= ac_hi=
22500 break
22502 ac_mid=`expr 2 '*' $ac_mid`
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 done
22507 else
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_lo= ac_hi=
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 # Binary search between lo and hi bounds.
22519 while test "x$ac_lo" != "x$ac_hi"; do
22520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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; long y; } ac__type_alignof_;
22533 main ()
22535 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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_hi=$ac_mid
22560 else
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ac_lo=`expr '(' $ac_mid ')' + 1`
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 done
22569 case $ac_lo in
22570 ?*) ac_cv_alignof_long=$ac_lo;;
22571 '') if test "$ac_cv_type_long" = yes; then
22572 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22573 See \`config.log' for more details." >&5
22574 echo "$as_me: error: cannot compute alignment of long
22575 See \`config.log' for more details." >&2;}
22576 { (exit 77); exit 77; }; }
22577 else
22578 ac_cv_alignof_long=0
22579 fi ;;
22580 esac
22581 else
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22589 #ifndef offsetof
22590 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22591 #endif
22592 typedef struct { char x; long y; } ac__type_alignof_;
22593 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22594 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22595 #include <stdio.h>
22596 #include <stdlib.h>
22598 main ()
22601 FILE *f = fopen ("conftest.val", "w");
22602 if (! f)
22603 return 1;
22604 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22606 long int i = longval ();
22607 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22608 return 1;
22609 fprintf (f, "%ld\n", i);
22611 else
22613 unsigned long int i = ulongval ();
22614 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22615 return 1;
22616 fprintf (f, "%lu\n", i);
22618 return ferror (f) || fclose (f) != 0;
22621 return 0;
22623 _ACEOF
22624 rm -f conftest$ac_exeext
22625 if { (ac_try="$ac_link"
22626 case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22629 esac
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_link") 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22635 { (case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640 (eval "$ac_try") 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_alignof_long=`cat conftest.val`
22645 else
22646 echo "$as_me: program exited with status $ac_status" >&5
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 ( exit $ac_status )
22651 if test "$ac_cv_type_long" = yes; then
22652 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22653 See \`config.log' for more details." >&5
22654 echo "$as_me: error: cannot compute alignment of long
22655 See \`config.log' for more details." >&2;}
22656 { (exit 77); exit 77; }; }
22657 else
22658 ac_cv_alignof_long=0
22661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22663 rm -f conftest.val
22665 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22666 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22670 cat >>confdefs.h <<_ACEOF
22671 #define ALIGNOF_LONG $ac_cv_alignof_long
22672 _ACEOF
22675 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22676 { echo "$as_me:$LINENO: checking for long long int" >&5
22677 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22678 if test "${ac_cv_type_long_long_int+set}" = set; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h. */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22688 typedef long long int ac__type_new_;
22690 main ()
22692 if ((ac__type_new_ *) 0)
22693 return 0;
22694 if (sizeof (ac__type_new_))
22695 return 0;
22697 return 0;
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22708 ac_status=$?
22709 grep -v '^ *+' conftest.er1 >conftest.err
22710 rm -f conftest.er1
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_cv_type_long_long_int=yes
22718 else
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_cv_type_long_long_int=no
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22727 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22728 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22730 # The cast to long int works around a bug in the HP C Compiler,
22731 # see AC_CHECK_SIZEOF for more information.
22732 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22733 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22734 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737 if test "$cross_compiling" = yes; then
22738 # Depending upon the size, compute the lo and hi bounds.
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22746 #ifndef offsetof
22747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22748 #endif
22749 typedef struct { char x; long long int y; } ac__type_alignof_;
22751 main ()
22753 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22754 test_array [0] = 0
22757 return 0;
22759 _ACEOF
22760 rm -f conftest.$ac_objext
22761 if { (ac_try="$ac_compile"
22762 case "(($ac_try" in
22763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764 *) ac_try_echo=$ac_try;;
22765 esac
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767 (eval "$ac_compile") 2>conftest.er1
22768 ac_status=$?
22769 grep -v '^ *+' conftest.er1 >conftest.err
22770 rm -f conftest.er1
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } && {
22774 test -z "$ac_c_werror_flag" ||
22775 test ! -s conftest.err
22776 } && test -s conftest.$ac_objext; then
22777 ac_lo=0 ac_mid=0
22778 while :; do
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h. */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785 $ac_includes_default
22786 #ifndef offsetof
22787 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22788 #endif
22789 typedef struct { char x; long long int y; } ac__type_alignof_;
22791 main ()
22793 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22794 test_array [0] = 0
22797 return 0;
22799 _ACEOF
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_compile") 2>conftest.er1
22808 ac_status=$?
22809 grep -v '^ *+' conftest.er1 >conftest.err
22810 rm -f conftest.er1
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest.$ac_objext; then
22817 ac_hi=$ac_mid; break
22818 else
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22822 ac_lo=`expr $ac_mid + 1`
22823 if test $ac_lo -le $ac_mid; then
22824 ac_lo= ac_hi=
22825 break
22827 ac_mid=`expr 2 '*' $ac_mid + 1`
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 done
22832 else
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h. */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 $ac_includes_default
22843 #ifndef offsetof
22844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22845 #endif
22846 typedef struct { char x; long long int y; } ac__type_alignof_;
22848 main ()
22850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22851 test_array [0] = 0
22854 return 0;
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (ac_try="$ac_compile"
22859 case "(($ac_try" in
22860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861 *) ac_try_echo=$ac_try;;
22862 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864 (eval "$ac_compile") 2>conftest.er1
22865 ac_status=$?
22866 grep -v '^ *+' conftest.er1 >conftest.err
22867 rm -f conftest.er1
22868 cat conftest.err >&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } && {
22871 test -z "$ac_c_werror_flag" ||
22872 test ! -s conftest.err
22873 } && test -s conftest.$ac_objext; then
22874 ac_hi=-1 ac_mid=-1
22875 while :; do
22876 cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h. */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22882 $ac_includes_default
22883 #ifndef offsetof
22884 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22885 #endif
22886 typedef struct { char x; long long int y; } ac__type_alignof_;
22888 main ()
22890 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22891 test_array [0] = 0
22894 return 0;
22896 _ACEOF
22897 rm -f conftest.$ac_objext
22898 if { (ac_try="$ac_compile"
22899 case "(($ac_try" in
22900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901 *) ac_try_echo=$ac_try;;
22902 esac
22903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904 (eval "$ac_compile") 2>conftest.er1
22905 ac_status=$?
22906 grep -v '^ *+' conftest.er1 >conftest.err
22907 rm -f conftest.er1
22908 cat conftest.err >&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); } && {
22911 test -z "$ac_c_werror_flag" ||
22912 test ! -s conftest.err
22913 } && test -s conftest.$ac_objext; then
22914 ac_lo=$ac_mid; break
22915 else
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22919 ac_hi=`expr '(' $ac_mid ')' - 1`
22920 if test $ac_mid -le $ac_hi; then
22921 ac_lo= ac_hi=
22922 break
22924 ac_mid=`expr 2 '*' $ac_mid`
22927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928 done
22929 else
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_lo= ac_hi=
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 # Binary search between lo and hi bounds.
22941 while test "x$ac_lo" != "x$ac_hi"; do
22942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22943 cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h. */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 $ac_includes_default
22950 #ifndef offsetof
22951 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22952 #endif
22953 typedef struct { char x; long long int y; } ac__type_alignof_;
22955 main ()
22957 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22958 test_array [0] = 0
22961 return 0;
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (ac_try="$ac_compile"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_hi=$ac_mid
22982 else
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_lo=`expr '(' $ac_mid ')' + 1`
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 done
22991 case $ac_lo in
22992 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22993 '') if test "$ac_cv_type_long_long_int" = yes; then
22994 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22995 See \`config.log' for more details." >&5
22996 echo "$as_me: error: cannot compute alignment of long long int
22997 See \`config.log' for more details." >&2;}
22998 { (exit 77); exit 77; }; }
22999 else
23000 ac_cv_alignof_long_long_int=0
23001 fi ;;
23002 esac
23003 else
23004 cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h. */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 $ac_includes_default
23011 #ifndef offsetof
23012 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23013 #endif
23014 typedef struct { char x; long long int y; } ac__type_alignof_;
23015 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23016 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23017 #include <stdio.h>
23018 #include <stdlib.h>
23020 main ()
23023 FILE *f = fopen ("conftest.val", "w");
23024 if (! f)
23025 return 1;
23026 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23028 long int i = longval ();
23029 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23030 return 1;
23031 fprintf (f, "%ld\n", i);
23033 else
23035 unsigned long int i = ulongval ();
23036 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23037 return 1;
23038 fprintf (f, "%lu\n", i);
23040 return ferror (f) || fclose (f) != 0;
23043 return 0;
23045 _ACEOF
23046 rm -f conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057 { (case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_try") 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; }; then
23066 ac_cv_alignof_long_long_int=`cat conftest.val`
23067 else
23068 echo "$as_me: program exited with status $ac_status" >&5
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ( exit $ac_status )
23073 if test "$ac_cv_type_long_long_int" = yes; then
23074 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23075 See \`config.log' for more details." >&5
23076 echo "$as_me: error: cannot compute alignment of long long int
23077 See \`config.log' for more details." >&2;}
23078 { (exit 77); exit 77; }; }
23079 else
23080 ac_cv_alignof_long_long_int=0
23083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23085 rm -f conftest.val
23087 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23088 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23092 cat >>confdefs.h <<_ACEOF
23093 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23094 _ACEOF
23098 { echo "$as_me:$LINENO: checking for double" >&5
23099 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23100 if test "${ac_cv_type_double+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103 cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h. */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23109 $ac_includes_default
23110 typedef double ac__type_new_;
23112 main ()
23114 if ((ac__type_new_ *) 0)
23115 return 0;
23116 if (sizeof (ac__type_new_))
23117 return 0;
23119 return 0;
23121 _ACEOF
23122 rm -f conftest.$ac_objext
23123 if { (ac_try="$ac_compile"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_cv_type_double=yes
23140 else
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 ac_cv_type_double=no
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23150 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23152 # The cast to long int works around a bug in the HP C Compiler,
23153 # see AC_CHECK_SIZEOF for more information.
23154 { echo "$as_me:$LINENO: checking alignment of double" >&5
23155 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23156 if test "${ac_cv_alignof_double+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159 if test "$cross_compiling" = yes; then
23160 # Depending upon the size, compute the lo and hi bounds.
23161 cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h. */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23167 $ac_includes_default
23168 #ifndef offsetof
23169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23170 #endif
23171 typedef struct { char x; double y; } ac__type_alignof_;
23173 main ()
23175 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23176 test_array [0] = 0
23179 return 0;
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_lo=0 ac_mid=0
23200 while :; do
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h. */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #ifndef offsetof
23209 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23210 #endif
23211 typedef struct { char x; double y; } ac__type_alignof_;
23213 main ()
23215 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23216 test_array [0] = 0
23219 return 0;
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_hi=$ac_mid; break
23240 else
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 ac_lo=`expr $ac_mid + 1`
23245 if test $ac_lo -le $ac_mid; then
23246 ac_lo= ac_hi=
23247 break
23249 ac_mid=`expr 2 '*' $ac_mid + 1`
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 done
23254 else
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23258 cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h. */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23264 $ac_includes_default
23265 #ifndef offsetof
23266 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23267 #endif
23268 typedef struct { char x; double y; } ac__type_alignof_;
23270 main ()
23272 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23273 test_array [0] = 0
23276 return 0;
23278 _ACEOF
23279 rm -f conftest.$ac_objext
23280 if { (ac_try="$ac_compile"
23281 case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23284 esac
23285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } && {
23293 test -z "$ac_c_werror_flag" ||
23294 test ! -s conftest.err
23295 } && test -s conftest.$ac_objext; then
23296 ac_hi=-1 ac_mid=-1
23297 while :; do
23298 cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h. */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 $ac_includes_default
23305 #ifndef offsetof
23306 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23307 #endif
23308 typedef struct { char x; double y; } ac__type_alignof_;
23310 main ()
23312 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23313 test_array [0] = 0
23316 return 0;
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23327 ac_status=$?
23328 grep -v '^ *+' conftest.er1 >conftest.err
23329 rm -f conftest.er1
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_lo=$ac_mid; break
23337 else
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 ac_hi=`expr '(' $ac_mid ')' - 1`
23342 if test $ac_mid -le $ac_hi; then
23343 ac_lo= ac_hi=
23344 break
23346 ac_mid=`expr 2 '*' $ac_mid`
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 done
23351 else
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_lo= ac_hi=
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 # Binary search between lo and hi bounds.
23363 while test "x$ac_lo" != "x$ac_hi"; do
23364 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23365 cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h. */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 $ac_includes_default
23372 #ifndef offsetof
23373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23374 #endif
23375 typedef struct { char x; double y; } ac__type_alignof_;
23377 main ()
23379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23380 test_array [0] = 0
23383 return 0;
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_compile") 2>conftest.er1
23394 ac_status=$?
23395 grep -v '^ *+' conftest.er1 >conftest.err
23396 rm -f conftest.er1
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest.$ac_objext; then
23403 ac_hi=$ac_mid
23404 else
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 ac_lo=`expr '(' $ac_mid ')' + 1`
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412 done
23413 case $ac_lo in
23414 ?*) ac_cv_alignof_double=$ac_lo;;
23415 '') if test "$ac_cv_type_double" = yes; then
23416 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23417 See \`config.log' for more details." >&5
23418 echo "$as_me: error: cannot compute alignment of double
23419 See \`config.log' for more details." >&2;}
23420 { (exit 77); exit 77; }; }
23421 else
23422 ac_cv_alignof_double=0
23423 fi ;;
23424 esac
23425 else
23426 cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h. */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23432 $ac_includes_default
23433 #ifndef offsetof
23434 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23435 #endif
23436 typedef struct { char x; double y; } ac__type_alignof_;
23437 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23438 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23439 #include <stdio.h>
23440 #include <stdlib.h>
23442 main ()
23445 FILE *f = fopen ("conftest.val", "w");
23446 if (! f)
23447 return 1;
23448 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23450 long int i = longval ();
23451 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23452 return 1;
23453 fprintf (f, "%ld\n", i);
23455 else
23457 unsigned long int i = ulongval ();
23458 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23459 return 1;
23460 fprintf (f, "%lu\n", i);
23462 return ferror (f) || fclose (f) != 0;
23465 return 0;
23467 _ACEOF
23468 rm -f conftest$ac_exeext
23469 if { (ac_try="$ac_link"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23473 esac
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_link") 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23479 { (case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_try") 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
23488 ac_cv_alignof_double=`cat conftest.val`
23489 else
23490 echo "$as_me: program exited with status $ac_status" >&5
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ( exit $ac_status )
23495 if test "$ac_cv_type_double" = yes; then
23496 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23497 See \`config.log' for more details." >&5
23498 echo "$as_me: error: cannot compute alignment of double
23499 See \`config.log' for more details." >&2;}
23500 { (exit 77); exit 77; }; }
23501 else
23502 ac_cv_alignof_double=0
23505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23507 rm -f conftest.val
23509 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23510 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23514 cat >>confdefs.h <<_ACEOF
23515 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23516 _ACEOF
23520 # Compute maximum alignment of any basic type.
23521 # We assume long's alignment is at least as strong as char, short, or int;
23522 # but we must check long long (if it exists) and double.
23524 MAX_ALIGNOF=$ac_cv_alignof_long
23525 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23526 MAX_ALIGNOF=$ac_cv_alignof_double
23528 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23529 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23532 cat >>confdefs.h <<_ACEOF
23533 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23534 _ACEOF
23538 # Some platforms predefine the types int8, int16, etc. Only check
23539 # a (hopefully) representative subset.
23540 { echo "$as_me:$LINENO: checking for int8" >&5
23541 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23542 if test "${ac_cv_type_int8+set}" = set; then
23543 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545 cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h. */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551 #include <stdio.h>
23552 #ifdef HAVE_SUPPORTDEFS_H
23553 #include <SupportDefs.h>
23554 #endif
23556 typedef int8 ac__type_new_;
23558 main ()
23560 if ((ac__type_new_ *) 0)
23561 return 0;
23562 if (sizeof (ac__type_new_))
23563 return 0;
23565 return 0;
23567 _ACEOF
23568 rm -f conftest.$ac_objext
23569 if { (ac_try="$ac_compile"
23570 case "(($ac_try" in
23571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572 *) ac_try_echo=$ac_try;;
23573 esac
23574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23575 (eval "$ac_compile") 2>conftest.er1
23576 ac_status=$?
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest.$ac_objext; then
23585 ac_cv_type_int8=yes
23586 else
23587 echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23590 ac_cv_type_int8=no
23593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23595 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23596 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23597 if test $ac_cv_type_int8 = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_INT8 1
23601 _ACEOF
23605 { echo "$as_me:$LINENO: checking for uint8" >&5
23606 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23607 if test "${ac_cv_type_uint8+set}" = set; then
23608 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 else
23610 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h. */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616 #include <stdio.h>
23617 #ifdef HAVE_SUPPORTDEFS_H
23618 #include <SupportDefs.h>
23619 #endif
23621 typedef uint8 ac__type_new_;
23623 main ()
23625 if ((ac__type_new_ *) 0)
23626 return 0;
23627 if (sizeof (ac__type_new_))
23628 return 0;
23630 return 0;
23632 _ACEOF
23633 rm -f conftest.$ac_objext
23634 if { (ac_try="$ac_compile"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640 (eval "$ac_compile") 2>conftest.er1
23641 ac_status=$?
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } && {
23647 test -z "$ac_c_werror_flag" ||
23648 test ! -s conftest.err
23649 } && test -s conftest.$ac_objext; then
23650 ac_cv_type_uint8=yes
23651 else
23652 echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23655 ac_cv_type_uint8=no
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23661 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23662 if test $ac_cv_type_uint8 = yes; then
23664 cat >>confdefs.h <<_ACEOF
23665 #define HAVE_UINT8 1
23666 _ACEOF
23670 { echo "$as_me:$LINENO: checking for int64" >&5
23671 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23672 if test "${ac_cv_type_int64+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 #include <stdio.h>
23682 #ifdef HAVE_SUPPORTDEFS_H
23683 #include <SupportDefs.h>
23684 #endif
23686 typedef int64 ac__type_new_;
23688 main ()
23690 if ((ac__type_new_ *) 0)
23691 return 0;
23692 if (sizeof (ac__type_new_))
23693 return 0;
23695 return 0;
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23706 ac_status=$?
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest.$ac_objext; then
23715 ac_cv_type_int64=yes
23716 else
23717 echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_type_int64=no
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23726 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23727 if test $ac_cv_type_int64 = yes; then
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_INT64 1
23731 _ACEOF
23735 { echo "$as_me:$LINENO: checking for uint64" >&5
23736 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23737 if test "${ac_cv_type_uint64+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 else
23740 cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h. */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 #include <stdio.h>
23747 #ifdef HAVE_SUPPORTDEFS_H
23748 #include <SupportDefs.h>
23749 #endif
23751 typedef uint64 ac__type_new_;
23753 main ()
23755 if ((ac__type_new_ *) 0)
23756 return 0;
23757 if (sizeof (ac__type_new_))
23758 return 0;
23760 return 0;
23762 _ACEOF
23763 rm -f conftest.$ac_objext
23764 if { (ac_try="$ac_compile"
23765 case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_compile") 2>conftest.er1
23771 ac_status=$?
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } && {
23777 test -z "$ac_c_werror_flag" ||
23778 test ! -s conftest.err
23779 } && test -s conftest.$ac_objext; then
23780 ac_cv_type_uint64=yes
23781 else
23782 echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 ac_cv_type_uint64=no
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23791 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23792 if test $ac_cv_type_uint64 = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_UINT64 1
23796 _ACEOF
23802 # We also check for sig_atomic_t, which *should* be defined per ANSI
23803 # C, but is missing on some old platforms.
23804 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23805 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23806 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23807 echo $ECHO_N "(cached) $ECHO_C" >&6
23808 else
23809 cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h. */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 #include <signal.h>
23817 typedef sig_atomic_t ac__type_new_;
23819 main ()
23821 if ((ac__type_new_ *) 0)
23822 return 0;
23823 if (sizeof (ac__type_new_))
23824 return 0;
23826 return 0;
23828 _ACEOF
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.$ac_objext; then
23846 ac_cv_type_sig_atomic_t=yes
23847 else
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 ac_cv_type_sig_atomic_t=no
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23857 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23858 if test $ac_cv_type_sig_atomic_t = yes; then
23860 cat >>confdefs.h <<_ACEOF
23861 #define HAVE_SIG_ATOMIC_T 1
23862 _ACEOF
23869 # If the user did not disable integer datetimes, check that
23870 # there is a working 64-bit integral type to use.
23871 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23872 test x"$HAVE_LONG_INT_64" = x"no" &&
23873 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23874 test x"$HAVE_INT64" = x"no" ; then
23875 { { echo "$as_me:$LINENO: error:
23876 Integer-based datetime support requires a 64-bit integer type,
23877 but no such type could be found. The --disable-integer-datetimes
23878 configure option can be used to disable integer-based storage
23879 of datetime values." >&5
23880 echo "$as_me: error:
23881 Integer-based datetime support requires a 64-bit integer type,
23882 but no such type could be found. The --disable-integer-datetimes
23883 configure option can be used to disable integer-based storage
23884 of datetime values." >&2;}
23885 { (exit 1); exit 1; }; }
23889 if test "$PORTNAME" != "win32"
23890 then
23891 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23892 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23893 if test "${pgac_cv_func_posix_signals+set}" = set; then
23894 echo $ECHO_N "(cached) $ECHO_C" >&6
23895 else
23896 cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h. */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h. */
23902 #include <signal.h>
23905 main ()
23907 struct sigaction act, oact;
23908 sigemptyset(&act.sa_mask);
23909 act.sa_flags = SA_RESTART;
23910 sigaction(0, &act, &oact);
23912 return 0;
23914 _ACEOF
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (ac_try="$ac_link"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_link") 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest$ac_exeext &&
23932 $as_test_x conftest$ac_exeext; then
23933 pgac_cv_func_posix_signals=yes
23934 else
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 pgac_cv_func_posix_signals=no
23941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23942 conftest$ac_exeext conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23945 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23946 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23948 cat >>confdefs.h <<\_ACEOF
23949 #define HAVE_POSIX_SIGNALS
23950 _ACEOF
23953 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23955 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23956 { { echo "$as_me:$LINENO: error:
23957 Thread-safety requires POSIX signals, which are not supported by this
23958 operating system." >&5
23959 echo "$as_me: error:
23960 Thread-safety requires POSIX signals, which are not supported by this
23961 operating system." >&2;}
23962 { (exit 1); exit 1; }; }
23966 if test $ac_cv_func_fseeko = yes; then
23967 # Check whether --enable-largefile was given.
23968 if test "${enable_largefile+set}" = set; then
23969 enableval=$enable_largefile;
23972 if test "$enable_largefile" != no; then
23974 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23975 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23976 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23977 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 else
23979 ac_cv_sys_largefile_CC=no
23980 if test "$GCC" != yes; then
23981 ac_save_CC=$CC
23982 while :; do
23983 # IRIX 6.2 and later do not support large files by default,
23984 # so use the C compiler's -n32 option if that helps.
23985 cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h. */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 #include <sys/types.h>
23992 /* Check that off_t can represent 2**63 - 1 correctly.
23993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23994 since some C++ compilers masquerading as C compilers
23995 incorrectly reject 9223372036854775807. */
23996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23998 && LARGE_OFF_T % 2147483647 == 1)
23999 ? 1 : -1];
24001 main ()
24005 return 0;
24007 _ACEOF
24008 rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015 (eval "$ac_compile") 2>conftest.er1
24016 ac_status=$?
24017 grep -v '^ *+' conftest.er1 >conftest.err
24018 rm -f conftest.er1
24019 cat conftest.err >&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); } && {
24022 test -z "$ac_c_werror_flag" ||
24023 test ! -s conftest.err
24024 } && test -s conftest.$ac_objext; then
24025 break
24026 else
24027 echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24033 rm -f core conftest.err conftest.$ac_objext
24034 CC="$CC -n32"
24035 rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_compile") 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } && {
24049 test -z "$ac_c_werror_flag" ||
24050 test ! -s conftest.err
24051 } && test -s conftest.$ac_objext; then
24052 ac_cv_sys_largefile_CC=' -n32'; break
24053 else
24054 echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24060 rm -f core conftest.err conftest.$ac_objext
24061 break
24062 done
24063 CC=$ac_save_CC
24064 rm -f conftest.$ac_ext
24067 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24068 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24069 if test "$ac_cv_sys_largefile_CC" != no; then
24070 CC=$CC$ac_cv_sys_largefile_CC
24073 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24074 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 else
24078 while :; do
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h. */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 #include <sys/types.h>
24086 /* Check that off_t can represent 2**63 - 1 correctly.
24087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24088 since some C++ compilers masquerading as C compilers
24089 incorrectly reject 9223372036854775807. */
24090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24092 && LARGE_OFF_T % 2147483647 == 1)
24093 ? 1 : -1];
24095 main ()
24099 return 0;
24101 _ACEOF
24102 rm -f conftest.$ac_objext
24103 if { (ac_try="$ac_compile"
24104 case "(($ac_try" in
24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24107 esac
24108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24109 (eval "$ac_compile") 2>conftest.er1
24110 ac_status=$?
24111 grep -v '^ *+' conftest.er1 >conftest.err
24112 rm -f conftest.er1
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && {
24116 test -z "$ac_c_werror_flag" ||
24117 test ! -s conftest.err
24118 } && test -s conftest.$ac_objext; then
24119 ac_cv_sys_file_offset_bits=no; break
24120 else
24121 echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h. */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 #define _FILE_OFFSET_BITS 64
24135 #include <sys/types.h>
24136 /* Check that off_t can represent 2**63 - 1 correctly.
24137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24138 since some C++ compilers masquerading as C compilers
24139 incorrectly reject 9223372036854775807. */
24140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24142 && LARGE_OFF_T % 2147483647 == 1)
24143 ? 1 : -1];
24145 main ()
24149 return 0;
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156 *) ac_try_echo=$ac_try;;
24157 esac
24158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24160 ac_status=$?
24161 grep -v '^ *+' conftest.er1 >conftest.err
24162 rm -f conftest.er1
24163 cat conftest.err >&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24169 ac_cv_sys_file_offset_bits=64; break
24170 else
24171 echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 ac_cv_sys_file_offset_bits=unknown
24179 break
24180 done
24182 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24184 case $ac_cv_sys_file_offset_bits in #(
24185 no | unknown) ;;
24187 cat >>confdefs.h <<_ACEOF
24188 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24189 _ACEOF
24191 esac
24192 rm -f conftest*
24193 if test $ac_cv_sys_file_offset_bits = unknown; then
24194 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24195 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24196 if test "${ac_cv_sys_large_files+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199 while :; do
24200 cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h. */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 #include <sys/types.h>
24207 /* Check that off_t can represent 2**63 - 1 correctly.
24208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24209 since some C++ compilers masquerading as C compilers
24210 incorrectly reject 9223372036854775807. */
24211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24213 && LARGE_OFF_T % 2147483647 == 1)
24214 ? 1 : -1];
24216 main ()
24220 return 0;
24222 _ACEOF
24223 rm -f conftest.$ac_objext
24224 if { (ac_try="$ac_compile"
24225 case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24228 esac
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230 (eval "$ac_compile") 2>conftest.er1
24231 ac_status=$?
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } && {
24237 test -z "$ac_c_werror_flag" ||
24238 test ! -s conftest.err
24239 } && test -s conftest.$ac_objext; then
24240 ac_cv_sys_large_files=no; break
24241 else
24242 echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h. */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24255 #define _LARGE_FILES 1
24256 #include <sys/types.h>
24257 /* Check that off_t can represent 2**63 - 1 correctly.
24258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24259 since some C++ compilers masquerading as C compilers
24260 incorrectly reject 9223372036854775807. */
24261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24263 && LARGE_OFF_T % 2147483647 == 1)
24264 ? 1 : -1];
24266 main ()
24270 return 0;
24272 _ACEOF
24273 rm -f conftest.$ac_objext
24274 if { (ac_try="$ac_compile"
24275 case "(($ac_try" in
24276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24278 esac
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280 (eval "$ac_compile") 2>conftest.er1
24281 ac_status=$?
24282 grep -v '^ *+' conftest.er1 >conftest.err
24283 rm -f conftest.er1
24284 cat conftest.err >&5
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } && {
24287 test -z "$ac_c_werror_flag" ||
24288 test ! -s conftest.err
24289 } && test -s conftest.$ac_objext; then
24290 ac_cv_sys_large_files=1; break
24291 else
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24299 ac_cv_sys_large_files=unknown
24300 break
24301 done
24303 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24304 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24305 case $ac_cv_sys_large_files in #(
24306 no | unknown) ;;
24308 cat >>confdefs.h <<_ACEOF
24309 #define _LARGE_FILES $ac_cv_sys_large_files
24310 _ACEOF
24312 esac
24313 rm -f conftest*
24319 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24320 { echo "$as_me:$LINENO: checking for off_t" >&5
24321 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24322 if test "${ac_cv_type_off_t+set}" = set; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24324 else
24325 cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h. */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 $ac_includes_default
24332 typedef off_t ac__type_new_;
24334 main ()
24336 if ((ac__type_new_ *) 0)
24337 return 0;
24338 if (sizeof (ac__type_new_))
24339 return 0;
24341 return 0;
24343 _ACEOF
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24352 ac_status=$?
24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_c_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest.$ac_objext; then
24361 ac_cv_type_off_t=yes
24362 else
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_type_off_t=no
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24372 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24374 # The cast to long int works around a bug in the HP C Compiler
24375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24377 # This bug is HP SR number 8606223364.
24378 { echo "$as_me:$LINENO: checking size of off_t" >&5
24379 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24380 if test "${ac_cv_sizeof_off_t+set}" = set; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383 if test "$cross_compiling" = yes; then
24384 # Depending upon the size, compute the lo and hi bounds.
24385 cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h. */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24392 typedef off_t ac__type_sizeof_;
24394 main ()
24396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24397 test_array [0] = 0
24400 return 0;
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest.$ac_objext; then
24420 ac_lo=0 ac_mid=0
24421 while :; do
24422 cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h. */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 typedef off_t ac__type_sizeof_;
24431 main ()
24433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24434 test_array [0] = 0
24437 return 0;
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_compile") 2>conftest.er1
24448 ac_status=$?
24449 grep -v '^ *+' conftest.er1 >conftest.err
24450 rm -f conftest.er1
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest.$ac_objext; then
24457 ac_hi=$ac_mid; break
24458 else
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 ac_lo=`expr $ac_mid + 1`
24463 if test $ac_lo -le $ac_mid; then
24464 ac_lo= ac_hi=
24465 break
24467 ac_mid=`expr 2 '*' $ac_mid + 1`
24470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471 done
24472 else
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h. */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 $ac_includes_default
24483 typedef off_t ac__type_sizeof_;
24485 main ()
24487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24488 test_array [0] = 0
24491 return 0;
24493 _ACEOF
24494 rm -f conftest.$ac_objext
24495 if { (ac_try="$ac_compile"
24496 case "(($ac_try" in
24497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498 *) ac_try_echo=$ac_try;;
24499 esac
24500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24501 (eval "$ac_compile") 2>conftest.er1
24502 ac_status=$?
24503 grep -v '^ *+' conftest.er1 >conftest.err
24504 rm -f conftest.er1
24505 cat conftest.err >&5
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); } && {
24508 test -z "$ac_c_werror_flag" ||
24509 test ! -s conftest.err
24510 } && test -s conftest.$ac_objext; then
24511 ac_hi=-1 ac_mid=-1
24512 while :; do
24513 cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h. */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24519 $ac_includes_default
24520 typedef off_t ac__type_sizeof_;
24522 main ()
24524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24525 test_array [0] = 0
24528 return 0;
24530 _ACEOF
24531 rm -f conftest.$ac_objext
24532 if { (ac_try="$ac_compile"
24533 case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24536 esac
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538 (eval "$ac_compile") 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest.$ac_objext; then
24548 ac_lo=$ac_mid; break
24549 else
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24553 ac_hi=`expr '(' $ac_mid ')' - 1`
24554 if test $ac_mid -le $ac_hi; then
24555 ac_lo= ac_hi=
24556 break
24558 ac_mid=`expr 2 '*' $ac_mid`
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562 done
24563 else
24564 echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24567 ac_lo= ac_hi=
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 # Binary search between lo and hi bounds.
24575 while test "x$ac_lo" != "x$ac_hi"; do
24576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h. */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 $ac_includes_default
24584 typedef off_t ac__type_sizeof_;
24586 main ()
24588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24589 test_array [0] = 0
24592 return 0;
24594 _ACEOF
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_compile") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest.$ac_objext; then
24612 ac_hi=$ac_mid
24613 else
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_lo=`expr '(' $ac_mid ')' + 1`
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24621 done
24622 case $ac_lo in
24623 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24624 '') if test "$ac_cv_type_off_t" = yes; then
24625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24626 See \`config.log' for more details." >&5
24627 echo "$as_me: error: cannot compute sizeof (off_t)
24628 See \`config.log' for more details." >&2;}
24629 { (exit 77); exit 77; }; }
24630 else
24631 ac_cv_sizeof_off_t=0
24632 fi ;;
24633 esac
24634 else
24635 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h. */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 $ac_includes_default
24642 typedef off_t ac__type_sizeof_;
24643 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24644 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24645 #include <stdio.h>
24646 #include <stdlib.h>
24648 main ()
24651 FILE *f = fopen ("conftest.val", "w");
24652 if (! f)
24653 return 1;
24654 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24656 long int i = longval ();
24657 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24658 return 1;
24659 fprintf (f, "%ld\n", i);
24661 else
24663 unsigned long int i = ulongval ();
24664 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24665 return 1;
24666 fprintf (f, "%lu\n", i);
24668 return ferror (f) || fclose (f) != 0;
24671 return 0;
24673 _ACEOF
24674 rm -f conftest$ac_exeext
24675 if { (ac_try="$ac_link"
24676 case "(($ac_try" in
24677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24679 esac
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681 (eval "$ac_link") 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24685 { (case "(($ac_try" in
24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687 *) ac_try_echo=$ac_try;;
24688 esac
24689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24690 (eval "$ac_try") 2>&5
24691 ac_status=$?
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; }; then
24694 ac_cv_sizeof_off_t=`cat conftest.val`
24695 else
24696 echo "$as_me: program exited with status $ac_status" >&5
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24700 ( exit $ac_status )
24701 if test "$ac_cv_type_off_t" = yes; then
24702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24703 See \`config.log' for more details." >&5
24704 echo "$as_me: error: cannot compute sizeof (off_t)
24705 See \`config.log' for more details." >&2;}
24706 { (exit 77); exit 77; }; }
24707 else
24708 ac_cv_sizeof_off_t=0
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24713 rm -f conftest.val
24715 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24716 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24720 cat >>confdefs.h <<_ACEOF
24721 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24722 _ACEOF
24726 # If we don't have largefile support, can't handle segsize >= 2GB.
24727 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24728 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24729 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24730 { (exit 1); exit 1; }; }
24733 # SunOS doesn't handle negative byte comparisons properly with +/- return
24734 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24735 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24736 if test "${ac_cv_func_memcmp_working+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739 if test "$cross_compiling" = yes; then
24740 ac_cv_func_memcmp_working=no
24741 else
24742 cat >conftest.$ac_ext <<_ACEOF
24743 /* confdefs.h. */
24744 _ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h. */
24748 $ac_includes_default
24750 main ()
24753 /* Some versions of memcmp are not 8-bit clean. */
24754 char c0 = '\100', c1 = '\200', c2 = '\201';
24755 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24756 return 1;
24758 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24759 or more and with at least one buffer not starting on a 4-byte boundary.
24760 William Lewis provided this test program. */
24762 char foo[21];
24763 char bar[21];
24764 int i;
24765 for (i = 0; i < 4; i++)
24767 char *a = foo + i;
24768 char *b = bar + i;
24769 strcpy (a, "--------01111111");
24770 strcpy (b, "--------10000000");
24771 if (memcmp (a, b, 16) >= 0)
24772 return 1;
24774 return 0;
24778 return 0;
24780 _ACEOF
24781 rm -f conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 *) ac_try_echo=$ac_try;;
24786 esac
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788 (eval "$ac_link") 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24792 { (case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_try") 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_func_memcmp_working=yes
24802 else
24803 echo "$as_me: program exited with status $ac_status" >&5
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ( exit $ac_status )
24808 ac_cv_func_memcmp_working=no
24810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24816 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24817 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24818 *" memcmp.$ac_objext "* ) ;;
24819 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24821 esac
24825 # Check for fnmatch()
24826 { echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
24827 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6; }
24828 if test "${ac_cv_func_fnmatch_works+set}" = set; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 else
24831 # Some versions of Solaris, SCO, and the GNU C Library
24832 # have a broken or incompatible fnmatch.
24833 # So we run a test program. If we are cross-compiling, take no chance.
24834 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
24835 if test "$cross_compiling" = yes; then
24836 ac_cv_func_fnmatch_works=cross
24837 else
24838 cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h. */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 #include <fnmatch.h>
24845 # define y(a, b, c) (fnmatch (a, b, c) == 0)
24846 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
24849 main ()
24851 return
24852 (!(y ("a*", "abc", 0)
24853 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
24854 && y ("a\\\\bc", "abc", 0)
24855 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
24856 && y ("*x", ".x", 0)
24857 && n ("*x", ".x", FNM_PERIOD)
24858 && 1));
24860 return 0;
24862 _ACEOF
24863 rm -f conftest$ac_exeext
24864 if { (ac_try="$ac_link"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24868 esac
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_link") 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24874 { (case "(($ac_try" in
24875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876 *) ac_try_echo=$ac_try;;
24877 esac
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879 (eval "$ac_try") 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
24883 ac_cv_func_fnmatch_works=yes
24884 else
24885 echo "$as_me: program exited with status $ac_status" >&5
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24889 ( exit $ac_status )
24890 ac_cv_func_fnmatch_works=no
24892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24897 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
24898 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6; }
24899 if test $ac_cv_func_fnmatch_works = yes; then
24901 cat >>confdefs.h <<\_ACEOF
24902 #define HAVE_FNMATCH 1
24903 _ACEOF
24909 if test x"$ac_cv_func_fnmatch_works" != x"yes"; then
24910 case " $LIBOBJS " in
24911 *" fnmatch.$ac_objext "* ) ;;
24912 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
24914 esac
24918 # Select semaphore implementation type.
24919 if test "$PORTNAME" != "win32"; then
24920 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24922 cat >>confdefs.h <<\_ACEOF
24923 #define USE_NAMED_POSIX_SEMAPHORES 1
24924 _ACEOF
24926 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24927 else
24928 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24930 cat >>confdefs.h <<\_ACEOF
24931 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24932 _ACEOF
24934 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24935 else
24937 cat >>confdefs.h <<\_ACEOF
24938 #define USE_SYSV_SEMAPHORES 1
24939 _ACEOF
24941 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24944 else
24946 cat >>confdefs.h <<\_ACEOF
24947 #define USE_WIN32_SEMAPHORES 1
24948 _ACEOF
24950 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24954 # Select shared-memory implementation type.
24955 if test "$PORTNAME" != "win32"; then
24957 cat >>confdefs.h <<\_ACEOF
24958 #define USE_SYSV_SHARED_MEMORY 1
24959 _ACEOF
24961 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24962 else
24964 cat >>confdefs.h <<\_ACEOF
24965 #define USE_WIN32_SHARED_MEMORY 1
24966 _ACEOF
24968 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24971 # If not set in template file, set bytes to use libc memset()
24972 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24973 MEMSET_LOOP_LIMIT=1024
24976 cat >>confdefs.h <<_ACEOF
24977 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24978 _ACEOF
24982 if test "$enable_nls" = yes ; then
24984 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24985 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24986 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24988 else
24989 ac_func_search_save_LIBS=$LIBS
24990 cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h. */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24997 /* Override any GCC internal prototype to avoid an error.
24998 Use char because int might match the return type of a GCC
24999 builtin and then its argument prototype would still apply. */
25000 #ifdef __cplusplus
25001 extern "C"
25002 #endif
25003 char bind_textdomain_codeset ();
25005 main ()
25007 return bind_textdomain_codeset ();
25009 return 0;
25011 _ACEOF
25012 for ac_lib in '' intl; do
25013 if test -z "$ac_lib"; then
25014 ac_res="none required"
25015 else
25016 ac_res=-l$ac_lib
25017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25024 esac
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_link") 2>conftest.er1
25027 ac_status=$?
25028 grep -v '^ *+' conftest.er1 >conftest.err
25029 rm -f conftest.er1
25030 cat conftest.err >&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); } && {
25033 test -z "$ac_c_werror_flag" ||
25034 test ! -s conftest.err
25035 } && test -s conftest$ac_exeext &&
25036 $as_test_x conftest$ac_exeext; then
25037 ac_cv_search_bind_textdomain_codeset=$ac_res
25038 else
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25046 conftest$ac_exeext
25047 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25048 break
25050 done
25051 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25053 else
25054 ac_cv_search_bind_textdomain_codeset=no
25056 rm conftest.$ac_ext
25057 LIBS=$ac_func_search_save_LIBS
25059 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25060 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25061 ac_res=$ac_cv_search_bind_textdomain_codeset
25062 if test "$ac_res" != no; then
25063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25065 else
25066 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25067 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25068 { (exit 1); exit 1; }; }
25071 if test "${ac_cv_header_libintl_h+set}" = set; then
25072 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25073 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25074 if test "${ac_cv_header_libintl_h+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25078 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25079 else
25080 # Is the header compilable?
25081 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25082 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25083 cat >conftest.$ac_ext <<_ACEOF
25084 /* confdefs.h. */
25085 _ACEOF
25086 cat confdefs.h >>conftest.$ac_ext
25087 cat >>conftest.$ac_ext <<_ACEOF
25088 /* end confdefs.h. */
25089 $ac_includes_default
25090 #include <libintl.h>
25091 _ACEOF
25092 rm -f conftest.$ac_objext
25093 if { (ac_try="$ac_compile"
25094 case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25097 esac
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_compile") 2>conftest.er1
25100 ac_status=$?
25101 grep -v '^ *+' conftest.er1 >conftest.err
25102 rm -f conftest.er1
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } && {
25106 test -z "$ac_c_werror_flag" ||
25107 test ! -s conftest.err
25108 } && test -s conftest.$ac_objext; then
25109 ac_header_compiler=yes
25110 else
25111 echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25114 ac_header_compiler=no
25117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25119 echo "${ECHO_T}$ac_header_compiler" >&6; }
25121 # Is the header present?
25122 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25123 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25124 cat >conftest.$ac_ext <<_ACEOF
25125 /* confdefs.h. */
25126 _ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h. */
25130 #include <libintl.h>
25131 _ACEOF
25132 if { (ac_try="$ac_cpp conftest.$ac_ext"
25133 case "(($ac_try" in
25134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135 *) ac_try_echo=$ac_try;;
25136 esac
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25139 ac_status=$?
25140 grep -v '^ *+' conftest.er1 >conftest.err
25141 rm -f conftest.er1
25142 cat conftest.err >&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } >/dev/null && {
25145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25146 test ! -s conftest.err
25147 }; then
25148 ac_header_preproc=yes
25149 else
25150 echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25153 ac_header_preproc=no
25156 rm -f conftest.err conftest.$ac_ext
25157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25158 echo "${ECHO_T}$ac_header_preproc" >&6; }
25160 # So? What about this header?
25161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25162 yes:no: )
25163 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25164 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25165 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25166 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25167 ac_header_preproc=yes
25169 no:yes:* )
25170 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25171 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25173 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25174 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25175 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25176 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25177 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25178 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25179 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25181 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25182 ( cat <<\_ASBOX
25183 ## ---------------------------------------- ##
25184 ## Report this to pgsql-bugs@postgresql.org ##
25185 ## ---------------------------------------- ##
25186 _ASBOX
25187 ) | sed "s/^/$as_me: WARNING: /" >&2
25189 esac
25190 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25191 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25192 if test "${ac_cv_header_libintl_h+set}" = set; then
25193 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 else
25195 ac_cv_header_libintl_h=$ac_header_preproc
25197 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25198 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25201 if test $ac_cv_header_libintl_h = yes; then
25203 else
25204 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25205 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25206 { (exit 1); exit 1; }; }
25210 for ac_prog in msgfmt
25212 # Extract the first word of "$ac_prog", so it can be a program name with args.
25213 set dummy $ac_prog; ac_word=$2
25214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25216 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219 if test -n "$MSGFMT"; then
25220 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25221 else
25222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25223 for as_dir in $PATH
25225 IFS=$as_save_IFS
25226 test -z "$as_dir" && as_dir=.
25227 for ac_exec_ext in '' $ac_executable_extensions; do
25228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25229 ac_cv_prog_MSGFMT="$ac_prog"
25230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25231 break 2
25233 done
25234 done
25235 IFS=$as_save_IFS
25239 MSGFMT=$ac_cv_prog_MSGFMT
25240 if test -n "$MSGFMT"; then
25241 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25242 echo "${ECHO_T}$MSGFMT" >&6; }
25243 else
25244 { echo "$as_me:$LINENO: result: no" >&5
25245 echo "${ECHO_T}no" >&6; }
25249 test -n "$MSGFMT" && break
25250 done
25252 if test -z "$MSGFMT"; then
25253 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25254 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25255 { (exit 1); exit 1; }; }
25257 for ac_prog in msgmerge
25259 # Extract the first word of "$ac_prog", so it can be a program name with args.
25260 set dummy $ac_prog; ac_word=$2
25261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25263 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
25265 else
25266 if test -n "$MSGMERGE"; then
25267 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25268 else
25269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270 for as_dir in $PATH
25272 IFS=$as_save_IFS
25273 test -z "$as_dir" && as_dir=.
25274 for ac_exec_ext in '' $ac_executable_extensions; do
25275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25276 ac_cv_prog_MSGMERGE="$ac_prog"
25277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25278 break 2
25280 done
25281 done
25282 IFS=$as_save_IFS
25286 MSGMERGE=$ac_cv_prog_MSGMERGE
25287 if test -n "$MSGMERGE"; then
25288 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25289 echo "${ECHO_T}$MSGMERGE" >&6; }
25290 else
25291 { echo "$as_me:$LINENO: result: no" >&5
25292 echo "${ECHO_T}no" >&6; }
25296 test -n "$MSGMERGE" && break
25297 done
25299 for ac_prog in xgettext
25301 # Extract the first word of "$ac_prog", so it can be a program name with args.
25302 set dummy $ac_prog; ac_word=$2
25303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25305 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307 else
25308 if test -n "$XGETTEXT"; then
25309 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25310 else
25311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25312 for as_dir in $PATH
25314 IFS=$as_save_IFS
25315 test -z "$as_dir" && as_dir=.
25316 for ac_exec_ext in '' $ac_executable_extensions; do
25317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25318 ac_cv_prog_XGETTEXT="$ac_prog"
25319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25320 break 2
25322 done
25323 done
25324 IFS=$as_save_IFS
25328 XGETTEXT=$ac_cv_prog_XGETTEXT
25329 if test -n "$XGETTEXT"; then
25330 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25331 echo "${ECHO_T}$XGETTEXT" >&6; }
25332 else
25333 { echo "$as_me:$LINENO: result: no" >&5
25334 echo "${ECHO_T}no" >&6; }
25338 test -n "$XGETTEXT" && break
25339 done
25344 # Check for Tcl configuration script tclConfig.sh
25345 if test "$with_tcl" = yes; then
25346 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25348 # Extract the first word of "$ac_prog", so it can be a program name with args.
25349 set dummy $ac_prog; ac_word=$2
25350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25352 if test "${ac_cv_path_TCLSH+set}" = set; then
25353 echo $ECHO_N "(cached) $ECHO_C" >&6
25354 else
25355 case $TCLSH in
25356 [\\/]* | ?:[\\/]*)
25357 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25361 for as_dir in $PATH
25363 IFS=$as_save_IFS
25364 test -z "$as_dir" && as_dir=.
25365 for ac_exec_ext in '' $ac_executable_extensions; do
25366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25367 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25369 break 2
25371 done
25372 done
25373 IFS=$as_save_IFS
25376 esac
25378 TCLSH=$ac_cv_path_TCLSH
25379 if test -n "$TCLSH"; then
25380 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25381 echo "${ECHO_T}$TCLSH" >&6; }
25382 else
25383 { echo "$as_me:$LINENO: result: no" >&5
25384 echo "${ECHO_T}no" >&6; }
25388 test -n "$TCLSH" && break
25389 done
25391 if test x"$TCLSH" = x""; then
25392 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25393 echo "$as_me: error: Tcl shell not found" >&2;}
25394 { (exit 1); exit 1; }; }
25397 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25398 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25399 # Let user override test
25400 if test -z "$TCL_CONFIG_SH"; then
25401 pgac_test_dirs="$with_tclconfig"
25403 set X $pgac_test_dirs; shift
25404 if test $# -eq 0; then
25405 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25406 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25407 { (exit 1); exit 1; }; }
25408 set X `echo 'puts $auto_path' | $TCLSH`; shift
25411 for pgac_dir do
25412 if test -r "$pgac_dir/tclConfig.sh"; then
25413 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25414 break
25416 done
25419 if test -z "$TCL_CONFIG_SH"; then
25420 { echo "$as_me:$LINENO: result: no" >&5
25421 echo "${ECHO_T}no" >&6; }
25422 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25423 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25424 { (exit 1); exit 1; }; }
25425 else
25426 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25427 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25432 . "$TCL_CONFIG_SH"
25433 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25434 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25435 eval TCL_LIBS=\"$TCL_LIBS\"
25436 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25437 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25439 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25440 ac_save_CPPFLAGS=$CPPFLAGS
25441 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25442 if test "${ac_cv_header_tcl_h+set}" = set; then
25443 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25444 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25445 if test "${ac_cv_header_tcl_h+set}" = set; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25449 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25450 else
25451 # Is the header compilable?
25452 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25453 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25454 cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h. */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 $ac_includes_default
25461 #include <tcl.h>
25462 _ACEOF
25463 rm -f conftest.$ac_objext
25464 if { (ac_try="$ac_compile"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25468 esac
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470 (eval "$ac_compile") 2>conftest.er1
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && {
25477 test -z "$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 } && test -s conftest.$ac_objext; then
25480 ac_header_compiler=yes
25481 else
25482 echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25485 ac_header_compiler=no
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25490 echo "${ECHO_T}$ac_header_compiler" >&6; }
25492 # Is the header present?
25493 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25494 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25495 cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h. */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 #include <tcl.h>
25502 _ACEOF
25503 if { (ac_try="$ac_cpp conftest.$ac_ext"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25507 esac
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25510 ac_status=$?
25511 grep -v '^ *+' conftest.er1 >conftest.err
25512 rm -f conftest.er1
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } >/dev/null && {
25516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25517 test ! -s conftest.err
25518 }; then
25519 ac_header_preproc=yes
25520 else
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ac_header_preproc=no
25527 rm -f conftest.err conftest.$ac_ext
25528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25529 echo "${ECHO_T}$ac_header_preproc" >&6; }
25531 # So? What about this header?
25532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25533 yes:no: )
25534 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25535 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25537 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25538 ac_header_preproc=yes
25540 no:yes:* )
25541 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25542 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25543 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25544 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25545 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25546 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25547 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25548 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25549 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25550 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25551 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25552 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25553 ( cat <<\_ASBOX
25554 ## ---------------------------------------- ##
25555 ## Report this to pgsql-bugs@postgresql.org ##
25556 ## ---------------------------------------- ##
25557 _ASBOX
25558 ) | sed "s/^/$as_me: WARNING: /" >&2
25560 esac
25561 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25562 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25563 if test "${ac_cv_header_tcl_h+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566 ac_cv_header_tcl_h=$ac_header_preproc
25568 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25569 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25572 if test $ac_cv_header_tcl_h = yes; then
25574 else
25575 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25576 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25577 { (exit 1); exit 1; }; }
25581 CPPFLAGS=$ac_save_CPPFLAGS
25585 # Check for DocBook and tools
25587 for ac_prog in onsgmls nsgmls
25589 # Extract the first word of "$ac_prog", so it can be a program name with args.
25590 set dummy $ac_prog; ac_word=$2
25591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25593 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 else
25596 if test -n "$NSGMLS"; then
25597 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25598 else
25599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25600 for as_dir in $PATH
25602 IFS=$as_save_IFS
25603 test -z "$as_dir" && as_dir=.
25604 for ac_exec_ext in '' $ac_executable_extensions; do
25605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25606 ac_cv_prog_NSGMLS="$ac_prog"
25607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25608 break 2
25610 done
25611 done
25612 IFS=$as_save_IFS
25616 NSGMLS=$ac_cv_prog_NSGMLS
25617 if test -n "$NSGMLS"; then
25618 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25619 echo "${ECHO_T}$NSGMLS" >&6; }
25620 else
25621 { echo "$as_me:$LINENO: result: no" >&5
25622 echo "${ECHO_T}no" >&6; }
25626 test -n "$NSGMLS" && break
25627 done
25629 for ac_prog in openjade jade
25631 # Extract the first word of "$ac_prog", so it can be a program name with args.
25632 set dummy $ac_prog; ac_word=$2
25633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25635 if test "${ac_cv_prog_JADE+set}" = set; then
25636 echo $ECHO_N "(cached) $ECHO_C" >&6
25637 else
25638 if test -n "$JADE"; then
25639 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25640 else
25641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25642 for as_dir in $PATH
25644 IFS=$as_save_IFS
25645 test -z "$as_dir" && as_dir=.
25646 for ac_exec_ext in '' $ac_executable_extensions; do
25647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25648 ac_cv_prog_JADE="$ac_prog"
25649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25650 break 2
25652 done
25653 done
25654 IFS=$as_save_IFS
25658 JADE=$ac_cv_prog_JADE
25659 if test -n "$JADE"; then
25660 { echo "$as_me:$LINENO: result: $JADE" >&5
25661 echo "${ECHO_T}$JADE" >&6; }
25662 else
25663 { echo "$as_me:$LINENO: result: no" >&5
25664 echo "${ECHO_T}no" >&6; }
25668 test -n "$JADE" && break
25669 done
25672 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25673 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25674 if test "${pgac_cv_check_docbook+set}" = set; then
25675 echo $ECHO_N "(cached) $ECHO_C" >&6
25676 else
25677 cat >conftest.sgml <<EOF
25678 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25679 <book>
25680 <title>test</title>
25681 <chapter>
25682 <title>random</title>
25683 <sect1>
25684 <title>testsect</title>
25685 <para>text</para>
25686 </sect1>
25687 </chapter>
25688 </book>
25691 pgac_cv_check_docbook=no
25693 if test -n "$NSGMLS"; then
25694 $NSGMLS -s conftest.sgml 1>&5 2>&1
25695 if test $? -eq 0; then
25696 pgac_cv_check_docbook=yes
25699 rm -f conftest.sgml
25701 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25702 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25704 have_docbook=$pgac_cv_check_docbook
25707 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25708 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25709 if test "${pgac_cv_path_stylesheets+set}" = set; then
25710 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 else
25712 if test -n "$DOCBOOKSTYLE"; then
25713 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25714 else
25715 for pgac_prefix in /usr /usr/local /opt /sw; do
25716 for pgac_infix in share lib; do
25717 for pgac_postfix in \
25718 sgml/stylesheets/nwalsh-modular \
25719 sgml/stylesheets/docbook \
25720 sgml/stylesheets/dsssl/docbook \
25721 sgml/docbook-dsssl \
25722 sgml/docbook/dsssl/modular \
25723 sgml/docbook/stylesheet/dsssl/modular \
25724 sgml/docbook/dsssl-stylesheets \
25725 sgml/dsssl/docbook-dsssl-nwalsh
25727 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25728 if test -r "$pgac_candidate/html/docbook.dsl" \
25729 && test -r "$pgac_candidate/print/docbook.dsl"
25730 then
25731 pgac_cv_path_stylesheets=$pgac_candidate
25732 break 3
25734 done
25735 done
25736 done
25740 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25742 if test -n "$DOCBOOKSTYLE"; then
25743 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25744 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25745 else
25746 { echo "$as_me:$LINENO: result: no" >&5
25747 echo "${ECHO_T}no" >&6; }
25749 if test -n "$DOCBOOKSTYLE"; then
25750 for ac_prog in collateindex.pl
25752 # Extract the first word of "$ac_prog", so it can be a program name with args.
25753 set dummy $ac_prog; ac_word=$2
25754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25756 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25758 else
25759 case $COLLATEINDEX in
25760 [\\/]* | ?:[\\/]*)
25761 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25765 for as_dir in $DOCBOOKSTYLE/bin $PATH
25767 IFS=$as_save_IFS
25768 test -z "$as_dir" && as_dir=.
25769 for ac_exec_ext in '' $ac_executable_extensions; do
25770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25771 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25773 break 2
25775 done
25776 done
25777 IFS=$as_save_IFS
25780 esac
25782 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25783 if test -n "$COLLATEINDEX"; then
25784 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25785 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25786 else
25787 { echo "$as_me:$LINENO: result: no" >&5
25788 echo "${ECHO_T}no" >&6; }
25792 test -n "$COLLATEINDEX" && break
25793 done
25795 else
25796 for ac_prog in collateindex.pl
25798 # Extract the first word of "$ac_prog", so it can be a program name with args.
25799 set dummy $ac_prog; ac_word=$2
25800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25802 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25804 else
25805 case $COLLATEINDEX in
25806 [\\/]* | ?:[\\/]*)
25807 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25811 for as_dir in $PATH
25813 IFS=$as_save_IFS
25814 test -z "$as_dir" && as_dir=.
25815 for ac_exec_ext in '' $ac_executable_extensions; do
25816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25817 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25819 break 2
25821 done
25822 done
25823 IFS=$as_save_IFS
25826 esac
25828 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25829 if test -n "$COLLATEINDEX"; then
25830 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25831 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25832 else
25833 { echo "$as_me:$LINENO: result: no" >&5
25834 echo "${ECHO_T}no" >&6; }
25838 test -n "$COLLATEINDEX" && break
25839 done
25842 for ac_prog in sgmlspl
25844 # Extract the first word of "$ac_prog", so it can be a program name with args.
25845 set dummy $ac_prog; ac_word=$2
25846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25848 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25850 else
25851 if test -n "$SGMLSPL"; then
25852 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25853 else
25854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25855 for as_dir in $PATH
25857 IFS=$as_save_IFS
25858 test -z "$as_dir" && as_dir=.
25859 for ac_exec_ext in '' $ac_executable_extensions; do
25860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25861 ac_cv_prog_SGMLSPL="$ac_prog"
25862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25863 break 2
25865 done
25866 done
25867 IFS=$as_save_IFS
25871 SGMLSPL=$ac_cv_prog_SGMLSPL
25872 if test -n "$SGMLSPL"; then
25873 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25874 echo "${ECHO_T}$SGMLSPL" >&6; }
25875 else
25876 { echo "$as_me:$LINENO: result: no" >&5
25877 echo "${ECHO_T}no" >&6; }
25881 test -n "$SGMLSPL" && break
25882 done
25884 { echo "$as_me:$LINENO: checking for docbook2man" >&5
25885 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
25886 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889 if test -z "$DOCBOOK2MAN"; then
25890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25891 for as_dir in $PATH
25893 IFS=$as_save_IFS
25894 test -z "$as_dir" && as_dir=.
25895 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
25896 ac_path="$as_dir/$ac_prog"
25897 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
25898 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
25899 ac_cv_path_DOCBOOK2MAN=$ac_path
25900 break
25902 done
25903 done
25904 IFS=$as_save_IFS
25906 else
25907 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
25910 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
25911 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
25912 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
25916 # Thread testing
25918 # We have to run the thread test near the end so we have all our symbols
25919 # defined. Cross compiling throws a warning.
25921 if test "$enable_thread_safety_force" = yes; then
25922 if test "$PORTNAME" != "win32"
25923 then
25924 { echo "$as_me:$LINENO: WARNING:
25925 *** Skipping thread test program. --enable-thread-safety-force was used.
25926 *** Run the program in src/test/thread on the your machine and add proper
25927 *** locking function calls to your applications to guarantee thread safety.
25928 " >&5
25929 echo "$as_me: WARNING:
25930 *** Skipping thread test program. --enable-thread-safety-force was used.
25931 *** Run the program in src/test/thread on the your machine and add proper
25932 *** locking function calls to your applications to guarantee thread safety.
25933 " >&2;}
25934 else
25935 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25936 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25938 elif test "$enable_thread_safety" = yes; then
25939 if test "$PORTNAME" != "win32"
25940 then
25941 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25942 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25944 _CFLAGS="$CFLAGS"
25945 _LIBS="$LIBS"
25946 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25947 LIBS="$LIBS $PTHREAD_LIBS"
25948 if test "$cross_compiling" = yes; then
25949 { echo "$as_me:$LINENO: result: maybe" >&5
25950 echo "${ECHO_T}maybe" >&6; }
25951 { echo "$as_me:$LINENO: WARNING:
25952 *** Skipping thread test program because of cross-compile build.
25953 *** Run the program in src/test/thread on the target machine.
25954 " >&5
25955 echo "$as_me: WARNING:
25956 *** Skipping thread test program because of cross-compile build.
25957 *** Run the program in src/test/thread on the target machine.
25958 " >&2;}
25959 else
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h. */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include "$srcdir/src/test/thread/thread_test.c"
25967 _ACEOF
25968 rm -f conftest$ac_exeext
25969 if { (ac_try="$ac_link"
25970 case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25973 esac
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_link") 2>&5
25976 ac_status=$?
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979 { (case "(($ac_try" in
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981 *) ac_try_echo=$ac_try;;
25982 esac
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984 (eval "$ac_try") 2>&5
25985 ac_status=$?
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); }; }; then
25988 { echo "$as_me:$LINENO: result: yes" >&5
25989 echo "${ECHO_T}yes" >&6; }
25990 else
25991 echo "$as_me: program exited with status $ac_status" >&5
25992 echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25995 ( exit $ac_status )
25996 { echo "$as_me:$LINENO: result: no" >&5
25997 echo "${ECHO_T}no" >&6; }
25998 { { echo "$as_me:$LINENO: error: thread test program failed
25999 This platform is not thread-safe. Check the file 'config.log' for the
26000 exact reason.
26002 You can use the configure option --enable-thread-safety-force to force
26003 threads to be enabled. But you must then run the program in
26004 src/test/thread and add locking function calls to your applications to
26005 guarantee thread safety." >&5
26006 echo "$as_me: error: thread test program failed
26007 This platform is not thread-safe. Check the file 'config.log' for the
26008 exact reason.
26010 You can use the configure option --enable-thread-safety-force to force
26011 threads to be enabled. But you must then run the program in
26012 src/test/thread and add locking function calls to your applications to
26013 guarantee thread safety." >&2;}
26014 { (exit 1); exit 1; }; }
26016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26020 CFLAGS="$_CFLAGS"
26021 LIBS="$_LIBS"
26022 else
26023 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26024 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26028 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26029 # This is much easier than trying to filter LIBS to the minimum for each
26030 # executable. (Note that shared library links won't use this switch, though.)
26031 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26032 # libreadline; therefore we postpone testing it until we know what library
26033 # dependencies readline has. The test code will try to link with $LIBS.
26034 if test "$with_readline" = yes; then
26035 link_test_func=readline
26036 else
26037 link_test_func=exit
26039 if test "$PORTNAME" != "darwin"; then
26040 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26041 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26042 pgac_save_LDFLAGS=$LDFLAGS
26043 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26044 if test "$cross_compiling" = yes; then
26045 LDFLAGS="$pgac_save_LDFLAGS"
26046 { echo "$as_me:$LINENO: result: assuming no" >&5
26047 echo "${ECHO_T}assuming no" >&6; }
26048 else
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h. */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26057 main ()
26061 return 0;
26063 _ACEOF
26064 rm -f conftest$ac_exeext
26065 if { (ac_try="$ac_link"
26066 case "(($ac_try" in
26067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068 *) ac_try_echo=$ac_try;;
26069 esac
26070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26071 (eval "$ac_link") 2>&5
26072 ac_status=$?
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26075 { (case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26078 esac
26079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26080 (eval "$ac_try") 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 { echo "$as_me:$LINENO: result: yes" >&5
26085 echo "${ECHO_T}yes" >&6; }
26086 else
26087 echo "$as_me: program exited with status $ac_status" >&5
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26091 ( exit $ac_status )
26092 LDFLAGS="$pgac_save_LDFLAGS"
26093 { echo "$as_me:$LINENO: result: no" >&5
26094 echo "${ECHO_T}no" >&6; }
26096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26101 else
26102 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26103 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26104 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26105 pgac_save_LDFLAGS=$LDFLAGS
26106 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26107 if test "$cross_compiling" = yes; then
26108 LDFLAGS="$pgac_save_LDFLAGS"
26109 { echo "$as_me:$LINENO: result: assuming no" >&5
26110 echo "${ECHO_T}assuming no" >&6; }
26111 else
26112 cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h. */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26118 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26120 main ()
26124 return 0;
26126 _ACEOF
26127 rm -f conftest$ac_exeext
26128 if { (ac_try="$ac_link"
26129 case "(($ac_try" in
26130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131 *) ac_try_echo=$ac_try;;
26132 esac
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134 (eval "$ac_link") 2>&5
26135 ac_status=$?
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26138 { (case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26141 esac
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_try") 2>&5
26144 ac_status=$?
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); }; }; then
26147 { echo "$as_me:$LINENO: result: yes" >&5
26148 echo "${ECHO_T}yes" >&6; }
26149 else
26150 echo "$as_me: program exited with status $ac_status" >&5
26151 echo "$as_me: failed program was:" >&5
26152 sed 's/^/| /' conftest.$ac_ext >&5
26154 ( exit $ac_status )
26155 LDFLAGS="$pgac_save_LDFLAGS"
26156 { echo "$as_me:$LINENO: result: no" >&5
26157 echo "${ECHO_T}no" >&6; }
26159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26167 # Begin output steps
26169 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26170 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26171 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26172 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26173 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26174 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26176 # prepare build tree if outside source tree
26177 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26178 # Note 2: /bin/pwd might be better than shell's built-in at getting
26179 # a symlink-free name.
26180 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26181 vpath_build=no
26182 else
26183 vpath_build=yes
26184 if test "$no_create" != yes; then
26185 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26186 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26187 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26188 || { { echo "$as_me:$LINENO: error: failed" >&5
26189 echo "$as_me: error: failed" >&2;}
26190 { (exit 1); exit 1; }; }
26191 { echo "$as_me:$LINENO: result: done" >&5
26192 echo "${ECHO_T}done" >&6; }
26198 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26201 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}"
26204 if test "$PORTNAME" = "win32"; then
26205 ac_config_commands="$ac_config_commands check_win32_symlinks"
26209 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26212 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26215 cat >confcache <<\_ACEOF
26216 # This file is a shell script that caches the results of configure
26217 # tests run on this system so they can be shared between configure
26218 # scripts and configure runs, see configure's option --config-cache.
26219 # It is not useful on other systems. If it contains results you don't
26220 # want to keep, you may remove or edit it.
26222 # config.status only pays attention to the cache file if you give it
26223 # the --recheck option to rerun configure.
26225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26227 # following values.
26229 _ACEOF
26231 # The following way of writing the cache mishandles newlines in values,
26232 # but we know of no workaround that is simple, portable, and efficient.
26233 # So, we kill variables containing newlines.
26234 # Ultrix sh set writes to stderr and can't be redirected directly,
26235 # and sets the high bit in the cache file unless we assign to the vars.
26237 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26238 eval ac_val=\$$ac_var
26239 case $ac_val in #(
26240 *${as_nl}*)
26241 case $ac_var in #(
26242 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26243 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26244 esac
26245 case $ac_var in #(
26246 _ | IFS | as_nl) ;; #(
26247 *) $as_unset $ac_var ;;
26248 esac ;;
26249 esac
26250 done
26252 (set) 2>&1 |
26253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26254 *${as_nl}ac_space=\ *)
26255 # `set' does not quote correctly, so add quotes (double-quote
26256 # substitution turns \\\\ into \\, and sed turns \\ into \).
26257 sed -n \
26258 "s/'/'\\\\''/g;
26259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26260 ;; #(
26262 # `set' quotes correctly as required by POSIX, so do not add quotes.
26263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26265 esac |
26266 sort
26268 sed '
26269 /^ac_cv_env_/b end
26270 t clear
26271 :clear
26272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26273 t end
26274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26275 :end' >>confcache
26276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26277 if test -w "$cache_file"; then
26278 test "x$cache_file" != "x/dev/null" &&
26279 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26280 echo "$as_me: updating cache $cache_file" >&6;}
26281 cat confcache >$cache_file
26282 else
26283 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26284 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26287 rm -f confcache
26289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26290 # Let make expand exec_prefix.
26291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26293 DEFS=-DHAVE_CONFIG_H
26295 ac_libobjs=
26296 ac_ltlibobjs=
26297 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26298 # 1. Remove the extension, and $U if already installed.
26299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26300 ac_i=`echo "$ac_i" | sed "$ac_script"`
26301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26302 # will be set to the directory where LIBOBJS objects are built.
26303 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26304 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26305 done
26306 LIBOBJS=$ac_libobjs
26308 LTLIBOBJS=$ac_ltlibobjs
26312 : ${CONFIG_STATUS=./config.status}
26313 ac_clean_files_save=$ac_clean_files
26314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26317 cat >$CONFIG_STATUS <<_ACEOF
26318 #! $SHELL
26319 # Generated by $as_me.
26320 # Run this file to recreate the current configuration.
26321 # Compiler output produced by configure, useful for debugging
26322 # configure, is in config.log if it exists.
26324 debug=false
26325 ac_cs_recheck=false
26326 ac_cs_silent=false
26327 SHELL=\${CONFIG_SHELL-$SHELL}
26328 _ACEOF
26330 cat >>$CONFIG_STATUS <<\_ACEOF
26331 ## --------------------- ##
26332 ## M4sh Initialization. ##
26333 ## --------------------- ##
26335 # Be more Bourne compatible
26336 DUALCASE=1; export DUALCASE # for MKS sh
26337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26338 emulate sh
26339 NULLCMD=:
26340 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26341 # is contrary to our usage. Disable this feature.
26342 alias -g '${1+"$@"}'='"$@"'
26343 setopt NO_GLOB_SUBST
26344 else
26345 case `(set -o) 2>/dev/null` in
26346 *posix*) set -o posix ;;
26347 esac
26354 # PATH needs CR
26355 # Avoid depending upon Character Ranges.
26356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26359 as_cr_digits='0123456789'
26360 as_cr_alnum=$as_cr_Letters$as_cr_digits
26362 # The user is always right.
26363 if test "${PATH_SEPARATOR+set}" != set; then
26364 echo "#! /bin/sh" >conf$$.sh
26365 echo "exit 0" >>conf$$.sh
26366 chmod +x conf$$.sh
26367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26368 PATH_SEPARATOR=';'
26369 else
26370 PATH_SEPARATOR=:
26372 rm -f conf$$.sh
26375 # Support unset when possible.
26376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26377 as_unset=unset
26378 else
26379 as_unset=false
26383 # IFS
26384 # We need space, tab and new line, in precisely that order. Quoting is
26385 # there to prevent editors from complaining about space-tab.
26386 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26387 # splitting by setting IFS to empty value.)
26388 as_nl='
26390 IFS=" "" $as_nl"
26392 # Find who we are. Look in the path if we contain no directory separator.
26393 case $0 in
26394 *[\\/]* ) as_myself=$0 ;;
26395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26396 for as_dir in $PATH
26398 IFS=$as_save_IFS
26399 test -z "$as_dir" && as_dir=.
26400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26401 done
26402 IFS=$as_save_IFS
26405 esac
26406 # We did not find ourselves, most probably we were run as `sh COMMAND'
26407 # in which case we are not to be found in the path.
26408 if test "x$as_myself" = x; then
26409 as_myself=$0
26411 if test ! -f "$as_myself"; then
26412 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26413 { (exit 1); exit 1; }
26416 # Work around bugs in pre-3.0 UWIN ksh.
26417 for as_var in ENV MAIL MAILPATH
26418 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26419 done
26420 PS1='$ '
26421 PS2='> '
26422 PS4='+ '
26424 # NLS nuisances.
26425 for as_var in \
26426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26428 LC_TELEPHONE LC_TIME
26430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26431 eval $as_var=C; export $as_var
26432 else
26433 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26435 done
26437 # Required to use basename.
26438 if expr a : '\(a\)' >/dev/null 2>&1 &&
26439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26440 as_expr=expr
26441 else
26442 as_expr=false
26445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26446 as_basename=basename
26447 else
26448 as_basename=false
26452 # Name of the executable.
26453 as_me=`$as_basename -- "$0" ||
26454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26455 X"$0" : 'X\(//\)$' \| \
26456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26457 echo X/"$0" |
26458 sed '/^.*\/\([^/][^/]*\)\/*$/{
26459 s//\1/
26462 /^X\/\(\/\/\)$/{
26463 s//\1/
26466 /^X\/\(\/\).*/{
26467 s//\1/
26470 s/.*/./; q'`
26472 # CDPATH.
26473 $as_unset CDPATH
26477 as_lineno_1=$LINENO
26478 as_lineno_2=$LINENO
26479 test "x$as_lineno_1" != "x$as_lineno_2" &&
26480 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26483 # uniformly replaced by the line number. The first 'sed' inserts a
26484 # line-number line after each line using $LINENO; the second 'sed'
26485 # does the real work. The second script uses 'N' to pair each
26486 # line-number line with the line containing $LINENO, and appends
26487 # trailing '-' during substitution so that $LINENO is not a special
26488 # case at line end.
26489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26490 # scripts with optimization help from Paolo Bonzini. Blame Lee
26491 # E. McMahon (1931-1989) for sed's syntax. :-)
26492 sed -n '
26494 /[$]LINENO/=
26495 ' <$as_myself |
26496 sed '
26497 s/[$]LINENO.*/&-/
26498 t lineno
26500 :lineno
26502 :loop
26503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26504 t loop
26505 s/-\n.*//
26506 ' >$as_me.lineno &&
26507 chmod +x "$as_me.lineno" ||
26508 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26509 { (exit 1); exit 1; }; }
26511 # Don't try to exec as it changes $[0], causing all sort of problems
26512 # (the dirname of $[0] is not the place where we might find the
26513 # original and so on. Autoconf is especially sensitive to this).
26514 . "./$as_me.lineno"
26515 # Exit status is that of the last command.
26516 exit
26520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26521 as_dirname=dirname
26522 else
26523 as_dirname=false
26526 ECHO_C= ECHO_N= ECHO_T=
26527 case `echo -n x` in
26528 -n*)
26529 case `echo 'x\c'` in
26530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26531 *) ECHO_C='\c';;
26532 esac;;
26534 ECHO_N='-n';;
26535 esac
26537 if expr a : '\(a\)' >/dev/null 2>&1 &&
26538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26539 as_expr=expr
26540 else
26541 as_expr=false
26544 rm -f conf$$ conf$$.exe conf$$.file
26545 if test -d conf$$.dir; then
26546 rm -f conf$$.dir/conf$$.file
26547 else
26548 rm -f conf$$.dir
26549 mkdir conf$$.dir
26551 echo >conf$$.file
26552 if ln -s conf$$.file conf$$ 2>/dev/null; then
26553 as_ln_s='ln -s'
26554 # ... but there are two gotchas:
26555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26557 # In both cases, we have to default to `cp -p'.
26558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26559 as_ln_s='cp -p'
26560 elif ln conf$$.file conf$$ 2>/dev/null; then
26561 as_ln_s=ln
26562 else
26563 as_ln_s='cp -p'
26565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26566 rmdir conf$$.dir 2>/dev/null
26568 if mkdir -p . 2>/dev/null; then
26569 as_mkdir_p=:
26570 else
26571 test -d ./-p && rmdir ./-p
26572 as_mkdir_p=false
26575 if test -x / >/dev/null 2>&1; then
26576 as_test_x='test -x'
26577 else
26578 if ls -dL / >/dev/null 2>&1; then
26579 as_ls_L_option=L
26580 else
26581 as_ls_L_option=
26583 as_test_x='
26584 eval sh -c '\''
26585 if test -d "$1"; then
26586 test -d "$1/.";
26587 else
26588 case $1 in
26589 -*)set "./$1";;
26590 esac;
26591 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26592 ???[sx]*):;;*)false;;esac;fi
26593 '\'' sh
26596 as_executable_p=$as_test_x
26598 # Sed expression to map a string onto a valid CPP name.
26599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26601 # Sed expression to map a string onto a valid variable name.
26602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26605 exec 6>&1
26607 # Save the log message, to keep $[0] and so on meaningful, and to
26608 # report actual input values of CONFIG_FILES etc. instead of their
26609 # values after options handling.
26610 ac_log="
26611 This file was extended by PostgreSQL $as_me 8.4devel, which was
26612 generated by GNU Autoconf 2.61. Invocation command line was
26614 CONFIG_FILES = $CONFIG_FILES
26615 CONFIG_HEADERS = $CONFIG_HEADERS
26616 CONFIG_LINKS = $CONFIG_LINKS
26617 CONFIG_COMMANDS = $CONFIG_COMMANDS
26618 $ $0 $@
26620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26623 _ACEOF
26625 cat >>$CONFIG_STATUS <<_ACEOF
26626 # Files that config.status was made for.
26627 config_files="$ac_config_files"
26628 config_headers="$ac_config_headers"
26629 config_links="$ac_config_links"
26630 config_commands="$ac_config_commands"
26632 _ACEOF
26634 cat >>$CONFIG_STATUS <<\_ACEOF
26635 ac_cs_usage="\
26636 \`$as_me' instantiates files from templates according to the
26637 current configuration.
26639 Usage: $0 [OPTIONS] [FILE]...
26641 -h, --help print this help, then exit
26642 -V, --version print version number and configuration settings, then exit
26643 -q, --quiet do not print progress messages
26644 -d, --debug don't remove temporary files
26645 --recheck update $as_me by reconfiguring in the same conditions
26646 --file=FILE[:TEMPLATE]
26647 instantiate the configuration file FILE
26648 --header=FILE[:TEMPLATE]
26649 instantiate the configuration header FILE
26651 Configuration files:
26652 $config_files
26654 Configuration headers:
26655 $config_headers
26657 Configuration links:
26658 $config_links
26660 Configuration commands:
26661 $config_commands
26663 Report bugs to <bug-autoconf@gnu.org>."
26665 _ACEOF
26666 cat >>$CONFIG_STATUS <<_ACEOF
26667 ac_cs_version="\\
26668 PostgreSQL config.status 8.4devel
26669 configured by $0, generated by GNU Autoconf 2.61,
26670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26672 Copyright (C) 2006 Free Software Foundation, Inc.
26673 This config.status script is free software; the Free Software Foundation
26674 gives unlimited permission to copy, distribute and modify it."
26676 ac_pwd='$ac_pwd'
26677 srcdir='$srcdir'
26678 _ACEOF
26680 cat >>$CONFIG_STATUS <<\_ACEOF
26681 # If no file are specified by the user, then we need to provide default
26682 # value. By we need to know if files were specified by the user.
26683 ac_need_defaults=:
26684 while test $# != 0
26686 case $1 in
26687 --*=*)
26688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26690 ac_shift=:
26693 ac_option=$1
26694 ac_optarg=$2
26695 ac_shift=shift
26697 esac
26699 case $ac_option in
26700 # Handling of the options.
26701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26702 ac_cs_recheck=: ;;
26703 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26704 echo "$ac_cs_version"; exit ;;
26705 --debug | --debu | --deb | --de | --d | -d )
26706 debug=: ;;
26707 --file | --fil | --fi | --f )
26708 $ac_shift
26709 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26710 ac_need_defaults=false;;
26711 --header | --heade | --head | --hea )
26712 $ac_shift
26713 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26714 ac_need_defaults=false;;
26715 --he | --h)
26716 # Conflict between --help and --header
26717 { echo "$as_me: error: ambiguous option: $1
26718 Try \`$0 --help' for more information." >&2
26719 { (exit 1); exit 1; }; };;
26720 --help | --hel | -h )
26721 echo "$ac_cs_usage"; exit ;;
26722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26724 ac_cs_silent=: ;;
26726 # This is an error.
26727 -*) { echo "$as_me: error: unrecognized option: $1
26728 Try \`$0 --help' for more information." >&2
26729 { (exit 1); exit 1; }; } ;;
26731 *) ac_config_targets="$ac_config_targets $1"
26732 ac_need_defaults=false ;;
26734 esac
26735 shift
26736 done
26738 ac_configure_extra_args=
26740 if $ac_cs_silent; then
26741 exec 6>/dev/null
26742 ac_configure_extra_args="$ac_configure_extra_args --silent"
26745 _ACEOF
26746 cat >>$CONFIG_STATUS <<_ACEOF
26747 if \$ac_cs_recheck; then
26748 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26749 CONFIG_SHELL=$SHELL
26750 export CONFIG_SHELL
26751 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26754 _ACEOF
26755 cat >>$CONFIG_STATUS <<\_ACEOF
26756 exec 5>>config.log
26758 echo
26759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26760 ## Running $as_me. ##
26761 _ASBOX
26762 echo "$ac_log"
26763 } >&5
26765 _ACEOF
26766 cat >>$CONFIG_STATUS <<_ACEOF
26767 _ACEOF
26769 cat >>$CONFIG_STATUS <<\_ACEOF
26771 # Handling of arguments.
26772 for ac_config_target in $ac_config_targets
26774 case $ac_config_target in
26775 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26776 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26777 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26778 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26779 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26780 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26781 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26782 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26783 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26784 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26785 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26786 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26790 { (exit 1); exit 1; }; };;
26791 esac
26792 done
26795 # If the user did not use the arguments to specify the items to instantiate,
26796 # then the envvar interface is used. Set only those that are not.
26797 # We use the long form for the default assignment because of an extremely
26798 # bizarre bug on SunOS 4.1.3.
26799 if $ac_need_defaults; then
26800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26802 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26806 # Have a temporary directory for convenience. Make it in the build tree
26807 # simply because there is no reason against having it here, and in addition,
26808 # creating and moving files from /tmp can sometimes cause problems.
26809 # Hook for its removal unless debugging.
26810 # Note that there is a small window in which the directory will not be cleaned:
26811 # after its creation but before its name has been assigned to `$tmp'.
26812 $debug ||
26814 tmp=
26815 trap 'exit_status=$?
26816 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26818 trap '{ (exit 1); exit 1; }' 1 2 13 15
26820 # Create a (secure) tmp directory for tmp files.
26823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26824 test -n "$tmp" && test -d "$tmp"
26825 } ||
26827 tmp=./conf$$-$RANDOM
26828 (umask 077 && mkdir "$tmp")
26829 } ||
26831 echo "$me: cannot create a temporary directory in ." >&2
26832 { (exit 1); exit 1; }
26836 # Set up the sed scripts for CONFIG_FILES section.
26839 # No need to generate the scripts if there are no CONFIG_FILES.
26840 # This happens for instance when ./config.status config.h
26841 if test -n "$CONFIG_FILES"; then
26843 _ACEOF
26847 ac_delim='%!_!# '
26848 for ac_last_try in false false false false false :; do
26849 cat >conf$$subs.sed <<_ACEOF
26850 SHELL!$SHELL$ac_delim
26851 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26852 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26853 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26854 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26855 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26856 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26857 exec_prefix!$exec_prefix$ac_delim
26858 prefix!$prefix$ac_delim
26859 program_transform_name!$program_transform_name$ac_delim
26860 bindir!$bindir$ac_delim
26861 sbindir!$sbindir$ac_delim
26862 libexecdir!$libexecdir$ac_delim
26863 datarootdir!$datarootdir$ac_delim
26864 datadir!$datadir$ac_delim
26865 sysconfdir!$sysconfdir$ac_delim
26866 sharedstatedir!$sharedstatedir$ac_delim
26867 localstatedir!$localstatedir$ac_delim
26868 includedir!$includedir$ac_delim
26869 oldincludedir!$oldincludedir$ac_delim
26870 docdir!$docdir$ac_delim
26871 infodir!$infodir$ac_delim
26872 htmldir!$htmldir$ac_delim
26873 dvidir!$dvidir$ac_delim
26874 pdfdir!$pdfdir$ac_delim
26875 psdir!$psdir$ac_delim
26876 libdir!$libdir$ac_delim
26877 localedir!$localedir$ac_delim
26878 mandir!$mandir$ac_delim
26879 DEFS!$DEFS$ac_delim
26880 ECHO_C!$ECHO_C$ac_delim
26881 ECHO_N!$ECHO_N$ac_delim
26882 ECHO_T!$ECHO_T$ac_delim
26883 LIBS!$LIBS$ac_delim
26884 build_alias!$build_alias$ac_delim
26885 host_alias!$host_alias$ac_delim
26886 target_alias!$target_alias$ac_delim
26887 configure_args!$configure_args$ac_delim
26888 build!$build$ac_delim
26889 build_cpu!$build_cpu$ac_delim
26890 build_vendor!$build_vendor$ac_delim
26891 build_os!$build_os$ac_delim
26892 host!$host$ac_delim
26893 host_cpu!$host_cpu$ac_delim
26894 host_vendor!$host_vendor$ac_delim
26895 host_os!$host_os$ac_delim
26896 PORTNAME!$PORTNAME$ac_delim
26897 enable_nls!$enable_nls$ac_delim
26898 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26899 default_port!$default_port$ac_delim
26900 enable_shared!$enable_shared$ac_delim
26901 enable_rpath!$enable_rpath$ac_delim
26902 enable_debug!$enable_debug$ac_delim
26903 enable_profiling!$enable_profiling$ac_delim
26904 GCOV!$GCOV$ac_delim
26905 LCOV!$LCOV$ac_delim
26906 GENHTML!$GENHTML$ac_delim
26907 enable_coverage!$enable_coverage$ac_delim
26908 DTRACE!$DTRACE$ac_delim
26909 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26910 enable_dtrace!$enable_dtrace$ac_delim
26911 CC!$CC$ac_delim
26912 CFLAGS!$CFLAGS$ac_delim
26913 LDFLAGS!$LDFLAGS$ac_delim
26914 CPPFLAGS!$CPPFLAGS$ac_delim
26915 ac_ct_CC!$ac_ct_CC$ac_delim
26916 EXEEXT!$EXEEXT$ac_delim
26917 OBJEXT!$OBJEXT$ac_delim
26918 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26919 CPP!$CPP$ac_delim
26920 GCC!$GCC$ac_delim
26921 TAS!$TAS$ac_delim
26922 autodepend!$autodepend$ac_delim
26923 INCLUDES!$INCLUDES$ac_delim
26924 enable_thread_safety!$enable_thread_safety$ac_delim
26925 with_tcl!$with_tcl$ac_delim
26926 with_perl!$with_perl$ac_delim
26927 with_python!$with_python$ac_delim
26928 with_gssapi!$with_gssapi$ac_delim
26929 with_krb5!$with_krb5$ac_delim
26930 krb_srvtab!$krb_srvtab$ac_delim
26931 with_pam!$with_pam$ac_delim
26932 with_ldap!$with_ldap$ac_delim
26933 with_bonjour!$with_bonjour$ac_delim
26934 with_openssl!$with_openssl$ac_delim
26935 with_ossp_uuid!$with_ossp_uuid$ac_delim
26936 XML2_CONFIG!$XML2_CONFIG$ac_delim
26937 with_libxml!$with_libxml$ac_delim
26938 with_libxslt!$with_libxslt$ac_delim
26939 with_system_tzdata!$with_system_tzdata$ac_delim
26940 with_zlib!$with_zlib$ac_delim
26941 GREP!$GREP$ac_delim
26942 EGREP!$EGREP$ac_delim
26943 ELF_SYS!$ELF_SYS$ac_delim
26944 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26945 LD!$LD$ac_delim
26946 with_gnu_ld!$with_gnu_ld$ac_delim
26947 _ACEOF
26949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26950 break
26951 elif $ac_last_try; then
26952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26954 { (exit 1); exit 1; }; }
26955 else
26956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26958 done
26960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26961 if test -n "$ac_eof"; then
26962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26963 ac_eof=`expr $ac_eof + 1`
26966 cat >>$CONFIG_STATUS <<_ACEOF
26967 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26969 _ACEOF
26970 sed '
26971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26972 s/^/s,@/; s/!/@,|#_!!_#|/
26975 s/'"$ac_delim"'$/,g/; t
26976 s/$/\\/; p
26977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26978 ' >>$CONFIG_STATUS <conf$$subs.sed
26979 rm -f conf$$subs.sed
26980 cat >>$CONFIG_STATUS <<_ACEOF
26981 CEOF$ac_eof
26982 _ACEOF
26985 ac_delim='%!_!# '
26986 for ac_last_try in false false false false false :; do
26987 cat >conf$$subs.sed <<_ACEOF
26988 ld_R_works!$ld_R_works$ac_delim
26989 RANLIB!$RANLIB$ac_delim
26990 STRIP!$STRIP$ac_delim
26991 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26992 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26993 TAR!$TAR$ac_delim
26994 LN_S!$LN_S$ac_delim
26995 AWK!$AWK$ac_delim
26996 BISON!$BISON$ac_delim
26997 BISONFLAGS!$BISONFLAGS$ac_delim
26998 FLEX!$FLEX$ac_delim
26999 FLEXFLAGS!$FLEXFLAGS$ac_delim
27000 PERL!$PERL$ac_delim
27001 perl_archlibexp!$perl_archlibexp$ac_delim
27002 perl_privlibexp!$perl_privlibexp$ac_delim
27003 perl_useshrplib!$perl_useshrplib$ac_delim
27004 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27005 PYTHON!$PYTHON$ac_delim
27006 python_version!$python_version$ac_delim
27007 python_configdir!$python_configdir$ac_delim
27008 python_includespec!$python_includespec$ac_delim
27009 python_libdir!$python_libdir$ac_delim
27010 python_libspec!$python_libspec$ac_delim
27011 python_additional_libs!$python_additional_libs$ac_delim
27012 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27013 HAVE_IPV6!$HAVE_IPV6$ac_delim
27014 LIBOBJS!$LIBOBJS$ac_delim
27015 acx_pthread_config!$acx_pthread_config$ac_delim
27016 PTHREAD_CC!$PTHREAD_CC$ac_delim
27017 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27018 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27019 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27020 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27021 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27022 MSGFMT!$MSGFMT$ac_delim
27023 MSGMERGE!$MSGMERGE$ac_delim
27024 XGETTEXT!$XGETTEXT$ac_delim
27025 TCLSH!$TCLSH$ac_delim
27026 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27027 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27028 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27029 TCL_LIBS!$TCL_LIBS$ac_delim
27030 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27031 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27032 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27033 NSGMLS!$NSGMLS$ac_delim
27034 JADE!$JADE$ac_delim
27035 have_docbook!$have_docbook$ac_delim
27036 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27037 COLLATEINDEX!$COLLATEINDEX$ac_delim
27038 SGMLSPL!$SGMLSPL$ac_delim
27039 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27040 vpath_build!$vpath_build$ac_delim
27041 LTLIBOBJS!$LTLIBOBJS$ac_delim
27042 _ACEOF
27044 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
27045 break
27046 elif $ac_last_try; then
27047 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27048 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27049 { (exit 1); exit 1; }; }
27050 else
27051 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27053 done
27055 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27056 if test -n "$ac_eof"; then
27057 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27058 ac_eof=`expr $ac_eof + 1`
27061 cat >>$CONFIG_STATUS <<_ACEOF
27062 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27064 _ACEOF
27065 sed '
27066 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27067 s/^/s,@/; s/!/@,|#_!!_#|/
27070 s/'"$ac_delim"'$/,g/; t
27071 s/$/\\/; p
27072 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27073 ' >>$CONFIG_STATUS <conf$$subs.sed
27074 rm -f conf$$subs.sed
27075 cat >>$CONFIG_STATUS <<_ACEOF
27076 :end
27077 s/|#_!!_#|//g
27078 CEOF$ac_eof
27079 _ACEOF
27082 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27083 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27084 # trailing colons and then remove the whole line if VPATH becomes empty
27085 # (actually we leave an empty line to preserve line numbers).
27086 if test "x$srcdir" = x.; then
27087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27088 s/:*\$(srcdir):*/:/
27089 s/:*\${srcdir}:*/:/
27090 s/:*@srcdir@:*/:/
27091 s/^\([^=]*=[ ]*\):*/\1/
27092 s/:*$//
27093 s/^[^=]*=[ ]*$//
27097 cat >>$CONFIG_STATUS <<\_ACEOF
27098 fi # test -n "$CONFIG_FILES"
27101 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27103 case $ac_tag in
27104 :[FHLC]) ac_mode=$ac_tag; continue;;
27105 esac
27106 case $ac_mode$ac_tag in
27107 :[FHL]*:*);;
27108 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27109 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27110 { (exit 1); exit 1; }; };;
27111 :[FH]-) ac_tag=-:-;;
27112 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27113 esac
27114 ac_save_IFS=$IFS
27115 IFS=:
27116 set x $ac_tag
27117 IFS=$ac_save_IFS
27118 shift
27119 ac_file=$1
27120 shift
27122 case $ac_mode in
27123 :L) ac_source=$1;;
27124 :[FH])
27125 ac_file_inputs=
27126 for ac_f
27128 case $ac_f in
27129 -) ac_f="$tmp/stdin";;
27130 *) # Look for the file first in the build tree, then in the source tree
27131 # (if the path is not absolute). The absolute path cannot be DOS-style,
27132 # because $ac_f cannot contain `:'.
27133 test -f "$ac_f" ||
27134 case $ac_f in
27135 [\\/$]*) false;;
27136 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27137 esac ||
27138 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27139 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27140 { (exit 1); exit 1; }; };;
27141 esac
27142 ac_file_inputs="$ac_file_inputs $ac_f"
27143 done
27145 # Let's still pretend it is `configure' which instantiates (i.e., don't
27146 # use $as_me), people would be surprised to read:
27147 # /* config.h. Generated by config.status. */
27148 configure_input="Generated from "`IFS=:
27149 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27150 if test x"$ac_file" != x-; then
27151 configure_input="$ac_file. $configure_input"
27152 { echo "$as_me:$LINENO: creating $ac_file" >&5
27153 echo "$as_me: creating $ac_file" >&6;}
27156 case $ac_tag in
27157 *:-:* | *:-) cat >"$tmp/stdin";;
27158 esac
27160 esac
27162 ac_dir=`$as_dirname -- "$ac_file" ||
27163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27164 X"$ac_file" : 'X\(//\)[^/]' \| \
27165 X"$ac_file" : 'X\(//\)$' \| \
27166 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27167 echo X"$ac_file" |
27168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27169 s//\1/
27172 /^X\(\/\/\)[^/].*/{
27173 s//\1/
27176 /^X\(\/\/\)$/{
27177 s//\1/
27180 /^X\(\/\).*/{
27181 s//\1/
27184 s/.*/./; q'`
27185 { as_dir="$ac_dir"
27186 case $as_dir in #(
27187 -*) as_dir=./$as_dir;;
27188 esac
27189 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27190 as_dirs=
27191 while :; do
27192 case $as_dir in #(
27193 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27194 *) as_qdir=$as_dir;;
27195 esac
27196 as_dirs="'$as_qdir' $as_dirs"
27197 as_dir=`$as_dirname -- "$as_dir" ||
27198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27199 X"$as_dir" : 'X\(//\)[^/]' \| \
27200 X"$as_dir" : 'X\(//\)$' \| \
27201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27202 echo X"$as_dir" |
27203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27204 s//\1/
27207 /^X\(\/\/\)[^/].*/{
27208 s//\1/
27211 /^X\(\/\/\)$/{
27212 s//\1/
27215 /^X\(\/\).*/{
27216 s//\1/
27219 s/.*/./; q'`
27220 test -d "$as_dir" && break
27221 done
27222 test -z "$as_dirs" || eval "mkdir $as_dirs"
27223 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27224 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27225 { (exit 1); exit 1; }; }; }
27226 ac_builddir=.
27228 case "$ac_dir" in
27229 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27231 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27232 # A ".." for each directory in $ac_dir_suffix.
27233 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27234 case $ac_top_builddir_sub in
27235 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27236 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27237 esac ;;
27238 esac
27239 ac_abs_top_builddir=$ac_pwd
27240 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27241 # for backward compatibility:
27242 ac_top_builddir=$ac_top_build_prefix
27244 case $srcdir in
27245 .) # We are building in place.
27246 ac_srcdir=.
27247 ac_top_srcdir=$ac_top_builddir_sub
27248 ac_abs_top_srcdir=$ac_pwd ;;
27249 [\\/]* | ?:[\\/]* ) # Absolute name.
27250 ac_srcdir=$srcdir$ac_dir_suffix;
27251 ac_top_srcdir=$srcdir
27252 ac_abs_top_srcdir=$srcdir ;;
27253 *) # Relative name.
27254 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27255 ac_top_srcdir=$ac_top_build_prefix$srcdir
27256 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27257 esac
27258 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27261 case $ac_mode in
27264 # CONFIG_FILE
27267 _ACEOF
27269 cat >>$CONFIG_STATUS <<\_ACEOF
27270 # If the template does not know about datarootdir, expand it.
27271 # FIXME: This hack should be removed a few years after 2.60.
27272 ac_datarootdir_hack=; ac_datarootdir_seen=
27274 case `sed -n '/datarootdir/ {
27278 /@datadir@/p
27279 /@docdir@/p
27280 /@infodir@/p
27281 /@localedir@/p
27282 /@mandir@/p
27283 ' $ac_file_inputs` in
27284 *datarootdir*) ac_datarootdir_seen=yes;;
27285 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27286 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27287 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27288 _ACEOF
27289 cat >>$CONFIG_STATUS <<_ACEOF
27290 ac_datarootdir_hack='
27291 s&@datadir@&$datadir&g
27292 s&@docdir@&$docdir&g
27293 s&@infodir@&$infodir&g
27294 s&@localedir@&$localedir&g
27295 s&@mandir@&$mandir&g
27296 s&\\\${datarootdir}&$datarootdir&g' ;;
27297 esac
27298 _ACEOF
27300 # Neutralize VPATH when `$srcdir' = `.'.
27301 # Shell code in configure.ac might set extrasub.
27302 # FIXME: do we really want to maintain this feature?
27303 cat >>$CONFIG_STATUS <<_ACEOF
27304 sed "$ac_vpsub
27305 $extrasub
27306 _ACEOF
27307 cat >>$CONFIG_STATUS <<\_ACEOF
27309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27310 s&@configure_input@&$configure_input&;t t
27311 s&@top_builddir@&$ac_top_builddir_sub&;t t
27312 s&@srcdir@&$ac_srcdir&;t t
27313 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27314 s&@top_srcdir@&$ac_top_srcdir&;t t
27315 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27316 s&@builddir@&$ac_builddir&;t t
27317 s&@abs_builddir@&$ac_abs_builddir&;t t
27318 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27319 $ac_datarootdir_hack
27320 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27322 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27323 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27325 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27326 which seems to be undefined. Please make sure it is defined." >&5
27327 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27328 which seems to be undefined. Please make sure it is defined." >&2;}
27330 rm -f "$tmp/stdin"
27331 case $ac_file in
27332 -) cat "$tmp/out"; rm -f "$tmp/out";;
27333 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27334 esac
27338 # CONFIG_HEADER
27340 _ACEOF
27342 # Transform confdefs.h into a sed script `conftest.defines', that
27343 # substitutes the proper values into config.h.in to produce config.h.
27344 rm -f conftest.defines conftest.tail
27345 # First, append a space to every undef/define line, to ease matching.
27346 echo 's/$/ /' >conftest.defines
27347 # Then, protect against being on the right side of a sed subst, or in
27348 # an unquoted here document, in config.status. If some macros were
27349 # called several times there might be several #defines for the same
27350 # symbol, which is useless. But do not sort them, since the last
27351 # AC_DEFINE must be honored.
27352 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27353 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27354 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27355 # PARAMS is the parameter list in the macro definition--in most cases, it's
27356 # just an empty string.
27357 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27358 ac_dB='\\)[ (].*,\\1define\\2'
27359 ac_dC=' '
27360 ac_dD=' ,'
27362 uniq confdefs.h |
27363 sed -n '
27364 t rset
27365 :rset
27366 s/^[ ]*#[ ]*define[ ][ ]*//
27367 t ok
27370 s/[\\&,]/\\&/g
27371 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27372 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27373 ' >>conftest.defines
27375 # Remove the space that was appended to ease matching.
27376 # Then replace #undef with comments. This is necessary, for
27377 # example, in the case of _POSIX_SOURCE, which is predefined and required
27378 # on some systems where configure will not decide to define it.
27379 # (The regexp can be short, since the line contains either #define or #undef.)
27380 echo 's/ $//
27381 s,^[ #]*u.*,/* & */,' >>conftest.defines
27383 # Break up conftest.defines:
27384 ac_max_sed_lines=50
27386 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27387 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27388 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27389 # et cetera.
27390 ac_in='$ac_file_inputs'
27391 ac_out='"$tmp/out1"'
27392 ac_nxt='"$tmp/out2"'
27394 while :
27396 # Write a here document:
27397 cat >>$CONFIG_STATUS <<_ACEOF
27398 # First, check the format of the line:
27399 cat >"\$tmp/defines.sed" <<\\CEOF
27400 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27401 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27403 :def
27404 _ACEOF
27405 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27406 echo 'CEOF
27407 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27408 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27409 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27410 grep . conftest.tail >/dev/null || break
27411 rm -f conftest.defines
27412 mv conftest.tail conftest.defines
27413 done
27414 rm -f conftest.defines conftest.tail
27416 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27417 cat >>$CONFIG_STATUS <<\_ACEOF
27418 if test x"$ac_file" != x-; then
27419 echo "/* $configure_input */" >"$tmp/config.h"
27420 cat "$ac_result" >>"$tmp/config.h"
27421 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27422 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27423 echo "$as_me: $ac_file is unchanged" >&6;}
27424 else
27425 rm -f $ac_file
27426 mv "$tmp/config.h" $ac_file
27428 else
27429 echo "/* $configure_input */"
27430 cat "$ac_result"
27432 rm -f "$tmp/out12"
27436 # CONFIG_LINK
27439 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27440 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27442 if test ! -r "$srcdir/$ac_source"; then
27443 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27444 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27445 { (exit 1); exit 1; }; }
27447 rm -f "$ac_file"
27449 # Try a relative symlink, then a hard link, then a copy.
27450 case $srcdir in
27451 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27452 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27453 esac
27454 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27455 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27456 cp -p "$srcdir/$ac_source" "$ac_file" ||
27457 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27458 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27459 { (exit 1); exit 1; }; }
27461 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27462 echo "$as_me: executing $ac_file commands" >&6;}
27464 esac
27467 case $ac_file$ac_mode in
27468 "check_win32_symlinks":C)
27469 # Links sometimes fail undetected on Mingw -
27470 # so here we detect it and warn the user
27471 for FILE in $CONFIG_LINKS
27473 # test -e works for symlinks in the MinGW console
27474 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27475 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27476 done
27478 "src/include/pg_config.h":H)
27479 # Update timestamp for pg_config.h (see Makefile.global)
27480 echo >src/include/stamp-h
27483 esac
27484 done # for ac_tag
27487 { (exit 0); exit 0; }
27488 _ACEOF
27489 chmod +x $CONFIG_STATUS
27490 ac_clean_files=$ac_clean_files_save
27493 # configure is writing to config.log, and then calls config.status.
27494 # config.status does its own redirection, appending to config.log.
27495 # Unfortunately, on DOS this fails, as config.log is still kept open
27496 # by configure, so config.status won't be able to write to it; its
27497 # output is simply discarded. So we exec the FD to /dev/null,
27498 # effectively closing config.log, so it can be properly (re)opened and
27499 # appended to by config.status. When coming back to configure, we
27500 # need to make the FD available again.
27501 if test "$no_create" != yes; then
27502 ac_cs_success=:
27503 ac_config_status_args=
27504 test "$silent" = yes &&
27505 ac_config_status_args="$ac_config_status_args --quiet"
27506 exec 5>/dev/null
27507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27508 exec 5>>config.log
27509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27510 # would make configure fail if this is the last instruction.
27511 $ac_cs_success || { (exit 1); exit 1; }
27515 # Warn about unknown options
27516 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27517 for pgac_arg in $pgac_args with_gnu_ld; do
27518 if test "$pgac_var" = "$pgac_arg"; then
27519 continue 2
27521 done
27522 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27523 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27524 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27525 done