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
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
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
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
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
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
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
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`
566 ac_default_prefix
=/usr
/local
568 ac_config_libobj_dir
=.
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
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
736 python_additional_libs
767 ac_precious_vars
='build_alias
780 # Initialize some variables set by options.
782 ac_init_version
=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name
=s
,x
,x
,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir
='${exec_prefix}/bin'
807 sbindir
='${exec_prefix}/sbin'
808 libexecdir
='${exec_prefix}/libexec'
809 datarootdir
='${prefix}/share'
810 datadir
='${datarootdir}'
811 sysconfdir
='${prefix}/etc'
812 sharedstatedir
='${prefix}/com'
813 localstatedir
='${prefix}/var'
814 includedir
='${prefix}/include'
815 oldincludedir
='/usr/include'
816 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir
='${datarootdir}/info'
822 libdir
='${exec_prefix}/lib'
823 localedir
='${datarootdir}/locale'
824 mandir
='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\
$ac_option
838 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
850 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
853 -build |
--build |
--buil |
--bui |
--bu)
854 ac_prev
=build_alias
;;
855 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
856 build_alias
=$ac_optarg ;;
858 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
859 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
860 ac_prev
=cache_file
;;
861 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
862 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
863 cache_file
=$ac_optarg ;;
866 cache_file
=config.cache
;;
868 -datadir |
--datadir |
--datadi |
--datad)
870 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
871 datadir
=$ac_optarg ;;
873 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
874 |
--dataroo |
--dataro |
--datar)
875 ac_prev
=datarootdir
;;
876 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
877 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
878 datarootdir
=$ac_optarg ;;
880 -disable-* |
--disable-*)
881 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_
$ac_feature=no
;;
889 -docdir |
--docdir |
--docdi |
--doc |
--do)
891 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
894 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
896 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
899 -enable-* |
--enable-*)
900 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_
$ac_feature=\
$ac_optarg ;;
908 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
909 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
910 |
--exec |
--exe |
--ex)
911 ac_prev
=exec_prefix
;;
912 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
913 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
914 |
--exec=* |
--exe=* |
--ex=*)
915 exec_prefix
=$ac_optarg ;;
917 -gas |
--gas |
--ga |
--g)
918 # Obsolete; use --with-gas.
921 -help |
--help |
--hel |
--he |
-h)
923 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
924 ac_init_help
=recursive
;;
925 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
926 ac_init_help
=short
;;
928 -host |
--host |
--hos |
--ho)
929 ac_prev
=host_alias
;;
930 -host=* |
--host=* |
--hos=* |
--ho=*)
931 host_alias
=$ac_optarg ;;
933 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
935 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
937 htmldir
=$ac_optarg ;;
939 -includedir |
--includedir |
--includedi |
--included |
--include \
940 |
--includ |
--inclu |
--incl |
--inc)
941 ac_prev
=includedir
;;
942 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
943 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
944 includedir
=$ac_optarg ;;
946 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
948 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
949 infodir
=$ac_optarg ;;
951 -libdir |
--libdir |
--libdi |
--libd)
953 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
956 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
957 |
--libexe |
--libex |
--libe)
958 ac_prev
=libexecdir
;;
959 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
960 |
--libexe=* |
--libex=* |
--libe=*)
961 libexecdir
=$ac_optarg ;;
963 -localedir |
--localedir |
--localedi |
--localed |
--locale)
965 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
966 localedir
=$ac_optarg ;;
968 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
969 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
970 ac_prev
=localstatedir
;;
971 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
972 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
973 localstatedir
=$ac_optarg ;;
975 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
977 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
981 # Obsolete; use --without-fp.
984 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
985 |
--no-cr |
--no-c |
-n)
988 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
989 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
992 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
993 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
994 |
--oldin |
--oldi |
--old |
--ol |
--o)
995 ac_prev
=oldincludedir
;;
996 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
997 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
998 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
999 oldincludedir
=$ac_optarg ;;
1001 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1003 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1004 prefix
=$ac_optarg ;;
1006 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1007 |
--program-pre |
--program-pr |
--program-p)
1008 ac_prev
=program_prefix
;;
1009 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1010 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1011 program_prefix
=$ac_optarg ;;
1013 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1014 |
--program-suf |
--program-su |
--program-s)
1015 ac_prev
=program_suffix
;;
1016 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1017 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1018 program_suffix
=$ac_optarg ;;
1020 -program-transform-name |
--program-transform-name \
1021 |
--program-transform-nam |
--program-transform-na \
1022 |
--program-transform-n |
--program-transform- \
1023 |
--program-transform |
--program-transfor \
1024 |
--program-transfo |
--program-transf \
1025 |
--program-trans |
--program-tran \
1026 |
--progr-tra |
--program-tr |
--program-t)
1027 ac_prev
=program_transform_name
;;
1028 -program-transform-name=* |
--program-transform-name=* \
1029 |
--program-transform-nam=* |
--program-transform-na=* \
1030 |
--program-transform-n=* |
--program-transform-=* \
1031 |
--program-transform=* |
--program-transfor=* \
1032 |
--program-transfo=* |
--program-transf=* \
1033 |
--program-trans=* |
--program-tran=* \
1034 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1035 program_transform_name
=$ac_optarg ;;
1037 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1039 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1040 pdfdir
=$ac_optarg ;;
1042 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1044 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1047 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1048 |
-silent |
--silent |
--silen |
--sile |
--sil)
1051 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1053 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1055 sbindir
=$ac_optarg ;;
1057 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1058 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1059 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1061 ac_prev
=sharedstatedir
;;
1062 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1063 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1064 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1066 sharedstatedir
=$ac_optarg ;;
1068 -site |
--site |
--sit)
1070 -site=* |
--site=* |
--sit=*)
1073 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1075 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1076 srcdir
=$ac_optarg ;;
1078 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1079 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1080 ac_prev
=sysconfdir
;;
1081 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1082 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1083 sysconfdir
=$ac_optarg ;;
1085 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1086 ac_prev
=target_alias
;;
1087 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1088 target_alias
=$ac_optarg ;;
1090 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1093 -version |
--version |
--versio |
--versi |
--vers |
-V)
1094 ac_init_version
=: ;;
1097 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_
$ac_package=\
$ac_optarg ;;
1105 -without-* |
--without-*)
1106 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_
$ac_package=no
;;
1115 # Obsolete; use --with-x.
1118 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1119 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1120 ac_prev
=x_includes
;;
1121 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1122 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1123 x_includes
=$ac_optarg ;;
1125 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1126 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1127 ac_prev
=x_libraries
;;
1128 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1129 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1130 x_libraries
=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\
$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val
=\$
$ac_var
1171 [\\/$
]* | ?
:[\\/]* ) continue;;
1172 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target
=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x
; then
1187 if test "x$build_alias" = x
; then
1188 cross_compiling
=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1199 test "$silent" = yes && exec 6>/dev
/null
1202 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di
=`ls -di .` &&
1204 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted
=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir
=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted
=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var
in $ac_precious_vars; do
1267 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1269 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure
for building on BUILD
[guessed
]
1339 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1350 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1351 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1352 --disable-integer-datetimes disable
64-bit integer date
/time support
1353 --enable-nls[=LANGUAGES
] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path
in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols
(-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --enable-depend turn on automatic dependency tracking
1361 --enable-cassert enable assertion checks
(for debugging
)
1362 --enable-thread-safety make client libraries thread-safe
1363 --enable-thread-safety-force force thread-safety despite thread
test failure
1364 --disable-float4-byval disable float4 passed by value
1365 --disable-float8-byval disable float8 passed by value
1366 --disable-largefile omit support
for large files
1369 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1370 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1372 --with-includes=DIRS
look for additional header files
in DIRS
1373 --with-libraries=DIRS
look for additional libraries
in DIRS
1374 --with-libs=DIRS alternative spelling of
--with-libraries
1375 --with-pgport=PORTNUM
set default port number
[5432]
1376 --with-blocksize=BLOCKSIZE
set table block size
in kB
[8]
1377 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1378 --with-wal-blocksize=BLOCKSIZE
set WAL block size
in kB
[8]
1379 --with-wal-segsize=SEGSIZE
set WAL segment size
in MB
[16]
1380 --with-tcl build Tcl modules
(PL
/Tcl
)
1381 --with-tclconfig=DIR tclConfig.sh is
in DIR
1382 --with-perl build Perl modules
(PL
/Perl
)
1383 --with-python build Python modules
(PL
/Python
)
1384 --with-gssapi build with GSSAPI support
1385 --with-krb5 build with Kerberos
5 support
1386 --with-krb-srvnam=NAME default service principal name
in Kerberos
[postgres
]
1387 --with-pam build with PAM support
1388 --with-ldap build with LDAP support
1389 --with-bonjour build with Bonjour support
1390 --with-openssl build with OpenSSL support
1391 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1392 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1393 --with-ossp-uuid use OSSP UUID library when building contrib
/uuid-ossp
1394 --with-libxml build with XML support
1395 --with-libxslt use XSLT support when building contrib
/xml2
1396 --with-system-tzdata=DIR use system
time zone data
in DIR
1397 --without-zlib do not use Zlib
1398 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1400 Some influential environment variables
:
1401 CC C compiler
command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1404 nonstandard directory
<lib dir
>
1405 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1406 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1407 you have headers
in a nonstandard directory
<include dir
>
1411 location of DocBook stylesheets
1413 Use these variables to override the choices made by
`configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1416 Report bugs to <pgsql-bugs@postgresql.org>.
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" || continue
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1444 .) # We are building in place.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1477 PostgreSQL configure 8.4devel
1478 generated by GNU Autoconf 2.61
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1485 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by PostgreSQL $as_me 8.4devel, which was
1494 generated by GNU Autoconf 2.61. Invocation command line was
1506 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1507 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1508 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1509 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1510 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1512 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1513 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1515 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1516 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1517 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1518 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1519 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1520 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1521 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 echo "PATH: $as_dir"
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1554 ac_must_keep_next=false
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1565 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1583 -* ) ac_must_keep_next=true ;;
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1613 eval ac_val=\$$ac_var
1617 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1618 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1621 _ | IFS | as_nl) ;; #(
1622 *) $as_unset $ac_var ;;
1627 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1628 *${as_nl}ac_space=\ *)
1630 "s/'\''/'\''\\\\'\'''\''/g;
1631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1647 for ac_var in $ac_subst_vars
1649 eval ac_val=\$$ac_var
1651 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 echo "$ac_var='\''$ac_val'\''"
1657 if test -n "$ac_subst_files"; then
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1664 for ac_var in $ac_subst_files
1666 eval ac_val=\$$ac_var
1668 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 echo "$ac_var='\''$ac_val'\''"
1675 if test -s confdefs.h; then
1685 test "$ac_signal" != 0 &&
1686 echo "$as_me: caught signal $ac_signal"
1687 echo "$as_me: exit $exit_status"
1689 rm -f core *.core core.conftest.* &&
1690 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1693 for ac_signal in 1 2 13 15; do
1694 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1701 # Predefined preprocessor variables.
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer explicitly selected file to automatically selected ones.
1730 if test -n "$CONFIG_SITE"; then
1731 set x "$CONFIG_SITE"
1732 elif test "x$prefix" != xNONE; then
1733 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1735 set x "$ac_default_prefix/share/config.site" \
1736 "$ac_default_prefix/etc/config.site"
1741 if test -r "$ac_site_file"; then
1742 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 echo "$as_me: loading site script $ac_site_file" >&6;}
1744 sed 's/^/| /' "$ac_site_file" >&5
1749 if test -r "$cache_file"; then
1750 # Some versions of bash will fail to source /dev/null (special
1751 # files actually), so we avoid doing that.
1752 if test -f "$cache_file"; then
1753 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 echo "$as_me: loading cache $cache_file" >&6;}
1756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757 *) . "./$cache_file";;
1761 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 echo "$as_me: creating cache $cache_file" >&6;}
1766 # Check that the precious variables saved in the cache have kept the same
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771 eval ac_new_set=\$ac_env_${ac_var}_set
1772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773 eval ac_new_val=\$ac_env_${ac_var}_value
1774 case $ac_old_set,$ac_new_set in
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1777 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1780 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1781 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1785 if test "x$ac_old_val" != "x$ac_new_val"; then
1786 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1787 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1788 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1789 echo "$as_me: former value
: $ac_old_val" >&2;}
1790 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1791 echo "$as_me: current value
: $ac_new_val" >&2;}
1792 ac_cache_corrupted=:
1795 # Pass precious variables to config.status.
1796 if test "$ac_new_set" = set; then
1798 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1799 *) ac_arg=$ac_var=$ac_new_val ;;
1801 case " $ac_configure_args " in
1802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1803 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807 if $ac_cache_corrupted; then
1808 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1809 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1810 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1812 { (exit 1); exit 1; }; }
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851 for ac_dir in config "$srcdir"/config; do
1852 if test -f "$ac_dir/install-sh"; then
1854 ac_install_sh="$ac_aux_dir/install-sh -c"
1856 elif test -f "$ac_dir/install.sh"; then
1858 ac_install_sh="$ac_aux_dir/install.sh -c"
1860 elif test -f "$ac_dir/shtool"; then
1862 ac_install_sh="$ac_aux_dir/shtool install -c"
1866 if test -z "$ac_aux_dir"; then
1867 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1868 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1869 { (exit 1); exit 1; }; }
1872 # These three variables are undocumented and unsupported,
1873 # and are intended to be withdrawn in a future Autoconf release.
1874 # They can cause serious problems if a builder's source tree is in a directory
1875 # whose full name contains unusual characters.
1876 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1877 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1878 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1882 configure_args=$ac_configure_args
1886 cat >>confdefs.h <<_ACEOF
1887 #define PG_VERSION "$PACKAGE_VERSION"
1891 # Make sure we can run config.sub.
1892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 { echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 ac_build_alias=$build_alias
1903 test "x$ac_build_alias" = x &&
1904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905 test "x$ac_build_alias" = x &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6; }
1917 case $ac_cv_build in
1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920 echo "$as_me: error: invalid value of canonical build" >&2;}
1921 { (exit 1); exit 1; }; };;
1924 ac_save_IFS=$IFS; IFS='-'
1930 # Remember, the first character of IFS is used to create $*,
1931 # except with old shells:
1934 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1937 { echo "$as_me:$LINENO: checking host system type" >&5
1938 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1939 if test "${ac_cv_host+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test "x$host_alias" = x; then
1943 ac_cv_host=$ac_cv_build
1945 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1952 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1953 echo "${ECHO_T}$ac_cv_host" >&6; }
1956 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1957 echo "$as_me: error: invalid value of canonical host" >&2;}
1958 { (exit 1); exit 1; }; };;
1961 ac_save_IFS=$IFS; IFS='-'
1967 # Remember, the first character of IFS is used to create $*,
1968 # except with old shells:
1971 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1976 { echo "$as_me:$LINENO: checking which template to use" >&5
1977 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1980 pgac_args="$pgac_args with_template"
1983 # Check whether --with-template was given.
1984 if test "${with_template+set}" = set; then
1985 withval=$with_template;
1988 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1989 echo "$as_me: error: argument required for --with-template option" >&2;}
1990 { (exit 1); exit 1; }; }
1993 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1994 echo "$as_me: error: argument required for --with-template option" >&2;}
1995 { (exit 1); exit 1; }; }
2000 list) echo; ls "$srcdir/src/template"; exit;;
2001 *) if test -f "$srcdir/src/template/$with_template" ; then
2004 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2005 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2006 { (exit 1); exit 1; }; }
2015 # --with-template not given
2018 aix*) template=aix ;;
2019 bsdi*) template=bsdi ;;
2020 cygwin*) template=cygwin ;;
2021 darwin*) template=darwin ;;
2022 dgux*) template=dgux ;;
2023 freebsd*) template=freebsd ;;
2024 hpux*) template=hpux ;;
2025 irix*) template=irix ;;
2026 linux*|gnu*|k*bsd*-gnu)
2028 mingw*) template=win32 ;;
2029 netbsd*) template=netbsd ;;
2030 nextstep*) template=nextstep ;;
2031 openbsd*) template=openbsd ;;
2032 osf*) template=osf ;;
2033 sco*) template=sco ;;
2034 solaris*) template=solaris ;;
2035 sunos*) template=sunos4 ;;
2037 case $host_vendor in
2038 univel) template=univel ;;
2040 sysv4*) template=svr4 ;;
2041 sysv5*) template=unixware ;;
2042 ultrix*) template=ultrix4 ;;
2045 if test x"$template" = x"" ; then
2046 { { echo "$as_me:$LINENO: error:
2047 *******************************************************************
2048 PostgreSQL has apparently not been ported to your platform yet.
2049 To try a manual configuration, look into the src/template directory
2050 for a similar platform and use the '--with-template=' option.
2052 Please also contact <pgsql-ports@postgresql.org> to see about
2053 rectifying this. Include the above 'checking host system type...'
2055 *******************************************************************
2057 echo "$as_me: error:
2058 *******************************************************************
2059 PostgreSQL has apparently not been ported to your platform yet.
2060 To try a manual configuration, look into the src/template directory
2061 for a similar platform and use the '--with-template=' option.
2063 Please also contact <pgsql-ports@postgresql.org> to see about
2064 rectifying this. Include the above 'checking host system type...'
2066 *******************************************************************
2068 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $template" >&5
2077 echo "${ECHO_T}$template" >&6; }
2082 # Initialize default assumption that we do not need separate assembly code
2083 # for TAS (test-and-set). This can be overridden by the template file
2084 # when it's executed.
2091 ## Command line options
2095 # Add non-standard directories to the include path
2098 pgac_args="$pgac_args with_includes"
2101 # Check whether --with-includes was given.
2102 if test "${with_includes+set}" = set; then
2103 withval=$with_includes;
2106 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2107 echo "$as_me: error: argument required for --with-includes option" >&2;}
2108 { (exit 1); exit 1; }; }
2111 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2112 echo "$as_me: error: argument required for --with-includes option" >&2;}
2113 { (exit 1); exit 1; }; }
2126 # Add non-standard directories to the library search path
2129 pgac_args="$pgac_args with_libraries"
2132 # Check whether --with-libraries was given.
2133 if test "${with_libraries+set}" = set; then
2134 withval=$with_libraries;
2137 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2138 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2139 { (exit 1); exit 1; }; }
2142 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2143 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2144 { (exit 1); exit 1; }; }
2147 LIBRARY_DIRS=$withval
2156 pgac_args="$pgac_args with_libs"
2159 # Check whether --with-libs was given.
2160 if test "${with_libs+set}" = set; then
2164 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2165 echo "$as_me: error: argument required for --with-libs option" >&2;}
2166 { (exit 1); exit 1; }; }
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2170 echo "$as_me: error: argument required for --with-libs option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 LIBRARY_DIRS=$withval
2184 # 64-bit integer date/time storage: enabled by default.
2186 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2187 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2189 pgac_args="$pgac_args enable_integer_datetimes"
2191 # Check whether --enable-integer-datetimes was given.
2192 if test "${enable_integer_datetimes+set}" = set; then
2193 enableval=$enable_integer_datetimes;
2197 cat >>confdefs.h <<\_ACEOF
2198 #define USE_INTEGER_DATETIMES 1
2206 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2207 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2208 { (exit 1); exit 1; }; }
2213 enable_integer_datetimes=yes
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2222 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2223 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2229 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2230 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2232 pgac_args="$pgac_args enable_nls"
2234 # Check whether --enable-nls was given.
2235 if test "${enable_nls+set}" = set; then
2236 enableval=$enable_nls;
2246 WANTED_LANGUAGES=$enableval
2256 if test "$enable_nls" = yes; then
2258 cat >>confdefs.h <<\_ACEOF
2259 #define ENABLE_NLS 1
2264 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2265 echo "${ECHO_T}$enable_nls" >&6; }
2270 # Default port number (--with-pgport), default 5432
2272 { echo "$as_me:$LINENO: checking for default port number" >&5
2273 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2275 pgac_args="$pgac_args with_pgport"
2278 # Check whether --with-pgport was given.
2279 if test "${with_pgport+set}" = set; then
2280 withval=$with_pgport;
2283 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2284 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2285 { (exit 1); exit 1; }; }
2288 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2289 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2290 { (exit 1); exit 1; }; }
2293 default_port=$withval
2302 { echo "$as_me:$LINENO: result: $default_port" >&5
2303 echo "${ECHO_T}$default_port" >&6; }
2304 # Need both of these because some places want an integer and some a string
2306 cat >>confdefs.h <<_ACEOF
2307 #define DEF_PGPORT ${default_port}
2311 cat >>confdefs.h <<_ACEOF
2312 #define DEF_PGPORT_STR "${default_port}"
2318 # Option to disable shared libraries
2321 pgac_args="$pgac_args enable_shared"
2323 # Check whether --enable-shared was given.
2324 if test "${enable_shared+set}" = set; then
2325 enableval=$enable_shared;
2334 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2335 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2336 { (exit 1); exit 1; }; }
2349 # '-rpath'-like feature can be disabled
2352 pgac_args="$pgac_args enable_rpath"
2354 # Check whether --enable-rpath was given.
2355 if test "${enable_rpath+set}" = set; then
2356 enableval=$enable_rpath;
2365 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2366 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2367 { (exit 1); exit 1; }; }
2383 pgac_args="$pgac_args enable_spinlocks"
2385 # Check whether --enable-spinlocks was given.
2386 if test "${enable_spinlocks+set}" = set; then
2387 enableval=$enable_spinlocks;
2396 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2397 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2398 { (exit 1); exit 1; }; }
2403 enable_spinlocks=yes
2410 # --enable-debug adds -g to compiler flags
2413 pgac_args="$pgac_args enable_debug"
2415 # Check whether --enable-debug was given.
2416 if test "${enable_debug+set}" = set; then
2417 enableval=$enable_debug;
2426 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2427 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2428 { (exit 1); exit 1; }; }
2441 # --enable-profiling enables gcc profiling
2444 pgac_args="$pgac_args enable_profiling"
2446 # Check whether --enable-profiling was given.
2447 if test "${enable_profiling+set}" = set; then
2448 enableval=$enable_profiling;
2457 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2458 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2459 { (exit 1); exit 1; }; }
2475 pgac_args="$pgac_args enable_dtrace"
2477 # Check whether --enable-dtrace was given.
2478 if test "${enable_dtrace+set}" = set; then
2479 enableval=$enable_dtrace;
2483 cat >>confdefs.h <<\_ACEOF
2484 #define ENABLE_DTRACE 1
2487 for ac_prog in dtrace
2489 # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_DTRACE+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$DTRACE"; then
2497 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_DTRACE="$ac_prog"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 DTRACE=$ac_cv_prog_DTRACE
2517 if test -n "$DTRACE"; then
2518 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2519 echo "${ECHO_T}$DTRACE" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2526 test -n "$DTRACE" && break
2529 if test -z "$DTRACE"; then
2530 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2531 echo "$as_me: error: dtrace not found" >&2;}
2532 { (exit 1); exit 1; }; }
2540 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2541 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2542 { (exit 1); exit 1; }; }
2557 { echo "$as_me:$LINENO: checking for block size" >&5
2558 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2560 pgac_args="$pgac_args with_blocksize"
2563 # Check whether --with-blocksize was given.
2564 if test "${with_blocksize+set}" = set; then
2565 withval=$with_blocksize;
2568 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2569 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2570 { (exit 1); exit 1; }; }
2573 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2574 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2575 { (exit 1); exit 1; }; }
2587 case ${blocksize} in
2594 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2595 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2596 { (exit 1); exit 1; }; }
2598 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2599 echo "${ECHO_T}${blocksize}kB" >&6; }
2602 cat >>confdefs.h <<_ACEOF
2603 #define BLCKSZ ${BLCKSZ}
2608 # Relation segment size
2610 { echo "$as_me:$LINENO: checking for segment size" >&5
2611 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2613 pgac_args="$pgac_args with_segsize"
2616 # Check whether --with-segsize was given.
2617 if test "${with_segsize+set}" = set; then
2618 withval=$with_segsize;
2621 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2622 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2623 { (exit 1); exit 1; }; }
2626 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2627 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2628 { (exit 1); exit 1; }; }
2640 # this expression is set up to avoid unnecessary integer overflow
2641 # blocksize is already guaranteed to be a factor of 1024
2642 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2643 test $? -eq 0 || exit 1
2644 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2645 echo "${ECHO_T}${segsize}GB" >&6; }
2648 cat >>confdefs.h <<_ACEOF
2649 #define RELSEG_SIZE ${RELSEG_SIZE}
2656 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2657 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2659 pgac_args="$pgac_args with_wal_blocksize"
2662 # Check whether --with-wal-blocksize was given.
2663 if test "${with_wal_blocksize+set}" = set; then
2664 withval=$with_wal_blocksize;
2667 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2668 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2669 { (exit 1); exit 1; }; }
2672 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2673 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2674 { (exit 1); exit 1; }; }
2677 wal_blocksize=$withval
2686 case ${wal_blocksize} in
2687 1) XLOG_BLCKSZ=1024;;
2688 2) XLOG_BLCKSZ=2048;;
2689 4) XLOG_BLCKSZ=4096;;
2690 8) XLOG_BLCKSZ=8192;;
2691 16) XLOG_BLCKSZ=16384;;
2692 32) XLOG_BLCKSZ=32768;;
2693 64) XLOG_BLCKSZ=65536;;
2694 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2695 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2696 { (exit 1); exit 1; }; }
2698 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2699 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2702 cat >>confdefs.h <<_ACEOF
2703 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2710 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2711 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2713 pgac_args="$pgac_args with_wal_segsize"
2716 # Check whether --with-wal-segsize was given.
2717 if test "${with_wal_segsize+set}" = set; then
2718 withval=$with_wal_segsize;
2721 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2722 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2723 { (exit 1); exit 1; }; }
2726 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2727 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2728 { (exit 1); exit 1; }; }
2731 wal_segsize=$withval
2740 case ${wal_segsize} in
2748 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2749 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2750 { (exit 1); exit 1; }; }
2752 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2753 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2756 cat >>confdefs.h <<_ACEOF
2757 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2765 # For historical reasons you can also use --with-CC to specify the C compiler
2766 # to use, although the standard way to do this is to set the CC environment
2769 pgac_args="$pgac_args with_CC"
2772 # Check whether --with-CC was given.
2773 if test "${with_CC+set}" = set; then
2777 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2778 echo "$as_me: error: argument required for --with-CC option" >&2;}
2779 { (exit 1); exit 1; }; }
2782 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2783 echo "$as_me: error: argument required for --with-CC option" >&2;}
2784 { (exit 1); exit 1; }; }
2796 aix) pgac_cc_list="gcc xlc";;
2797 irix) pgac_cc_list="cc";; # no gcc
2798 *) pgac_cc_list="gcc cc";;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in $pgac_cc_list
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CC" && break
2849 if test -z "$CC"; then
2851 for ac_prog in $pgac_cc_list
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CC="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883 echo "${ECHO_T}$ac_ct_CC" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CC" && break
2893 if test "x$ac_ct_CC" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2912 See \`config.log
' for more details." >&5
2913 echo "$as_me: error: no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details.
" >&2;}
2915 { (exit 1); exit 1; }; }
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler --version >&5") 2>&5
2928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler -V >&5") 2>&5
2948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2949 (exit $ac_status); }
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2971 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2972 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2973 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975 # List of possible output files, starting from the most likely.
2976 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2977 # only as a last resort. b.out is created by i960 compilers.
2978 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2980 # The IRIX 6 linker writes into existing files which may not be
2981 # executable, retaining their permissions. Remove them first so a
2982 # subsequent execution test works.
2984 for ac_file in $ac_files
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993 if { (ac_try="$ac_link_default"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_link_default") 2>&5
3001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3002 (exit $ac_status); }; then
3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3006 # so that the user can short-circuit this test for compilers unknown to
3008 for ac_file in $ac_files ''
3010 test -f "$ac_file" || continue
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3015 # We found the default executable, but exeext='' is most
3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 # We set ac_cv_exeext here because the later test for it is not
3024 # safe: cross compilers may not add the suffix if given an `-o'
3025 # argument, so we may need to know it at that point already.
3026 # Even if this section looks crufty: it has the advantage of
3033 test "$ac_cv_exeext" = no && ac_cv_exeext=
3039 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6; }
3041 if test -z "$ac_file"; then
3042 echo "$as_me: failed program was
:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3046 See \
`config.log' for more details." >&5
3047 echo "$as_me: error: C compiler cannot create executables
3048 See \`config.log
' for more details." >&2;}
3049 { (exit 77); exit 77; }; }
3052 ac_exeext=$ac_cv_exeext
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3059 # If not cross compiling, check that we can run a simple program.
3060 if test "$cross_compiling" != yes; then
3061 if { ac_try='.
/$ac_file'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 if test "$cross_compiling" = maybe; then
3076 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3077 If you meant to cross compile, use \`--host'.
3078 See \
`config.log' for more details." >&5
3079 echo "$as_me: error: cannot run C compiled programs.
3080 If you meant to cross compile, use \`--host'.
3081 See \`config.log' for more details.
" >&2;}
3082 { (exit 1); exit 1; }; }
3086 { echo "$as_me:$LINENO: result
: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3089 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3090 ac_clean_files=$ac_clean_files_save
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3094 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3095 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3096 echo "${ECHO_T}$cross_compiling" >&6; }
3098 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3099 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3100 if { (ac_try="$ac_link"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_link") 2>&5
3108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3109 (exit $ac_status); }; then
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3114 for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3125 See \
`config.log' for more details." >&5
3126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3127 See \`config.log
' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3131 rm -f conftest$ac_cv_exeext
3132 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3133 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3135 rm -f conftest.$ac_ext
3136 EXEEXT=$ac_cv_exeext
3138 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3140 if test "${ac_cv_objext+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3158 rm -f conftest.o conftest.obj
3159 if { (ac_try="$ac_compile"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3178 echo "$as_me: failed program was:" >&5
3179 sed 's
/^
/|
/' conftest.$ac_ext >&5
3181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details.
" >&5
3183 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3184 See \
`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3191 echo "${ECHO_T}$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3194 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3221 *) ac_try_echo
=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1
>conftest.err
3228 cat conftest.err
>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.
$ac_objext; then
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.
$ac_ext >&5
3242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3243 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3246 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3248 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3249 ac_test_CFLAGS
=${CFLAGS+set}
3250 ac_save_CFLAGS
=$CFLAGS
3251 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_g+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_save_c_werror_flag
=$ac_c_werror_flag
3257 ac_c_werror_flag
=yes
3260 cat >conftest.
$ac_ext <<_ACEOF
3263 cat confdefs.h
>>conftest.
$ac_ext
3264 cat >>conftest.
$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 rm -f conftest.
$ac_objext
3276 if { (ac_try
="$ac_compile"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3317 *) ac_try_echo
=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1
>conftest.err
3324 cat conftest.err
>&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.
$ac_objext; then
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.
$ac_ext >&5
3335 ac_c_werror_flag
=$ac_save_c_werror_flag
3337 cat >conftest.
$ac_ext <<_ACEOF
3340 cat confdefs.h
>>conftest.
$ac_ext
3341 cat >>conftest.
$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3352 rm -f conftest.
$ac_objext
3353 if { (ac_try
="$ac_compile"
3355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_compile") 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest.$ac_objext; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389 CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391 if test "$GCC" = yes; then
3397 if test "$GCC" = yes; then
3403 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3404 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3405 if test "${ac_cv_prog_cc_c89+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 ac_cv_prog_cc_c89=no
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3434 s = g (p, va_arg (v,int));
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
3442 as 'x'. The following induces an error, until -std is added to get
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
3445 that's true only with -std. */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470 CC="$ac_save_CC $ac_arg"
3471 rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3475 *) ac_try_echo
=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_compile") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1
>conftest.err
3482 cat conftest.err
>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } && {
3485 test -z "$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 } && test -s conftest.
$ac_objext; then
3488 ac_cv_prog_cc_c89
=$ac_arg
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.
$ac_ext >&5
3496 rm -f core conftest.err conftest.
$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
3499 rm -f conftest.
$ac_ext
3504 case "x$ac_cv_prog_cc_c89" in
3506 { echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6; } ;;
3509 { echo "$as_me:$LINENO: result: unsupported" >&5
3510 echo "${ECHO_T}unsupported" >&6; } ;;
3512 CC
="$CC $ac_cv_prog_cc_c89"
3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3519 ac_cpp
='$CPP $CPPFLAGS'
3520 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3525 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3526 # but has idiosyncrasies of its own. We assume icc will define
3527 # __INTEL_COMPILER regardless of CFLAGS.
3529 cat >conftest.
$ac_ext <<_ACEOF
3532 cat confdefs.h
>>conftest.
$ac_ext
3533 cat >>conftest.
$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3539 #ifndef __INTEL_COMPILER
3546 rm -f conftest.
$ac_objext
3547 if { (ac_try
="$ac_compile"
3549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 . "$srcdir/src/template/$template" || exit
3580 # CFLAGS are selected so:
3581 # If the user specifies something in the environment, that is used.
3582 # else: If the template file set something, that is used.
3583 # else: If the compiler is GCC, then we use -O2.
3584 # else: If the compiler is something else, then we use -0.
3586 if test "$ac_env_CFLAGS_set" = set; then
3587 CFLAGS=$ac_env_CFLAGS_value
3588 elif test "${CFLAGS+set}" = set; then
3589 : # (keep what template set)
3590 elif test "$GCC" = yes; then
3593 # if the user selected debug mode, don't use -O
3594 if test "$enable_debug" != yes; then
3599 # Some versions of GCC support some additional useful warning flags.
3600 # Check whether they are supported, and add them to CFLAGS if so.
3601 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3603 if test "$GCC" = yes -a "$ICC" = no; then
3604 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3605 # These work in some but not all gcc versions
3606 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3607 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3608 pgac_save_CFLAGS=$CFLAGS
3609 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3629 *) ac_try_echo
=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1
>conftest.err
3636 cat conftest.err
>&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.
$ac_objext; then
3642 { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.
$ac_ext >&5
3648 CFLAGS
="$pgac_save_CFLAGS"
3649 { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3655 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3656 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3657 pgac_save_CFLAGS
=$CFLAGS
3658 CFLAGS
="$pgac_save_CFLAGS -Wendif-labels"
3659 cat >conftest.
$ac_ext <<_ACEOF
3662 cat confdefs.h
>>conftest.
$ac_ext
3663 cat >>conftest.
$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3674 rm -f conftest.
$ac_objext
3675 if { (ac_try
="$ac_compile"
3677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 { echo "$as_me:$LINENO: result: yes" >&5
3692 echo "${ECHO_T}yes" >&6; }
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 CFLAGS="$pgac_save_CFLAGS"
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 # Disable strict-aliasing rules; needed for gcc 3.3+
3705 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3706 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3707 pgac_save_CFLAGS=$CFLAGS
3708 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3728 *) ac_try_echo
=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3733 grep -v '^ *+' conftest.er1
>conftest.err
3735 cat conftest.err
>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.
$ac_objext; then
3741 { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 CFLAGS
="$pgac_save_CFLAGS"
3748 { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3754 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3755 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3756 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3757 pgac_save_CFLAGS
=$CFLAGS
3758 CFLAGS
="$pgac_save_CFLAGS -fwrapv"
3759 cat >conftest.
$ac_ext <<_ACEOF
3762 cat confdefs.h
>>conftest.
$ac_ext
3763 cat >>conftest.
$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3774 rm -f conftest.
$ac_objext
3775 if { (ac_try
="$ac_compile"
3777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 { echo "$as_me:$LINENO: result: yes" >&5
3792 echo "${ECHO_T}yes" >&6; }
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 CFLAGS="$pgac_save_CFLAGS"
3798 { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 elif test "$ICC" = yes; then
3805 # Intel's compiler has a bug/misoptimization in checking for
3806 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3807 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3808 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3809 pgac_save_CFLAGS=$CFLAGS
3810 CFLAGS="$pgac_save_CFLAGS -mp1"
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3830 *) ac_try_echo
=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1
>conftest.err
3837 cat conftest.err
>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.
$ac_objext; then
3843 { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.
$ac_ext >&5
3849 CFLAGS
="$pgac_save_CFLAGS"
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3856 # Make sure strict aliasing is off (though this is said to be the default)
3857 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3858 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3859 pgac_save_CFLAGS
=$CFLAGS
3860 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3861 cat >conftest.
$ac_ext <<_ACEOF
3864 cat confdefs.h
>>conftest.
$ac_ext
3865 cat >>conftest.
$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3876 rm -f conftest.
$ac_objext
3877 if { (ac_try
="$ac_compile"
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 { echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6; }
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 CFLAGS="$pgac_save_CFLAGS"
3900 { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 elif test x"${CC}" = x"xlc"; then
3907 # AIX xlc has to have strict aliasing turned off too
3908 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3909 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3910 pgac_save_CFLAGS=$CFLAGS
3911 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3931 *) ac_try_echo
=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1
>conftest.err
3938 cat conftest.err
>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.
$ac_objext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.
$ac_ext >&5
3950 CFLAGS
="$pgac_save_CFLAGS"
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3959 # supply -g if --enable-debug
3960 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3964 # enable profiling if --enable-profiling
3965 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3966 if test "$GCC" = yes; then
3968 cat >>confdefs.h
<<\_ACEOF
3969 #define PROFILE_PID_DIR 1
3972 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3974 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3975 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3976 { (exit 1); exit 1; }; }
3980 # We already have this in Makefile.win32, but configure needs it too
3981 if test "$PORTNAME" = "win32"; then
3982 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3985 # Check if the compiler still works with the template settings
3986 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3987 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3988 cat >conftest.
$ac_ext <<_ACEOF
3991 cat confdefs.h
>>conftest.
$ac_ext
3992 cat >>conftest.
$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
4003 rm -f conftest.
$ac_objext conftest
$ac_exeext
4004 if { (ac_try
="$ac_link"
4006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_link") 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest$ac_exeext &&
4020 $as_test_x conftest$ac_exeext; then
4021 { echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6; }
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4030 echo "$as_me: error: cannot proceed" >&2;}
4031 { (exit 1); exit 1; }; }
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035 conftest$ac_exeext conftest.$ac_ext
4037 # Defend against gcc -ffast-math
4038 if test "$GCC" = yes; then
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4049 #ifdef __FAST_MATH__
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4060 *) ac_try_echo
=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compile") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1
>conftest.err
4067 cat conftest.err
>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest.
$ac_objext; then
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.
$ac_ext >&5
4078 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4079 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4080 { (exit 1); exit 1; }; }
4083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4087 ac_cpp
='$CPP $CPPFLAGS'
4088 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4091 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4092 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4093 # On Suns, sometimes $CPP names a directory.
4094 if test -n "$CPP" && test -d "$CPP"; then
4097 if test -z "$CPP"; then
4098 if test "${ac_cv_prog_CPP+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 # Double quotes because CPP needs to be expanded
4102 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4105 for ac_c_preproc_warn_flag
in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat >conftest.
$ac_ext <<_ACEOF
4116 cat confdefs.h
>>conftest.
$ac_ext
4117 cat >>conftest.
$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4120 # include <limits.h>
4122 # include <assert.h>
4126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null && {
4139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Broken: fails on valid input.
4151 rm -f conftest.err conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4163 if { (ac_try="$ac_cpp conftest.$ac_ext"
4165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4166 *) ac_try_echo
=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1
>conftest.err
4173 cat conftest.err
>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } >/dev
/null
&& {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4179 # Broken: success on invalid input.
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.
$ac_ext >&5
4185 # Passes both tests.
4190 rm -f conftest.err conftest.
$ac_ext
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.
$ac_ext
4195 if $ac_preproc_ok; then
4207 { echo "$as_me:$LINENO: result: $CPP" >&5
4208 echo "${ECHO_T}$CPP" >&6; }
4210 for ac_c_preproc_warn_flag
in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat >conftest.
$ac_ext <<_ACEOF
4221 cat confdefs.h
>>conftest.
$ac_ext
4222 cat >>conftest.
$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4225 # include <limits.h>
4227 # include <assert.h>
4231 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 # Broken: fails on valid input.
4256 rm -f conftest.err conftest.$ac_ext
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <ac_nonexistent.h>
4268 if { (ac_try="$ac_cpp conftest.$ac_ext"
4270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4271 *) ac_try_echo
=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1
>conftest.err
4278 cat conftest.err
>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev
/null
&& {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4284 # Broken: success on invalid input.
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.
$ac_ext >&5
4290 # Passes both tests.
4295 rm -f conftest.err conftest.
$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.
$ac_ext
4300 if $ac_preproc_ok; then
4303 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4304 See \`config.log' for more details." >&5
4305 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4306 See \`config.log' for more details." >&2;}
4307 { (exit 1); exit 1; }; }
4311 ac_cpp
='$CPP $CPPFLAGS'
4312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4318 # Create compiler version string
4319 if test x
"$GCC" = x
"yes" ; then
4320 cc_string
="GCC `${CC} --version | sed q`"
4325 cat >>confdefs.h
<<_ACEOF
4326 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4332 # Set up TAS assembly code if needed; the template file has now had its
4333 # chance to request this.
4335 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4338 if test "$need_tas" = yes ; then
4347 # Automatic dependency tracking
4350 pgac_args
="$pgac_args enable_depend"
4352 # Check whether --enable-depend was given.
4353 if test "${enable_depend+set}" = set; then
4354 enableval
=$enable_depend;
4363 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4364 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4365 { (exit 1); exit 1; }; }
4379 # Enable assert checks
4382 pgac_args
="$pgac_args enable_cassert"
4384 # Check whether --enable-cassert was given.
4385 if test "${enable_cassert+set}" = set; then
4386 enableval
=$enable_cassert;
4390 cat >>confdefs.h
<<\_ACEOF
4391 #define USE_ASSERT_CHECKING 1
4399 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4400 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4401 { (exit 1); exit 1; }; }
4414 # Include directories
4417 IFS
="${IFS}${PATH_SEPARATOR}"
4418 # SRCH_INC comes from the template file
4419 for dir
in $with_includes $SRCH_INC; do
4420 if test -d "$dir"; then
4421 INCLUDES
="$INCLUDES -I$dir"
4423 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4424 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4432 # Library directories
4435 IFS
="${IFS}${PATH_SEPARATOR}"
4436 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4437 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4438 if test -d "$dir"; then
4439 LIBDIRS
="$LIBDIRS -L$dir"
4441 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4442 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4448 # Enable thread-safe client libraries
4450 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4451 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4452 if test "$PORTNAME" != "win32"; then
4454 pgac_args
="$pgac_args enable_thread_safety"
4456 # Check whether --enable-thread-safety was given.
4457 if test "${enable_thread_safety+set}" = set; then
4458 enableval
=$enable_thread_safety;
4467 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4468 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4469 { (exit 1); exit 1; }; }
4474 enable_thread_safety
=no
4480 # Win32 should always use threads
4482 pgac_args
="$pgac_args enable_thread_safety"
4484 # Check whether --enable-thread-safety was given.
4485 if test "${enable_thread_safety+set}" = set; then
4486 enableval
=$enable_thread_safety;
4495 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4496 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4497 { (exit 1); exit 1; }; }
4502 enable_thread_safety
=yes
4510 pgac_args
="$pgac_args enable_thread_safety_force"
4512 # Check whether --enable-thread-safety-force was given.
4513 if test "${enable_thread_safety_force+set}" = set; then
4514 enableval
=$enable_thread_safety_force;
4523 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4524 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4525 { (exit 1); exit 1; }; }
4530 enable_thread_safety_force
=no
4535 if test "$enable_thread_safety" = yes -o \
4536 "$enable_thread_safety_force" = yes; then
4537 enable_thread_safety
="yes" # for 'force'
4539 cat >>confdefs.h
<<\_ACEOF
4540 #define ENABLE_THREAD_SAFETY 1
4544 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4545 echo "${ECHO_T}$enable_thread_safety" >&6; }
4549 # Optionally build Tcl modules (PL/Tcl)
4551 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4552 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4554 pgac_args
="$pgac_args with_tcl"
4557 # Check whether --with-tcl was given.
4558 if test "${with_tcl+set}" = set; then
4568 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4569 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4570 { (exit 1); exit 1; }; }
4580 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4581 echo "${ECHO_T}$with_tcl" >&6; }
4584 # We see if the path to the Tcl/Tk configuration scripts is specified.
4585 # This will override the use of tclsh to find the paths to search.
4588 pgac_args
="$pgac_args with_tclconfig"
4591 # Check whether --with-tclconfig was given.
4592 if test "${with_tclconfig+set}" = set; then
4593 withval
=$with_tclconfig;
4596 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4597 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4598 { (exit 1); exit 1; }; }
4601 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4602 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4603 { (exit 1); exit 1; }; }
4615 # Optionally build Perl modules (PL/Perl)
4617 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4618 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4620 pgac_args
="$pgac_args with_perl"
4623 # Check whether --with-perl was given.
4624 if test "${with_perl+set}" = set; then
4634 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4635 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4636 { (exit 1); exit 1; }; }
4646 { echo "$as_me:$LINENO: result: $with_perl" >&5
4647 echo "${ECHO_T}$with_perl" >&6; }
4651 # Optionally build Python modules (PL/Python)
4653 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4654 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4656 pgac_args
="$pgac_args with_python"
4659 # Check whether --with-python was given.
4660 if test "${with_python+set}" = set; then
4661 withval
=$with_python;
4670 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4671 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4672 { (exit 1); exit 1; }; }
4682 { echo "$as_me:$LINENO: result: $with_python" >&5
4683 echo "${ECHO_T}$with_python" >&6; }
4689 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4690 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4692 pgac_args
="$pgac_args with_gssapi"
4695 # Check whether --with-gssapi was given.
4696 if test "${with_gssapi+set}" = set; then
4697 withval
=$with_gssapi;
4702 cat >>confdefs.h
<<\_ACEOF
4703 #define ENABLE_GSS 1
4706 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4713 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4714 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4715 { (exit 1); exit 1; }; }
4725 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4726 echo "${ECHO_T}$with_gssapi" >&6; }
4732 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4733 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4735 pgac_args
="$pgac_args with_krb5"
4738 # Check whether --with-krb5 was given.
4739 if test "${with_krb5+set}" = set; then
4745 cat >>confdefs.h
<<\_ACEOF
4749 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4756 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4757 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4758 { (exit 1); exit 1; }; }
4768 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4769 echo "${ECHO_T}$with_krb5" >&6; }
4777 # Kerberos configuration parameters
4780 pgac_args
="$pgac_args with_krb_srvnam"
4783 # Check whether --with-krb-srvnam was given.
4784 if test "${with_krb_srvnam+set}" = set; then
4785 withval
=$with_krb_srvnam;
4788 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4789 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4790 { (exit 1); exit 1; }; }
4793 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4794 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4795 { (exit 1); exit 1; }; }
4803 with_krb_srvnam
="postgres"
4808 cat >>confdefs.h
<<_ACEOF
4809 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4817 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4818 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4820 pgac_args
="$pgac_args with_pam"
4823 # Check whether --with-pam was given.
4824 if test "${with_pam+set}" = set; then
4829 cat >>confdefs.h
<<\_ACEOF
4838 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4839 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4840 { (exit 1); exit 1; }; }
4850 { echo "$as_me:$LINENO: result: $with_pam" >&5
4851 echo "${ECHO_T}$with_pam" >&6; }
4858 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4859 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4861 pgac_args
="$pgac_args with_ldap"
4864 # Check whether --with-ldap was given.
4865 if test "${with_ldap+set}" = set; then
4870 cat >>confdefs.h
<<\_ACEOF
4879 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4880 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4881 { (exit 1); exit 1; }; }
4891 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4892 echo "${ECHO_T}$with_ldap" >&6; }
4899 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4900 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4902 pgac_args
="$pgac_args with_bonjour"
4905 # Check whether --with-bonjour was given.
4906 if test "${with_bonjour+set}" = set; then
4907 withval
=$with_bonjour;
4911 cat >>confdefs.h
<<\_ACEOF
4912 #define USE_BONJOUR 1
4920 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4921 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4922 { (exit 1); exit 1; }; }
4932 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4933 echo "${ECHO_T}$with_bonjour" >&6; }
4940 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4941 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4943 pgac_args
="$pgac_args with_openssl"
4946 # Check whether --with-openssl was given.
4947 if test "${with_openssl+set}" = set; then
4948 withval
=$with_openssl;
4952 cat >>confdefs.h
<<\_ACEOF
4961 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4962 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4963 { (exit 1); exit 1; }; }
4973 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4974 echo "${ECHO_T}$with_openssl" >&6; }
4982 pgac_args
="$pgac_args with_readline"
4985 # Check whether --with-readline was given.
4986 if test "${with_readline+set}" = set; then
4987 withval
=$with_readline;
4996 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4997 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4998 { (exit 1); exit 1; }; }
5008 # readline on MinGW has problems with backslashes in psql and other bugs.
5009 # This is particularly a problem with non-US code pages.
5010 # Therefore disable its use until we understand the cause. 2004-07-20
5011 if test "$PORTNAME" = "win32"; then
5012 if test "$with_readline" = yes; then
5013 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5014 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5024 pgac_args
="$pgac_args with_libedit_preferred"
5027 # Check whether --with-libedit-preferred was given.
5028 if test "${with_libedit_preferred+set}" = set; then
5029 withval
=$with_libedit_preferred;
5038 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5039 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5040 { (exit 1); exit 1; }; }
5045 with_libedit_preferred
=no
5056 pgac_args
="$pgac_args with_ossp_uuid"
5059 # Check whether --with-ossp-uuid was given.
5060 if test "${with_ossp_uuid+set}" = set; then
5061 withval
=$with_ossp_uuid;
5070 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5071 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5072 { (exit 1); exit 1; }; }
5089 pgac_args
="$pgac_args with_libxml"
5092 # Check whether --with-libxml was given.
5093 if test "${with_libxml+set}" = set; then
5094 withval
=$with_libxml;
5098 cat >>confdefs.h
<<\_ACEOF
5099 #define USE_LIBXML 1
5107 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5108 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5109 { (exit 1); exit 1; }; }
5120 if test "$with_libxml" = yes ; then
5121 for ac_prog
in xml2-config
5123 # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy
$ac_prog; ac_word
=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$XML2_CONFIG"; then
5131 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir
=.
5138 for ac_exec_ext
in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5151 if test -n "$XML2_CONFIG"; then
5152 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5153 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5160 test -n "$XML2_CONFIG" && break
5163 if test -n "$XML2_CONFIG"; then
5164 for pgac_option
in `$XML2_CONFIG --cflags`; do
5165 case $pgac_option in
5166 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5169 for pgac_option
in `$XML2_CONFIG --libs`; do
5170 case $pgac_option in
5171 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5183 pgac_args
="$pgac_args with_libxslt"
5186 # Check whether --with-libxslt was given.
5187 if test "${with_libxslt+set}" = set; then
5188 withval
=$with_libxslt;
5192 cat >>confdefs.h
<<\_ACEOF
5193 #define USE_LIBXSLT 1
5201 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5202 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5203 { (exit 1); exit 1; }; }
5221 pgac_args
="$pgac_args with_system_tzdata"
5224 # Check whether --with-system-tzdata was given.
5225 if test "${with_system_tzdata+set}" = set; then
5226 withval
=$with_system_tzdata;
5229 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5230 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5231 { (exit 1); exit 1; }; }
5234 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5235 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5236 { (exit 1); exit 1; }; }
5252 pgac_args
="$pgac_args with_zlib"
5255 # Check whether --with-zlib was given.
5256 if test "${with_zlib+set}" = set; then
5266 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5267 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5268 { (exit 1); exit 1; }; }
5284 # Assume system is ELF if it predefines __ELF__ as 1,
5285 # otherwise believe host_os based default.
5287 freebsd1
*|freebsd2
*) elf
=no
;;
5288 freebsd3
*|freebsd4
*) elf
=yes;;
5292 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5293 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_GREP+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 # Extract the first word of "grep ggrep" to use in msg output
5298 if test -z "$GREP"; then
5299 set dummy
grep ggrep
; ac_prog_name
=$2
5300 if test "${ac_cv_path_GREP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 ac_path_GREP_found
=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5309 test -z "$as_dir" && as_dir
=.
5310 for ac_prog
in grep ggrep
; do
5311 for ac_exec_ext
in '' $ac_executable_extensions; do
5312 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5314 # Check for GNU ac_path_GREP and select it if it is found.
5315 # Check for GNU $ac_path_GREP
5316 case `"$ac_path_GREP" --version 2>&1` in
5318 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5321 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 echo 'GREP' >> "conftest.nl"
5328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5330 ac_count
=`expr $ac_count + 1`
5331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_GREP
="$ac_path_GREP"
5334 ac_path_GREP_max
=$ac_count
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5343 $ac_path_GREP_found && break 3
5353 GREP
="$ac_cv_path_GREP"
5354 if test -z "$GREP"; then
5355 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5356 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5357 { (exit 1); exit 1; }; }
5361 ac_cv_path_GREP
=$GREP
5366 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5367 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5368 GREP
="$ac_cv_path_GREP"
5371 { echo "$as_me:$LINENO: checking for egrep" >&5
5372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5373 if test "${ac_cv_path_EGREP+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5377 then ac_cv_path_EGREP
="$GREP -E"
5379 # Extract the first word of "egrep" to use in msg output
5380 if test -z "$EGREP"; then
5381 set dummy
egrep; ac_prog_name
=$2
5382 if test "${ac_cv_path_EGREP+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_path_EGREP_found
=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5388 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5391 test -z "$as_dir" && as_dir
=.
5392 for ac_prog
in egrep; do
5393 for ac_exec_ext
in '' $ac_executable_extensions; do
5394 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5396 # Check for GNU ac_path_EGREP and select it if it is found.
5397 # Check for GNU $ac_path_EGREP
5398 case `"$ac_path_EGREP" --version 2>&1` in
5400 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 echo 'EGREP' >> "conftest.nl"
5410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5411 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5412 ac_count
=`expr $ac_count + 1`
5413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_EGREP
="$ac_path_EGREP"
5416 ac_path_EGREP_max
=$ac_count
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5421 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5425 $ac_path_EGREP_found && break 3
5435 EGREP
="$ac_cv_path_EGREP"
5436 if test -z "$EGREP"; then
5437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5439 { (exit 1); exit 1; }; }
5443 ac_cv_path_EGREP
=$EGREP
5449 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5450 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5451 EGREP
="$ac_cv_path_EGREP"
5454 cat >conftest.
$ac_ext <<_ACEOF
5457 cat confdefs.h
>>conftest.
$ac_ext
5458 cat >>conftest.
$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466 $EGREP "yes" >/dev
/null
2>&1; then
5469 if test "X$elf" = "Xyes" ; then
5483 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5484 LDFLAGS
="$LDFLAGS $LIBDIRS"
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then
5491 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5497 if test "$GCC" = yes; then
5498 # Check if gcc -print-prog-name=ld gives a path.
5499 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5500 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5503 # gcc leaves a trailing carriage return which upsets mingw
5504 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5506 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5509 # Accept absolute paths.
5510 [\\/]* |
[A-Za-z
]:[\\/]*)
5511 re_direlt
='/[^/][^/]*/\.\./'
5512 # Canonicalize the path of ld
5513 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5514 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5515 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5517 test -z "$LD" && LD
="$ac_prog"
5520 # If it fails, then pretend we aren't using GCC.
5524 # If it is relative, then search for the first ld in PATH.
5528 elif test "$with_gnu_ld" = yes; then
5529 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5530 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5532 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5533 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5535 if test "${ac_cv_path_LD+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 if test -z "$LD"; then
5539 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5540 for ac_dir
in $PATH; do
5541 test -z "$ac_dir" && ac_dir
=.
5542 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5543 ac_cv_path_LD
="$ac_dir/$ac_prog"
5544 # Check to see if the program is GNU ld. I'd rather use --version,
5545 # but apparently some GNU ld's only accept -v.
5546 # Break only if it was the GNU/non-GNU ld that we prefer.
5547 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5548 test "$with_gnu_ld" != no
&& break
5550 test "$with_gnu_ld" != yes && break
5556 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5561 if test -n "$LD"; then
5562 { echo "$as_me:$LINENO: result: $LD" >&5
5563 echo "${ECHO_T}$LD" >&6; }
5565 { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5568 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5569 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5570 { (exit 1); exit 1; }; }
5571 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5572 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5573 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5577 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5578 ac_cv_prog_gnu_ld
=yes
5580 ac_cv_prog_gnu_ld
=no
5583 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5584 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5585 with_gnu_ld
=$ac_cv_prog_gnu_ld
5590 case $host_os in sysv5
*)
5591 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5592 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5593 if test "${pgac_cv_prog_ld_R+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5598 cat >conftest.
$ac_ext <<_ACEOF
5601 cat confdefs.h
>>conftest.
$ac_ext
5602 cat >>conftest.
$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5613 rm -f conftest.
$ac_objext conftest
$ac_exeext
5614 if { (ac_try
="$ac_link"
5616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_link") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest$ac_exeext &&
5630 $as_test_x conftest$ac_exeext; then
5631 pgac_cv_prog_ld_R=yes
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 pgac_cv_prog_ld_R=no
5639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5640 conftest$ac_exeext conftest.$ac_ext
5641 LDFLAGS=$pgac_save_LDFLAGS
5644 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5645 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5646 ld_R_works=$pgac_cv_prog_ld_R
5649 if test -n "$ac_tool_prefix"; then
5650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654 if test "${ac_cv_prog_RANLIB+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 if test -n "$RANLIB"; then
5658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 RANLIB=$ac_cv_prog_RANLIB
5678 if test -n "$RANLIB"; then
5679 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5680 echo "${ECHO_T}$RANLIB" >&6; }
5682 { echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6; }
5688 if test -z "$ac_cv_prog_RANLIB"; then
5689 ac_ct_RANLIB=$RANLIB
5690 # Extract the first word of "ranlib", so it can be a program name with args.
5691 set dummy ranlib; ac_word=$2
5692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test -n "$ac_ct_RANLIB"; then
5698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_ac_ct_RANLIB="ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718 if test -n "$ac_ct_RANLIB"; then
5719 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5720 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5722 { echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6; }
5726 if test "x$ac_ct_RANLIB" = x; then
5729 case $cross_compiling:$ac_tool_warned in
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet. If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned=yes ;;
5739 RANLIB=$ac_ct_RANLIB
5742 RANLIB="$ac_cv_prog_RANLIB"
5746 if test -n "$ac_tool_prefix"; then
5747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5748 set dummy ${ac_tool_prefix}strip; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_STRIP+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 if test -n "$STRIP"; then
5755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 STRIP=$ac_cv_prog_STRIP
5775 if test -n "$STRIP"; then
5776 { echo "$as_me:$LINENO: result: $STRIP" >&5
5777 echo "${ECHO_T}$STRIP" >&6; }
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5785 if test -z "$ac_cv_prog_STRIP"; then
5787 # Extract the first word of "strip", so it can be a program name with args.
5788 set dummy strip; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$ac_ct_STRIP"; then
5795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_ac_ct_STRIP="strip"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5815 if test -n "$ac_ct_STRIP"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5823 if test "x$ac_ct_STRIP" = x; then
5826 case $cross_compiling:$ac_tool_warned in
5828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5829 whose name does not start with the host triplet. If you think this
5830 configuration is useful to you, please write to autoconf@gnu.org." >&5
5831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5832 whose name does not start with the host triplet. If you think this
5833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5834 ac_tool_warned=yes ;;
5839 STRIP="$ac_cv_prog_STRIP"
5843 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5844 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5845 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5846 STRIP_STATIC_LIB="$STRIP -x"
5847 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5848 { echo "$as_me:$LINENO: result: yes" >&5
5849 echo "${ECHO_T}yes" >&6; }
5853 { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5860 # Extract the first word of "tar", so it can be a program name with args.
5861 set dummy tar; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_TAR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 if test -n "$TAR"; then
5892 { echo "$as_me:$LINENO: result: $TAR" >&5
5893 echo "${ECHO_T}$TAR" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5903 if test "$LN_S" = "ln -s"; then
5904 { echo "$as_me:$LINENO: result: yes" >&5
5905 echo "${ECHO_T}yes" >&6; }
5907 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5908 echo "${ECHO_T}no, using $LN_S" >&6; }
5911 for ac_prog in gawk mawk nawk awk
5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
5914 set dummy $ac_prog; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_prog_AWK+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$AWK"; then
5921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_AWK="$ac_prog"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 if test -n "$AWK"; then
5942 { echo "$as_me:$LINENO: result: $AWK" >&5
5943 echo "${ECHO_T}$AWK" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 test -n "$AWK" && break
5954 # Let the user override the search
5955 if test -z "$YACC"; then
5956 for ac_prog in 'bison -y'
5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_YACC+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$YACC"; then
5966 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_YACC="$ac_prog"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 YACC=$ac_cv_prog_YACC
5986 if test -n "$YACC"; then
5987 { echo "$as_me:$LINENO: result: $YACC" >&5
5988 echo "${ECHO_T}$YACC" >&6; }
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5995 test -n "$YACC" && break
6000 if test "$YACC"; then
6001 pgac_yacc_version=`$YACC --version 2>/dev
/null |
sed q
`
6002 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
6003 echo "$as_me: using $pgac_yacc_version" >&6;}
6004 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6006 { echo "$as_me:$LINENO: WARNING:
6007 *** The installed version of Bison is too old to use with PostgreSQL.
6008 *** Bison version 1.875 or later is required." >&5
6009 echo "$as_me: WARNING:
6010 *** The installed version of Bison is too old to use with PostgreSQL.
6011 *** Bison version 1.875 or later is required." >&2;}
6016 if test -z "$YACC"; then
6017 { echo "$as_me:$LINENO: WARNING:
6018 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6019 *** change any of the parser definition files. You can obtain Bison from
6020 *** a GNU mirror site. (If you are using the official distribution of
6021 *** PostgreSQL then you do not need to worry about this, because the Bison
6022 *** output is pre-generated.) To use a different yacc program (possible,
6023 *** but not recommended), set the environment variable YACC before running
6024 *** 'configure'." >&5
6025 echo "$as_me: WARNING:
6026 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6027 *** change any of the parser definition files. You can obtain Bison from
6028 *** a GNU mirror site. (If you are using the official distribution of
6029 *** PostgreSQL then you do not need to worry about this, because the Bison
6030 *** output is pre-generated.) To use a different yacc program (possible,
6031 *** but not recommended), set the environment variable YACC before running
6032 *** 'configure'." >&2;}
6034 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
6037 { echo "$as_me:$LINENO: checking for flex" >&5
6038 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6039 if test "${pgac_cv_path_flex+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 # Let the user override the test
6043 if test -n "$FLEX"; then
6044 pgac_cv_path_flex=$FLEX
6048 for pgac_dir in $PATH; do
6050 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6053 for pgac_prog in flex lex; do
6054 pgac_candidate="$pgac_dir/$pgac_prog"
6055 if test -f "$pgac_candidate" \
6056 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6058 echo '%%' > conftest.l
6059 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6060 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6061 pgac_broken_flex=$pgac_candidate
6065 pgac_cv_path_flex=$pgac_candidate
6071 rm -f conftest.l lex.yy.c
6072 : ${pgac_cv_path_flex=no}
6076 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6077 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6078 if test x"$pgac_cv_path_flex" = x"no"; then
6079 if test -n "$pgac_broken_flex"; then
6080 { echo "$as_me:$LINENO: WARNING:
6081 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6082 *** should get version 2.5.4 or later." >&5
6083 echo "$as_me: WARNING:
6084 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6085 *** should get version 2.5.4 or later." >&2;}
6088 { echo "$as_me:$LINENO: WARNING:
6089 *** Without Flex you will not be able to build PostgreSQL from CVS or
6090 *** change any of the scanner definition files. You can obtain Flex from
6091 *** a GNU mirror site. (If you are using the official distribution of
6092 *** PostgreSQL then you do not need to worry about this because the Flex
6093 *** output is pre-generated.)" >&5
6094 echo "$as_me: WARNING:
6095 *** Without Flex you will not be able to build PostgreSQL from CVS or
6096 *** change any of the scanner definition files. You can obtain Flex from
6097 *** a GNU mirror site. (If you are using the official distribution of
6098 *** PostgreSQL then you do not need to worry about this because the Flex
6099 *** output is pre-generated.)" >&2;}
6103 FLEX=$pgac_cv_path_flex
6104 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6105 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6106 echo "$as_me: using $pgac_flex_version" >&6;}
6113 # Extract the first word of "perl", so it can be a program name with args.
6114 set dummy perl; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_path_PERL+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 PERL=$ac_cv_path_PERL
6144 if test -n "$PERL"; then
6145 { echo "$as_me:$LINENO: result: $PERL" >&5
6146 echo "${ECHO_T}$PERL" >&6; }
6148 { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6153 if test "$with_perl" = yes; then
6155 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6156 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6157 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6158 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6159 echo "${ECHO_T}$perl_archlibexp" >&6; }
6160 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6161 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6162 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6163 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6164 echo "${ECHO_T}$perl_privlibexp" >&6; }
6165 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6166 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6167 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6168 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6169 echo "${ECHO_T}$perl_useshrplib" >&6; }
6171 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6172 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6173 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6174 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6175 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6176 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6177 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6180 if test "$with_python" = yes; then
6181 # Extract the first word of "python", so it can be a program name with args.
6182 set dummy python; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_path_PYTHON+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 PYTHON=$ac_cv_path_PYTHON
6212 if test -n "$PYTHON"; then
6213 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6214 echo "${ECHO_T}$PYTHON" >&6; }
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6221 if test x"$PYTHON" = x""; then
6222 { { echo "$as_me:$LINENO: error: Python not found" >&5
6223 echo "$as_me: error: Python not found" >&2;}
6224 { (exit 1); exit 1; }; }
6228 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6229 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6230 if "${PYTHON}" 2>&- -c 'import distutils'
6232 { echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6; }
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6237 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6238 echo "$as_me: error: distutils module not found" >&2;}
6239 { (exit 1); exit 1; }; }
6241 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6242 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6243 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6244 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')"`
6245 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6247 # This should be enough of a message.
6248 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6249 echo "${ECHO_T}$python_configdir" >&6; }
6252 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6253 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6255 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6256 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6257 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6258 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6260 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6262 # New way: use the official shared library
6263 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6264 python_libspec="-L${python_libdir} -l${ldlibrary}"
6266 # Old way: use libpython from python_configdir
6267 python_libdir="${python_configdir}"
6268 python_libspec="-L${python_libdir} -lpython${python_version}"
6271 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6273 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6274 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6277 # threaded python is not supported on bsd's
6278 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6279 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6280 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6281 if test "$pythreads" = "1"; then
6282 { echo "$as_me:$LINENO: result: yes" >&5
6283 echo "${ECHO_T}yes" >&6; }
6286 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6287 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6288 { (exit 1); exit 1; }; }
6292 { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6299 # Supply a numeric version string for use by 3rd party add-ons
6300 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6301 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6303 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6305 cat >>confdefs.h <<_ACEOF
6306 #define PG_VERSION_NUM $PG_VERSION_NUM
6313 ## Most libraries are included only if they demonstrably provide a function
6314 ## we need, but libm is an exception: always include it, because there are
6315 ## too many compilers that play cute optimization games that will break
6316 ## probes for standard functions such as pow().
6320 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6321 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6322 if test "${ac_cv_lib_m_main+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 ac_check_lib_save_LIBS=$LIBS
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (ac_try="$ac_link"
6346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6347 *) ac_try_echo
=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_link") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest
$ac_exeext &&
6360 $as_test_x conftest
$ac_exeext; then
6361 ac_cv_lib_m_main
=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.
$ac_ext >&5
6369 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6370 conftest
$ac_exeext conftest.
$ac_ext
6371 LIBS
=$ac_check_lib_save_LIBS
6373 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6374 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6375 if test $ac_cv_lib_m_main = yes; then
6376 cat >>confdefs.h
<<_ACEOF
6384 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6385 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6386 if test "${ac_cv_search_setproctitle+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_func_search_save_LIBS
=$LIBS
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 /* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6403 char setproctitle ();
6407 return setproctitle ();
6412 for ac_lib
in '' util
; do
6413 if test -z "$ac_lib"; then
6414 ac_res
="none required"
6417 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6419 rm -f conftest.
$ac_objext conftest
$ac_exeext
6420 if { (ac_try
="$ac_link"
6422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 ac_cv_search_setproctitle=$ac_res
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6447 if test "${ac_cv_search_setproctitle+set}" = set; then
6451 if test "${ac_cv_search_setproctitle+set}" = set; then
6454 ac_cv_search_setproctitle=no
6457 LIBS=$ac_func_search_save_LIBS
6459 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6460 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6461 ac_res=$ac_cv_search_setproctitle
6462 if test "$ac_res" != no; then
6463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6467 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6468 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6469 if test "${ac_cv_search_dlopen+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_func_search_save_LIBS=$LIBS
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6480 /* Override any GCC internal prototype to avoid an error.
6481 Use char because int might match the return type of a GCC
6482 builtin and then its argument prototype would still apply. */
6495 for ac_lib in '' dl; do
6496 if test -z "$ac_lib"; then
6497 ac_res="none required"
6500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6502 rm -f conftest.$ac_objext conftest$ac_exeext
6503 if { (ac_try="$ac_link"
6505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6506 *) ac_try_echo
=$ac_try;;
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_link") 2>conftest.er1
6511 grep -v '^ *+' conftest.er1
>conftest.err
6513 cat conftest.err
>&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest
$ac_exeext &&
6519 $as_test_x conftest
$ac_exeext; then
6520 ac_cv_search_dlopen
=$ac_res
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.
$ac_ext >&5
6528 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6530 if test "${ac_cv_search_dlopen+set}" = set; then
6534 if test "${ac_cv_search_dlopen+set}" = set; then
6537 ac_cv_search_dlopen
=no
6540 LIBS
=$ac_func_search_save_LIBS
6542 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6543 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6544 ac_res
=$ac_cv_search_dlopen
6545 if test "$ac_res" != no
; then
6546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6550 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6551 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6552 if test "${ac_cv_search_socket+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 ac_func_search_save_LIBS
=$LIBS
6556 cat >conftest.
$ac_ext <<_ACEOF
6559 cat confdefs.h
>>conftest.
$ac_ext
6560 cat >>conftest.
$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 /* Override any GCC internal prototype to avoid an error.
6564 Use char because int might match the return type of a GCC
6565 builtin and then its argument prototype would still apply. */
6578 for ac_lib
in '' socket wsock32
; do
6579 if test -z "$ac_lib"; then
6580 ac_res
="none required"
6583 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6585 rm -f conftest.
$ac_objext conftest
$ac_exeext
6586 if { (ac_try
="$ac_link"
6588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_link") 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest$ac_exeext &&
6602 $as_test_x conftest$ac_exeext; then
6603 ac_cv_search_socket=$ac_res
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6613 if test "${ac_cv_search_socket+set}" = set; then
6617 if test "${ac_cv_search_socket+set}" = set; then
6620 ac_cv_search_socket=no
6623 LIBS=$ac_func_search_save_LIBS
6625 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6626 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6627 ac_res=$ac_cv_search_socket
6628 if test "$ac_res" != no; then
6629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6633 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6634 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6635 if test "${ac_cv_search_shl_load+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_func_search_save_LIBS=$LIBS
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6646 /* Override any GCC internal prototype to avoid an error.
6647 Use char because int might match the return type of a GCC
6648 builtin and then its argument prototype would still apply. */
6661 for ac_lib in '' dld; do
6662 if test -z "$ac_lib"; then
6663 ac_res="none required"
6666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (ac_try="$ac_link"
6671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6672 *) ac_try_echo
=$ac_try;;
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_link") 2>conftest.er1
6677 grep -v '^ *+' conftest.er1
>conftest.err
6679 cat conftest.err
>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest
$ac_exeext &&
6685 $as_test_x conftest
$ac_exeext; then
6686 ac_cv_search_shl_load
=$ac_res
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.
$ac_ext >&5
6694 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6696 if test "${ac_cv_search_shl_load+set}" = set; then
6700 if test "${ac_cv_search_shl_load+set}" = set; then
6703 ac_cv_search_shl_load
=no
6706 LIBS
=$ac_func_search_save_LIBS
6708 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6709 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6710 ac_res
=$ac_cv_search_shl_load
6711 if test "$ac_res" != no
; then
6712 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6716 # We only use libld in port/dynloader/aix.c
6719 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6720 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6721 if test "${ac_cv_search_ldopen+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 ac_func_search_save_LIBS
=$LIBS
6725 cat >conftest.
$ac_ext <<_ACEOF
6728 cat confdefs.h
>>conftest.
$ac_ext
6729 cat >>conftest.
$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6732 /* Override any GCC internal prototype to avoid an error.
6733 Use char because int might match the return type of a GCC
6734 builtin and then its argument prototype would still apply. */
6747 for ac_lib
in '' ld
; do
6748 if test -z "$ac_lib"; then
6749 ac_res
="none required"
6752 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6754 rm -f conftest.
$ac_objext conftest
$ac_exeext
6755 if { (ac_try
="$ac_link"
6757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_link") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest$ac_exeext &&
6771 $as_test_x conftest$ac_exeext; then
6772 ac_cv_search_ldopen=$ac_res
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6782 if test "${ac_cv_search_ldopen+set}" = set; then
6786 if test "${ac_cv_search_ldopen+set}" = set; then
6789 ac_cv_search_ldopen=no
6792 LIBS=$ac_func_search_save_LIBS
6794 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6795 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6796 ac_res=$ac_cv_search_ldopen
6797 if test "$ac_res" != no; then
6798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6804 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6805 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6806 if test "${ac_cv_search_getopt_long+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 ac_func_search_save_LIBS=$LIBS
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6817 /* Override any GCC internal prototype to avoid an error.
6818 Use char because int might match the return type of a GCC
6819 builtin and then its argument prototype would still apply. */
6823 char getopt_long ();
6827 return getopt_long ();
6832 for ac_lib in '' getopt gnugetopt; do
6833 if test -z "$ac_lib"; then
6834 ac_res="none required"
6837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (ac_try="$ac_link"
6842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6843 *) ac_try_echo
=$ac_try;;
6845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846 (eval "$ac_link") 2>conftest.er1
6848 grep -v '^ *+' conftest.er1
>conftest.err
6850 cat conftest.err
>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest
$ac_exeext &&
6856 $as_test_x conftest
$ac_exeext; then
6857 ac_cv_search_getopt_long
=$ac_res
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.
$ac_ext >&5
6865 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6867 if test "${ac_cv_search_getopt_long+set}" = set; then
6871 if test "${ac_cv_search_getopt_long+set}" = set; then
6874 ac_cv_search_getopt_long
=no
6877 LIBS
=$ac_func_search_save_LIBS
6879 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6880 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6881 ac_res
=$ac_cv_search_getopt_long
6882 if test "$ac_res" != no
; then
6883 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6887 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6888 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6889 if test "${ac_cv_search_crypt+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_func_search_save_LIBS
=$LIBS
6893 cat >conftest.
$ac_ext <<_ACEOF
6896 cat confdefs.h
>>conftest.
$ac_ext
6897 cat >>conftest.
$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6900 /* Override any GCC internal prototype to avoid an error.
6901 Use char because int might match the return type of a GCC
6902 builtin and then its argument prototype would still apply. */
6915 for ac_lib
in '' crypt; do
6916 if test -z "$ac_lib"; then
6917 ac_res
="none required"
6920 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6922 rm -f conftest.
$ac_objext conftest
$ac_exeext
6923 if { (ac_try
="$ac_link"
6925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929 (eval "$ac_link") 2>conftest.er1
6931 grep -v '^ *+' conftest.er1 >conftest.err
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } && {
6936 test -z "$ac_c_werror_flag" ||
6937 test ! -s conftest.err
6938 } && test -s conftest$ac_exeext &&
6939 $as_test_x conftest$ac_exeext; then
6940 ac_cv_search_crypt=$ac_res
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6950 if test "${ac_cv_search_crypt+set}" = set; then
6954 if test "${ac_cv_search_crypt+set}" = set; then
6957 ac_cv_search_crypt=no
6960 LIBS=$ac_func_search_save_LIBS
6962 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6963 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6964 ac_res=$ac_cv_search_crypt
6965 if test "$ac_res" != no; then
6966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6971 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6972 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6973 if test "${ac_cv_search_fdatasync+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 ac_func_search_save_LIBS=$LIBS
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 /* Override any GCC internal prototype to avoid an error.
6985 Use char because int might match the return type of a GCC
6986 builtin and then its argument prototype would still apply. */
6994 return fdatasync ();
6999 for ac_lib in '' rt posix4; do
7000 if test -z "$ac_lib"; then
7001 ac_res="none required"
7004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7010 *) ac_try_echo
=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest
$ac_exeext &&
7023 $as_test_x conftest
$ac_exeext; then
7024 ac_cv_search_fdatasync
=$ac_res
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.
$ac_ext >&5
7032 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7034 if test "${ac_cv_search_fdatasync+set}" = set; then
7038 if test "${ac_cv_search_fdatasync+set}" = set; then
7041 ac_cv_search_fdatasync
=no
7044 LIBS
=$ac_func_search_save_LIBS
7046 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7047 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7048 ac_res
=$ac_cv_search_fdatasync
7049 if test "$ac_res" != no
; then
7050 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7055 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7056 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7057 if test "${ac_cv_search_shmget+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 ac_func_search_save_LIBS
=$LIBS
7061 cat >conftest.
$ac_ext <<_ACEOF
7064 cat confdefs.h
>>conftest.
$ac_ext
7065 cat >>conftest.
$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7068 /* Override any GCC internal prototype to avoid an error.
7069 Use char because int might match the return type of a GCC
7070 builtin and then its argument prototype would still apply. */
7083 for ac_lib
in '' cygipc
; do
7084 if test -z "$ac_lib"; then
7085 ac_res
="none required"
7088 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7090 rm -f conftest.
$ac_objext conftest
$ac_exeext
7091 if { (ac_try
="$ac_link"
7093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_link") 2>conftest.er1
7099 grep -v '^ *+' conftest.er1 >conftest.err
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest$ac_exeext &&
7107 $as_test_x conftest$ac_exeext; then
7108 ac_cv_search_shmget=$ac_res
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7118 if test "${ac_cv_search_shmget+set}" = set; then
7122 if test "${ac_cv_search_shmget+set}" = set; then
7125 ac_cv_search_shmget=no
7128 LIBS=$ac_func_search_save_LIBS
7130 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7131 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7132 ac_res=$ac_cv_search_shmget
7133 if test "$ac_res" != no; then
7134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7139 if test "$with_readline" = yes; then
7142 if test "${pgac_cv_check_readline+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 pgac_cv_check_readline=no
7146 pgac_save_LIBS=$LIBS
7147 if test x"$with_libedit_preferred" != x"yes"
7148 then READLINE_ORDER="-lreadline -ledit"
7149 else READLINE_ORDER="-ledit -lreadline"
7151 for pgac_rllib in $READLINE_ORDER ; do
7152 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7153 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7154 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7155 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7163 /* Override any GCC internal prototype to avoid an error.
7164 Use char because int might match the return type of a GCC
7165 builtin and then its argument prototype would still apply. */
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7182 *) ac_try_echo
=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_link") 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest
$ac_exeext &&
7195 $as_test_x conftest
$ac_exeext; then
7197 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7198 # recognize dependent libraries; assume curses is needed if we didn't
7199 # find any dependency.
7201 netbsd
* | openbsd
* | irix
*)
7202 if test x
"$pgac_lib" = x
"" ; then
7203 pgac_lib
=" -lcurses"
7207 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.
$ac_ext >&5
7217 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7218 conftest
$ac_exeext conftest.
$ac_ext
7220 if test "$pgac_cv_check_readline" != no
; then
7221 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7222 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7229 LIBS
=$pgac_save_LIBS
7233 if test "$pgac_cv_check_readline" != no
; then
7234 LIBS
="$pgac_cv_check_readline $LIBS"
7236 cat >>confdefs.h
<<\_ACEOF
7237 #define HAVE_LIBREADLINE 1
7243 if test x
"$pgac_cv_check_readline" = x
"no"; then
7244 { { echo "$as_me:$LINENO: error: readline library not found
7245 If you have readline already installed, see config.log for details on the
7246 failure. It is possible the compiler isn't looking in the proper directory.
7247 Use --without-readline to disable readline support." >&5
7248 echo "$as_me: error: readline library not found
7249 If you have readline already installed, see config.log for details on the
7250 failure. It is possible the compiler isn't looking in the proper directory.
7251 Use --without-readline to disable readline support." >&2;}
7252 { (exit 1); exit 1; }; }
7256 if test "$with_zlib" = yes; then
7258 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7259 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7260 if test "${ac_cv_lib_z_inflate+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 ac_check_lib_save_LIBS
=$LIBS
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7272 /* Override any GCC internal prototype to avoid an error.
7273 Use char because int might match the return type of a GCC
7274 builtin and then its argument prototype would still apply. */
7287 rm -f conftest.
$ac_objext conftest
$ac_exeext
7288 if { (ac_try
="$ac_link"
7290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext &&
7304 $as_test_x conftest$ac_exeext; then
7305 ac_cv_lib_z_inflate=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_lib_z_inflate=no
7313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7314 conftest$ac_exeext conftest.$ac_ext
7315 LIBS=$ac_check_lib_save_LIBS
7317 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7318 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7319 if test $ac_cv_lib_z_inflate = yes; then
7320 cat >>confdefs.h <<_ACEOF
7327 { { echo "$as_me:$LINENO: error: zlib library not found
7328 If you have zlib already installed, see config.log for details on the
7329 failure. It is possible the compiler isn't looking in the proper directory.
7330 Use --without-zlib to disable zlib support." >&5
7331 echo "$as_me: error: zlib library not found
7332 If you have zlib already installed, see config.log for details on the
7333 failure. It is possible the compiler isn't looking in the proper directory.
7334 Use --without-zlib to disable zlib support." >&2;}
7335 { (exit 1); exit 1; }; }
7340 if test "$enable_spinlocks" = yes; then
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_SPINLOCKS 1
7347 { echo "$as_me:$LINENO: WARNING:
7348 *** Not using spinlocks will cause poor performance." >&5
7349 echo "$as_me: WARNING:
7350 *** Not using spinlocks will cause poor performance." >&2;}
7353 if test "$with_gssapi" = yes ; then
7354 if test "$PORTNAME" != "win32"; then
7355 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7356 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7357 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_func_search_save_LIBS=$LIBS
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7368 /* Override any GCC internal prototype to avoid an error.
7369 Use char because int might match the return type of a GCC
7370 builtin and then its argument prototype would still apply. */
7374 char gss_init_sec_context ();
7378 return gss_init_sec_context ();
7383 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7384 if test -z "$ac_lib"; then
7385 ac_res="none required"
7388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7390 rm -f conftest.$ac_objext conftest$ac_exeext
7391 if { (ac_try="$ac_link"
7393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7394 *) ac_try_echo
=$ac_try;;
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_link") 2>conftest.er1
7399 grep -v '^ *+' conftest.er1
>conftest.err
7401 cat conftest.err
>&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest
$ac_exeext &&
7407 $as_test_x conftest
$ac_exeext; then
7408 ac_cv_search_gss_init_sec_context
=$ac_res
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.
$ac_ext >&5
7416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7418 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7422 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7425 ac_cv_search_gss_init_sec_context
=no
7428 LIBS
=$ac_func_search_save_LIBS
7430 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7431 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7432 ac_res
=$ac_cv_search_gss_init_sec_context
7433 if test "$ac_res" != no
; then
7434 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7437 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7438 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7439 { (exit 1); exit 1; }; }
7443 LIBS
="$LIBS -lgssapi32"
7447 if test "$with_krb5" = yes ; then
7448 if test "$PORTNAME" != "win32"; then
7449 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7450 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7451 if test "${ac_cv_search_com_err+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_func_search_save_LIBS
=$LIBS
7455 cat >conftest.
$ac_ext <<_ACEOF
7458 cat confdefs.h
>>conftest.
$ac_ext
7459 cat >>conftest.
$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7477 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7478 if test -z "$ac_lib"; then
7479 ac_res
="none required"
7482 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7484 rm -f conftest.
$ac_objext conftest
$ac_exeext
7485 if { (ac_try
="$ac_link"
7487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_link") 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest$ac_exeext &&
7501 $as_test_x conftest$ac_exeext; then
7502 ac_cv_search_com_err=$ac_res
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7512 if test "${ac_cv_search_com_err+set}" = set; then
7516 if test "${ac_cv_search_com_err+set}" = set; then
7519 ac_cv_search_com_err=no
7522 LIBS=$ac_func_search_save_LIBS
7524 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7525 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7526 ac_res=$ac_cv_search_com_err
7527 if test "$ac_res" != no; then
7528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7531 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7532 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7533 { (exit 1); exit 1; }; }
7536 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7537 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7538 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 ac_func_search_save_LIBS=$LIBS
7542 cat >conftest.$ac_ext <<_ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply. */
7555 char krb5_sendauth ();
7559 return krb5_sendauth ();
7564 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7565 if test -z "$ac_lib"; then
7566 ac_res="none required"
7569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (ac_try="$ac_link"
7574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7575 *) ac_try_echo
=$ac_try;;
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_link") 2>conftest.er1
7580 grep -v '^ *+' conftest.er1
>conftest.err
7582 cat conftest.err
>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest
$ac_exeext &&
7588 $as_test_x conftest
$ac_exeext; then
7589 ac_cv_search_krb5_sendauth
=$ac_res
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.
$ac_ext >&5
7597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7599 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7603 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7606 ac_cv_search_krb5_sendauth
=no
7609 LIBS
=$ac_func_search_save_LIBS
7611 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7612 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7613 ac_res
=$ac_cv_search_krb5_sendauth
7614 if test "$ac_res" != no
; then
7615 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7618 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7619 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7620 { (exit 1); exit 1; }; }
7624 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7625 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7626 if test "${ac_cv_search_com_err+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_func_search_save_LIBS
=$LIBS
7630 cat >conftest.
$ac_ext <<_ACEOF
7633 cat confdefs.h
>>conftest.
$ac_ext
7634 cat >>conftest.
$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7652 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
7653 if test -z "$ac_lib"; then
7654 ac_res
="none required"
7657 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7659 rm -f conftest.
$ac_objext conftest
$ac_exeext
7660 if { (ac_try
="$ac_link"
7662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
7677 ac_cv_search_com_err=$ac_res
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7687 if test "${ac_cv_search_com_err+set}" = set; then
7691 if test "${ac_cv_search_com_err+set}" = set; then
7694 ac_cv_search_com_err=no
7697 LIBS=$ac_func_search_save_LIBS
7699 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7700 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7701 ac_res=$ac_cv_search_com_err
7702 if test "$ac_res" != no; then
7703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7706 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7707 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7708 { (exit 1); exit 1; }; }
7714 if test "$with_openssl" = yes ; then
7715 if test "$PORTNAME" != "win32"; then
7717 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7718 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7719 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_check_lib_save_LIBS=$LIBS
7723 LIBS="-lcrypto $LIBS"
7724 cat >conftest.$ac_ext <<_ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7731 /* Override any GCC internal prototype to avoid an error.
7732 Use char because int might match the return type of a GCC
7733 builtin and then its argument prototype would still apply. */
7737 char CRYPTO_new_ex_data ();
7741 return CRYPTO_new_ex_data ();
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7750 *) ac_try_echo
=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1
>conftest.err
7757 cat conftest.err
>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest
$ac_exeext &&
7763 $as_test_x conftest
$ac_exeext; then
7764 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.
$ac_ext >&5
7769 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
7772 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7773 conftest
$ac_exeext conftest.
$ac_ext
7774 LIBS
=$ac_check_lib_save_LIBS
7776 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7777 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7778 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7779 cat >>confdefs.h
<<_ACEOF
7780 #define HAVE_LIBCRYPTO 1
7783 LIBS
="-lcrypto $LIBS"
7786 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7787 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7788 { (exit 1); exit 1; }; }
7792 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7793 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7794 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 ac_check_lib_save_LIBS
=$LIBS
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7806 /* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7812 char SSL_library_init ();
7816 return SSL_library_init ();
7821 rm -f conftest.
$ac_objext conftest
$ac_exeext
7822 if { (ac_try
="$ac_link"
7824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_link") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest$ac_exeext &&
7838 $as_test_x conftest$ac_exeext; then
7839 ac_cv_lib_ssl_SSL_library_init=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_cv_lib_ssl_SSL_library_init=no
7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7848 conftest$ac_exeext conftest.$ac_ext
7849 LIBS=$ac_check_lib_save_LIBS
7851 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7852 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7853 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_LIBSSL 1
7861 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7862 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7863 { (exit 1); exit 1; }; }
7868 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7869 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7870 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 ac_check_lib_save_LIBS=$LIBS
7874 LIBS="-leay32 $LIBS"
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7882 /* Override any GCC internal prototype to avoid an error.
7883 Use char because int might match the return type of a GCC
7884 builtin and then its argument prototype would still apply. */
7888 char CRYPTO_new_ex_data ();
7892 return CRYPTO_new_ex_data ();
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7901 *) ac_try_echo
=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1
>conftest.err
7908 cat conftest.err
>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest
$ac_exeext &&
7914 $as_test_x conftest
$ac_exeext; then
7915 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.
$ac_ext >&5
7920 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
7923 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7924 conftest
$ac_exeext conftest.
$ac_ext
7925 LIBS
=$ac_check_lib_save_LIBS
7927 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7928 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7929 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7930 cat >>confdefs.h
<<_ACEOF
7931 #define HAVE_LIBEAY32 1
7934 LIBS
="-leay32 $LIBS"
7937 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7938 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7939 { (exit 1); exit 1; }; }
7943 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7944 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7945 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 ac_check_lib_save_LIBS
=$LIBS
7949 LIBS
="-lssleay32 $LIBS"
7950 cat >conftest.
$ac_ext <<_ACEOF
7953 cat confdefs.h
>>conftest.
$ac_ext
7954 cat >>conftest.
$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7963 char SSL_library_init ();
7967 return SSL_library_init ();
7972 rm -f conftest.
$ac_objext conftest
$ac_exeext
7973 if { (ac_try
="$ac_link"
7975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_link") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest$ac_exeext &&
7989 $as_test_x conftest$ac_exeext; then
7990 ac_cv_lib_ssleay32_SSL_library_init=yes
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_lib_ssleay32_SSL_library_init=no
7998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8003 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8004 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_LIBSSLEAY32 1
8009 LIBS="-lssleay32 $LIBS"
8012 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8013 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8014 { (exit 1); exit 1; }; }
8020 if test "$with_pam" = yes ; then
8022 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8023 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8024 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 ac_check_lib_save_LIBS=$LIBS
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8036 /* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
8046 return pam_start ();
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (ac_try="$ac_link"
8054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8055 *) ac_try_echo
=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_link") 2>conftest.er1
8060 grep -v '^ *+' conftest.er1
>conftest.err
8062 cat conftest.err
>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest
$ac_exeext &&
8068 $as_test_x conftest
$ac_exeext; then
8069 ac_cv_lib_pam_pam_start
=yes
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.
$ac_ext >&5
8074 ac_cv_lib_pam_pam_start
=no
8077 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8078 conftest
$ac_exeext conftest.
$ac_ext
8079 LIBS
=$ac_check_lib_save_LIBS
8081 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8082 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8083 if test $ac_cv_lib_pam_pam_start = yes; then
8084 cat >>confdefs.h
<<_ACEOF
8085 #define HAVE_LIBPAM 1
8091 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8092 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8093 { (exit 1); exit 1; }; }
8098 if test "$with_libxml" = yes ; then
8100 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8101 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8102 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 ac_check_lib_save_LIBS
=$LIBS
8107 cat >conftest.
$ac_ext <<_ACEOF
8110 cat confdefs.h
>>conftest.
$ac_ext
8111 cat >>conftest.
$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8114 /* Override any GCC internal prototype to avoid an error.
8115 Use char because int might match the return type of a GCC
8116 builtin and then its argument prototype would still apply. */
8120 char xmlSaveToBuffer ();
8124 return xmlSaveToBuffer ();
8129 rm -f conftest.
$ac_objext conftest
$ac_exeext
8130 if { (ac_try
="$ac_link"
8132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_link") 2>conftest.er1
8138 grep -v '^ *+' conftest.er1 >conftest.err
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest$ac_exeext &&
8146 $as_test_x conftest$ac_exeext; then
8147 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_lib_xml2_xmlSaveToBuffer=no
8155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LIBS=$ac_check_lib_save_LIBS
8159 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8160 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8161 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_LIBXML2 1
8169 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8170 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8171 { (exit 1); exit 1; }; }
8176 if test "$with_libxslt" = yes ; then
8178 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8179 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8180 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 ac_check_lib_save_LIBS=$LIBS
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8192 /* Override any GCC internal prototype to avoid an error.
8193 Use char because int might match the return type of a GCC
8194 builtin and then its argument prototype would still apply. */
8198 char xsltCleanupGlobals ();
8202 return xsltCleanupGlobals ();
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8211 *) ac_try_echo
=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1
>conftest.err
8218 cat conftest.err
>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest
$ac_exeext &&
8224 $as_test_x conftest
$ac_exeext; then
8225 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.
$ac_ext >&5
8230 ac_cv_lib_xslt_xsltCleanupGlobals
=no
8233 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8234 conftest
$ac_exeext conftest.
$ac_ext
8235 LIBS
=$ac_check_lib_save_LIBS
8237 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8238 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8239 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8240 cat >>confdefs.h
<<_ACEOF
8241 #define HAVE_LIBXSLT 1
8247 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8248 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8249 { (exit 1); exit 1; }; }
8254 # for contrib/uuid-ossp
8255 if test "$with_ossp_uuid" = yes ; then
8256 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8257 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8258 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 ac_check_lib_save_LIBS
=$LIBS
8262 LIBS
="-lossp-uuid $LIBS"
8263 cat >conftest.
$ac_ext <<_ACEOF
8266 cat confdefs.h
>>conftest.
$ac_ext
8267 cat >>conftest.
$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8270 /* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8276 char uuid_export ();
8280 return uuid_export ();
8285 rm -f conftest.
$ac_objext conftest
$ac_exeext
8286 if { (ac_try
="$ac_link"
8288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest$ac_exeext &&
8302 $as_test_x conftest$ac_exeext; then
8303 ac_cv_lib_ossp_uuid_uuid_export=yes
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_cv_lib_ossp_uuid_uuid_export=no
8311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8316 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8317 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8318 OSSP_UUID_LIBS="-lossp-uuid"
8320 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8321 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8322 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_check_lib_save_LIBS=$LIBS
8327 cat >conftest.$ac_ext <<_ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 /* Override any GCC internal prototype to avoid an error.
8335 Use char because int might match the return type of a GCC
8336 builtin and then its argument prototype would still apply. */
8340 char uuid_export ();
8344 return uuid_export ();
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8353 *) ac_try_echo
=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1
>conftest.err
8360 cat conftest.err
>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest
$ac_exeext &&
8366 $as_test_x conftest
$ac_exeext; then
8367 ac_cv_lib_uuid_uuid_export
=yes
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.
$ac_ext >&5
8372 ac_cv_lib_uuid_uuid_export
=no
8375 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8376 conftest
$ac_exeext conftest.
$ac_ext
8377 LIBS
=$ac_check_lib_save_LIBS
8379 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8380 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8381 if test $ac_cv_lib_uuid_uuid_export = yes; then
8382 OSSP_UUID_LIBS
="-luuid"
8384 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8385 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8386 { (exit 1); exit 1; }; }
8399 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8401 if test "${ac_cv_header_stdc+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.
$ac_ext <<_ACEOF
8407 cat confdefs.h
>>conftest.
$ac_ext
8408 cat >>conftest.
$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8423 rm -f conftest.
$ac_objext
8424 if { (ac_try
="$ac_compile"
8426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.$ac_objext; then
8440 ac_cv_header_stdc=yes
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8445 ac_cv_header_stdc=no
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 if test $ac_cv_header_stdc = yes; then
8451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8462 $EGREP "memchr" >/dev/null 2>&1; then
8465 ac_cv_header_stdc=no
8471 if test $ac_cv_header_stdc = yes; then
8472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483 $EGREP "free" >/dev/null 2>&1; then
8486 ac_cv_header_stdc=no
8492 if test $ac_cv_header_stdc = yes; then
8493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8494 if test "$cross_compiling" = yes; then
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8505 #if ((' ' & 0x0FF) == 0x020)
8506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8509 # define ISLOWER(c) \
8510 (('a' <= (c) && (c) <= 'i') \
8511 || ('j' <= (c) && (c) <= 'r') \
8512 || ('s' <= (c) && (c) <= 'z'))
8513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8521 for (i = 0; i < 256; i++)
8522 if (XOR (islower (i), ISLOWER (i))
8523 || toupper (i) != TOUPPER (i))
8528 rm -f conftest$ac_exeext
8529 if { (ac_try="$ac_link"
8531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8532 *) ac_try_echo
=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8550 echo "$as_me: program exited with status $ac_status" >&5
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_cv_header_stdc=no
8557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8563 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8564 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8565 if test $ac_cv_header_stdc = yes; then
8567 cat >>confdefs.h <<\_ACEOF
8568 #define STDC_HEADERS 1
8573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8584 inttypes.h stdint.h unistd.h
8586 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8600 #include <$ac_header>
8602 rm -f conftest.$ac_objext
8603 if { (ac_try="$ac_compile"
8605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8606 *) ac_try_echo
=$ac_try;;
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_compile") 2>conftest.er1
8611 grep -v '^ *+' conftest.er1
>conftest.err
8613 cat conftest.err
>&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest.
$ac_objext; then
8619 eval "$as_ac_Header=yes"
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.
$ac_ext >&5
8624 eval "$as_ac_Header=no"
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 ac_res
=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8633 cat >>confdefs.h
<<_ACEOF
8634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8668 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 utime.h wchar.h wctype.h kernel
/OS.h kernel
/image.h SupportDefs.h
8670 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8671 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8674 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 ac_res
=`eval echo '${'$as_ac_Header'}'`
8678 { echo "$as_me:$LINENO: result: $ac_res" >&5
8679 echo "${ECHO_T}$ac_res" >&6; }
8681 # Is the header compilable?
8682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8684 cat >conftest.
$ac_ext <<_ACEOF
8687 cat confdefs.h
>>conftest.
$ac_ext
8688 cat >>conftest.
$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 #include <$ac_header>
8693 rm -f conftest.
$ac_objext
8694 if { (ac_try
="$ac_compile"
8696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_header_compiler=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_header_compiler=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6; }
8722 # Is the header present?
8723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8725 cat >conftest.$ac_ext <<_ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include <$ac_header>
8733 if { (ac_try="$ac_cpp conftest.$ac_ext"
8735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8736 *) ac_try_echo
=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8741 grep -v '^ *+' conftest.er1
>conftest.err
8743 cat conftest.err
>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } >/dev
/null
&& {
8746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8749 ac_header_preproc
=yes
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.
$ac_ext >&5
8754 ac_header_preproc
=no
8757 rm -f conftest.err conftest.
$ac_ext
8758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6; }
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc
=yes
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8784 ## ---------------------------------------- ##
8785 ## Report this to pgsql-bugs@postgresql.org ##
8786 ## ---------------------------------------- ##
8788 ) |
sed "s/^/$as_me: WARNING: /" >&2
8791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8793 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 eval "$as_ac_Header=\$ac_header_preproc"
8798 ac_res
=`eval echo '${'$as_ac_Header'}'`
8799 { echo "$as_me:$LINENO: result: $ac_res" >&5
8800 echo "${ECHO_T}$ac_res" >&6; }
8803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8804 cat >>confdefs.h
<<_ACEOF
8805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8813 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8814 # netinet/in.h is included first.
8816 for ac_header
in netinet
/in.h
8818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8822 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_res
=`eval echo '${'$as_ac_Header'}'`
8826 { echo "$as_me:$LINENO: result: $ac_res" >&5
8827 echo "${ECHO_T}$ac_res" >&6; }
8829 # Is the header compilable?
8830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8832 cat >conftest.
$ac_ext <<_ACEOF
8835 cat confdefs.h
>>conftest.
$ac_ext
8836 cat >>conftest.
$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 $ac_includes_default
8839 #include <$ac_header>
8841 rm -f conftest.
$ac_objext
8842 if { (ac_try
="$ac_compile"
8844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest.$ac_objext; then
8858 ac_header_compiler=yes
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 ac_header_compiler=no
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8868 echo "${ECHO_T}$ac_header_compiler" >&6; }
8870 # Is the header present?
8871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <$ac_header>
8881 if { (ac_try="$ac_cpp conftest.$ac_ext"
8883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8884 *) ac_try_echo
=$ac_try;;
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8889 grep -v '^ *+' conftest.er1
>conftest.err
8891 cat conftest.err
>&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } >/dev
/null
&& {
8894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8895 test ! -s conftest.err
8897 ac_header_preproc
=yes
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.
$ac_ext >&5
8902 ac_header_preproc
=no
8905 rm -f conftest.err conftest.
$ac_ext
8906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8907 echo "${ECHO_T}$ac_header_preproc" >&6; }
8909 # So? What about this header?
8910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8916 ac_header_preproc
=yes
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8932 ## ---------------------------------------- ##
8933 ## Report this to pgsql-bugs@postgresql.org ##
8934 ## ---------------------------------------- ##
8936 ) |
sed "s/^/$as_me: WARNING: /" >&2
8939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8941 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 eval "$as_ac_Header=\$ac_header_preproc"
8946 ac_res
=`eval echo '${'$as_ac_Header'}'`
8947 { echo "$as_me:$LINENO: result: $ac_res" >&5
8948 echo "${ECHO_T}$ac_res" >&6; }
8951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952 cat >>confdefs.h
<<_ACEOF
8953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8961 for ac_header
in netinet
/tcp.h
8963 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8966 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 cat >conftest.
$ac_ext <<_ACEOF
8972 cat confdefs.h
>>conftest.
$ac_ext
8973 cat >>conftest.
$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8976 #ifdef HAVE_NETINET_IN_H
8977 #include <netinet/in.h>
8981 #include <$ac_header>
8983 rm -f conftest.
$ac_objext
8984 if { (ac_try
="$ac_compile"
8986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 eval "$as_ac_Header=yes"
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 eval "$as_ac_Header=no"
9008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 ac_res=`eval echo '${'$as_ac_Header'}'`
9011 { echo "$as_me:$LINENO: result: $ac_res" >&5
9012 echo "${ECHO_T}$ac_res" >&6; }
9013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9014 cat >>confdefs.h <<_ACEOF
9015 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9023 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9025 for ac_header in readline/readline.h
9027 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 ac_res=`eval echo '${'$as_ac_Header'}'`
9035 { echo "$as_me:$LINENO: result: $ac_res" >&5
9036 echo "${ECHO_T}$ac_res" >&6; }
9038 # Is the header compilable?
9039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9048 #include <$ac_header>
9050 rm -f conftest.$ac_objext
9051 if { (ac_try="$ac_compile"
9053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9054 *) ac_try_echo
=$ac_try;;
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_compile") 2>conftest.er1
9059 grep -v '^ *+' conftest.er1
>conftest.err
9061 cat conftest.err
>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.
$ac_objext; then
9067 ac_header_compiler
=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.
$ac_ext >&5
9072 ac_header_compiler
=no
9075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9077 echo "${ECHO_T}$ac_header_compiler" >&6; }
9079 # Is the header present?
9080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9082 cat >conftest.
$ac_ext <<_ACEOF
9085 cat confdefs.h
>>conftest.
$ac_ext
9086 cat >>conftest.
$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 #include <$ac_header>
9090 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9098 grep -v '^ *+' conftest.er1 >conftest.err
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } >/dev/null && {
9103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9106 ac_header_preproc=yes
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_header_preproc=no
9114 rm -f conftest.err conftest.$ac_ext
9115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9116 echo "${ECHO_T}$ac_header_preproc" >&6; }
9118 # So? What about this header?
9119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9125 ac_header_preproc=yes
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9141 ## ---------------------------------------- ##
9142 ## Report this to pgsql-bugs@postgresql.org ##
9143 ## ---------------------------------------- ##
9145 ) | sed "s/^/$as_me: WARNING: /" >&2
9148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 eval "$as_ac_Header=\$ac_header_preproc"
9155 ac_res=`eval echo '${'$as_ac_Header'}'`
9156 { echo "$as_me:$LINENO: result: $ac_res" >&5
9157 echo "${ECHO_T}$ac_res" >&6; }
9160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9161 cat >>confdefs.h <<_ACEOF
9162 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9167 for ac_header in readline.h
9169 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 ac_res=`eval echo '${'$as_ac_Header'}'`
9177 { echo "$as_me:$LINENO: result: $ac_res" >&5
9178 echo "${ECHO_T}$ac_res" >&6; }
9180 # Is the header compilable?
9181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9183 cat >conftest.$ac_ext <<_ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9190 #include <$ac_header>
9192 rm -f conftest.$ac_objext
9193 if { (ac_try="$ac_compile"
9195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9196 *) ac_try_echo
=$ac_try;;
9198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_compile") 2>conftest.er1
9201 grep -v '^ *+' conftest.er1
>conftest.err
9203 cat conftest.err
>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } && {
9206 test -z "$ac_c_werror_flag" ||
9207 test ! -s conftest.err
9208 } && test -s conftest.
$ac_objext; then
9209 ac_header_compiler
=yes
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.
$ac_ext >&5
9214 ac_header_compiler
=no
9217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9219 echo "${ECHO_T}$ac_header_compiler" >&6; }
9221 # Is the header present?
9222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9224 cat >conftest.
$ac_ext <<_ACEOF
9227 cat confdefs.h
>>conftest.
$ac_ext
9228 cat >>conftest.
$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 #include <$ac_header>
9232 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } >/dev/null && {
9245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9248 ac_header_preproc=yes
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 ac_header_preproc=no
9256 rm -f conftest.err conftest.$ac_ext
9257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9258 echo "${ECHO_T}$ac_header_preproc" >&6; }
9260 # So? What about this header?
9261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9267 ac_header_preproc=yes
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9283 ## ---------------------------------------- ##
9284 ## Report this to pgsql-bugs@postgresql.org ##
9285 ## ---------------------------------------- ##
9287 ) | sed "s/^/$as_me: WARNING: /" >&2
9290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 eval "$as_ac_Header=\$ac_header_preproc"
9297 ac_res=`eval echo '${'$as_ac_Header'}'`
9298 { echo "$as_me:$LINENO: result: $ac_res" >&5
9299 echo "${ECHO_T}$ac_res" >&6; }
9302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9303 cat >>confdefs.h <<_ACEOF
9304 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9308 { { echo "$as_me:$LINENO: error: readline header not found
9309 If you have readline already installed, see config.log for details on the
9310 failure. It is possible the compiler isn't looking in the proper directory.
9311 Use --without-readline to disable readline support." >&5
9312 echo "$as_me: error: readline header not found
9313 If you have readline already installed, see config.log for details on the
9314 failure. It is possible the compiler isn't looking in the proper directory.
9315 Use --without-readline to disable readline support." >&2;}
9316 { (exit 1); exit 1; }; }
9326 for ac_header in readline/history.h
9328 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 ac_res=`eval echo '${'$as_ac_Header'}'`
9336 { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9339 # Is the header compilable?
9340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9349 #include <$ac_header>
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9355 *) ac_try_echo
=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1
>conftest.err
9362 cat conftest.err
>&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest.
$ac_objext; then
9368 ac_header_compiler
=yes
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.
$ac_ext >&5
9373 ac_header_compiler
=no
9376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9378 echo "${ECHO_T}$ac_header_compiler" >&6; }
9380 # Is the header present?
9381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9383 cat >conftest.
$ac_ext <<_ACEOF
9386 cat confdefs.h
>>conftest.
$ac_ext
9387 cat >>conftest.
$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <$ac_header>
9391 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } >/dev/null && {
9404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9407 ac_header_preproc=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_header_preproc=no
9415 rm -f conftest.err conftest.$ac_ext
9416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9417 echo "${ECHO_T}$ac_header_preproc" >&6; }
9419 # So? What about this header?
9420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9426 ac_header_preproc=yes
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9442 ## ---------------------------------------- ##
9443 ## Report this to pgsql-bugs@postgresql.org ##
9444 ## ---------------------------------------- ##
9446 ) | sed "s/^/$as_me: WARNING: /" >&2
9449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 eval "$as_ac_Header=\$ac_header_preproc"
9456 ac_res=`eval echo '${'$as_ac_Header'}'`
9457 { echo "$as_me:$LINENO: result: $ac_res" >&5
9458 echo "${ECHO_T}$ac_res" >&6; }
9461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9462 cat >>confdefs.h <<_ACEOF
9463 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9468 for ac_header in history.h
9470 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_res=`eval echo '${'$as_ac_Header'}'`
9478 { echo "$as_me:$LINENO: result: $ac_res" >&5
9479 echo "${ECHO_T}$ac_res" >&6; }
9481 # Is the header compilable?
9482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9491 #include <$ac_header>
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9497 *) ac_try_echo
=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1
>conftest.err
9504 cat conftest.err
>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.
$ac_objext; then
9510 ac_header_compiler
=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9515 ac_header_compiler
=no
9518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520 echo "${ECHO_T}$ac_header_compiler" >&6; }
9522 # Is the header present?
9523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 #include <$ac_header>
9533 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9541 grep -v '^ *+' conftest.er1 >conftest.err
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } >/dev/null && {
9546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9549 ac_header_preproc=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 ## ---------------------------------------- ##
9585 ## Report this to pgsql-bugs@postgresql.org ##
9586 ## ---------------------------------------- ##
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9609 { { echo "$as_me:$LINENO: error: history header not found
9610 If you have readline already installed, see config.log for details on the
9611 failure. It is possible the compiler isn't looking in the proper directory.
9612 Use --without-readline to disable readline support." >&5
9613 echo "$as_me: error: history header not found
9614 If you have readline already installed, see config.log for details on the
9615 failure. It is possible the compiler isn't looking in the proper directory.
9616 Use --without-readline to disable readline support." >&2;}
9617 { (exit 1); exit 1; }; }
9628 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9629 # Some installations of libedit usurp /usr/include/readline/, which seems
9630 # bad practice, since in combined installations readline will have its headers
9631 # there. We might have to resort to AC_EGREP checks to make sure we found
9632 # the proper header...
9634 for ac_header in editline/readline.h
9636 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_res=`eval echo '${'$as_ac_Header'}'`
9644 { echo "$as_me:$LINENO: result: $ac_res" >&5
9645 echo "${ECHO_T}$ac_res" >&6; }
9647 # Is the header compilable?
9648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 $ac_includes_default
9657 #include <$ac_header>
9659 rm -f conftest.$ac_objext
9660 if { (ac_try="$ac_compile"
9662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9663 *) ac_try_echo
=$ac_try;;
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_compile") 2>conftest.er1
9668 grep -v '^ *+' conftest.er1
>conftest.err
9670 cat conftest.err
>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest.
$ac_objext; then
9676 ac_header_compiler
=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.
$ac_ext >&5
9681 ac_header_compiler
=no
9684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9686 echo "${ECHO_T}$ac_header_compiler" >&6; }
9688 # Is the header present?
9689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9691 cat >conftest.
$ac_ext <<_ACEOF
9694 cat confdefs.h
>>conftest.
$ac_ext
9695 cat >>conftest.
$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <$ac_header>
9699 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } >/dev/null && {
9712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9715 ac_header_preproc=yes
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_header_preproc=no
9723 rm -f conftest.err conftest.$ac_ext
9724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9725 echo "${ECHO_T}$ac_header_preproc" >&6; }
9727 # So? What about this header?
9728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9734 ac_header_preproc=yes
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9750 ## ---------------------------------------- ##
9751 ## Report this to pgsql-bugs@postgresql.org ##
9752 ## ---------------------------------------- ##
9754 ) | sed "s/^/$as_me: WARNING: /" >&2
9757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 eval "$as_ac_Header=\$ac_header_preproc"
9764 ac_res=`eval echo '${'$as_ac_Header'}'`
9765 { echo "$as_me:$LINENO: result: $ac_res" >&5
9766 echo "${ECHO_T}$ac_res" >&6; }
9769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9776 for ac_header in readline.h
9778 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_res=`eval echo '${'$as_ac_Header'}'`
9786 { echo "$as_me:$LINENO: result: $ac_res" >&5
9787 echo "${ECHO_T}$ac_res" >&6; }
9789 # Is the header compilable?
9790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9792 cat >conftest.$ac_ext <<_ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 $ac_includes_default
9799 #include <$ac_header>
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9805 *) ac_try_echo
=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_compile") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1
>conftest.err
9812 cat conftest.err
>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest.
$ac_objext; then
9818 ac_header_compiler
=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.
$ac_ext >&5
9823 ac_header_compiler
=no
9826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9828 echo "${ECHO_T}$ac_header_compiler" >&6; }
9830 # Is the header present?
9831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <$ac_header>
9841 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9849 grep -v '^ *+' conftest.er1 >conftest.err
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } >/dev/null && {
9854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9857 ac_header_preproc=yes
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_header_preproc=no
9865 rm -f conftest.err conftest.$ac_ext
9866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9867 echo "${ECHO_T}$ac_header_preproc" >&6; }
9869 # So? What about this header?
9870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9876 ac_header_preproc=yes
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892 ## ---------------------------------------- ##
9893 ## Report this to pgsql-bugs@postgresql.org ##
9894 ## ---------------------------------------- ##
9896 ) | sed "s/^/$as_me: WARNING: /" >&2
9899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 eval "$as_ac_Header=\$ac_header_preproc"
9906 ac_res=`eval echo '${'$as_ac_Header'}'`
9907 { echo "$as_me:$LINENO: result: $ac_res" >&5
9908 echo "${ECHO_T}$ac_res" >&6; }
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9918 for ac_header in readline/readline.h
9920 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 ac_res=`eval echo '${'$as_ac_Header'}'`
9928 { echo "$as_me:$LINENO: result: $ac_res" >&5
9929 echo "${ECHO_T}$ac_res" >&6; }
9931 # Is the header compilable?
9932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 #include <$ac_header>
9943 rm -f conftest.$ac_objext
9944 if { (ac_try="$ac_compile"
9946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9947 *) ac_try_echo
=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_compile") 2>conftest.er1
9952 grep -v '^ *+' conftest.er1
>conftest.err
9954 cat conftest.err
>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest.
$ac_objext; then
9960 ac_header_compiler
=yes
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.
$ac_ext >&5
9965 ac_header_compiler
=no
9968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9970 echo "${ECHO_T}$ac_header_compiler" >&6; }
9972 # Is the header present?
9973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9975 cat >conftest.
$ac_ext <<_ACEOF
9978 cat confdefs.h
>>conftest.
$ac_ext
9979 cat >>conftest.
$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 #include <$ac_header>
9983 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev/null && {
9996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9999 ac_header_preproc=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_header_preproc=no
10007 rm -f conftest.err conftest.$ac_ext
10008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10009 echo "${ECHO_T}$ac_header_preproc" >&6; }
10011 # So? What about this header?
10012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10018 ac_header_preproc=yes
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10034 ## ---------------------------------------- ##
10035 ## Report this to pgsql-bugs@postgresql.org ##
10036 ## ---------------------------------------- ##
10038 ) | sed "s/^/$as_me: WARNING: /" >&2
10041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 eval "$as_ac_Header=\$ac_header_preproc"
10048 ac_res=`eval echo '${'$as_ac_Header'}'`
10049 { echo "$as_me:$LINENO: result: $ac_res" >&5
10050 echo "${ECHO_T}$ac_res" >&6; }
10053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10059 { { echo "$as_me:$LINENO: error: readline header not found
10060 If you have libedit already installed, see config.log for details on the
10061 failure. It is possible the compiler isn't looking in the proper directory.
10062 Use --without-readline to disable libedit support." >&5
10063 echo "$as_me: error: readline header not found
10064 If you have libedit already installed, see config.log for details on the
10065 failure. It is possible the compiler isn't looking in the proper directory.
10066 Use --without-readline to disable libedit support." >&2;}
10067 { (exit 1); exit 1; }; }
10080 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10081 # not be there at all. Hence, don't complain if not found. We must check
10082 # though, since in yet other versions it is an independent header.
10084 for ac_header in editline/history.h
10086 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 ac_res=`eval echo '${'$as_ac_Header'}'`
10094 { echo "$as_me:$LINENO: result: $ac_res" >&5
10095 echo "${ECHO_T}$ac_res" >&6; }
10097 # Is the header compilable?
10098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 $ac_includes_default
10107 #include <$ac_header>
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10113 *) ac_try_echo
=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_compile") 2>conftest.er1
10118 grep -v '^ *+' conftest.er1
>conftest.err
10120 cat conftest.err
>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest.
$ac_objext; then
10126 ac_header_compiler
=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.
$ac_ext >&5
10131 ac_header_compiler
=no
10134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 echo "${ECHO_T}$ac_header_compiler" >&6; }
10138 # Is the header present?
10139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10141 cat >conftest.
$ac_ext <<_ACEOF
10144 cat confdefs.h
>>conftest.
$ac_ext
10145 cat >>conftest.
$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <$ac_header>
10149 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } >/dev/null && {
10162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163 test ! -s conftest.err
10165 ac_header_preproc=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_header_preproc=no
10173 rm -f conftest.err conftest.$ac_ext
10174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6; }
10177 # So? What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184 ac_header_preproc=yes
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10200 ## ---------------------------------------- ##
10201 ## Report this to pgsql-bugs@postgresql.org ##
10202 ## ---------------------------------------- ##
10204 ) | sed "s/^/$as_me: WARNING: /" >&2
10207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 eval "$as_ac_Header=\$ac_header_preproc"
10214 ac_res=`eval echo '${'$as_ac_Header'}'`
10215 { echo "$as_me:$LINENO: result: $ac_res" >&5
10216 echo "${ECHO_T}$ac_res" >&6; }
10219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10226 for ac_header in history.h
10228 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 ac_res=`eval echo '${'$as_ac_Header'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10239 # Is the header compilable?
10240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 #include <$ac_header>
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10255 *) ac_try_echo
=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_compile") 2>conftest.er1
10260 grep -v '^ *+' conftest.er1
>conftest.err
10262 cat conftest.err
>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest.
$ac_objext; then
10268 ac_header_compiler
=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.
$ac_ext >&5
10273 ac_header_compiler
=no
10276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278 echo "${ECHO_T}$ac_header_compiler" >&6; }
10280 # Is the header present?
10281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10283 cat >conftest.
$ac_ext <<_ACEOF
10286 cat confdefs.h
>>conftest.
$ac_ext
10287 cat >>conftest.
$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 #include <$ac_header>
10291 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10292 case "(($ac_try" in
10293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } >/dev/null && {
10304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10307 ac_header_preproc=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_header_preproc=no
10315 rm -f conftest.err conftest.$ac_ext
10316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10317 echo "${ECHO_T}$ac_header_preproc" >&6; }
10319 # So? What about this header?
10320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10326 ac_header_preproc=yes
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10342 ## ---------------------------------------- ##
10343 ## Report this to pgsql-bugs@postgresql.org ##
10344 ## ---------------------------------------- ##
10346 ) | sed "s/^/$as_me: WARNING: /" >&2
10349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 eval "$as_ac_Header=\$ac_header_preproc"
10356 ac_res=`eval echo '${'$as_ac_Header'}'`
10357 { echo "$as_me:$LINENO: result: $ac_res" >&5
10358 echo "${ECHO_T}$ac_res" >&6; }
10361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10368 for ac_header in readline/history.h
10370 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_res=`eval echo '${'$as_ac_Header'}'`
10378 { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10381 # Is the header compilable?
10382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 $ac_includes_default
10391 #include <$ac_header>
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10397 *) ac_try_echo
=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1
>conftest.err
10404 cat conftest.err
>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest.
$ac_objext; then
10410 ac_header_compiler
=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.
$ac_ext >&5
10415 ac_header_compiler
=no
10418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10420 echo "${ECHO_T}$ac_header_compiler" >&6; }
10422 # Is the header present?
10423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10425 cat >conftest.
$ac_ext <<_ACEOF
10428 cat confdefs.h
>>conftest.
$ac_ext
10429 cat >>conftest.
$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <$ac_header>
10433 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10434 case "(($ac_try" in
10435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10441 grep -v '^ *+' conftest.er1 >conftest.err
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } >/dev/null && {
10446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10447 test ! -s conftest.err
10449 ac_header_preproc=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_header_preproc=no
10457 rm -f conftest.err conftest.$ac_ext
10458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10459 echo "${ECHO_T}$ac_header_preproc" >&6; }
10461 # So? What about this header?
10462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10468 ac_header_preproc=yes
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10484 ## ---------------------------------------- ##
10485 ## Report this to pgsql-bugs@postgresql.org ##
10486 ## ---------------------------------------- ##
10488 ) | sed "s/^/$as_me: WARNING: /" >&2
10491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 eval "$as_ac_Header=\$ac_header_preproc"
10498 ac_res=`eval echo '${'$as_ac_Header'}'`
10499 { echo "$as_me:$LINENO: result: $ac_res" >&5
10500 echo "${ECHO_T}$ac_res" >&6; }
10503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10522 if test "$with_zlib" = yes; then
10523 if test "${ac_cv_header_zlib_h+set}" = set; then
10524 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10525 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10526 if test "${ac_cv_header_zlib_h+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10530 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10532 # Is the header compilable?
10533 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10534 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 $ac_includes_default
10544 rm -f conftest.$ac_objext
10545 if { (ac_try="$ac_compile"
10546 case "(($ac_try" in
10547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10548 *) ac_try_echo
=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_compile") 2>conftest.er1
10553 grep -v '^ *+' conftest.er1
>conftest.err
10555 cat conftest.err
>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_c_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest.
$ac_objext; then
10561 ac_header_compiler
=yes
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.
$ac_ext >&5
10566 ac_header_compiler
=no
10569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571 echo "${ECHO_T}$ac_header_compiler" >&6; }
10573 # Is the header present?
10574 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10575 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10576 cat >conftest.
$ac_ext <<_ACEOF
10579 cat confdefs.h
>>conftest.
$ac_ext
10580 cat >>conftest.
$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10584 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10585 case "(($ac_try" in
10586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null && {
10597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10600 ac_header_preproc=yes
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 ac_header_preproc=no
10608 rm -f conftest.err conftest.$ac_ext
10609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10610 echo "${ECHO_T}$ac_header_preproc" >&6; }
10612 # So? What about this header?
10613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10615 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10616 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10618 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10619 ac_header_preproc=yes
10622 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10623 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10625 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10627 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10629 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10631 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10633 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10635 ## ---------------------------------------- ##
10636 ## Report this to pgsql-bugs@postgresql.org ##
10637 ## ---------------------------------------- ##
10639 ) | sed "s/^/$as_me: WARNING: /" >&2
10642 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10643 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10644 if test "${ac_cv_header_zlib_h+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 ac_cv_header_zlib_h=$ac_header_preproc
10649 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10650 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10653 if test $ac_cv_header_zlib_h = yes; then
10656 { { echo "$as_me:$LINENO: error: zlib header not found
10657 If you have zlib already installed, see config.log for details on the
10658 failure. It is possible the compiler isn't looking in the proper directory.
10659 Use --without-zlib to disable zlib support." >&5
10660 echo "$as_me: error: zlib header not found
10661 If you have zlib already installed, see config.log for details on the
10662 failure. It is possible the compiler isn't looking in the proper directory.
10663 Use --without-zlib to disable zlib support." >&2;}
10664 { (exit 1); exit 1; }; }
10670 if test "$with_gssapi" = yes ; then
10672 for ac_header in gssapi/gssapi.h
10674 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_res=`eval echo '${'$as_ac_Header'}'`
10682 { echo "$as_me:$LINENO: result: $ac_res" >&5
10683 echo "${ECHO_T}$ac_res" >&6; }
10685 # Is the header compilable?
10686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 $ac_includes_default
10695 #include <$ac_header>
10697 rm -f conftest.$ac_objext
10698 if { (ac_try="$ac_compile"
10699 case "(($ac_try" in
10700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10701 *) ac_try_echo
=$ac_try;;
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_compile") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1
>conftest.err
10708 cat conftest.err
>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest.
$ac_objext; then
10714 ac_header_compiler
=yes
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.
$ac_ext >&5
10719 ac_header_compiler
=no
10722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724 echo "${ECHO_T}$ac_header_compiler" >&6; }
10726 # Is the header present?
10727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10729 cat >conftest.
$ac_ext <<_ACEOF
10732 cat confdefs.h
>>conftest.
$ac_ext
10733 cat >>conftest.
$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 #include <$ac_header>
10737 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10738 case "(($ac_try" in
10739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null && {
10750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10753 ac_header_preproc=yes
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_header_preproc=no
10761 rm -f conftest.err conftest.$ac_ext
10762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10763 echo "${ECHO_T}$ac_header_preproc" >&6; }
10765 # So? What about this header?
10766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10772 ac_header_preproc=yes
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10788 ## ---------------------------------------- ##
10789 ## Report this to pgsql-bugs@postgresql.org ##
10790 ## ---------------------------------------- ##
10792 ) | sed "s/^/$as_me: WARNING: /" >&2
10795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 eval "$as_ac_Header=\$ac_header_preproc"
10802 ac_res=`eval echo '${'$as_ac_Header'}'`
10803 { echo "$as_me:$LINENO: result: $ac_res" >&5
10804 echo "${ECHO_T}$ac_res" >&6; }
10807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10808 cat >>confdefs.h <<_ACEOF
10809 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10814 for ac_header in gssapi.h
10816 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 ac_res=`eval echo '${'$as_ac_Header'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10827 # Is the header compilable?
10828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 #include <$ac_header>
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10843 *) ac_try_echo
=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_compile") 2>conftest.er1
10848 grep -v '^ *+' conftest.er1
>conftest.err
10850 cat conftest.err
>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest.
$ac_objext; then
10856 ac_header_compiler
=yes
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.
$ac_ext >&5
10861 ac_header_compiler
=no
10864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10866 echo "${ECHO_T}$ac_header_compiler" >&6; }
10868 # Is the header present?
10869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10871 cat >conftest.
$ac_ext <<_ACEOF
10874 cat confdefs.h
>>conftest.
$ac_ext
10875 cat >>conftest.
$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <$ac_header>
10879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10880 case "(($ac_try" in
10881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10887 grep -v '^ *+' conftest.er1 >conftest.err
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } >/dev/null && {
10892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10895 ac_header_preproc=yes
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900 ac_header_preproc=no
10903 rm -f conftest.err conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905 echo "${ECHO_T}$ac_header_preproc" >&6; }
10907 # So? What about this header?
10908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10914 ac_header_preproc=yes
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10930 ## ---------------------------------------- ##
10931 ## Report this to pgsql-bugs@postgresql.org ##
10932 ## ---------------------------------------- ##
10934 ) | sed "s/^/$as_me: WARNING: /" >&2
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 eval "$as_ac_Header=\$ac_header_preproc"
10944 ac_res=`eval echo '${'$as_ac_Header'}'`
10945 { echo "$as_me:$LINENO: result: $ac_res" >&5
10946 echo "${ECHO_T}$ac_res" >&6; }
10949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10955 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10956 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10957 { (exit 1); exit 1; }; }
10968 if test "$with_krb5" = yes ; then
10969 if test "${ac_cv_header_krb5_h+set}" = set; then
10970 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10971 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10972 if test "${ac_cv_header_krb5_h+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10976 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10978 # Is the header compilable?
10979 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10980 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10994 *) ac_try_echo
=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_compile") 2>conftest.er1
10999 grep -v '^ *+' conftest.er1
>conftest.err
11001 cat conftest.err
>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest.
$ac_objext; then
11007 ac_header_compiler
=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.
$ac_ext >&5
11012 ac_header_compiler
=no
11015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11017 echo "${ECHO_T}$ac_header_compiler" >&6; }
11019 # Is the header present?
11020 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11021 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11030 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11031 case "(($ac_try" in
11032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } >/dev/null && {
11043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11046 ac_header_preproc=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_preproc=no
11054 rm -f conftest.err conftest.$ac_ext
11055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11056 echo "${ECHO_T}$ac_header_preproc" >&6; }
11058 # So? What about this header?
11059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11061 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11062 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11064 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11065 ac_header_preproc=yes
11068 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11069 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11071 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11073 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11075 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11077 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11079 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11081 ## ---------------------------------------- ##
11082 ## Report this to pgsql-bugs@postgresql.org ##
11083 ## ---------------------------------------- ##
11085 ) | sed "s/^/$as_me: WARNING: /" >&2
11088 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11089 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11090 if test "${ac_cv_header_krb5_h+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 ac_cv_header_krb5_h=$ac_header_preproc
11095 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11096 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11099 if test $ac_cv_header_krb5_h = yes; then
11102 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11103 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11104 { (exit 1); exit 1; }; }
11110 if test "$with_openssl" = yes ; then
11111 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11112 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11113 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11114 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11118 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11120 # Is the header compilable?
11121 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11122 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 $ac_includes_default
11130 #include <openssl/ssl.h>
11132 rm -f conftest.$ac_objext
11133 if { (ac_try="$ac_compile"
11134 case "(($ac_try" in
11135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11136 *) ac_try_echo
=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_compile") 2>conftest.er1
11141 grep -v '^ *+' conftest.er1
>conftest.err
11143 cat conftest.err
>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } && {
11146 test -z "$ac_c_werror_flag" ||
11147 test ! -s conftest.err
11148 } && test -s conftest.
$ac_objext; then
11149 ac_header_compiler
=yes
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.
$ac_ext >&5
11154 ac_header_compiler
=no
11157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11159 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161 # Is the header present?
11162 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11163 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11164 cat >conftest.
$ac_ext <<_ACEOF
11167 cat confdefs.h
>>conftest.
$ac_ext
11168 cat >>conftest.
$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 #include <openssl/ssl.h>
11172 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11173 case "(($ac_try" in
11174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } >/dev/null && {
11185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11188 ac_header_preproc=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_preproc=no
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11200 # So? What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11210 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11223 ## ---------------------------------------- ##
11224 ## Report this to pgsql-bugs@postgresql.org ##
11225 ## ---------------------------------------- ##
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11230 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11231 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11232 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11237 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11238 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11241 if test $ac_cv_header_openssl_ssl_h = yes; then
11244 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11245 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11246 { (exit 1); exit 1; }; }
11250 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11251 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11252 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11253 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11257 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11259 # Is the header compilable?
11260 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11261 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 #include <openssl/err.h>
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11275 *) ac_try_echo
=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_compile") 2>conftest.er1
11280 grep -v '^ *+' conftest.er1
>conftest.err
11282 cat conftest.err
>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest.
$ac_objext; then
11288 ac_header_compiler
=yes
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.
$ac_ext >&5
11293 ac_header_compiler
=no
11296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11302 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11303 cat >conftest.
$ac_ext <<_ACEOF
11306 cat confdefs.h
>>conftest.
$ac_ext
11307 cat >>conftest.
$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <openssl/err.h>
11311 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null && {
11324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11325 test ! -s conftest.err
11327 ac_header_preproc=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_header_preproc=no
11335 rm -f conftest.err conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11337 echo "${ECHO_T}$ac_header_preproc" >&6; }
11339 # So? What about this header?
11340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11342 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11343 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11345 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11346 ac_header_preproc=yes
11349 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11350 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11352 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11354 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11356 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11358 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11360 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11362 ## ---------------------------------------- ##
11363 ## Report this to pgsql-bugs@postgresql.org ##
11364 ## ---------------------------------------- ##
11366 ) | sed "s/^/$as_me: WARNING: /" >&2
11369 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11370 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11371 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 ac_cv_header_openssl_err_h=$ac_header_preproc
11376 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11377 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11380 if test $ac_cv_header_openssl_err_h = yes; then
11383 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11384 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11385 { (exit 1); exit 1; }; }
11390 for ac_func in ERR_set_mark
11392 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 cat >conftest.$ac_ext <<_ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11406 #define $ac_func innocuous_$ac_func
11408 /* System header to define __stub macros and hopefully few prototypes,
11409 which can conflict with char $ac_func (); below.
11410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11411 <limits.h> exists even on freestanding compilers. */
11414 # include <limits.h>
11416 # include <assert.h>
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11428 /* The GNU C library defines this for functions which it implements
11429 to always fail with ENOSYS. Some functions are actually named
11430 something starting with __ and the normal name is an alias. */
11431 #if defined __stub_$ac_func || defined __stub___$ac_func
11438 return $ac_func ();
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11447 *) ac_try_echo
=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_link") 2>conftest.er1
11452 grep -v '^ *+' conftest.er1
>conftest.err
11454 cat conftest.err
>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest
$ac_exeext &&
11460 $as_test_x conftest
$ac_exeext; then
11461 eval "$as_ac_var=yes"
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.
$ac_ext >&5
11466 eval "$as_ac_var=no"
11469 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11470 conftest
$ac_exeext conftest.
$ac_ext
11472 ac_res
=`eval echo '${'$as_ac_var'}'`
11473 { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11475 if test `eval echo '${'$as_ac_var'}'` = yes; then
11476 cat >>confdefs.h
<<_ACEOF
11477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11485 if test "$with_pam" = yes ; then
11487 for ac_header
in security
/pam_appl.h
11489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11490 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11493 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 ac_res
=`eval echo '${'$as_ac_Header'}'`
11497 { echo "$as_me:$LINENO: result: $ac_res" >&5
11498 echo "${ECHO_T}$ac_res" >&6; }
11500 # Is the header compilable?
11501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 #include <$ac_header>
11512 rm -f conftest.
$ac_objext
11513 if { (ac_try
="$ac_compile"
11514 case "(($ac_try" in
11515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_compile") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1 >conftest.err
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } && {
11526 test -z "$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 } && test -s conftest.$ac_objext; then
11529 ac_header_compiler=yes
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_header_compiler=no
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 echo "${ECHO_T}$ac_header_compiler" >&6; }
11541 # Is the header present?
11542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <$ac_header>
11552 if { (ac_try="$ac_cpp conftest.$ac_ext"
11553 case "(($ac_try" in
11554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11555 *) ac_try_echo
=$ac_try;;
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11560 grep -v '^ *+' conftest.er1
>conftest.err
11562 cat conftest.err
>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } >/dev
/null
&& {
11565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11566 test ! -s conftest.err
11568 ac_header_preproc
=yes
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.
$ac_ext >&5
11573 ac_header_preproc
=no
11576 rm -f conftest.err conftest.
$ac_ext
11577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11578 echo "${ECHO_T}$ac_header_preproc" >&6; }
11580 # So? What about this header?
11581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11587 ac_header_preproc
=yes
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11603 ## ---------------------------------------- ##
11604 ## Report this to pgsql-bugs@postgresql.org ##
11605 ## ---------------------------------------- ##
11607 ) |
sed "s/^/$as_me: WARNING: /" >&2
11610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11612 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 eval "$as_ac_Header=\$ac_header_preproc"
11617 ac_res
=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11623 cat >>confdefs.h
<<_ACEOF
11624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11629 for ac_header
in pam
/pam_appl.h
11631 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_res
=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11642 # Is the header compilable?
11643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11645 cat >conftest.
$ac_ext <<_ACEOF
11648 cat confdefs.h
>>conftest.
$ac_ext
11649 cat >>conftest.
$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11652 #include <$ac_header>
11654 rm -f conftest.
$ac_objext
11655 if { (ac_try
="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest.$ac_objext; then
11671 ac_header_compiler=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_compiler=no
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 echo "${ECHO_T}$ac_header_compiler" >&6; }
11683 # Is the header present?
11684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <$ac_header>
11694 if { (ac_try="$ac_cpp conftest.$ac_ext"
11695 case "(($ac_try" in
11696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11697 *) ac_try_echo
=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1
>conftest.err
11704 cat conftest.err
>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } >/dev
/null
&& {
11707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11710 ac_header_preproc
=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.
$ac_ext >&5
11715 ac_header_preproc
=no
11718 rm -f conftest.err conftest.
$ac_ext
11719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11720 echo "${ECHO_T}$ac_header_preproc" >&6; }
11722 # So? What about this header?
11723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11729 ac_header_preproc
=yes
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11745 ## ---------------------------------------- ##
11746 ## Report this to pgsql-bugs@postgresql.org ##
11747 ## ---------------------------------------- ##
11749 ) |
sed "s/^/$as_me: WARNING: /" >&2
11752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 eval "$as_ac_Header=\$ac_header_preproc"
11759 ac_res
=`eval echo '${'$as_ac_Header'}'`
11760 { echo "$as_me:$LINENO: result: $ac_res" >&5
11761 echo "${ECHO_T}$ac_res" >&6; }
11764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11765 cat >>confdefs.h
<<_ACEOF
11766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11770 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11771 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11772 { (exit 1); exit 1; }; }
11783 if test "$with_libxml" = yes ; then
11784 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11785 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11786 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11787 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11791 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11793 # Is the header compilable?
11794 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11795 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11796 cat >conftest.
$ac_ext <<_ACEOF
11799 cat confdefs.h
>>conftest.
$ac_ext
11800 cat >>conftest.
$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 $ac_includes_default
11803 #include <libxml/parser.h>
11805 rm -f conftest.
$ac_objext
11806 if { (ac_try
="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11814 grep -v '^ *+' conftest.er1 >conftest.err
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.$ac_objext; then
11822 ac_header_compiler=yes
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_header_compiler=no
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11836 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 #include <libxml/parser.h>
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11848 *) ac_try_echo
=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11853 grep -v '^ *+' conftest.er1
>conftest.err
11855 cat conftest.err
>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } >/dev
/null
&& {
11858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11861 ac_header_preproc
=yes
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11866 ac_header_preproc
=no
11869 rm -f conftest.err conftest.
$ac_ext
11870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11871 echo "${ECHO_T}$ac_header_preproc" >&6; }
11873 # So? What about this header?
11874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11876 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11877 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11879 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11880 ac_header_preproc
=yes
11883 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11884 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11886 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11888 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11890 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11894 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11896 ## ---------------------------------------- ##
11897 ## Report this to pgsql-bugs@postgresql.org ##
11898 ## ---------------------------------------- ##
11900 ) |
sed "s/^/$as_me: WARNING: /" >&2
11903 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11904 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11905 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 ac_cv_header_libxml_parser_h
=$ac_header_preproc
11910 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11911 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11914 if test $ac_cv_header_libxml_parser_h = yes; then
11917 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11918 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11919 { (exit 1); exit 1; }; }
11925 if test "$with_libxslt" = yes ; then
11926 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11927 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11928 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11929 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11933 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11935 # Is the header compilable?
11936 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11937 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11938 cat >conftest.
$ac_ext <<_ACEOF
11941 cat confdefs.h
>>conftest.
$ac_ext
11942 cat >>conftest.
$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11945 #include <libxslt/xslt.h>
11947 rm -f conftest.
$ac_objext
11948 if { (ac_try
="$ac_compile"
11949 case "(($ac_try" in
11950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 ac_header_compiler=yes
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_header_compiler=no
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11974 echo "${ECHO_T}$ac_header_compiler" >&6; }
11976 # Is the header present?
11977 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11978 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11979 cat >conftest.$ac_ext <<_ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 #include <libxslt/xslt.h>
11987 if { (ac_try="$ac_cpp conftest.$ac_ext"
11988 case "(($ac_try" in
11989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11990 *) ac_try_echo
=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1
>conftest.err
11997 cat conftest.err
>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } >/dev
/null
&& {
12000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12003 ac_header_preproc
=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.
$ac_ext >&5
12008 ac_header_preproc
=no
12011 rm -f conftest.err conftest.
$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12013 echo "${ECHO_T}$ac_header_preproc" >&6; }
12015 # So? What about this header?
12016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12018 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12019 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12021 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12022 ac_header_preproc
=yes
12025 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12026 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12028 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12030 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12032 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12034 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12036 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12038 ## ---------------------------------------- ##
12039 ## Report this to pgsql-bugs@postgresql.org ##
12040 ## ---------------------------------------- ##
12042 ) |
sed "s/^/$as_me: WARNING: /" >&2
12045 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12046 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12047 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
12052 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12053 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12056 if test $ac_cv_header_libxslt_xslt_h = yes; then
12059 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12060 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12061 { (exit 1); exit 1; }; }
12067 if test "$with_ldap" = yes ; then
12068 if test "$PORTNAME" != "win32"; then
12070 for ac_header
in ldap.h
12072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12073 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12076 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 ac_res
=`eval echo '${'$as_ac_Header'}'`
12080 { echo "$as_me:$LINENO: result: $ac_res" >&5
12081 echo "${ECHO_T}$ac_res" >&6; }
12083 # Is the header compilable?
12084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12086 cat >conftest.
$ac_ext <<_ACEOF
12089 cat confdefs.h
>>conftest.
$ac_ext
12090 cat >>conftest.
$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 $ac_includes_default
12093 #include <$ac_header>
12095 rm -f conftest.
$ac_objext
12096 if { (ac_try
="$ac_compile"
12097 case "(($ac_try" in
12098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_compile") 2>conftest.er1
12104 grep -v '^ *+' conftest.er1 >conftest.err
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest.$ac_objext; then
12112 ac_header_compiler=yes
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_header_compiler=no
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12122 echo "${ECHO_T}$ac_header_compiler" >&6; }
12124 # Is the header present?
12125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12127 cat >conftest.$ac_ext <<_ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 #include <$ac_header>
12135 if { (ac_try="$ac_cpp conftest.$ac_ext"
12136 case "(($ac_try" in
12137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12138 *) ac_try_echo
=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1
>conftest.err
12145 cat conftest.err
>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } >/dev
/null
&& {
12148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12151 ac_header_preproc
=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.
$ac_ext >&5
12156 ac_header_preproc
=no
12159 rm -f conftest.err conftest.
$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12161 echo "${ECHO_T}$ac_header_preproc" >&6; }
12163 # So? What about this header?
12164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12170 ac_header_preproc
=yes
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12186 ## ---------------------------------------- ##
12187 ## Report this to pgsql-bugs@postgresql.org ##
12188 ## ---------------------------------------- ##
12190 ) |
sed "s/^/$as_me: WARNING: /" >&2
12193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12195 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 eval "$as_ac_Header=\$ac_header_preproc"
12200 ac_res
=`eval echo '${'$as_ac_Header'}'`
12201 { echo "$as_me:$LINENO: result: $ac_res" >&5
12202 echo "${ECHO_T}$ac_res" >&6; }
12205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 cat >>confdefs.h
<<_ACEOF
12207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12211 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12212 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12213 { (exit 1); exit 1; }; }
12220 for ac_header
in winldap.h
12222 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 cat >conftest.
$ac_ext <<_ACEOF
12231 cat confdefs.h
>>conftest.
$ac_ext
12232 cat >>conftest.
$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 $ac_includes_default
12235 #include <windows.h>
12238 #include <$ac_header>
12240 rm -f conftest.
$ac_objext
12241 if { (ac_try
="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12249 grep -v '^ *+' conftest.er1 >conftest.err
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.$ac_objext; then
12257 eval "$as_ac_Header=yes"
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 eval "$as_ac_Header=no"
12265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12267 ac_res=`eval echo '${'$as_ac_Header'}'`
12268 { echo "$as_me:$LINENO: result: $ac_res" >&5
12269 echo "${ECHO_T}$ac_res" >&6; }
12270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12276 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12277 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12278 { (exit 1); exit 1; }; }
12286 if test "$with_bonjour" = yes ; then
12287 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12288 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12289 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12290 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12294 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12296 # Is the header compilable?
12297 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12298 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12306 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12312 *) ac_try_echo
=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1
>conftest.err
12319 cat conftest.err
>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.
$ac_objext; then
12325 ac_header_compiler
=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.
$ac_ext >&5
12330 ac_header_compiler
=no
12333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 echo "${ECHO_T}$ac_header_compiler" >&6; }
12337 # Is the header present?
12338 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12339 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12340 cat >conftest.
$ac_ext <<_ACEOF
12343 cat confdefs.h
>>conftest.
$ac_ext
12344 cat >>conftest.
$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12348 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12349 case "(($ac_try" in
12350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } >/dev/null && {
12361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12364 ac_header_preproc=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_header_preproc=no
12372 rm -f conftest.err conftest.$ac_ext
12373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12374 echo "${ECHO_T}$ac_header_preproc" >&6; }
12376 # So? What about this header?
12377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12379 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12380 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12382 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12383 ac_header_preproc=yes
12386 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12387 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12389 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12391 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12393 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12395 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12397 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12399 ## ---------------------------------------- ##
12400 ## Report this to pgsql-bugs@postgresql.org ##
12401 ## ---------------------------------------- ##
12403 ) | sed "s/^/$as_me: WARNING: /" >&2
12406 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12407 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12408 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12413 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12414 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12417 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12420 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12421 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12422 { (exit 1); exit 1; }; }
12428 # for contrib/uuid-ossp
12429 if test "$with_ossp_uuid" = yes ; then
12431 for ac_header in ossp/uuid.h
12433 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 ac_res=`eval echo '${'$as_ac_Header'}'`
12441 { echo "$as_me:$LINENO: result: $ac_res" >&5
12442 echo "${ECHO_T}$ac_res" >&6; }
12444 # Is the header compilable?
12445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12447 cat >conftest.$ac_ext <<_ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 $ac_includes_default
12454 #include <$ac_header>
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12460 *) ac_try_echo
=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_compile") 2>conftest.er1
12465 grep -v '^ *+' conftest.er1
>conftest.err
12467 cat conftest.err
>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest.
$ac_objext; then
12473 ac_header_compiler
=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.
$ac_ext >&5
12478 ac_header_compiler
=no
12481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12483 echo "${ECHO_T}$ac_header_compiler" >&6; }
12485 # Is the header present?
12486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12488 cat >conftest.
$ac_ext <<_ACEOF
12491 cat confdefs.h
>>conftest.
$ac_ext
12492 cat >>conftest.
$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 #include <$ac_header>
12496 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12497 case "(($ac_try" in
12498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } >/dev/null && {
12509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12512 ac_header_preproc=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_header_preproc=no
12520 rm -f conftest.err conftest.$ac_ext
12521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12522 echo "${ECHO_T}$ac_header_preproc" >&6; }
12524 # So? What about this header?
12525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12531 ac_header_preproc=yes
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12547 ## ---------------------------------------- ##
12548 ## Report this to pgsql-bugs@postgresql.org ##
12549 ## ---------------------------------------- ##
12551 ) | sed "s/^/$as_me: WARNING: /" >&2
12554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 eval "$as_ac_Header=\$ac_header_preproc"
12561 ac_res=`eval echo '${'$as_ac_Header'}'`
12562 { echo "$as_me:$LINENO: result: $ac_res" >&5
12563 echo "${ECHO_T}$ac_res" >&6; }
12566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12574 for ac_header in uuid.h
12576 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 ac_res=`eval echo '${'$as_ac_Header'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12587 # Is the header compilable?
12588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <$ac_header>
12599 rm -f conftest.$ac_objext
12600 if { (ac_try="$ac_compile"
12601 case "(($ac_try" in
12602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12603 *) ac_try_echo
=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1
>conftest.err
12610 cat conftest.err
>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.
$ac_objext; then
12616 ac_header_compiler
=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.
$ac_ext >&5
12621 ac_header_compiler
=no
12624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6; }
12628 # Is the header present?
12629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12631 cat >conftest.
$ac_ext <<_ACEOF
12634 cat confdefs.h
>>conftest.
$ac_ext
12635 cat >>conftest.
$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <$ac_header>
12639 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12655 ac_header_preproc=yes
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_preproc=no
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12667 # So? What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12690 ## ---------------------------------------- ##
12691 ## Report this to pgsql-bugs@postgresql.org ##
12692 ## ---------------------------------------- ##
12694 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
12704 ac_res=`eval echo '${'$as_ac_Header'}'`
12705 { echo "$as_me:$LINENO: result: $ac_res" >&5
12706 echo "${ECHO_T}$ac_res" >&6; }
12709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12715 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12716 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12717 { (exit 1); exit 1; }; }
12730 ## Types, structures, compiler characteristics
12733 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12734 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12735 if test "${ac_cv_c_bigendian+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 # See if sys/param.h defines the BYTE_ORDER macro.
12739 cat >conftest.$ac_ext <<_ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745 #include <sys/types.h>
12746 #include <sys/param.h>
12751 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12752 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12753 bogus endian macros
12760 rm -f conftest.$ac_objext
12761 if { (ac_try="$ac_compile"
12762 case "(($ac_try" in
12763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12764 *) ac_try_echo
=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_compile") 2>conftest.er1
12769 grep -v '^ *+' conftest.er1
>conftest.err
12771 cat conftest.err
>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } && {
12774 test -z "$ac_c_werror_flag" ||
12775 test ! -s conftest.err
12776 } && test -s conftest.
$ac_objext; then
12777 # It does; now see whether it defined to BIG_ENDIAN or not.
12778 cat >conftest.
$ac_ext <<_ACEOF
12781 cat confdefs.h
>>conftest.
$ac_ext
12782 cat >>conftest.
$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 #include <sys/types.h>
12785 #include <sys/param.h>
12790 #if BYTE_ORDER != BIG_ENDIAN
12798 rm -f conftest.
$ac_objext
12799 if { (ac_try
="$ac_compile"
12800 case "(($ac_try" in
12801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_compile") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && {
12812 test -z "$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 } && test -s conftest.$ac_objext; then
12815 ac_cv_c_bigendian=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_cv_c_bigendian=no
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 # It does not; compile a test program.
12829 if test "$cross_compiling" = yes; then
12830 # try to guess the endianness by grepping values into an object file
12831 ac_cv_c_bigendian=unknown
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12839 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12840 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12841 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12842 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12843 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12847 _ascii (); _ebcdic ();
12852 rm -f conftest.$ac_objext
12853 if { (ac_try="$ac_compile"
12854 case "(($ac_try" in
12855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12856 *) ac_try_echo
=$ac_try;;
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_compile") 2>conftest.er1
12861 grep -v '^ *+' conftest.er1
>conftest.err
12863 cat conftest.err
>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && {
12866 test -z "$ac_c_werror_flag" ||
12867 test ! -s conftest.err
12868 } && test -s conftest.
$ac_objext; then
12869 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12870 ac_cv_c_bigendian
=yes
12872 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12873 if test "$ac_cv_c_bigendian" = unknown
; then
12874 ac_cv_c_bigendian
=no
12876 # finding both strings is unlikely to happen, but who knows?
12877 ac_cv_c_bigendian
=unknown
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.
$ac_ext >&5
12887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12889 cat >conftest.
$ac_ext <<_ACEOF
12892 cat confdefs.h
>>conftest.
$ac_ext
12893 cat >>conftest.
$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 $ac_includes_default
12900 /* Are we little or big endian? From Harbison&Steele. */
12904 char c[sizeof (long int)];
12907 return u.c[sizeof (long int) - 1] == 1;
12913 rm -f conftest
$ac_exeext
12914 if { (ac_try
="$ac_link"
12915 case "(($ac_try" in
12916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12926 *) ac_try_echo
=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_c_bigendian
=no
12935 echo "$as_me: program exited with status $ac_status" >&5
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.
$ac_ext >&5
12939 ( exit $ac_status )
12940 ac_cv_c_bigendian
=yes
12942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12950 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12951 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12952 case $ac_cv_c_bigendian in
12955 cat >>confdefs.h
<<\_ACEOF
12956 #define WORDS_BIGENDIAN 1
12962 { { echo "$as_me:$LINENO: error: unknown endianness
12963 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12964 echo "$as_me: error: unknown endianness
12965 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12966 { (exit 1); exit 1; }; } ;;
12969 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12970 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12971 if test "${ac_cv_c_const+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 cat >conftest.
$ac_ext <<_ACEOF
12977 cat confdefs.h
>>conftest.
$ac_ext
12978 cat >>conftest.
$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12984 /* FIXME: Include the comments suggested by Paul. */
12985 #ifndef __cplusplus
12986 /* Ultrix mips cc rejects this. */
12987 typedef int charset[2];
12989 /* SunOS 4.1.1 cc rejects this. */
12990 char const *const *pcpcc;
12992 /* NEC SVR4.0.2 mips cc rejects this. */
12993 struct point {int x, y;};
12994 static struct point const zero = {0,0};
12995 /* AIX XL C 1.02.0.0 rejects this.
12996 It does not let you subtract one const X* pointer from another in
12997 an arm of an if-expression whose if-part is not a constant
12999 const char *g = "string";
13000 pcpcc = &g + (g ? g-g : 0);
13001 /* HPUX 7.0 cc rejects these. */
13003 ppc = (char**) pcpcc;
13004 pcpcc = (char const *const *) ppc;
13005 { /* SCO 3.2v4 cc rejects this. */
13007 char const *s = 0 ? (char *) 0 : (char const *) 0;
13012 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13013 int x[] = {25, 17};
13014 const int *foo = &x[0];
13017 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13018 typedef const int *iptr;
13022 { /* AIX XL C 1.02.0.0 rejects this saying
13023 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13024 struct s { int j; const int *ap[3]; };
13025 struct s *b; b->j = 5;
13027 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13028 const int foo = 10;
13029 if (!foo) return 0;
13031 return !cs[0] && !zero.x;
13038 rm -f conftest.
$ac_objext
13039 if { (ac_try
="$ac_compile"
13040 case "(($ac_try" in
13041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_compile") 2>conftest.er1
13047 grep -v '^ *+' conftest.er1 >conftest.err
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && {
13052 test -z "$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 } && test -s conftest.$ac_objext; then
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13066 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13067 if test $ac_cv_c_const = no; then
13069 cat >>confdefs.h <<\_ACEOF
13075 { echo "$as_me:$LINENO: checking for inline" >&5
13076 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13077 if test "${ac_cv_c_inline+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 for ac_kw in inline __inline__ __inline; do
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 #ifndef __cplusplus
13090 static $ac_kw foo_t static_foo () {return 0; }
13091 $ac_kw foo_t foo () {return 0; }
13095 rm -f conftest.$ac_objext
13096 if { (ac_try="$ac_compile"
13097 case "(($ac_try" in
13098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13099 *) ac_try_echo
=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_compile") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1
>conftest.err
13106 cat conftest.err
>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest.
$ac_objext; then
13112 ac_cv_c_inline
=$ac_kw
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.
$ac_ext >&5
13120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13121 test "$ac_cv_c_inline" != no
&& break
13125 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13126 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13129 case $ac_cv_c_inline in
13132 case $ac_cv_c_inline in
13134 *) ac_val
=$ac_cv_c_inline;;
13136 cat >>confdefs.h
<<_ACEOF
13137 #ifndef __cplusplus
13138 #define inline $ac_val
13144 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13145 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13146 if test "${ac_cv_c_stringize+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 cat >conftest.
$ac_ext <<_ACEOF
13152 cat confdefs.h
>>conftest.
$ac_ext
13153 cat >>conftest.
$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13157 char *s = x(teststring);
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "#teststring" >/dev
/null
2>&1; then
13161 ac_cv_c_stringize
=no
13163 ac_cv_c_stringize
=yes
13168 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13169 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13170 if test $ac_cv_c_stringize = yes; then
13172 cat >>confdefs.h
<<\_ACEOF
13173 #define HAVE_STRINGIZE 1
13178 { echo "$as_me:$LINENO: checking for signed types" >&5
13179 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13180 if test "${pgac_cv_c_signed+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.
$ac_ext <<_ACEOF
13186 cat confdefs.h
>>conftest.
$ac_ext
13187 cat >>conftest.
$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13193 signed char c; signed short s; signed int i;
13198 rm -f conftest.
$ac_objext
13199 if { (ac_try
="$ac_compile"
13200 case "(($ac_try" in
13201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.$ac_objext; then
13215 pgac_cv_c_signed=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 pgac_cv_c_signed=no
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13226 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13227 if test x"$pgac_cv_c_signed" = xno ; then
13229 cat >>confdefs.h <<\_ACEOF
13234 { echo "$as_me:$LINENO: checking for working volatile" >&5
13235 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13236 if test "${ac_cv_c_volatile+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 cat >conftest.$ac_ext <<_ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13251 int * volatile y = (int *) 0;
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13261 *) ac_try_echo
=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13266 grep -v '^ *+' conftest.er1
>conftest.err
13268 cat conftest.err
>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && {
13271 test -z "$ac_c_werror_flag" ||
13272 test ! -s conftest.err
13273 } && test -s conftest.
$ac_objext; then
13274 ac_cv_c_volatile
=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.
$ac_ext >&5
13279 ac_cv_c_volatile
=no
13282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13284 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13285 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13286 if test $ac_cv_c_volatile = no
; then
13288 cat >>confdefs.h
<<\_ACEOF
13294 { echo "$as_me:$LINENO: checking for __func__" >&5
13295 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13296 if test "${pgac_cv_funcname_func_support+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 cat >conftest.
$ac_ext <<_ACEOF
13302 cat confdefs.h
>>conftest.
$ac_ext
13303 cat >>conftest.
$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13309 printf("%s\n", __func__);
13314 rm -f conftest.
$ac_objext
13315 if { (ac_try
="$ac_compile"
13316 case "(($ac_try" in
13317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_compile") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && {
13328 test -z "$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13330 } && test -s conftest.$ac_objext; then
13331 pgac_cv_funcname_func_support=yes
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 pgac_cv_funcname_func_support=no
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13342 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13343 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13345 cat >>confdefs.h <<\_ACEOF
13346 #define HAVE_FUNCNAME__FUNC 1
13350 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13351 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13352 if test "${pgac_cv_funcname_function_support+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13365 printf("%s\n", __FUNCTION__);
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13374 *) ac_try_echo
=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1
>conftest.err
13381 cat conftest.err
>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.
$ac_objext; then
13387 pgac_cv_funcname_function_support
=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.
$ac_ext >&5
13392 pgac_cv_funcname_function_support
=no
13395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13397 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13398 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13399 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13401 cat >>confdefs.h
<<\_ACEOF
13402 #define HAVE_FUNCNAME__FUNCTION 1
13407 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13408 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13409 if test "${ac_cv_struct_tm+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 cat >conftest.
$ac_ext <<_ACEOF
13415 cat confdefs.h
>>conftest.
$ac_ext
13416 cat >>conftest.
$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 #include <sys/types.h>
13425 int *p = &tm.tm_sec;
13431 rm -f conftest.
$ac_objext
13432 if { (ac_try
="$ac_compile"
13433 case "(($ac_try" in
13434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13440 grep -v '^ *+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
13448 ac_cv_struct_tm=time.h
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_struct_tm=sys/time.h
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13459 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13460 if test $ac_cv_struct_tm = sys/time.h; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define TM_IN_SYS_TIME 1
13468 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13469 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13470 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13480 #include <$ac_cv_struct_tm>
13486 static struct tm ac_aggr;
13487 if (ac_aggr.tm_zone)
13493 rm -f conftest.$ac_objext
13494 if { (ac_try="$ac_compile"
13495 case "(($ac_try" in
13496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13497 *) ac_try_echo
=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_compile") 2>conftest.er1
13502 grep -v '^ *+' conftest.er1
>conftest.err
13504 cat conftest.err
>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } && {
13507 test -z "$ac_c_werror_flag" ||
13508 test ! -s conftest.err
13509 } && test -s conftest.
$ac_objext; then
13510 ac_cv_member_struct_tm_tm_zone
=yes
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.
$ac_ext >&5
13515 cat >conftest.
$ac_ext <<_ACEOF
13518 cat confdefs.h
>>conftest.
$ac_ext
13519 cat >>conftest.
$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 #include <sys/types.h>
13522 #include <$ac_cv_struct_tm>
13528 static struct tm ac_aggr;
13529 if (sizeof ac_aggr.tm_zone)
13535 rm -f conftest.
$ac_objext
13536 if { (ac_try
="$ac_compile"
13537 case "(($ac_try" in
13538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_compile") 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest.$ac_objext; then
13552 ac_cv_member_struct_tm_tm_zone=yes
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ac_cv_member_struct_tm_tm_zone=no
13560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13566 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13567 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_STRUCT_TM_TM_ZONE 1
13576 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define HAVE_TM_ZONE 1
13583 { echo "$as_me:$LINENO: checking for tzname" >&5
13584 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13585 if test "${ac_cv_var_tzname+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 #ifndef tzname /* For SGI. */
13596 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13611 *) ac_try_echo
=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1
>conftest.err
13618 cat conftest.err
>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest
$ac_exeext &&
13624 $as_test_x conftest
$ac_exeext; then
13625 ac_cv_var_tzname
=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.
$ac_ext >&5
13630 ac_cv_var_tzname
=no
13633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13634 conftest
$ac_exeext conftest.
$ac_ext
13636 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13637 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13638 if test $ac_cv_var_tzname = yes; then
13640 cat >>confdefs.h
<<\_ACEOF
13641 #define HAVE_TZNAME 1
13646 { echo "$as_me:$LINENO: checking for union semun" >&5
13647 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13648 if test "${ac_cv_type_union_semun+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 cat >conftest.
$ac_ext <<_ACEOF
13654 cat confdefs.h
>>conftest.
$ac_ext
13655 cat >>conftest.
$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 #include <sys/types.h>
13658 #include <sys/ipc.h>
13659 #include <sys/sem.h>
13661 typedef union semun ac__type_new_;
13665 if ((ac__type_new_ *) 0)
13667 if (sizeof (ac__type_new_))
13673 rm -f conftest.
$ac_objext
13674 if { (ac_try
="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 ac_cv_type_union_semun=yes
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_cv_type_union_semun=no
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13701 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13702 if test $ac_cv_type_union_semun = yes; then
13704 cat >>confdefs.h <<_ACEOF
13705 #define HAVE_UNION_SEMUN 1
13711 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13712 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13713 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 #include <sys/types.h>
13723 #ifdef HAVE_SYS_UN_H
13724 #include <sys/un.h>
13728 typedef struct sockaddr_un ac__type_new_;
13732 if ((ac__type_new_ *) 0)
13734 if (sizeof (ac__type_new_))
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13744 *) ac_try_echo
=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_compile") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1
>conftest.err
13751 cat conftest.err
>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest.
$ac_objext; then
13757 ac_cv_type_struct_sockaddr_un
=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.
$ac_ext >&5
13762 ac_cv_type_struct_sockaddr_un
=no
13765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13768 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13769 if test $ac_cv_type_struct_sockaddr_un = yes; then
13771 cat >>confdefs.h
<<_ACEOF
13772 #define HAVE_STRUCT_SOCKADDR_UN 1
13776 cat >>confdefs.h
<<\_ACEOF
13777 #define HAVE_UNIX_SOCKETS 1
13782 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13783 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13784 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.
$ac_ext <<_ACEOF
13790 cat confdefs.h
>>conftest.
$ac_ext
13791 cat >>conftest.
$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <sys/types.h>
13794 #ifdef HAVE_SYS_SOCKET_H
13795 #include <sys/socket.h>
13799 typedef struct sockaddr_storage ac__type_new_;
13803 if ((ac__type_new_ *) 0)
13805 if (sizeof (ac__type_new_))
13811 rm -f conftest.
$ac_objext
13812 if { (ac_try
="$ac_compile"
13813 case "(($ac_try" in
13814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_compile") 2>conftest.er1
13820 grep -v '^ *+' conftest.er1 >conftest.err
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest.$ac_objext; then
13828 ac_cv_type_struct_sockaddr_storage=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_cv_type_struct_sockaddr_storage=no
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13839 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13840 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13849 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13850 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13851 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <sys/types.h>
13861 #ifdef HAVE_SYS_SOCKET_H
13862 #include <sys/socket.h>
13869 static struct sockaddr_storage ac_aggr;
13870 if (ac_aggr.ss_family)
13876 rm -f conftest.$ac_objext
13877 if { (ac_try="$ac_compile"
13878 case "(($ac_try" in
13879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13880 *) ac_try_echo
=$ac_try;;
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_compile") 2>conftest.er1
13885 grep -v '^ *+' conftest.er1
>conftest.err
13887 cat conftest.err
>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } && {
13890 test -z "$ac_c_werror_flag" ||
13891 test ! -s conftest.err
13892 } && test -s conftest.
$ac_objext; then
13893 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.
$ac_ext >&5
13898 cat >conftest.
$ac_ext <<_ACEOF
13901 cat confdefs.h
>>conftest.
$ac_ext
13902 cat >>conftest.
$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #include <sys/types.h>
13905 #ifdef HAVE_SYS_SOCKET_H
13906 #include <sys/socket.h>
13913 static struct sockaddr_storage ac_aggr;
13914 if (sizeof ac_aggr.ss_family)
13920 rm -f conftest.
$ac_objext
13921 if { (ac_try
="$ac_compile"
13922 case "(($ac_try" in
13923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13937 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_member_struct_sockaddr_storage_ss_family=no
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13952 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13960 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13961 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13962 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13965 cat >conftest.$ac_ext <<_ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <sys/types.h>
13972 #ifdef HAVE_SYS_SOCKET_H
13973 #include <sys/socket.h>
13980 static struct sockaddr_storage ac_aggr;
13981 if (ac_aggr.__ss_family)
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13991 *) ac_try_echo
=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_compile") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1
>conftest.err
13998 cat conftest.err
>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest.
$ac_objext; then
14004 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.
$ac_ext >&5
14009 cat >conftest.
$ac_ext <<_ACEOF
14012 cat confdefs.h
>>conftest.
$ac_ext
14013 cat >>conftest.
$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 #include <sys/types.h>
14016 #ifdef HAVE_SYS_SOCKET_H
14017 #include <sys/socket.h>
14024 static struct sockaddr_storage ac_aggr;
14025 if (sizeof ac_aggr.__ss_family)
14031 rm -f conftest.
$ac_objext
14032 if { (ac_try
="$ac_compile"
14033 case "(($ac_try" in
14034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_compile") 2>conftest.er1
14040 grep -v '^ *+' conftest.er1 >conftest.err
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest.$ac_objext; then
14048 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_cv_member_struct_sockaddr_storage___ss_family=no
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14062 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14063 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14071 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14072 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14073 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 #include <sys/types.h>
14083 #ifdef HAVE_SYS_SOCKET_H
14084 #include <sys/socket.h>
14091 static struct sockaddr_storage ac_aggr;
14092 if (ac_aggr.ss_len)
14098 rm -f conftest.$ac_objext
14099 if { (ac_try="$ac_compile"
14100 case "(($ac_try" in
14101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14102 *) ac_try_echo
=$ac_try;;
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1
>conftest.err
14109 cat conftest.err
>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.
$ac_objext; then
14115 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.
$ac_ext >&5
14120 cat >conftest.
$ac_ext <<_ACEOF
14123 cat confdefs.h
>>conftest.
$ac_ext
14124 cat >>conftest.
$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 #include <sys/types.h>
14127 #ifdef HAVE_SYS_SOCKET_H
14128 #include <sys/socket.h>
14135 static struct sockaddr_storage ac_aggr;
14136 if (sizeof ac_aggr.ss_len)
14142 rm -f conftest.
$ac_objext
14143 if { (ac_try
="$ac_compile"
14144 case "(($ac_try" in
14145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_compile") 2>conftest.er1
14151 grep -v '^ *+' conftest.er1 >conftest.err
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && {
14156 test -z "$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 } && test -s conftest.$ac_objext; then
14159 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_cv_member_struct_sockaddr_storage_ss_len=no
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14173 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14174 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14176 cat >>confdefs.h <<_ACEOF
14177 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14182 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14183 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14184 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/types.h>
14194 #ifdef HAVE_SYS_SOCKET_H
14195 #include <sys/socket.h>
14202 static struct sockaddr_storage ac_aggr;
14203 if (ac_aggr.__ss_len)
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14213 *) ac_try_echo
=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1
>conftest.err
14220 cat conftest.err
>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.
$ac_objext; then
14226 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.
$ac_ext >&5
14231 cat >conftest.
$ac_ext <<_ACEOF
14234 cat confdefs.h
>>conftest.
$ac_ext
14235 cat >>conftest.
$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14238 #ifdef HAVE_SYS_SOCKET_H
14239 #include <sys/socket.h>
14246 static struct sockaddr_storage ac_aggr;
14247 if (sizeof ac_aggr.__ss_len)
14253 rm -f conftest.
$ac_objext
14254 if { (ac_try
="$ac_compile"
14255 case "(($ac_try" in
14256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_compile") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest.$ac_objext; then
14270 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_member_struct_sockaddr_storage___ss_len=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14284 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14285 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14293 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14294 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14295 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 cat >conftest.$ac_ext <<_ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <sys/types.h>
14305 #ifdef HAVE_SYS_SOCKET_H
14306 #include <sys/socket.h>
14313 static struct sockaddr ac_aggr;
14314 if (ac_aggr.sa_len)
14320 rm -f conftest.$ac_objext
14321 if { (ac_try="$ac_compile"
14322 case "(($ac_try" in
14323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14324 *) ac_try_echo
=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_compile") 2>conftest.er1
14329 grep -v '^ *+' conftest.er1
>conftest.err
14331 cat conftest.err
>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } && {
14334 test -z "$ac_c_werror_flag" ||
14335 test ! -s conftest.err
14336 } && test -s conftest.
$ac_objext; then
14337 ac_cv_member_struct_sockaddr_sa_len
=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.
$ac_ext >&5
14342 cat >conftest.
$ac_ext <<_ACEOF
14345 cat confdefs.h
>>conftest.
$ac_ext
14346 cat >>conftest.
$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 #include <sys/types.h>
14349 #ifdef HAVE_SYS_SOCKET_H
14350 #include <sys/socket.h>
14357 static struct sockaddr ac_aggr;
14358 if (sizeof ac_aggr.sa_len)
14364 rm -f conftest.
$ac_objext
14365 if { (ac_try
="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } && {
14378 test -z "$ac_c_werror_flag" ||
14379 test ! -s conftest.err
14380 } && test -s conftest.$ac_objext; then
14381 ac_cv_member_struct_sockaddr_sa_len=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_cv_member_struct_sockaddr_sa_len=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14395 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14396 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14405 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14406 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14407 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <sys/types.h>
14417 #include <sys/socket.h>
14421 typedef struct addrinfo ac__type_new_;
14425 if ((ac__type_new_ *) 0)
14427 if (sizeof (ac__type_new_))
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14437 *) ac_try_echo
=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1
>conftest.err
14444 cat conftest.err
>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.
$ac_objext; then
14450 ac_cv_type_struct_addrinfo
=yes
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.
$ac_ext >&5
14455 ac_cv_type_struct_addrinfo
=no
14458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14461 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14462 if test $ac_cv_type_struct_addrinfo = yes; then
14464 cat >>confdefs.h
<<_ACEOF
14465 #define HAVE_STRUCT_ADDRINFO 1
14472 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14473 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14474 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 cat >conftest.
$ac_ext <<_ACEOF
14480 cat confdefs.h
>>conftest.
$ac_ext
14481 cat >>conftest.
$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 #include <sys/param.h>
14484 #include <sys/types.h>
14485 #include <sys/socket.h>
14486 #include <sys/ucred.h>
14488 typedef struct cmsgcred ac__type_new_;
14492 if ((ac__type_new_ *) 0)
14494 if (sizeof (ac__type_new_))
14500 rm -f conftest.
$ac_objext
14501 if { (ac_try
="$ac_compile"
14502 case "(($ac_try" in
14503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest.$ac_objext; then
14517 ac_cv_type_struct_cmsgcred=yes
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14522 ac_cv_type_struct_cmsgcred=no
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14528 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14529 if test $ac_cv_type_struct_cmsgcred = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define HAVE_STRUCT_CMSGCRED 1
14537 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14538 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14539 if test "${ac_cv_type_struct_fcred+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 #include <sys/param.h>
14549 #include <sys/types.h>
14550 #include <sys/socket.h>
14551 #include <sys/ucred.h>
14553 typedef struct fcred ac__type_new_;
14557 if ((ac__type_new_ *) 0)
14559 if (sizeof (ac__type_new_))
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14569 *) ac_try_echo
=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_compile") 2>conftest.er1
14574 grep -v '^ *+' conftest.er1
>conftest.err
14576 cat conftest.err
>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_c_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest.
$ac_objext; then
14582 ac_cv_type_struct_fcred
=yes
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.
$ac_ext >&5
14587 ac_cv_type_struct_fcred
=no
14590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14592 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14593 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14594 if test $ac_cv_type_struct_fcred = yes; then
14596 cat >>confdefs.h
<<_ACEOF
14597 #define HAVE_STRUCT_FCRED 1
14602 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14603 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14604 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 cat >conftest.
$ac_ext <<_ACEOF
14610 cat confdefs.h
>>conftest.
$ac_ext
14611 cat >>conftest.
$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <sys/param.h>
14614 #include <sys/types.h>
14615 #include <sys/socket.h>
14616 #include <sys/ucred.h>
14618 typedef struct sockcred ac__type_new_;
14622 if ((ac__type_new_ *) 0)
14624 if (sizeof (ac__type_new_))
14630 rm -f conftest.
$ac_objext
14631 if { (ac_try
="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_compile") 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest.$ac_objext; then
14647 ac_cv_type_struct_sockcred=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_cv_type_struct_sockcred=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14658 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14659 if test $ac_cv_type_struct_sockcred = yes; then
14661 cat >>confdefs.h <<_ACEOF
14662 #define HAVE_STRUCT_SOCKCRED 1
14669 { echo "$as_me:$LINENO: checking for struct option" >&5
14670 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14671 if test "${ac_cv_type_struct_option+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 cat >conftest.$ac_ext <<_ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 #ifdef HAVE_GETOPT_H
14681 #include <getopt.h>
14684 typedef struct option ac__type_new_;
14688 if ((ac__type_new_ *) 0)
14690 if (sizeof (ac__type_new_))
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14700 *) ac_try_echo
=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1
>conftest.err
14707 cat conftest.err
>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest.
$ac_objext; then
14713 ac_cv_type_struct_option
=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.
$ac_ext >&5
14718 ac_cv_type_struct_option
=no
14721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14723 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14724 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14725 if test $ac_cv_type_struct_option = yes; then
14727 cat >>confdefs.h
<<_ACEOF
14728 #define HAVE_STRUCT_OPTION 1
14735 if test "$with_zlib" = yes; then
14736 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14737 # did not). While we could work around the lack of z_streamp, it
14738 # seems unwise to encourage people to use such old zlib versions...
14739 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14740 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14741 if test "${ac_cv_type_z_streamp+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 cat >conftest.
$ac_ext <<_ACEOF
14747 cat confdefs.h
>>conftest.
$ac_ext
14748 cat >>conftest.
$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14752 typedef z_streamp ac__type_new_;
14756 if ((ac__type_new_ *) 0)
14758 if (sizeof (ac__type_new_))
14764 rm -f conftest.
$ac_objext
14765 if { (ac_try
="$ac_compile"
14766 case "(($ac_try" in
14767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_compile") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest.$ac_objext; then
14781 ac_cv_type_z_streamp=yes
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_cv_type_z_streamp=no
14789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14792 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14793 if test $ac_cv_type_z_streamp = yes; then
14796 { { echo "$as_me:$LINENO: error: zlib version is too old
14797 Use --without-zlib to disable zlib support." >&5
14798 echo "$as_me: error: zlib version is too old
14799 Use --without-zlib to disable zlib support." >&2;}
14800 { (exit 1); exit 1; }; }
14805 if test "$with_krb5" = yes; then
14806 # Check for differences between MIT and Heimdal (KTH) releases
14807 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14808 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14809 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14823 static krb5_ticket ac_aggr;
14824 if (ac_aggr.enc_part2)
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14834 *) ac_try_echo
=$ac_try;;
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_compile") 2>conftest.er1
14839 grep -v '^ *+' conftest.er1
>conftest.err
14841 cat conftest.err
>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.
$ac_objext; then
14847 ac_cv_member_krb5_ticket_enc_part2
=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.
$ac_ext >&5
14852 cat >conftest.
$ac_ext <<_ACEOF
14855 cat confdefs.h
>>conftest.
$ac_ext
14856 cat >>conftest.
$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14863 static krb5_ticket ac_aggr;
14864 if (sizeof ac_aggr.enc_part2)
14870 rm -f conftest.
$ac_objext
14871 if { (ac_try
="$ac_compile"
14872 case "(($ac_try" in
14873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14879 grep -v '^ *+' conftest.er1 >conftest.err
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } && {
14884 test -z "$ac_c_werror_flag" ||
14885 test ! -s conftest.err
14886 } && test -s conftest.$ac_objext; then
14887 ac_cv_member_krb5_ticket_enc_part2=yes
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_cv_member_krb5_ticket_enc_part2=no
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14901 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14902 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_KRB5_TICKET_ENC_PART2 1
14910 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14911 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14912 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 cat >conftest.$ac_ext <<_ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14926 static krb5_ticket ac_aggr;
14927 if (ac_aggr.client)
14933 rm -f conftest.$ac_objext
14934 if { (ac_try="$ac_compile"
14935 case "(($ac_try" in
14936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14937 *) ac_try_echo
=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_compile") 2>conftest.er1
14942 grep -v '^ *+' conftest.er1
>conftest.err
14944 cat conftest.err
>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest.
$ac_objext; then
14950 ac_cv_member_krb5_ticket_client
=yes
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.
$ac_ext >&5
14955 cat >conftest.
$ac_ext <<_ACEOF
14958 cat confdefs.h
>>conftest.
$ac_ext
14959 cat >>conftest.
$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14966 static krb5_ticket ac_aggr;
14967 if (sizeof ac_aggr.client)
14973 rm -f conftest.
$ac_objext
14974 if { (ac_try
="$ac_compile"
14975 case "(($ac_try" in
14976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_compile") 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest.$ac_objext; then
14990 ac_cv_member_krb5_ticket_client=yes
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_cv_member_krb5_ticket_client=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15004 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15005 if test $ac_cv_member_krb5_ticket_client = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_KRB5_TICKET_CLIENT 1
15013 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15014 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15015 { (exit 1); exit 1; }; }
15020 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15021 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15022 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15036 static krb5_error ac_aggr;
15037 if (ac_aggr.text.data)
15043 rm -f conftest.$ac_objext
15044 if { (ac_try="$ac_compile"
15045 case "(($ac_try" in
15046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15047 *) ac_try_echo
=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_compile") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1
>conftest.err
15054 cat conftest.err
>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest.
$ac_objext; then
15060 ac_cv_member_krb5_error_text_data
=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.
$ac_ext >&5
15065 cat >conftest.
$ac_ext <<_ACEOF
15068 cat confdefs.h
>>conftest.
$ac_ext
15069 cat >>conftest.
$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15076 static krb5_error ac_aggr;
15077 if (sizeof ac_aggr.text.data)
15083 rm -f conftest.
$ac_objext
15084 if { (ac_try
="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_compile") 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest.$ac_objext; then
15100 ac_cv_member_krb5_error_text_data=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_cv_member_krb5_error_text_data=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15114 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15115 if test $ac_cv_member_krb5_error_text_data = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15123 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15124 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15125 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15139 static krb5_error ac_aggr;
15140 if (ac_aggr.e_data)
15146 rm -f conftest.$ac_objext
15147 if { (ac_try="$ac_compile"
15148 case "(($ac_try" in
15149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15150 *) ac_try_echo
=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_compile") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1
>conftest.err
15157 cat conftest.err
>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest.
$ac_objext; then
15163 ac_cv_member_krb5_error_e_data
=yes
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.
$ac_ext >&5
15168 cat >conftest.
$ac_ext <<_ACEOF
15171 cat confdefs.h
>>conftest.
$ac_ext
15172 cat >>conftest.
$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15179 static krb5_error ac_aggr;
15180 if (sizeof ac_aggr.e_data)
15186 rm -f conftest.
$ac_objext
15187 if { (ac_try
="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && {
15200 test -z "$ac_c_werror_flag" ||
15201 test ! -s conftest.err
15202 } && test -s conftest.$ac_objext; then
15203 ac_cv_member_krb5_error_e_data=yes
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_cv_member_krb5_error_e_data=no
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15217 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15218 if test $ac_cv_member_krb5_error_e_data = yes; then
15220 cat >>confdefs.h <<_ACEOF
15221 #define HAVE_KRB5_ERROR_E_DATA 1
15226 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15227 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15228 { (exit 1); exit 1; }; }
15234 # Win32 requires headers to be loaded for __stdcall, so can't use
15235 # AC_CHECK_FUNCS here.
15236 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15237 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15248 krb5_free_unparsed_name(NULL,NULL);
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15257 *) ac_try_echo
=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_link") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1
>conftest.err
15264 cat conftest.err
>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest
$ac_exeext &&
15270 $as_test_x conftest
$ac_exeext; then
15272 cat >>confdefs.h
<<\_ACEOF
15273 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15276 { echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6; }
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.
$ac_ext >&5
15282 { echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6; }
15286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15287 conftest
$ac_exeext conftest.
$ac_ext
15292 ## Functions, global variables
15295 { echo "$as_me:$LINENO: checking for int timezone" >&5
15296 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15297 if test "${pgac_cv_var_int_timezone+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.
$ac_ext <<_ACEOF
15303 cat confdefs.h
>>conftest.
$ac_ext
15304 cat >>conftest.
$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15312 res = timezone / 60;
15314 res = _timezone / 60;
15320 rm -f conftest.
$ac_objext conftest
$ac_exeext
15321 if { (ac_try
="$ac_link"
15322 case "(($ac_try" in
15323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_link") 2>conftest.er1
15329 grep -v '^ *+' conftest.er1 >conftest.err
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && {
15334 test -z "$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 } && test -s conftest$ac_exeext &&
15337 $as_test_x conftest$ac_exeext; then
15338 pgac_cv_var_int_timezone=yes
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 pgac_cv_var_int_timezone=no
15346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15347 conftest$ac_exeext conftest.$ac_ext
15349 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15350 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15351 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15353 cat >>confdefs.h <<\_ACEOF
15354 #define HAVE_INT_TIMEZONE
15358 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15359 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15360 if test "${ac_cv_func_accept_return+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 if test "${ac_cv_func_accept_arg1+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 if test "${ac_cv_func_accept_arg2+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 if test "${ac_cv_func_accept_arg3+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15373 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15374 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15375 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #ifdef HAVE_SYS_TYPES_H
15383 #include <sys/types.h>
15385 #ifdef HAVE_SYS_SOCKET_H
15386 #include <sys/socket.h>
15388 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15397 rm -f conftest.$ac_objext
15398 if { (ac_try="$ac_compile"
15399 case "(($ac_try" in
15400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15401 *) ac_try_echo
=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_compile") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1
>conftest.err
15408 cat conftest.err
>&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest.
$ac_objext; then
15414 ac_not_found
=no
; break 4
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.
$ac_ext >&5
15422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15427 if test "$ac_not_found" = yes; then
15428 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15429 echo "$as_me: error: could not determine argument types" >&2;}
15430 { (exit 1); exit 1; }; }
15432 if test "$ac_cv_func_accept_arg3" = "void"; then
15433 ac_cv_func_accept_arg3
=int
15443 { 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
15444 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15446 cat >>confdefs.h
<<_ACEOF
15447 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15451 cat >>confdefs.h
<<_ACEOF
15452 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15456 cat >>confdefs.h
<<_ACEOF
15457 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15461 cat >>confdefs.h
<<_ACEOF
15462 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15466 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15467 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15468 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 cat >conftest.
$ac_ext <<_ACEOF
15474 cat confdefs.h
>>conftest.
$ac_ext
15475 cat >>conftest.
$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 #include <sys/time.h>
15481 struct timeval *tp;
15482 struct timezone *tzp;
15483 gettimeofday(tp,tzp);
15488 rm -f conftest.
$ac_objext
15489 if { (ac_try
="$ac_compile"
15490 case "(($ac_try" in
15491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_compile") 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest.$ac_objext; then
15505 pgac_cv_func_gettimeofday_1arg=no
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 pgac_cv_func_gettimeofday_1arg=yes
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15516 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15517 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define GETTIMEOFDAY_1ARG
15547 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15549 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15563 #define $ac_func innocuous_$ac_func
15565 /* System header to define __stub macros and hopefully few prototypes,
15566 which can conflict with char $ac_func (); below.
15567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15568 <limits.h> exists even on freestanding compilers. */
15571 # include <limits.h>
15573 # include <assert.h>
15578 /* Override any GCC internal prototype to avoid an error.
15579 Use char because int might match the return type of a GCC
15580 builtin and then its argument prototype would still apply. */
15585 /* The GNU C library defines this for functions which it implements
15586 to always fail with ENOSYS. Some functions are actually named
15587 something starting with __ and the normal name is an alias. */
15588 #if defined __stub_$ac_func || defined __stub___$ac_func
15595 return $ac_func ();
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15604 *) ac_try_echo
=$ac_try;;
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_link") 2>conftest.er1
15609 grep -v '^ *+' conftest.er1
>conftest.err
15611 cat conftest.err
>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest
$ac_exeext &&
15617 $as_test_x conftest
$ac_exeext; then
15618 eval "$as_ac_var=yes"
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.
$ac_ext >&5
15623 eval "$as_ac_var=no"
15626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15627 conftest
$ac_exeext conftest.
$ac_ext
15629 ac_res
=`eval echo '${'$as_ac_var'}'`
15630 { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15632 if test `eval echo '${'$as_ac_var'}'` = yes; then
15633 cat >>confdefs.h
<<_ACEOF
15634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15641 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15642 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15643 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 cat >conftest.
$ac_ext <<_ACEOF
15649 cat confdefs.h
>>conftest.
$ac_ext
15650 cat >>conftest.
$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 #include <unistd.h>
15665 rm -f conftest.
$ac_objext
15666 if { (ac_try
="$ac_compile"
15667 case "(($ac_try" in
15668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_compile") 2>conftest.er1
15674 grep -v '^ *+' conftest.er1 >conftest.err
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest.$ac_objext; then
15682 ac_cv_have_decl_fdatasync=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_cv_have_decl_fdatasync=no
15690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15693 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15694 if test $ac_cv_have_decl_fdatasync = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_DECL_FDATASYNC 1
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_DECL_FDATASYNC 0
15710 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15711 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15712 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15726 #ifndef posix_fadvise
15727 (void) posix_fadvise;
15734 rm -f conftest.$ac_objext
15735 if { (ac_try="$ac_compile"
15736 case "(($ac_try" in
15737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15738 *) ac_try_echo
=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_compile") 2>conftest.er1
15743 grep -v '^ *+' conftest.er1
>conftest.err
15745 cat conftest.err
>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } && {
15748 test -z "$ac_c_werror_flag" ||
15749 test ! -s conftest.err
15750 } && test -s conftest.
$ac_objext; then
15751 ac_cv_have_decl_posix_fadvise
=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.
$ac_ext >&5
15756 ac_cv_have_decl_posix_fadvise
=no
15759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15762 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15763 if test $ac_cv_have_decl_posix_fadvise = yes; then
15765 cat >>confdefs.h
<<_ACEOF
15766 #define HAVE_DECL_POSIX_FADVISE 1
15771 cat >>confdefs.h
<<_ACEOF
15772 #define HAVE_DECL_POSIX_FADVISE 0
15779 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15780 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15781 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 cat >conftest.
$ac_ext <<_ACEOF
15787 cat confdefs.h
>>conftest.
$ac_ext
15788 cat >>conftest.
$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15802 rm -f conftest.
$ac_objext
15803 if { (ac_try
="$ac_compile"
15804 case "(($ac_try" in
15805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_compile") 2>conftest.er1
15811 grep -v '^ *+' conftest.er1 >conftest.err
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && {
15816 test -z "$ac_c_werror_flag" ||
15817 test ! -s conftest.err
15818 } && test -s conftest.$ac_objext; then
15819 ac_cv_have_decl_strlcat=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_cv_have_decl_strlcat=no
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15830 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15831 if test $ac_cv_have_decl_strlcat = yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define HAVE_DECL_STRLCAT 1
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_DECL_STRLCAT 0
15845 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15846 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15847 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15868 rm -f conftest.$ac_objext
15869 if { (ac_try="$ac_compile"
15870 case "(($ac_try" in
15871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15872 *) ac_try_echo
=$ac_try;;
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_compile") 2>conftest.er1
15877 grep -v '^ *+' conftest.er1
>conftest.err
15879 cat conftest.err
>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } && {
15882 test -z "$ac_c_werror_flag" ||
15883 test ! -s conftest.err
15884 } && test -s conftest.
$ac_objext; then
15885 ac_cv_have_decl_strlcpy
=yes
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.
$ac_ext >&5
15890 ac_cv_have_decl_strlcpy
=no
15893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15896 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15897 if test $ac_cv_have_decl_strlcpy = yes; then
15899 cat >>confdefs.h
<<_ACEOF
15900 #define HAVE_DECL_STRLCPY 1
15905 cat >>confdefs.h
<<_ACEOF
15906 #define HAVE_DECL_STRLCPY 0
15913 # This is probably only present on Darwin, but may as well check always
15914 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15915 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15916 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 cat >conftest.
$ac_ext <<_ACEOF
15922 cat confdefs.h
>>conftest.
$ac_ext
15923 cat >>conftest.
$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15930 #ifndef F_FULLFSYNC
15931 (void) F_FULLFSYNC;
15938 rm -f conftest.
$ac_objext
15939 if { (ac_try
="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_compile") 2>conftest.er1
15947 grep -v '^ *+' conftest.er1 >conftest.err
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest.$ac_objext; then
15955 ac_cv_have_decl_F_FULLFSYNC=yes
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ac_cv_have_decl_F_FULLFSYNC=no
15963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15966 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15967 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define HAVE_DECL_F_FULLFSYNC 1
15975 cat >>confdefs.h <<_ACEOF
15976 #define HAVE_DECL_F_FULLFSYNC 0
15985 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15986 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15987 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 cat >conftest.$ac_ext <<_ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 $ac_includes_default
15997 #include <netinet/in.h>
15999 typedef struct sockaddr_in6 ac__type_new_;
16003 if ((ac__type_new_ *) 0)
16005 if (sizeof (ac__type_new_))
16011 rm -f conftest.$ac_objext
16012 if { (ac_try="$ac_compile"
16013 case "(($ac_try" in
16014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16015 *) ac_try_echo
=$ac_try;;
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_compile") 2>conftest.er1
16020 grep -v '^ *+' conftest.er1
>conftest.err
16022 cat conftest.err
>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } && {
16025 test -z "$ac_c_werror_flag" ||
16026 test ! -s conftest.err
16027 } && test -s conftest.
$ac_objext; then
16028 ac_cv_type_struct_sockaddr_in6
=yes
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.
$ac_ext >&5
16033 ac_cv_type_struct_sockaddr_in6
=no
16036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16038 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16039 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16040 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16042 cat >>confdefs.h
<<\_ACEOF
16043 #define HAVE_IPV6 1
16051 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16052 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16053 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 cat >conftest.
$ac_ext <<_ACEOF
16059 cat confdefs.h
>>conftest.
$ac_ext
16060 cat >>conftest.
$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062 #include <machine/vmparam.h>
16063 #include <sys/exec.h>
16068 PS_STRINGS->ps_nargvstr = 1;
16069 PS_STRINGS->ps_argvstr = "foo";
16074 rm -f conftest.
$ac_objext conftest
$ac_exeext
16075 if { (ac_try
="$ac_link"
16076 case "(($ac_try" in
16077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_link") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && {
16088 test -z "$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 } && test -s conftest$ac_exeext &&
16091 $as_test_x conftest$ac_exeext; then
16092 pgac_cv_var_PS_STRINGS=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 pgac_cv_var_PS_STRINGS=no
16100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16101 conftest$ac_exeext conftest.$ac_ext
16103 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16104 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16105 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16107 cat >>confdefs.h <<\_ACEOF
16108 #define HAVE_PS_STRINGS
16114 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16115 # is missing. Yes, there are machines that have only one. We may
16116 # also decide to use snprintf.c if snprintf() is present but does not
16117 # have all the features we need --- see below.
16119 if test "$PORTNAME" = "win32"; then
16120 # Win32 gets snprintf.c built unconditionally.
16122 # To properly translate all NLS languages strings, we must support the
16123 # *printf() %$ format, which allows *printf() arguments to be selected
16124 # by position in the translated string.
16126 # libintl versions < 0.13 use the native *printf() functions, and Win32
16127 # *printf() doesn't understand %$, so we must use our /port versions,
16128 # which do understand %$. libintl versions >= 0.13 include their own
16129 # *printf versions on Win32. The libintl 0.13 release note text is:
16131 # C format strings with positions, as they arise when a translator
16132 # needs to reorder a sentence, are now supported on all platforms.
16133 # On those few platforms (NetBSD and Woe32) for which the native
16134 # printf()/fprintf()/... functions don't support such format
16135 # strings, replacements are provided through <libintl.h>.
16137 # We could use libintl >= 0.13's *printf() if we were sure that we had
16138 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16139 # to guarantee that, it is best to just use our own, so we are sure to
16140 # get %$ support. In include/port.h we disable the *printf() macros
16141 # that might have been defined by libintl.
16143 # We do this unconditionally whether NLS is used or not so we are sure
16144 # that all Win32 libraries and binaries behave the same.
16145 pgac_need_repl_snprintf=yes
16147 pgac_need_repl_snprintf=no
16149 for ac_func in snprintf
16151 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 cat >conftest.$ac_ext <<_ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16165 #define $ac_func innocuous_$ac_func
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16173 # include <limits.h>
16175 # include <assert.h>
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined __stub_$ac_func || defined __stub___$ac_func
16197 return $ac_func ();
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16206 *) ac_try_echo
=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1
>conftest.err
16213 cat conftest.err
>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest
$ac_exeext &&
16219 $as_test_x conftest
$ac_exeext; then
16220 eval "$as_ac_var=yes"
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.
$ac_ext >&5
16225 eval "$as_ac_var=no"
16228 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16229 conftest
$ac_exeext conftest.
$ac_ext
16231 ac_res
=`eval echo '${'$as_ac_var'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235 cat >>confdefs.h
<<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16240 pgac_need_repl_snprintf
=yes
16245 for ac_func
in vsnprintf
16247 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16250 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 cat >conftest.
$ac_ext <<_ACEOF
16256 cat confdefs.h
>>conftest.
$ac_ext
16257 cat >>conftest.
$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16261 #define $ac_func innocuous_$ac_func
16263 /* System header to define __stub macros and hopefully few prototypes,
16264 which can conflict with char $ac_func (); below.
16265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16266 <limits.h> exists even on freestanding compilers. */
16269 # include <limits.h>
16271 # include <assert.h>
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16283 /* The GNU C library defines this for functions which it implements
16284 to always fail with ENOSYS. Some functions are actually named
16285 something starting with __ and the normal name is an alias. */
16286 #if defined __stub_$ac_func || defined __stub___$ac_func
16293 return $ac_func ();
16298 rm -f conftest.
$ac_objext conftest
$ac_exeext
16299 if { (ac_try
="$ac_link"
16300 case "(($ac_try" in
16301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest$ac_exeext &&
16315 $as_test_x conftest$ac_exeext; then
16316 eval "$as_ac_var=yes"
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 eval "$as_ac_var=no"
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16327 ac_res=`eval echo '${'$as_ac_var'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16336 pgac_need_repl_snprintf=yes
16343 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16344 # include/c.h will provide declarations. Note this is a separate test
16345 # from whether the functions exist in the C library --- there are
16346 # systems that have the functions but don't bother to declare them :-(
16348 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16349 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16350 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 cat >conftest.$ac_ext <<_ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 $ac_includes_default
16371 rm -f conftest.$ac_objext
16372 if { (ac_try="$ac_compile"
16373 case "(($ac_try" in
16374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16375 *) ac_try_echo
=$ac_try;;
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_compile") 2>conftest.er1
16380 grep -v '^ *+' conftest.er1
>conftest.err
16382 cat conftest.err
>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && {
16385 test -z "$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 } && test -s conftest.
$ac_objext; then
16388 ac_cv_have_decl_snprintf
=yes
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.
$ac_ext >&5
16393 ac_cv_have_decl_snprintf
=no
16396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16399 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16400 if test $ac_cv_have_decl_snprintf = yes; then
16402 cat >>confdefs.h
<<_ACEOF
16403 #define HAVE_DECL_SNPRINTF 1
16408 cat >>confdefs.h
<<_ACEOF
16409 #define HAVE_DECL_SNPRINTF 0
16414 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16415 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16416 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 cat >conftest.
$ac_ext <<_ACEOF
16422 cat confdefs.h
>>conftest.
$ac_ext
16423 cat >>conftest.
$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 $ac_includes_default
16437 rm -f conftest.
$ac_objext
16438 if { (ac_try
="$ac_compile"
16439 case "(($ac_try" in
16440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_compile") 2>conftest.er1
16446 grep -v '^ *+' conftest.er1 >conftest.err
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && {
16451 test -z "$ac_c_werror_flag" ||
16452 test ! -s conftest.err
16453 } && test -s conftest.$ac_objext; then
16454 ac_cv_have_decl_vsnprintf=yes
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_have_decl_vsnprintf=no
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16465 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16466 if test $ac_cv_have_decl_vsnprintf = yes; then
16468 cat >>confdefs.h <<_ACEOF
16469 #define HAVE_DECL_VSNPRINTF 1
16474 cat >>confdefs.h <<_ACEOF
16475 #define HAVE_DECL_VSNPRINTF 0
16484 { echo "$as_me:$LINENO: checking for isinf" >&5
16485 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16486 if test "${ac_cv_func_isinf+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16497 double glob_double;
16502 return isinf(glob_double) ? 0 : 1;
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16511 *) ac_try_echo
=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>conftest.er1
16516 grep -v '^ *+' conftest.er1
>conftest.err
16518 cat conftest.err
>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } && {
16521 test -z "$ac_c_werror_flag" ||
16522 test ! -s conftest.err
16523 } && test -s conftest
$ac_exeext &&
16524 $as_test_x conftest
$ac_exeext; then
16525 ac_cv_func_isinf
=yes
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.
$ac_ext >&5
16530 ac_cv_func_isinf
=no
16533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16534 conftest
$ac_exeext conftest.
$ac_ext
16536 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16537 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16539 if test $ac_cv_func_isinf = yes ; then
16541 cat >>confdefs.h
<<\_ACEOF
16542 #define HAVE_ISINF 1
16546 case " $LIBOBJS " in
16547 *" isinf.$ac_objext "* ) ;;
16548 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16552 # Look for a way to implement a substitute for isinf()
16557 for ac_func
in fpclass fp_class fp_class_d class
16559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16562 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 cat >conftest.
$ac_ext <<_ACEOF
16568 cat confdefs.h
>>conftest.
$ac_ext
16569 cat >>conftest.
$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16573 #define $ac_func innocuous_$ac_func
16575 /* System header to define __stub macros and hopefully few prototypes,
16576 which can conflict with char $ac_func (); below.
16577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16578 <limits.h> exists even on freestanding compilers. */
16581 # include <limits.h>
16583 # include <assert.h>
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined __stub_$ac_func || defined __stub___$ac_func
16605 return $ac_func ();
16610 rm -f conftest.
$ac_objext conftest
$ac_exeext
16611 if { (ac_try
="$ac_link"
16612 case "(($ac_try" in
16613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext &&
16627 $as_test_x conftest$ac_exeext; then
16628 eval "$as_ac_var=yes"
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 eval "$as_ac_var=no"
16636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16637 conftest$ac_exeext conftest.$ac_ext
16639 ac_res=`eval echo '${'$as_ac_var'}'`
16640 { echo "$as_me:$LINENO: result: $ac_res" >&5
16641 echo "${ECHO_T}$ac_res" >&6; }
16642 if test `eval echo '${'$as_ac_var'}'` = yes; then
16643 cat >>confdefs.h <<_ACEOF
16644 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16652 # Some versions of libedit contain strlcpy(); so disregard that library while
16653 # checking for these standard libc functions.
16654 pgac_save_LIBS="$LIBS"
16655 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16671 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16673 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16687 #define $ac_func innocuous_$ac_func
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char $ac_func (); below.
16691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692 <limits.h> exists even on freestanding compilers. */
16695 # include <limits.h>
16697 # include <assert.h>
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16709 /* The GNU C library defines this for functions which it implements
16710 to always fail with ENOSYS. Some functions are actually named
16711 something starting with __ and the normal name is an alias. */
16712 #if defined __stub_$ac_func || defined __stub___$ac_func
16719 return $ac_func ();
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (ac_try="$ac_link"
16726 case "(($ac_try" in
16727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16728 *) ac_try_echo
=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_link") 2>conftest.er1
16733 grep -v '^ *+' conftest.er1
>conftest.err
16735 cat conftest.err
>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest
$ac_exeext &&
16741 $as_test_x conftest
$ac_exeext; then
16742 eval "$as_ac_var=yes"
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.
$ac_ext >&5
16747 eval "$as_ac_var=no"
16750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16751 conftest
$ac_exeext conftest.
$ac_ext
16753 ac_res
=`eval echo '${'$as_ac_var'}'`
16754 { echo "$as_me:$LINENO: result: $ac_res" >&5
16755 echo "${ECHO_T}$ac_res" >&6; }
16756 if test `eval echo '${'$as_ac_var'}'` = yes; then
16757 cat >>confdefs.h
<<_ACEOF
16758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16762 case " $LIBOBJS " in
16763 *" $ac_func.$ac_objext "* ) ;;
16764 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16773 LIBS
="$pgac_save_LIBS"
16775 # System's version of getaddrinfo(), if any, may be used only if we found
16776 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16777 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16778 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16779 # because we want to use our own getaddrinfo.c on Windows anyway.)
16780 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
16782 for ac_func
in getaddrinfo
16784 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16787 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 cat >conftest.
$ac_ext <<_ACEOF
16793 cat confdefs.h
>>conftest.
$ac_ext
16794 cat >>conftest.
$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16798 #define $ac_func innocuous_$ac_func
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func (); below.
16802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16803 <limits.h> exists even on freestanding compilers. */
16806 # include <limits.h>
16808 # include <assert.h>
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16820 /* The GNU C library defines this for functions which it implements
16821 to always fail with ENOSYS. Some functions are actually named
16822 something starting with __ and the normal name is an alias. */
16823 #if defined __stub_$ac_func || defined __stub___$ac_func
16830 return $ac_func ();
16835 rm -f conftest.
$ac_objext conftest
$ac_exeext
16836 if { (ac_try
="$ac_link"
16837 case "(($ac_try" in
16838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_link") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1 >conftest.err
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest$ac_exeext &&
16852 $as_test_x conftest$ac_exeext; then
16853 eval "$as_ac_var=yes"
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 eval "$as_ac_var=no"
16861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16862 conftest$ac_exeext conftest.$ac_ext
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16873 case " $LIBOBJS " in
16874 *" $ac_func.$ac_objext "* ) ;;
16875 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16884 case " $LIBOBJS " in
16885 *" getaddrinfo.$ac_objext "* ) ;;
16886 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16892 # Similarly, use system's getopt_long() only if system provides struct option.
16893 # Solaris' getopt() doesn't do what we want for long options, so always use
16894 # our versions on that platform.
16895 if test "$PORTNAME" = "solaris"; then
16896 case " $LIBOBJS " in
16897 *" getopt.$ac_objext "* ) ;;
16898 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16902 case " $LIBOBJS " in
16903 *" getopt_long.$ac_objext "* ) ;;
16904 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16908 elif test x"$ac_cv_type_struct_option" = xyes ; then
16910 for ac_func in getopt_long
16912 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16926 #define $ac_func innocuous_$ac_func
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char $ac_func (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16934 # include <limits.h>
16936 # include <assert.h>
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16948 /* The GNU C library defines this for functions which it implements
16949 to always fail with ENOSYS. Some functions are actually named
16950 something starting with __ and the normal name is an alias. */
16951 #if defined __stub_$ac_func || defined __stub___$ac_func
16958 return $ac_func ();
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16967 *) ac_try_echo
=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1
>conftest.err
16974 cat conftest.err
>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } && {
16977 test -z "$ac_c_werror_flag" ||
16978 test ! -s conftest.err
16979 } && test -s conftest
$ac_exeext &&
16980 $as_test_x conftest
$ac_exeext; then
16981 eval "$as_ac_var=yes"
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.
$ac_ext >&5
16986 eval "$as_ac_var=no"
16989 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16990 conftest
$ac_exeext conftest.
$ac_ext
16992 ac_res
=`eval echo '${'$as_ac_var'}'`
16993 { echo "$as_me:$LINENO: result: $ac_res" >&5
16994 echo "${ECHO_T}$ac_res" >&6; }
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996 cat >>confdefs.h
<<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17001 case " $LIBOBJS " in
17002 *" $ac_func.$ac_objext "* ) ;;
17003 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17012 case " $LIBOBJS " in
17013 *" getopt_long.$ac_objext "* ) ;;
17014 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17021 if test "$PORTNAME" = "win32"; then
17023 for ac_func
in gettimeofday
17025 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.
$ac_ext <<_ACEOF
17034 cat confdefs.h
>>conftest.
$ac_ext
17035 cat >>conftest.
$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039 #define $ac_func innocuous_$ac_func
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17047 # include <limits.h>
17049 # include <assert.h>
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17071 return $ac_func ();
17076 rm -f conftest.
$ac_objext conftest
$ac_exeext
17077 if { (ac_try
="$ac_link"
17078 case "(($ac_try" in
17079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest$ac_exeext &&
17093 $as_test_x conftest$ac_exeext; then
17094 eval "$as_ac_var=yes"
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 eval "$as_ac_var=no"
17102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17103 conftest$ac_exeext conftest.$ac_ext
17105 ac_res=`eval echo '${'$as_ac_var'}'`
17106 { echo "$as_me:$LINENO: result: $ac_res" >&5
17107 echo "${ECHO_T}$ac_res" >&6; }
17108 if test `eval echo '${'$as_ac_var'}'` = yes; then
17109 cat >>confdefs.h <<_ACEOF
17110 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17114 case " $LIBOBJS " in
17115 *" $ac_func.$ac_objext "* ) ;;
17116 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17124 case " $LIBOBJS " in
17125 *" kill.$ac_objext "* ) ;;
17126 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17130 case " $LIBOBJS " in
17131 *" open.$ac_objext "* ) ;;
17132 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17136 case " $LIBOBJS " in
17137 *" rand.$ac_objext "* ) ;;
17138 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17142 case " $LIBOBJS " in
17143 *" win32error.$ac_objext "* ) ;;
17144 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17149 cat >>confdefs.h <<\_ACEOF
17150 #define HAVE_SYMLINK 1
17155 if test "$with_readline" = yes; then
17156 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17157 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17165 #ifdef HAVE_READLINE_READLINE_H
17166 # include <readline/readline.h>
17167 #elif defined(HAVE_READLINE_H)
17168 # include <readline.h>
17174 rl_completion_append_character = 'x';
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17183 *) ac_try_echo
=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
17188 grep -v '^ *+' conftest.er1
>conftest.err
17190 cat conftest.err
>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest
$ac_exeext &&
17196 $as_test_x conftest
$ac_exeext; then
17197 { echo "$as_me:$LINENO: result: yes" >&5
17198 echo "${ECHO_T}yes" >&6; }
17200 cat >>confdefs.h
<<\_ACEOF
17201 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.
$ac_ext >&5
17208 { echo "$as_me:$LINENO: result: no" >&5
17209 echo "${ECHO_T}no" >&6; }
17212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17213 conftest
$ac_exeext conftest.
$ac_ext
17216 for ac_func
in rl_completion_matches rl_filename_completion_function
17218 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17221 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 cat >conftest.
$ac_ext <<_ACEOF
17227 cat confdefs.h
>>conftest.
$ac_ext
17228 cat >>conftest.
$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17232 #define $ac_func innocuous_$ac_func
17234 /* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func (); below.
17236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17237 <limits.h> exists even on freestanding compilers. */
17240 # include <limits.h>
17242 # include <assert.h>
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17254 /* The GNU C library defines this for functions which it implements
17255 to always fail with ENOSYS. Some functions are actually named
17256 something starting with __ and the normal name is an alias. */
17257 #if defined __stub_$ac_func || defined __stub___$ac_func
17264 return $ac_func ();
17269 rm -f conftest.
$ac_objext conftest
$ac_exeext
17270 if { (ac_try
="$ac_link"
17271 case "(($ac_try" in
17272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_link") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest$ac_exeext &&
17286 $as_test_x conftest$ac_exeext; then
17287 eval "$as_ac_var=yes"
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 eval "$as_ac_var=no"
17295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17296 conftest$ac_exeext conftest.$ac_ext
17298 ac_res=`eval echo '${'$as_ac_var'}'`
17299 { echo "$as_me:$LINENO: result: $ac_res" >&5
17300 echo "${ECHO_T}$ac_res" >&6; }
17301 if test `eval echo '${'$as_ac_var'}'` = yes; then
17302 cat >>confdefs.h <<_ACEOF
17303 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17310 for ac_func in replace_history_entry
17312 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17326 #define $ac_func innocuous_$ac_func
17328 /* System header to define __stub macros and hopefully few prototypes,
17329 which can conflict with char $ac_func (); below.
17330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17331 <limits.h> exists even on freestanding compilers. */
17334 # include <limits.h>
17336 # include <assert.h>
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17348 /* The GNU C library defines this for functions which it implements
17349 to always fail with ENOSYS. Some functions are actually named
17350 something starting with __ and the normal name is an alias. */
17351 #if defined __stub_$ac_func || defined __stub___$ac_func
17358 return $ac_func ();
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17367 *) ac_try_echo
=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1
>conftest.err
17374 cat conftest.err
>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_c_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest
$ac_exeext &&
17380 $as_test_x conftest
$ac_exeext; then
17381 eval "$as_ac_var=yes"
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.
$ac_ext >&5
17386 eval "$as_ac_var=no"
17389 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17390 conftest
$ac_exeext conftest.
$ac_ext
17392 ac_res
=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_var'}'` = yes; then
17396 cat >>confdefs.h
<<_ACEOF
17397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17406 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17407 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17408 cat >conftest.
$ac_ext <<_ACEOF
17411 cat confdefs.h
>>conftest.
$ac_ext
17412 cat >>conftest.
$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 #include <setjmp.h>
17418 sigjmp_buf x; sigsetjmp(x, 1);
17423 rm -f conftest.
$ac_objext conftest
$ac_exeext
17424 if { (ac_try
="$ac_link"
17425 case "(($ac_try" in
17426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext &&
17440 $as_test_x conftest$ac_exeext; then
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_SIGSETJMP 1
17446 { echo "$as_me:$LINENO: result: yes" >&5
17447 echo "${ECHO_T}yes" >&6; }
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17457 conftest$ac_exeext conftest.$ac_ext
17459 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17460 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17461 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 #include <signal.h>
17471 /* NetBSD declares sys_siglist in unistd.h. */
17472 #ifdef HAVE_UNISTD_H
17473 # include <unistd.h>
17480 #ifndef sys_siglist
17481 (void) sys_siglist;
17488 rm -f conftest.$ac_objext
17489 if { (ac_try="$ac_compile"
17490 case "(($ac_try" in
17491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17492 *) ac_try_echo
=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_compile") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1
>conftest.err
17499 cat conftest.err
>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest.
$ac_objext; then
17505 ac_cv_have_decl_sys_siglist
=yes
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.
$ac_ext >&5
17510 ac_cv_have_decl_sys_siglist
=no
17513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17516 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17517 if test $ac_cv_have_decl_sys_siglist = yes; then
17519 cat >>confdefs.h
<<_ACEOF
17520 #define HAVE_DECL_SYS_SIGLIST 1
17525 cat >>confdefs.h
<<_ACEOF
17526 #define HAVE_DECL_SYS_SIGLIST 0
17535 { echo "$as_me:$LINENO: checking for syslog" >&5
17536 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17537 if test "${ac_cv_func_syslog+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 cat >conftest.
$ac_ext <<_ACEOF
17543 cat confdefs.h
>>conftest.
$ac_ext
17544 cat >>conftest.
$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17548 #define syslog innocuous_syslog
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char syslog (); below.
17552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17553 <limits.h> exists even on freestanding compilers. */
17556 # include <limits.h>
17558 # include <assert.h>
17563 /* Override any GCC internal prototype to avoid an error.
17564 Use char because int might match the return type of a GCC
17565 builtin and then its argument prototype would still apply. */
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined __stub_syslog || defined __stub___syslog
17585 rm -f conftest.
$ac_objext conftest
$ac_exeext
17586 if { (ac_try
="$ac_link"
17587 case "(($ac_try" in
17588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
17594 grep -v '^ *+' conftest.er1 >conftest.err
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && {
17599 test -z "$ac_c_werror_flag" ||
17600 test ! -s conftest.err
17601 } && test -s conftest$ac_exeext &&
17602 $as_test_x conftest$ac_exeext; then
17603 ac_cv_func_syslog=yes
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 ac_cv_func_syslog=no
17611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17612 conftest$ac_exeext conftest.$ac_ext
17614 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17615 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17616 if test $ac_cv_func_syslog = yes; then
17617 if test "${ac_cv_header_syslog_h+set}" = set; then
17618 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17619 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17620 if test "${ac_cv_header_syslog_h+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17624 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17626 # Is the header compilable?
17627 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17628 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635 $ac_includes_default
17636 #include <syslog.h>
17638 rm -f conftest.$ac_objext
17639 if { (ac_try="$ac_compile"
17640 case "(($ac_try" in
17641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17642 *) ac_try_echo
=$ac_try;;
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_compile") 2>conftest.er1
17647 grep -v '^ *+' conftest.er1
>conftest.err
17649 cat conftest.err
>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && {
17652 test -z "$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 } && test -s conftest.
$ac_objext; then
17655 ac_header_compiler
=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.
$ac_ext >&5
17660 ac_header_compiler
=no
17663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17665 echo "${ECHO_T}$ac_header_compiler" >&6; }
17667 # Is the header present?
17668 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17669 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17670 cat >conftest.
$ac_ext <<_ACEOF
17673 cat confdefs.h
>>conftest.
$ac_ext
17674 cat >>conftest.
$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 #include <syslog.h>
17678 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17679 case "(($ac_try" in
17680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } >/dev/null && {
17691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17694 ac_header_preproc=yes
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ac_header_preproc=no
17702 rm -f conftest.err conftest.$ac_ext
17703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17704 echo "${ECHO_T}$ac_header_preproc" >&6; }
17706 # So? What about this header?
17707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17709 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17710 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17711 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17712 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17713 ac_header_preproc=yes
17716 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17717 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17719 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17721 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17723 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17725 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17726 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17727 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17729 ## ---------------------------------------- ##
17730 ## Report this to pgsql-bugs@postgresql.org ##
17731 ## ---------------------------------------- ##
17733 ) | sed "s/^/$as_me: WARNING: /" >&2
17736 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17737 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17738 if test "${ac_cv_header_syslog_h+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 ac_cv_header_syslog_h=$ac_header_preproc
17743 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17744 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17747 if test $ac_cv_header_syslog_h = yes; then
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_SYSLOG 1
17759 { echo "$as_me:$LINENO: checking for optreset" >&5
17760 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17761 if test "${pgac_cv_var_int_optreset+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include <unistd.h>
17774 extern int optreset; optreset = 1;
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17783 *) ac_try_echo
=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_link") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1
>conftest.err
17790 cat conftest.err
>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest
$ac_exeext &&
17796 $as_test_x conftest
$ac_exeext; then
17797 pgac_cv_var_int_optreset
=yes
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.
$ac_ext >&5
17802 pgac_cv_var_int_optreset
=no
17805 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17806 conftest
$ac_exeext conftest.
$ac_ext
17808 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17809 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17810 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
17812 cat >>confdefs.h
<<\_ACEOF
17813 #define HAVE_INT_OPTRESET 1
17820 for ac_func
in strtoll strtoq
17822 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17825 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 cat >conftest.
$ac_ext <<_ACEOF
17831 cat confdefs.h
>>conftest.
$ac_ext
17832 cat >>conftest.
$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836 #define $ac_func innocuous_$ac_func
17838 /* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char $ac_func (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17844 # include <limits.h>
17846 # include <assert.h>
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17858 /* The GNU C library defines this for functions which it implements
17859 to always fail with ENOSYS. Some functions are actually named
17860 something starting with __ and the normal name is an alias. */
17861 #if defined __stub_$ac_func || defined __stub___$ac_func
17868 return $ac_func ();
17873 rm -f conftest.
$ac_objext conftest
$ac_exeext
17874 if { (ac_try
="$ac_link"
17875 case "(($ac_try" in
17876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest$ac_exeext &&
17890 $as_test_x conftest$ac_exeext; then
17891 eval "$as_ac_var=yes"
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 eval "$as_ac_var=no"
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900 conftest$ac_exeext conftest.$ac_ext
17902 ac_res=`eval echo '${'$as_ac_var'}'`
17903 { echo "$as_me:$LINENO: result: $ac_res" >&5
17904 echo "${ECHO_T}$ac_res" >&6; }
17905 if test `eval echo '${'$as_ac_var'}'` = yes; then
17906 cat >>confdefs.h <<_ACEOF
17907 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17915 for ac_func in strtoull strtouq
17917 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17931 #define $ac_func innocuous_$ac_func
17933 /* System header to define __stub macros and hopefully few prototypes,
17934 which can conflict with char $ac_func (); below.
17935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17936 <limits.h> exists even on freestanding compilers. */
17939 # include <limits.h>
17941 # include <assert.h>
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17953 /* The GNU C library defines this for functions which it implements
17954 to always fail with ENOSYS. Some functions are actually named
17955 something starting with __ and the normal name is an alias. */
17956 #if defined __stub_$ac_func || defined __stub___$ac_func
17963 return $ac_func ();
17968 rm -f conftest.$ac_objext conftest$ac_exeext
17969 if { (ac_try="$ac_link"
17970 case "(($ac_try" in
17971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17972 *) ac_try_echo
=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_link") 2>conftest.er1
17977 grep -v '^ *+' conftest.er1
>conftest.err
17979 cat conftest.err
>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && {
17982 test -z "$ac_c_werror_flag" ||
17983 test ! -s conftest.err
17984 } && test -s conftest
$ac_exeext &&
17985 $as_test_x conftest
$ac_exeext; then
17986 eval "$as_ac_var=yes"
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.
$ac_ext >&5
17991 eval "$as_ac_var=no"
17994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17995 conftest
$ac_exeext conftest.
$ac_ext
17997 ac_res
=`eval echo '${'$as_ac_var'}'`
17998 { echo "$as_me:$LINENO: result: $ac_res" >&5
17999 echo "${ECHO_T}$ac_res" >&6; }
18000 if test `eval echo '${'$as_ac_var'}'` = yes; then
18001 cat >>confdefs.h
<<_ACEOF
18002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18009 # Check for one of atexit() or on_exit()
18011 for ac_func
in atexit
18013 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18016 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 cat >conftest.
$ac_ext <<_ACEOF
18022 cat confdefs.h
>>conftest.
$ac_ext
18023 cat >>conftest.
$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define $ac_func innocuous_$ac_func
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char $ac_func (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18035 # include <limits.h>
18037 # include <assert.h>
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined __stub_$ac_func || defined __stub___$ac_func
18059 return $ac_func ();
18064 rm -f conftest.
$ac_objext conftest
$ac_exeext
18065 if { (ac_try
="$ac_link"
18066 case "(($ac_try" in
18067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18082 eval "$as_ac_var=yes"
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 eval "$as_ac_var=no"
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091 conftest$ac_exeext conftest.$ac_ext
18093 ac_res=`eval echo '${'$as_ac_var'}'`
18094 { echo "$as_me:$LINENO: result: $ac_res" >&5
18095 echo "${ECHO_T}$ac_res" >&6; }
18096 if test `eval echo '${'$as_ac_var'}'` = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18103 for ac_func in on_exit
18105 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18119 #define $ac_func innocuous_$ac_func
18121 /* System header to define __stub macros and hopefully few prototypes,
18122 which can conflict with char $ac_func (); below.
18123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18124 <limits.h> exists even on freestanding compilers. */
18127 # include <limits.h>
18129 # include <assert.h>
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18141 /* The GNU C library defines this for functions which it implements
18142 to always fail with ENOSYS. Some functions are actually named
18143 something starting with __ and the normal name is an alias. */
18144 #if defined __stub_$ac_func || defined __stub___$ac_func
18151 return $ac_func ();
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18160 *) ac_try_echo
=$ac_try;;
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_link") 2>conftest.er1
18165 grep -v '^ *+' conftest.er1
>conftest.err
18167 cat conftest.err
>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } && {
18170 test -z "$ac_c_werror_flag" ||
18171 test ! -s conftest.err
18172 } && test -s conftest
$ac_exeext &&
18173 $as_test_x conftest
$ac_exeext; then
18174 eval "$as_ac_var=yes"
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.
$ac_ext >&5
18179 eval "$as_ac_var=no"
18182 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18183 conftest
$ac_exeext conftest.
$ac_ext
18185 ac_res
=`eval echo '${'$as_ac_var'}'`
18186 { echo "$as_me:$LINENO: result: $ac_res" >&5
18187 echo "${ECHO_T}$ac_res" >&6; }
18188 if test `eval echo '${'$as_ac_var'}'` = yes; then
18189 cat >>confdefs.h
<<_ACEOF
18190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18194 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18195 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18196 { (exit 1); exit 1; }; }
18205 for ac_func
in fseeko
18207 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18210 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18211 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 cat >conftest.
$ac_ext <<_ACEOF
18216 cat confdefs.h
>>conftest.
$ac_ext
18217 cat >>conftest.
$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18221 #define $ac_func innocuous_$ac_func
18223 /* System header to define __stub macros and hopefully few prototypes,
18224 which can conflict with char $ac_func (); below.
18225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18226 <limits.h> exists even on freestanding compilers. */
18229 # include <limits.h>
18231 # include <assert.h>
18236 /* Override any GCC internal prototype to avoid an error.
18237 Use char because int might match the return type of a GCC
18238 builtin and then its argument prototype would still apply. */
18243 /* The GNU C library defines this for functions which it implements
18244 to always fail with ENOSYS. Some functions are actually named
18245 something starting with __ and the normal name is an alias. */
18246 #if defined __stub_$ac_func || defined __stub___$ac_func
18253 return $ac_func ();
18258 rm -f conftest.
$ac_objext conftest
$ac_exeext
18259 if { (ac_try
="$ac_link"
18260 case "(($ac_try" in
18261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_link") 2>conftest.er1
18267 grep -v '^ *+' conftest.er1 >conftest.err
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest$ac_exeext &&
18275 $as_test_x conftest$ac_exeext; then
18276 eval "$as_ac_var=yes"
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 eval "$as_ac_var=no"
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285 conftest$ac_exeext conftest.$ac_ext
18287 ac_res=`eval echo '${'$as_ac_var'}'`
18288 { echo "$as_me:$LINENO: result: $ac_res" >&5
18289 echo "${ECHO_T}$ac_res" >&6; }
18290 if test `eval echo '${'$as_ac_var'}'` = yes; then
18291 cat >>confdefs.h <<_ACEOF
18292 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18296 case " $LIBOBJS " in
18297 *" $ac_func.$ac_objext "* ) ;;
18298 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18307 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_FSEEKO 1
18314 ac_cv_func_fseeko=yes;;
18316 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18317 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18318 if test "${ac_cv_sys_largefile_source+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 cat >conftest.$ac_ext <<_ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328 #include <sys/types.h> /* for off_t */
18333 int (*fp) (FILE *, off_t, int) = fseeko;
18334 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18343 *) ac_try_echo
=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_link") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1
>conftest.err
18350 cat conftest.err
>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } && {
18353 test -z "$ac_c_werror_flag" ||
18354 test ! -s conftest.err
18355 } && test -s conftest
$ac_exeext &&
18356 $as_test_x conftest
$ac_exeext; then
18357 ac_cv_sys_largefile_source
=no
; break
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.
$ac_ext >&5
18365 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18366 conftest
$ac_exeext conftest.
$ac_ext
18367 cat >conftest.
$ac_ext <<_ACEOF
18370 cat confdefs.h
>>conftest.
$ac_ext
18371 cat >>conftest.
$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 #define _LARGEFILE_SOURCE 1
18374 #include <sys/types.h> /* for off_t */
18379 int (*fp) (FILE *, off_t, int) = fseeko;
18380 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18385 rm -f conftest.
$ac_objext conftest
$ac_exeext
18386 if { (ac_try
="$ac_link"
18387 case "(($ac_try" in
18388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && {
18399 test -z "$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18401 } && test -s conftest$ac_exeext &&
18402 $as_test_x conftest$ac_exeext; then
18403 ac_cv_sys_largefile_source=1; break
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18412 conftest$ac_exeext conftest.$ac_ext
18413 ac_cv_sys_largefile_source=unknown
18417 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18418 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18419 case $ac_cv_sys_largefile_source in #(
18422 cat >>confdefs.h <<_ACEOF
18423 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18429 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18430 # in glibc 2.1.3, but that breaks too many other things.
18431 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18432 if test $ac_cv_sys_largefile_source != unknown; then
18434 cat >>confdefs.h <<\_ACEOF
18435 #define HAVE_FSEEKO 1
18446 # For each platform, we need to know about any special compile and link
18447 # libraries, and whether the normal C function names are thread-safe.
18448 # See the comment at the top of src/port/thread.c for more information.
18449 # WIN32 doesn't need the pthread tests; it always uses threads
18450 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18455 ac_cpp='$CPP $CPPFLAGS'
18456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18462 # We used to check for pthread.h first, but this fails if pthread.h
18463 # requires special compiler flags (e.g. on True64 or Sequent).
18464 # It gets checked for in the link test anyway.
18466 # First of all, check if the user has set any of the PTHREAD_LIBS,
18467 # etcetera environment variables, and if threads linking works using
18469 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18470 save_CFLAGS="$CFLAGS"
18471 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18473 LIBS="$PTHREAD_LIBS $LIBS"
18474 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18475 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18489 char pthread_join ();
18493 return pthread_join ();
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18502 *) ac_try_echo
=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18507 grep -v '^ *+' conftest.er1
>conftest.err
18509 cat conftest.err
>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } && {
18512 test -z "$ac_c_werror_flag" ||
18513 test ! -s conftest.err
18514 } && test -s conftest
$ac_exeext &&
18515 $as_test_x conftest
$ac_exeext; then
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.
$ac_ext >&5
18524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18525 conftest
$ac_exeext conftest.
$ac_ext
18526 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18527 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18528 if test x
"$acx_pthread_ok" = xno
; then
18533 CFLAGS
="$save_CFLAGS"
18536 # We must check for the threads library under a number of different
18537 # names; the ordering is very important because some systems
18538 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18539 # libraries is broken (non-POSIX).
18541 # Create a list of thread flags to try. Items starting with a "-" are
18542 # C compiler flags, and other items are library names, except for "none"
18543 # which indicates that we try without any flags at all, and "pthread-config"
18544 # which is a program returning the flags for the Pth emulation library.
18546 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18548 # The ordering *is* (sometimes) important. Some notes on the
18549 # individual items follow:
18551 # pthreads: AIX (must check this before -lpthread)
18552 # none: in case threads are in libc; should be tried before -Kthread and
18553 # other compiler flags to prevent continual compiler warnings
18554 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18555 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18556 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18557 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18558 # -pthreads: Solaris/gcc
18559 # -mthreads: Mingw32/gcc, Lynx/gcc
18560 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18561 # doesn't hurt to check since this sometimes defines pthreads too;
18562 # also defines -D_REENTRANT)
18563 # pthread: Linux, etcetera
18564 # --thread-safe: KAI C++
18565 # pthread-config: use pthread-config program (for GNU Pth library)
18567 case "${host_cpu}-${host_os}" in
18570 # On Solaris (at least, for some versions), libc contains stubbed
18571 # (non-functional) versions of the pthreads routines, so link-based
18572 # tests will erroneously succeed. (We need to link with -pthread or
18573 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18574 # a function called by this macro, so we could check for that, but
18575 # who knows whether they'll stub that too in a future libc.) So,
18576 # we'll just look for -pthreads and -lpthread first:
18578 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18582 if test x
"$acx_pthread_ok" = xno
; then
18583 for flag
in $acx_pthread_flags; do
18585 tryPTHREAD_CFLAGS
=""
18589 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18590 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18594 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18595 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18596 tryPTHREAD_CFLAGS
="$flag"
18600 # skip this if we already have flags defined, for PostgreSQL
18601 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18602 # Extract the first word of "pthread-config", so it can be a program name with args.
18603 set dummy pthread-config
; ac_word
=$2
18604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18606 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 if test -n "$acx_pthread_config"; then
18610 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18613 for as_dir
in $PATH
18616 test -z "$as_dir" && as_dir
=.
18617 for ac_exec_ext
in '' $ac_executable_extensions; do
18618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18619 ac_cv_prog_acx_pthread_config
="yes"
18620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18630 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18631 if test -n "$acx_pthread_config"; then
18632 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18633 echo "${ECHO_T}$acx_pthread_config" >&6; }
18635 { echo "$as_me:$LINENO: result: no" >&5
18636 echo "${ECHO_T}no" >&6; }
18640 if test x
"$acx_pthread_config" = xno
; then continue; fi
18641 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18642 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18646 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18647 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18648 tryPTHREAD_LIBS
="-l$flag"
18653 save_CFLAGS
="$CFLAGS"
18654 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18655 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18657 # Check for various functions. We must include pthread.h,
18658 # since some functions may be macros. (On the Sequent, we
18659 # need a special flag -Kthread to make this header compile.)
18660 # We check for pthread_join because it is in -lpthread on IRIX
18661 # while pthread_create is in libc. We check for pthread_attr_init
18662 # due to DEC craziness with -lpthreads. We check for
18663 # pthread_cleanup_push because it is one of the few pthread
18664 # functions on Solaris that doesn't have a non-functional libc stub.
18665 # We try pthread_create on general principles.
18666 cat >conftest.
$ac_ext <<_ACEOF
18669 cat confdefs.h
>>conftest.
$ac_ext
18670 cat >>conftest.
$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 #include <pthread.h>
18676 pthread_t th; pthread_join(th, 0);
18677 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18678 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18683 rm -f conftest.
$ac_objext conftest
$ac_exeext
18684 if { (ac_try
="$ac_link"
18685 case "(($ac_try" in
18686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest$ac_exeext &&
18700 $as_test_x conftest$ac_exeext; then
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18710 conftest$ac_exeext conftest.$ac_ext
18712 if test "x$acx_pthread_ok" = xyes; then
18713 # Don't use options that are ignored by the compiler.
18714 # We find them by checking stderror.
18715 cat >conftest.$ac_ext <<_ACEOF
18717 main (int argc, char **argv)
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18726 # we continue with more flags because Linux needs -lpthread
18727 # for libpq builds on PostgreSQL. The test above only
18728 # tests for building binaries, not shared libraries.
18729 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18730 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18731 else acx_pthread_ok=no
18736 CFLAGS="$save_CFLAGS"
18738 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18739 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18743 # Various other checks:
18744 if test "x$acx_pthread_ok" = xyes; then
18746 LIBS="$PTHREAD_LIBS $LIBS"
18747 save_CFLAGS="$CFLAGS"
18748 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18750 # Detect AIX lossage: threads are created detached by default
18751 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18752 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18753 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18754 cat >conftest.$ac_ext <<_ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 #include <pthread.h>
18764 int attr=PTHREAD_CREATE_JOINABLE;
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18773 *) ac_try_echo
=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_link") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1
>conftest.err
18780 cat conftest.err
>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest
$ac_exeext &&
18786 $as_test_x conftest
$ac_exeext; then
18787 ok
=PTHREAD_CREATE_JOINABLE
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.
$ac_ext >&5
18795 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18796 conftest
$ac_exeext conftest.
$ac_ext
18797 if test x
"$ok" = xunknown
; then
18798 cat >conftest.
$ac_ext <<_ACEOF
18801 cat confdefs.h
>>conftest.
$ac_ext
18802 cat >>conftest.
$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 #include <pthread.h>
18808 int attr=PTHREAD_CREATE_UNDETACHED;
18813 rm -f conftest.
$ac_objext conftest
$ac_exeext
18814 if { (ac_try
="$ac_link"
18815 case "(($ac_try" in
18816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_link") 2>conftest.er1
18822 grep -v '^ *+' conftest.er1 >conftest.err
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && {
18827 test -z "$ac_c_werror_flag" ||
18828 test ! -s conftest.err
18829 } && test -s conftest$ac_exeext &&
18830 $as_test_x conftest$ac_exeext; then
18831 ok=PTHREAD_CREATE_UNDETACHED
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18840 conftest$ac_exeext conftest.$ac_ext
18842 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define PTHREAD_CREATE_JOINABLE $ok
18849 { echo "$as_me:$LINENO: result: ${ok}" >&5
18850 echo "${ECHO_T}${ok}" >&6; }
18851 if test x"$ok" = xunknown; then
18852 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18853 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18856 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18857 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18859 # We always add these in PostgreSQL
18860 # case "${host_cpu}-${host_os}" in
18861 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18862 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18864 { echo "$as_me:$LINENO: result: ${flag}" >&5
18865 echo "${ECHO_T}${flag}" >&6; }
18866 if test "x$flag" != xno; then
18867 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18871 CFLAGS="$save_CFLAGS"
18873 # Supporting cc_r would require a special CC in all places that
18874 # use libpq, and that is ugly, so we don't do it. Users can still
18875 # define their compiler as cc_r to do thread builds of everything.
18876 # More AIX lossage: must compile with cc_r
18877 # Extract the first word of "cc_r", so it can be a program name with args.
18878 set dummy cc_r; ac_word=$2
18879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18881 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 if test -n "$PTHREAD_CC"; then
18885 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18891 test -z "$as_dir" && as_dir=.
18892 for ac_exec_ext in '' $ac_executable_extensions; do
18893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18894 ac_cv_prog_PTHREAD_CC="cc_r"
18895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18902 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18905 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18906 if test -n "$PTHREAD_CC"; then
18907 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18908 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18910 { echo "$as_me:$LINENO: result: no" >&5
18911 echo "${ECHO_T}no" >&6; }
18923 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18924 if test x"$acx_pthread_ok" = xyes; then
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_PTHREAD 1
18936 ac_cpp='$CPP $CPPFLAGS'
18937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18943 # Some platforms use these, so just defineed them. They can't hurt if they
18944 # are not supported.
18945 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18948 # At this point, we don't want to muck with the compiler name for threading.
18949 # Let's see who fails, perhaps AIX. 2004-04-23
18950 if test "$PTHREAD_CC" != "$CC"; then
18951 { { echo "$as_me:$LINENO: error:
18952 PostgreSQL does not support platforms that require a special compiler
18953 for thread safety." >&5
18954 echo "$as_me: error:
18955 PostgreSQL does not support platforms that require a special compiler
18956 for thread safety." >&2;}
18957 { (exit 1); exit 1; }; }
18960 if test "$THREAD_SUPPORT" = no; then
18961 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18962 This platform is known to not support thread-safe programs. For details,
18963 compile and run src/bin/pg_thread_test." >&5
18964 echo "$as_me: error: cannot enable threads on this platform
18965 This platform is known to not support thread-safe programs. For details,
18966 compile and run src/bin/pg_thread_test." >&2;}
18967 { (exit 1); exit 1; }; }
18970 # Check for *_r functions
18973 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18974 LIBS="$LIBS $PTHREAD_LIBS"
18976 if test "$PORTNAME" != "win32"; then
18977 if test "${ac_cv_header_pthread_h+set}" = set; then
18978 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18979 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18980 if test "${ac_cv_header_pthread_h+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18984 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18986 # Is the header compilable?
18987 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18988 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18989 cat >conftest.$ac_ext <<_ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h. */
18995 $ac_includes_default
18996 #include <pthread.h>
18998 rm -f conftest.$ac_objext
18999 if { (ac_try="$ac_compile"
19000 case "(($ac_try" in
19001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19002 *) ac_try_echo
=$ac_try;;
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_compile") 2>conftest.er1
19007 grep -v '^ *+' conftest.er1
>conftest.err
19009 cat conftest.err
>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } && {
19012 test -z "$ac_c_werror_flag" ||
19013 test ! -s conftest.err
19014 } && test -s conftest.
$ac_objext; then
19015 ac_header_compiler
=yes
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.
$ac_ext >&5
19020 ac_header_compiler
=no
19023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19025 echo "${ECHO_T}$ac_header_compiler" >&6; }
19027 # Is the header present?
19028 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19029 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19030 cat >conftest.
$ac_ext <<_ACEOF
19033 cat confdefs.h
>>conftest.
$ac_ext
19034 cat >>conftest.
$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 #include <pthread.h>
19038 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19039 case "(($ac_try" in
19040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19046 grep -v '^ *+' conftest.er1 >conftest.err
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } >/dev/null && {
19051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19052 test ! -s conftest.err
19054 ac_header_preproc=yes
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_header_preproc=no
19062 rm -f conftest.err conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19064 echo "${ECHO_T}$ac_header_preproc" >&6; }
19066 # So? What about this header?
19067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19069 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19070 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19071 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19072 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19073 ac_header_preproc=yes
19076 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19077 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19079 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19081 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19083 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19085 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19087 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19089 ## ---------------------------------------- ##
19090 ## Report this to pgsql-bugs@postgresql.org ##
19091 ## ---------------------------------------- ##
19093 ) | sed "s/^/$as_me: WARNING: /" >&2
19096 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19097 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19098 if test "${ac_cv_header_pthread_h+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 ac_cv_header_pthread_h=$ac_header_preproc
19103 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19104 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19107 if test $ac_cv_header_pthread_h = yes; then
19110 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19111 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19112 { (exit 1); exit 1; }; }
19121 for ac_func in strerror_r getpwuid_r gethostbyname_r
19123 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19137 #define $ac_func innocuous_$ac_func
19139 /* System header to define __stub macros and hopefully few prototypes,
19140 which can conflict with char $ac_func (); below.
19141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19142 <limits.h> exists even on freestanding compilers. */
19145 # include <limits.h>
19147 # include <assert.h>
19152 /* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19159 /* The GNU C library defines this for functions which it implements
19160 to always fail with ENOSYS. Some functions are actually named
19161 something starting with __ and the normal name is an alias. */
19162 #if defined __stub_$ac_func || defined __stub___$ac_func
19169 return $ac_func ();
19174 rm -f conftest.$ac_objext conftest$ac_exeext
19175 if { (ac_try="$ac_link"
19176 case "(($ac_try" in
19177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19178 *) ac_try_echo
=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1
>conftest.err
19185 cat conftest.err
>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest
$ac_exeext &&
19191 $as_test_x conftest
$ac_exeext; then
19192 eval "$as_ac_var=yes"
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.
$ac_ext >&5
19197 eval "$as_ac_var=no"
19200 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19201 conftest
$ac_exeext conftest.
$ac_ext
19203 ac_res
=`eval echo '${'$as_ac_var'}'`
19204 { echo "$as_me:$LINENO: result: $ac_res" >&5
19205 echo "${ECHO_T}$ac_res" >&6; }
19206 if test `eval echo '${'$as_ac_var'}'` = yes; then
19207 cat >>confdefs.h
<<_ACEOF
19208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19215 # Do test here with the proper thread flags
19216 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19217 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19218 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 cat >conftest.
$ac_ext <<_ACEOF
19224 cat confdefs.h
>>conftest.
$ac_ext
19225 cat >>conftest.
$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 #include <sys/types.h>
19233 struct passwd *space;
19236 struct passwd **result;
19237 getpwuid_r(uid, space, buf, bufsize, result);
19242 rm -f conftest.
$ac_objext
19243 if { (ac_try
="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_compile") 2>conftest.er1
19251 grep -v '^ *+' conftest.er1 >conftest.err
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } && {
19256 test -z "$ac_c_werror_flag" ||
19257 test ! -s conftest.err
19258 } && test -s conftest.$ac_objext; then
19259 pgac_func_getpwuid_r_5arg=yes
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 pgac_func_getpwuid_r_5arg=no
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19270 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19271 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19273 cat >>confdefs.h <<\_ACEOF
19274 #define GETPWUID_R_5ARG
19279 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19280 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19281 if test "${pgac_func_strerror_r_int+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <string.h>
19295 int strerror_r(int, char *, size_t);
19297 /* Older AIX has 'int' for the third argument so we don't test the args. */
19304 rm -f conftest.$ac_objext
19305 if { (ac_try="$ac_compile"
19306 case "(($ac_try" in
19307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19308 *) ac_try_echo
=$ac_try;;
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_compile") 2>conftest.er1
19313 grep -v '^ *+' conftest.er1
>conftest.err
19315 cat conftest.err
>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest.
$ac_objext; then
19321 pgac_func_strerror_r_int
=yes
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.
$ac_ext >&5
19326 pgac_func_strerror_r_int
=no
19329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19331 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19332 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19333 if test x
"$pgac_func_strerror_r_int" = xyes
; then
19335 cat >>confdefs.h
<<\_ACEOF
19336 #define STRERROR_R_INT
19346 # do not use values from template file
19355 # We can test for libldap_r only after we know PTHREAD_LIBS
19356 if test "$with_ldap" = yes ; then
19358 if test "$PORTNAME" != "win32"; then
19360 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19361 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19362 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 ac_check_lib_save_LIBS
=$LIBS
19366 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
19367 cat >conftest.
$ac_ext <<_ACEOF
19370 cat confdefs.h
>>conftest.
$ac_ext
19371 cat >>conftest.
$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 /* Override any GCC internal prototype to avoid an error.
19375 Use char because int might match the return type of a GCC
19376 builtin and then its argument prototype would still apply. */
19384 return ldap_bind ();
19389 rm -f conftest.
$ac_objext conftest
$ac_exeext
19390 if { (ac_try
="$ac_link"
19391 case "(($ac_try" in
19392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_link") 2>conftest.er1
19398 grep -v '^ *+' conftest.er1 >conftest.err
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } && {
19403 test -z "$ac_c_werror_flag" ||
19404 test ! -s conftest.err
19405 } && test -s conftest$ac_exeext &&
19406 $as_test_x conftest$ac_exeext; then
19407 ac_cv_lib_ldap_ldap_bind=yes
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_lib_ldap_ldap_bind=no
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19419 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19420 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19421 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_LIBLDAP 1
19426 LIBS="-lldap $LIBS"
19429 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19430 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19431 { (exit 1); exit 1; }; }
19434 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19435 if test "$enable_thread_safety" = yes; then
19436 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19438 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19439 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19440 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 ac_check_lib_save_LIBS=$LIBS
19444 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19452 /* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19458 char ldap_simple_bind ();
19462 return ldap_simple_bind ();
19467 rm -f conftest.$ac_objext conftest$ac_exeext
19468 if { (ac_try="$ac_link"
19469 case "(($ac_try" in
19470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19471 *) ac_try_echo
=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_link") 2>conftest.er1
19476 grep -v '^ *+' conftest.er1
>conftest.err
19478 cat conftest.err
>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } && {
19481 test -z "$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 } && test -s conftest
$ac_exeext &&
19484 $as_test_x conftest
$ac_exeext; then
19485 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.
$ac_ext >&5
19490 ac_cv_lib_ldap_r_ldap_simple_bind
=no
19493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19494 conftest
$ac_exeext conftest.
$ac_ext
19495 LIBS
=$ac_check_lib_save_LIBS
19497 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19498 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19499 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19500 cat >>confdefs.h
<<_ACEOF
19501 #define HAVE_LIBLDAP_R 1
19504 LIBS
="-lldap_r $LIBS"
19507 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19508 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19509 { (exit 1); exit 1; }; }
19512 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19514 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19518 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19519 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19520 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 ac_check_lib_save_LIBS
=$LIBS
19524 LIBS
="-lwldap32 $LIBS"
19525 cat >conftest.
$ac_ext <<_ACEOF
19528 cat confdefs.h
>>conftest.
$ac_ext
19529 cat >>conftest.
$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* Override any GCC internal prototype to avoid an error.
19533 Use char because int might match the return type of a GCC
19534 builtin and then its argument prototype would still apply. */
19542 return ldap_bind ();
19547 rm -f conftest.
$ac_objext conftest
$ac_exeext
19548 if { (ac_try
="$ac_link"
19549 case "(($ac_try" in
19550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest$ac_exeext &&
19564 $as_test_x conftest$ac_exeext; then
19565 ac_cv_lib_wldap32_ldap_bind=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_lib_wldap32_ldap_bind=no
19573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19577 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19578 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19579 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19580 cat >>confdefs.h <<_ACEOF
19581 #define HAVE_LIBWLDAP32 1
19584 LIBS="-lwldap32 $LIBS"
19587 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19588 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19589 { (exit 1); exit 1; }; }
19592 LDAP_LIBS_FE="-lwldap32"
19593 LDAP_LIBS_BE="-lwldap32"
19601 # This test makes sure that run tests work at all. Sometimes a shared
19602 # library is found by the linker, but the runtime linker can't find it.
19603 # This check should come after all modifications of compiler or linker
19604 # variables, and before any other run tests.
19605 { echo "$as_me:$LINENO: checking test program" >&5
19606 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19607 if test "$cross_compiling" = yes; then
19608 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19609 echo "${ECHO_T}cross-compiling" >&6; }
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 int main() { return 0; }
19619 rm -f conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19623 *) ac_try_echo
=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19630 { (case "(($ac_try" in
19631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 { echo "$as_me:$LINENO: result: ok" >&5
19640 echo "${ECHO_T}ok" >&6; }
19642 echo "$as_me: program exited with status $ac_status" >&5
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19646 ( exit $ac_status )
19647 { echo "$as_me:$LINENO: result: failed" >&5
19648 echo "${ECHO_T}failed" >&6; }
19649 { { echo "$as_me:$LINENO: error:
19650 Could not execute a simple test program. This may be a problem
19651 related to locating shared libraries. Check the file 'config.log'
19652 for the exact reason." >&5
19653 echo "$as_me: error:
19654 Could not execute a simple test program. This may be a problem
19655 related to locating shared libraries. Check the file 'config.log'
19656 for the exact reason." >&2;}
19657 { (exit 1); exit 1; }; }
19659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19664 # --------------------
19665 # Run tests below here
19666 # --------------------
19668 # Force use of our snprintf if system's doesn't do arg control
19669 # See comment above at snprintf test for details.
19670 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19671 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19672 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19673 if test "${pgac_cv_printf_arg_control+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 if test "$cross_compiling" = yes; then
19677 pgac_cv_printf_arg_control=cross
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19686 #include <string.h>
19692 /* can it swap arguments? */
19693 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19694 if (strcmp(buf, "4 3") != 0)
19699 rm -f conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19703 *) ac_try_echo
=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19710 { (case "(($ac_try" in
19711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 pgac_cv_printf_arg_control=yes
19721 echo "$as_me: program exited with status $ac_status" >&5
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 ( exit $ac_status )
19726 pgac_cv_printf_arg_control=no
19728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19735 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19737 if test $pgac_cv_printf_arg_control != yes ; then
19738 pgac_need_repl_snprintf=yes
19744 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19745 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19746 if test "${pgac_cv_type_long_int_64+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 if test "$cross_compiling" = yes; then
19750 # If cross-compiling, check the size reported by the compiler and
19751 # trust that the arithmetic works.
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19762 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19773 *) ac_try_echo
=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1
>conftest.err
19780 cat conftest.err
>&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest.
$ac_objext; then
19786 pgac_cv_type_long_int_64
=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.
$ac_ext >&5
19791 pgac_cv_type_long_int_64
=no
19794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19796 cat >conftest.
$ac_ext <<_ACEOF
19799 cat confdefs.h
>>conftest.
$ac_ext
19800 cat >>conftest.
$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 typedef long int ac_int64;
19805 * These are globals to discourage the compiler from folding all the
19806 * arithmetic tests down to compile-time constants.
19808 ac_int64 a = 20000001;
19809 ac_int64 b = 40000005;
19811 int does_int64_work()
19815 if (sizeof(ac_int64) != 8)
19816 return 0; /* definitely not the right size */
19818 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19826 exit(! does_int64_work());
19829 rm -f conftest
$ac_exeext
19830 if { (ac_try
="$ac_link"
19831 case "(($ac_try" in
19832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19842 *) ac_try_echo
=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_try") 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 pgac_cv_type_long_int_64
=yes
19851 echo "$as_me: program exited with status $ac_status" >&5
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.
$ac_ext >&5
19855 ( exit $ac_status )
19856 pgac_cv_type_long_int_64
=no
19858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19863 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19864 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19866 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
19867 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
19869 cat >>confdefs.h
<<\_ACEOF
19870 #define HAVE_LONG_INT_64 1
19876 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
19877 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19878 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19879 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 if test "$cross_compiling" = yes; then
19883 # If cross-compiling, check the size reported by the compiler and
19884 # trust that the arithmetic works.
19885 cat >conftest.
$ac_ext <<_ACEOF
19888 cat confdefs.h
>>conftest.
$ac_ext
19889 cat >>conftest.
$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19895 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19902 rm -f conftest.
$ac_objext
19903 if { (ac_try
="$ac_compile"
19904 case "(($ac_try" in
19905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_compile") 2>conftest.er1
19911 grep -v '^ *+' conftest.er1 >conftest.err
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && {
19916 test -z "$ac_c_werror_flag" ||
19917 test ! -s conftest.err
19918 } && test -s conftest.$ac_objext; then
19919 pgac_cv_type_long_long_int_64=yes
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 pgac_cv_type_long_long_int_64=no
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 typedef long long int ac_int64;
19938 * These are globals to discourage the compiler from folding all the
19939 * arithmetic tests down to compile-time constants.
19941 ac_int64 a = 20000001;
19942 ac_int64 b = 40000005;
19944 int does_int64_work()
19948 if (sizeof(ac_int64) != 8)
19949 return 0; /* definitely not the right size */
19951 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19959 exit(! does_int64_work());
19962 rm -f conftest$ac_exeext
19963 if { (ac_try="$ac_link"
19964 case "(($ac_try" in
19965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19966 *) ac_try_echo
=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_link") 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19973 { (case "(($ac_try" in
19974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_try") 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 pgac_cv_type_long_long_int_64=yes
19984 echo "$as_me: program exited with status $ac_status" >&5
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ( exit $ac_status )
19989 pgac_cv_type_long_long_int_64=no
19991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19996 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19997 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19999 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20000 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20002 cat >>confdefs.h <<\_ACEOF
20003 #define HAVE_LONG_LONG_INT_64 1
20012 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 #define INT64CONST(x) x##LL
20021 long long int foo = INT64CONST(0x1234567890123456);
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20035 *) ac_try_echo
=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1
>conftest.err
20042 cat conftest.err
>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest.
$ac_objext; then
20049 cat >>confdefs.h
<<\_ACEOF
20050 #define HAVE_LL_CONSTANTS 1
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.
$ac_ext >&5
20060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20064 # If we found "long int" is 64 bits, assume snprintf handles it. If
20065 # we found we need to use "long long int", better check. We cope with
20066 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20067 # work, fall back to our own snprintf emulation (which we know uses %lld).
20069 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20070 if test $pgac_need_repl_snprintf = no
; then
20071 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20072 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20073 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 for pgac_format
in '%lld' '%qd' '%I64d'; do
20077 if test "$cross_compiling" = yes; then
20078 pgac_cv_snprintf_long_long_int_format
=cross
; break
20080 cat >conftest.
$ac_ext <<_ACEOF
20083 cat confdefs.h
>>conftest.
$ac_ext
20084 cat >>conftest.
$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 typedef long long int ac_int64;
20088 #define INT64_FORMAT "$pgac_format"
20090 ac_int64 a = 20000001;
20091 ac_int64 b = 40000005;
20093 int does_int64_snprintf_work()
20098 if (sizeof(ac_int64) != 8)
20099 return 0; /* doesn't look like the right size */
20102 snprintf(buf, 100, INT64_FORMAT, c);
20103 if (strcmp(buf, "800000140000005") != 0)
20104 return 0; /* either multiply or snprintf is busted */
20108 exit(! does_int64_snprintf_work());
20111 rm -f conftest
$ac_exeext
20112 if { (ac_try
="$ac_link"
20113 case "(($ac_try" in
20114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20122 { (case "(($ac_try" in
20123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20124 *) ac_try_echo
=$ac_try;;
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_try") 2>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
20133 echo "$as_me: program exited with status $ac_status" >&5
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.
$ac_ext >&5
20138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20145 LONG_LONG_INT_FORMAT
=''
20147 case $pgac_cv_snprintf_long_long_int_format in
20148 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20149 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20150 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20151 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20152 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
20153 *) { echo "$as_me:$LINENO: result: none" >&5
20154 echo "${ECHO_T}none" >&6; };;
20156 if test "$LONG_LONG_INT_FORMAT" = ""; then
20157 # Force usage of our own snprintf, since system snprintf is broken
20158 pgac_need_repl_snprintf
=yes
20159 LONG_LONG_INT_FORMAT
='%lld'
20162 # Here if we previously decided we needed to use our own snprintf
20163 LONG_LONG_INT_FORMAT
='%lld'
20165 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20166 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
20167 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
20169 # Here if we are not using 'long long int' at all
20170 INT64_FORMAT
='"%ld"'
20171 UINT64_FORMAT
='"%lu"'
20175 cat >>confdefs.h
<<_ACEOF
20176 #define INT64_FORMAT $INT64_FORMAT
20181 cat >>confdefs.h
<<_ACEOF
20182 #define UINT64_FORMAT $UINT64_FORMAT
20186 # Now we have checked all the reasons to replace snprintf
20187 if test $pgac_need_repl_snprintf = yes; then
20189 cat >>confdefs.h
<<\_ACEOF
20190 #define USE_REPL_SNPRINTF 1
20193 case " $LIBOBJS " in
20194 *" snprintf.$ac_objext "* ) ;;
20195 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20201 # Need a #define for the size of Datum (unsigned long)
20202 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20203 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20204 if test "${ac_cv_type_unsigned_long+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 cat >conftest.
$ac_ext <<_ACEOF
20210 cat confdefs.h
>>conftest.
$ac_ext
20211 cat >>conftest.
$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 typedef unsigned long ac__type_new_;
20218 if ((ac__type_new_ *) 0)
20220 if (sizeof (ac__type_new_))
20226 rm -f conftest.
$ac_objext
20227 if { (ac_try
="$ac_compile"
20228 case "(($ac_try" in
20229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_cv_type_unsigned_long=yes
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_type_unsigned_long=no
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20254 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20256 # The cast to long int works around a bug in the HP C Compiler
20257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20258 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20259 # This bug is HP SR number 8606223364.
20260 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20261 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20262 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 if test "$cross_compiling" = yes; then
20266 # Depending upon the size, compute the lo and hi bounds.
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 typedef unsigned long ac__type_sizeof_;
20278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20285 rm -f conftest.$ac_objext
20286 if { (ac_try="$ac_compile"
20287 case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20294 grep -v '^
*+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20311 typedef unsigned long ac__type_sizeof_;
20315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_compile") 2>conftest.er1
20331 grep -v '^
*+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest.$ac_objext; then
20339 ac_hi=$ac_mid; break
20341 echo "$as_me: failed program was:" >&5
20342 sed 's
/^
/|
/' conftest.$ac_ext >&5
20344 ac_lo=`expr $ac_mid + 1`
20345 if test $ac_lo -le $ac_mid; then
20349 ac_mid=`expr 2 '*' $ac_mid + 1`
20352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355 echo "$as_me: failed program was:" >&5
20356 sed 's
/^
/|
/' conftest.$ac_ext >&5
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 $ac_includes_default
20365 typedef unsigned long ac__type_sizeof_;
20369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20385 grep -v '^
*+' conftest.er1 >conftest.err
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 $ac_includes_default
20402 typedef unsigned long ac__type_sizeof_;
20406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20422 grep -v '^
*+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_lo=$ac_mid; break
20432 echo "$as_me: failed program was:" >&5
20433 sed 's
/^
/|
/' conftest.$ac_ext >&5
20435 ac_hi=`expr '(' $ac_mid ')' - 1`
20436 if test $ac_mid -le $ac_hi; then
20440 ac_mid=`expr 2 '*' $ac_mid`
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 echo "$as_me: failed program was:" >&5
20447 sed 's
/^
/|
/' conftest.$ac_ext >&5
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 # Binary search between lo and hi bounds.
20457 while test "x$ac_lo" != "x$ac_hi"; do
20458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20459 cat >conftest.$ac_ext <<_ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 typedef unsigned long ac__type_sizeof_;
20470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20477 rm -f conftest.$ac_objext
20478 if { (ac_try="$ac_compile"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_compile") 2>conftest.er1
20486 grep -v '^
*+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest.$ac_objext; then
20496 echo "$as_me: failed program was:" >&5
20497 sed 's
/^
/|
/' conftest.$ac_ext >&5
20499 ac_lo=`expr '(' $ac_mid ')' + 1`
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20505 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20506 '') if test "$ac_cv_type_unsigned_long" = yes; then
20507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20508 See \`config.log' for more details.
" >&5
20509 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
20510 See \
`config.log' for more details." >&2;}
20511 { (exit 77); exit 77; }; }
20513 ac_cv_sizeof_unsigned_long=0
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 $ac_includes_default
20524 typedef unsigned long ac__type_sizeof_;
20525 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20526 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20528 #include <stdlib.h>
20533 FILE *f = fopen ("conftest.val", "w");
20536 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20538 long int i = longval ();
20539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20541 fprintf (f, "%ld\n", i);
20545 unsigned long int i = ulongval ();
20546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20548 fprintf (f, "%lu\n", i);
20550 return ferror (f) || fclose (f) != 0;
20556 rm -f conftest$ac_exeext
20557 if { (ac_try="$ac_link"
20558 case "(($ac_try" in
20559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20560 *) ac_try_echo
=$ac_try;;
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_link") 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20567 { (case "(($ac_try" in
20568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_try") 2>&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; }; then
20576 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
20578 echo "$as_me: program exited with status $ac_status" >&5
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ( exit $ac_status )
20583 if test "$ac_cv_type_unsigned_long" = yes; then
20584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20585 See \`config.log
' for more details." >&5
20586 echo "$as_me: error: cannot compute sizeof (unsigned long)
20587 See \`config.log' for more details.
" >&2;}
20588 { (exit 77); exit 77; }; }
20590 ac_cv_sizeof_unsigned_long=0
20593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20597 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
20598 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20602 cat >>confdefs.h <<_ACEOF
20603 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20608 # And one for the size of size_t (enables tweaks for > 32bit address space)
20609 { echo "$as_me:$LINENO: checking
for size_t
" >&5
20610 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
20611 if test "${ac_cv_type_size_t+set}" = set; then
20612 echo $ECHO_N "(cached
) $ECHO_C" >&6
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20621 typedef size_t ac__type_new_;
20625 if ((ac__type_new_ *) 0)
20627 if (sizeof (ac__type_new_))
20633 rm -f conftest.$ac_objext
20634 if { (ac_try="$ac_compile"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_compile") 2>conftest.er1
20642 grep -v '^ *+' conftest.er1 >conftest.err
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20646 (exit $ac_status); } && {
20647 test -z "$ac_c_werror_flag" ||
20648 test ! -s conftest.err
20649 } && test -s conftest.$ac_objext; then
20650 ac_cv_type_size_t=yes
20652 echo "$as_me: failed program was
:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_type_size_t=no
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
20661 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20663 # The cast to long int works around a bug in the HP C Compiler
20664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20666 # This bug is HP SR number 8606223364.
20667 { echo "$as_me:$LINENO: checking size of size_t
" >&5
20668 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
20669 if test "${ac_cv_sizeof_size_t+set}" = set; then
20670 echo $ECHO_N "(cached
) $ECHO_C" >&6
20672 if test "$cross_compiling" = yes; then
20673 # Depending upon the size, compute the lo and hi bounds.
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20681 typedef size_t ac__type_sizeof_;
20685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 $ac_includes_default
20718 typedef size_t ac__type_sizeof_;
20722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20729 rm -f conftest.$ac_objext
20730 if { (ac_try="$ac_compile"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
20746 ac_hi=$ac_mid; break
20748 echo "$as_me: failed program was
:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_lo=`expr $ac_mid + 1`
20752 if test $ac_lo -le $ac_mid; then
20756 ac_mid=`expr 2 '*' $ac_mid + 1`
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762 echo "$as_me: failed program was
:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 typedef size_t ac__type_sizeof_;
20776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20783 rm -f conftest.$ac_objext
20784 if { (ac_try="$ac_compile"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_compile") 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest.$ac_objext; then
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 $ac_includes_default
20809 typedef size_t ac__type_sizeof_;
20813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20820 rm -f conftest.$ac_objext
20821 if { (ac_try="$ac_compile"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_lo=$ac_mid; break
20839 echo "$as_me: failed program was
:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_hi=`expr '(' $ac_mid ')' - 1`
20843 if test $ac_mid -le $ac_hi; then
20847 ac_mid=`expr 2 '*' $ac_mid`
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 echo "$as_me: failed program was
:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 # Binary search between lo and hi bounds.
20864 while test "x
$ac_lo" != "x
$ac_hi"; do
20865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20866 cat >conftest.$ac_ext <<_ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 $ac_includes_default
20873 typedef size_t ac__type_sizeof_;
20877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20903 echo "$as_me: failed program was
:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ac_lo=`expr '(' $ac_mid ')' + 1`
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20913 '') if test "$ac_cv_type_size_t" = yes; then
20914 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
20915 See \
`config.log' for more details." >&5
20916 echo "$as_me: error: cannot compute sizeof (size_t)
20917 See \`config.log
' for more details." >&2;}
20918 { (exit 77); exit 77; }; }
20920 ac_cv_sizeof_size_t=0
20924 cat >conftest.$ac_ext <<_ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 $ac_includes_default
20931 typedef size_t ac__type_sizeof_;
20932 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20933 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20935 #include <stdlib.h>
20940 FILE *f = fopen ("conftest.val", "w");
20943 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20945 long int i = longval ();
20946 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20948 fprintf (f, "%ld\n", i);
20952 unsigned long int i = ulongval ();
20953 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20955 fprintf (f, "%lu\n", i);
20957 return ferror (f) || fclose (f) != 0;
20963 rm -f conftest$ac_exeext
20964 if { (ac_try="$ac_link"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_link") 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_sizeof_size_t=`cat conftest.val`
20985 echo "$as_me: program exited with status $ac_status" >&5
20986 echo "$as_me: failed program was:" >&5
20987 sed 's
/^
/|
/' conftest.$ac_ext >&5
20989 ( exit $ac_status )
20990 if test "$ac_cv_type_size_t" = yes; then
20991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20992 See \`config.log' for more details.
" >&5
20993 echo "$as_me: error
: cannot compute sizeof
(size_t
)
20994 See \
`config.log' for more details." >&2;}
20995 { (exit 77); exit 77; }; }
20997 ac_cv_sizeof_size_t=0
21000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21005 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21009 cat >>confdefs.h <<_ACEOF
21010 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21015 # Decide whether float4 is passed by value: user-selectable, enabled by default
21016 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21017 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21019 pgac_args="$pgac_args enable_float4_byval"
21021 # Check whether --enable-float4-byval was given.
21022 if test "${enable_float4_byval+set}" = set; then
21023 enableval=$enable_float4_byval;
21027 cat >>confdefs.h <<\_ACEOF
21028 #define USE_FLOAT4_BYVAL 1
21031 float4passbyval=true
21034 float4passbyval=false
21037 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21038 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21039 { (exit 1); exit 1; }; }
21044 enable_float4_byval=yes
21046 cat >>confdefs.h <<\_ACEOF
21047 #define USE_FLOAT4_BYVAL 1
21050 float4passbyval=true
21054 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21055 echo "${ECHO_T}$enable_float4_byval" >&6; }
21057 cat >>confdefs.h <<_ACEOF
21058 #define FLOAT4PASSBYVAL $float4passbyval
21062 # Decide whether float8 is passed by value.
21063 # Note: this setting also controls int8 and related types such as timestamp.
21064 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21065 # If not, trying to select it is an error.
21066 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21067 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21068 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21070 pgac_args="$pgac_args enable_float8_byval"
21072 # Check whether --enable-float8-byval was given.
21073 if test "${enable_float8_byval+set}" = set; then
21074 enableval=$enable_float8_byval;
21083 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21084 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21085 { (exit 1); exit 1; }; }
21090 enable_float8_byval=yes
21097 pgac_args="$pgac_args enable_float8_byval"
21099 # Check whether --enable-float8-byval was given.
21100 if test "${enable_float8_byval+set}" = set; then
21101 enableval=$enable_float8_byval;
21110 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21111 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21112 { (exit 1); exit 1; }; }
21117 enable_float8_byval=no
21122 if test "$enable_float8_byval" = yes ; then
21123 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21124 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21125 { (exit 1); exit 1; }; }
21128 if test "$enable_float8_byval" = yes ; then
21130 cat >>confdefs.h <<\_ACEOF
21131 #define USE_FLOAT8_BYVAL 1
21134 float8passbyval=true
21136 float8passbyval=false
21138 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21139 echo "${ECHO_T}$enable_float8_byval" >&6; }
21141 cat >>confdefs.h <<_ACEOF
21142 #define FLOAT8PASSBYVAL $float8passbyval
21146 # Determine memory alignment requirements for the basic C data types.
21148 { echo "$as_me:$LINENO: checking for short" >&5
21149 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21150 if test "${ac_cv_type_short+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 cat >conftest.$ac_ext <<_ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 $ac_includes_default
21160 typedef short ac__type_new_;
21164 if ((ac__type_new_ *) 0)
21166 if (sizeof (ac__type_new_))
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21176 *) ac_try_echo
=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21181 grep -v '^ *+' conftest.er1
>conftest.err
21183 cat conftest.err
>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.
$ac_objext; then
21189 ac_cv_type_short
=yes
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.
$ac_ext >&5
21194 ac_cv_type_short
=no
21197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21199 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21200 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21202 # The cast to long int works around a bug in the HP C Compiler,
21203 # see AC_CHECK_SIZEOF for more information.
21204 { echo "$as_me:$LINENO: checking alignment of short" >&5
21205 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21206 if test "${ac_cv_alignof_short+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 if test "$cross_compiling" = yes; then
21210 # Depending upon the size, compute the lo and hi bounds.
21211 cat >conftest.
$ac_ext <<_ACEOF
21214 cat confdefs.h
>>conftest.
$ac_ext
21215 cat >>conftest.
$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21219 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21221 typedef struct { char x; short y; } ac__type_alignof_;
21225 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21232 rm -f conftest.
$ac_objext
21233 if { (ac_try
="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 $ac_includes_default
21259 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21261 typedef struct { char x; short y; } ac__type_alignof_;
21265 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21276 *) ac_try_echo
=$ac_try;;
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_compile") 2>conftest.er1
21281 grep -v '^ *+' conftest.er1
>conftest.err
21283 cat conftest.err
>&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } && {
21286 test -z "$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 } && test -s conftest.
$ac_objext; then
21289 ac_hi
=$ac_mid; break
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.
$ac_ext >&5
21294 ac_lo
=`expr $ac_mid + 1`
21295 if test $ac_lo -le $ac_mid; then
21299 ac_mid
=`expr 2 '*' $ac_mid + 1`
21302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.
$ac_ext >&5
21308 cat >conftest.
$ac_ext <<_ACEOF
21311 cat confdefs.h
>>conftest.
$ac_ext
21312 cat >>conftest.
$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21316 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21318 typedef struct { char x; short y; } ac__type_alignof_;
21322 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21329 rm -f conftest.
$ac_objext
21330 if { (ac_try
="$ac_compile"
21331 case "(($ac_try" in
21332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_compile") 2>conftest.er1
21338 grep -v '^ *+' conftest.er1 >conftest.err
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } && {
21343 test -z "$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21345 } && test -s conftest.$ac_objext; then
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21356 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21358 typedef struct { char x; short y; } ac__type_alignof_;
21362 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21373 *) ac_try_echo
=$ac_try;;
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_compile") 2>conftest.er1
21378 grep -v '^ *+' conftest.er1
>conftest.err
21380 cat conftest.err
>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && {
21383 test -z "$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 } && test -s conftest.
$ac_objext; then
21386 ac_lo
=$ac_mid; break
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.
$ac_ext >&5
21391 ac_hi
=`expr '(' $ac_mid ')' - 1`
21392 if test $ac_mid -le $ac_hi; then
21396 ac_mid
=`expr 2 '*' $ac_mid`
21399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.
$ac_ext >&5
21408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21412 # Binary search between lo and hi bounds.
21413 while test "x$ac_lo" != "x$ac_hi"; do
21414 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21415 cat >conftest.
$ac_ext <<_ACEOF
21418 cat confdefs.h
>>conftest.
$ac_ext
21419 cat >>conftest.
$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 $ac_includes_default
21423 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21425 typedef struct { char x; short y; } ac__type_alignof_;
21429 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
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
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_lo=`expr '(' $ac_mid ')' + 1`
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 ?*) ac_cv_alignof_short=$ac_lo;;
21465 '') if test "$ac_cv_type_short" = yes; then
21466 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21467 See \`config.log
' for more details." >&5
21468 echo "$as_me: error: cannot compute alignment of short
21469 See \`config.log' for more details.
" >&2;}
21470 { (exit 77); exit 77; }; }
21472 ac_cv_alignof_short=0
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21484 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21486 typedef struct { char x; short y; } ac__type_alignof_;
21487 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21488 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21490 #include <stdlib.h>
21495 FILE *f = fopen ("conftest.val
", "w
");
21498 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21500 long int i = longval ();
21501 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21503 fprintf (f, "%ld
\n", i);
21507 unsigned long int i = ulongval ();
21508 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21510 fprintf (f, "%lu
\n", i);
21512 return ferror (f) || fclose (f) != 0;
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_link") 2>&5
21527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529 { (case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_try") 2>&5
21536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_alignof_short=`cat conftest.val`
21540 echo "$as_me: program exited with status
$ac_status" >&5
21541 echo "$as_me: failed program was
:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ( exit $ac_status )
21545 if test "$ac_cv_type_short" = yes; then
21546 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
21547 See \
`config.log' for more details." >&5
21548 echo "$as_me: error: cannot compute alignment of short
21549 See \`config.log
' for more details." >&2;}
21550 { (exit 77); exit 77; }; }
21552 ac_cv_alignof_short=0
21555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21559 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21560 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21564 cat >>confdefs.h <<_ACEOF
21565 #define ALIGNOF_SHORT $ac_cv_alignof_short
21569 { echo "$as_me:$LINENO: checking for int" >&5
21570 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21571 if test "${ac_cv_type_int+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 typedef int ac__type_new_;
21585 if ((ac__type_new_ *) 0)
21587 if (sizeof (ac__type_new_))
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;;
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_compile") 2>conftest.er1
21602 grep -v '^
*+' conftest.er1 >conftest.err
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
21612 echo "$as_me: failed program was:" >&5
21613 sed 's
/^
/|
/' conftest.$ac_ext >&5
21618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21621 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21623 # The cast to long int works around a bug in the HP C Compiler,
21624 # see AC_CHECK_SIZEOF for more information.
21625 { echo "$as_me:$LINENO: checking alignment of int" >&5
21626 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21627 if test "${ac_cv_alignof_int+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21630 if test "$cross_compiling" = yes; then
21631 # Depending upon the size, compute the lo and hi bounds.
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 $ac_includes_default
21640 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21642 typedef struct { char x; int y; } ac__type_alignof_;
21646 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21653 rm -f conftest.$ac_objext
21654 if { (ac_try="$ac_compile"
21655 case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_compile") 2>conftest.er1
21662 grep -v '^
*+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest.$ac_objext; then
21672 cat >conftest.$ac_ext <<_ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 $ac_includes_default
21680 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21682 typedef struct { char x; int y; } ac__type_alignof_;
21686 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21702 grep -v '^
*+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 ac_hi=$ac_mid; break
21712 echo "$as_me: failed program was:" >&5
21713 sed 's
/^
/|
/' conftest.$ac_ext >&5
21715 ac_lo=`expr $ac_mid + 1`
21716 if test $ac_lo -le $ac_mid; then
21720 ac_mid=`expr 2 '*' $ac_mid + 1`
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 echo "$as_me: failed program was:" >&5
21727 sed 's
/^
/|
/' conftest.$ac_ext >&5
21729 cat >conftest.$ac_ext <<_ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21735 $ac_includes_default
21737 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21739 typedef struct { char x; int y; } ac__type_alignof_;
21743 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21759 grep -v '^
*+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 $ac_includes_default
21777 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21779 typedef struct { char x; int y; } ac__type_alignof_;
21783 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21790 rm -f conftest.$ac_objext
21791 if { (ac_try="$ac_compile"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_compile") 2>conftest.er1
21799 grep -v '^
*+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } && {
21804 test -z "$ac_c_werror_flag" ||
21805 test ! -s conftest.err
21806 } && test -s conftest.$ac_objext; then
21807 ac_lo=$ac_mid; break
21809 echo "$as_me: failed program was:" >&5
21810 sed 's
/^
/|
/' conftest.$ac_ext >&5
21812 ac_hi=`expr '(' $ac_mid ')' - 1`
21813 if test $ac_mid -le $ac_hi; then
21817 ac_mid=`expr 2 '*' $ac_mid`
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 echo "$as_me: failed program was:" >&5
21824 sed 's
/^
/|
/' conftest.$ac_ext >&5
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 # Binary search between lo and hi bounds.
21834 while test "x$ac_lo" != "x$ac_hi"; do
21835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 $ac_includes_default
21844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21846 typedef struct { char x; int y; } ac__type_alignof_;
21850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^
*+' conftest.er1 >conftest.err
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
21876 echo "$as_me: failed program was:" >&5
21877 sed 's
/^
/|
/' conftest.$ac_ext >&5
21879 ac_lo=`expr '(' $ac_mid ')' + 1`
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 ?*) ac_cv_alignof_int=$ac_lo;;
21886 '') if test "$ac_cv_type_int" = yes; then
21887 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21888 See \`config.log' for more details.
" >&5
21889 echo "$as_me: error
: cannot compute alignment of int
21890 See \
`config.log' for more details." >&2;}
21891 { (exit 77); exit 77; }; }
21893 ac_cv_alignof_int=0
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21907 typedef struct { char x; int y; } ac__type_alignof_;
21908 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21909 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21911 #include <stdlib.h>
21916 FILE *f = fopen ("conftest.val", "w");
21919 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21921 long int i = longval ();
21922 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21924 fprintf (f, "%ld\n", i);
21928 unsigned long int i = ulongval ();
21929 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21931 fprintf (f, "%lu\n", i);
21933 return ferror (f) || fclose (f) != 0;
21939 rm -f conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21943 *) ac_try_echo
=$ac_try;;
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_link") 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21950 { (case "(($ac_try" in
21951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_try") 2>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; }; then
21959 ac_cv_alignof_int=`cat conftest.val
`
21961 echo "$as_me: program exited with status $ac_status" >&5
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 ( exit $ac_status )
21966 if test "$ac_cv_type_int" = yes; then
21967 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21968 See \`config.log
' for more details." >&5
21969 echo "$as_me: error: cannot compute alignment of int
21970 See \`config.log' for more details.
" >&2;}
21971 { (exit 77); exit 77; }; }
21973 ac_cv_alignof_int=0
21976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21980 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
21981 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21985 cat >>confdefs.h <<_ACEOF
21986 #define ALIGNOF_INT $ac_cv_alignof_int
21990 { echo "$as_me:$LINENO: checking
for long
" >&5
21991 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
21992 if test "${ac_cv_type_long+set}" = set; then
21993 echo $ECHO_N "(cached
) $ECHO_C" >&6
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 typedef long ac__type_new_;
22006 if ((ac__type_new_ *) 0)
22008 if (sizeof (ac__type_new_))
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;;
22020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22023 grep -v '^ *+' conftest.er1 >conftest.err
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_cv_type_long=yes
22033 echo "$as_me: failed program was
:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
22042 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22044 # The cast to long int works around a bug in the HP C Compiler,
22045 # see AC_CHECK_SIZEOF for more information.
22046 { echo "$as_me:$LINENO: checking alignment of long
" >&5
22047 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
22048 if test "${ac_cv_alignof_long+set}" = set; then
22049 echo $ECHO_N "(cached
) $ECHO_C" >&6
22051 if test "$cross_compiling" = yes; then
22052 # Depending upon the size, compute the lo and hi bounds.
22053 cat >conftest.$ac_ext <<_ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22061 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22063 typedef struct { char x; long y; } ac__type_alignof_;
22067 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22074 rm -f conftest.$ac_objext
22075 if { (ac_try="$ac_compile"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_compile") 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22087 (exit $ac_status); } && {
22088 test -z "$ac_c_werror_flag" ||
22089 test ! -s conftest.err
22090 } && test -s conftest.$ac_objext; then
22093 cat >conftest.$ac_ext <<_ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 $ac_includes_default
22101 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22103 typedef struct { char x; long y; } ac__type_alignof_;
22107 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22131 ac_hi=$ac_mid; break
22133 echo "$as_me: failed program was
:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_lo=`expr $ac_mid + 1`
22137 if test $ac_lo -le $ac_mid; then
22141 ac_mid=`expr 2 '*' $ac_mid + 1`
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 echo "$as_me: failed program was
:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22160 typedef struct { char x; long y; } ac__type_alignof_;
22164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 $ac_includes_default
22198 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22200 typedef struct { char x; long y; } ac__type_alignof_;
22204 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_compile") 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest.$ac_objext; then
22228 ac_lo=$ac_mid; break
22230 echo "$as_me: failed program was
:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 ac_hi=`expr '(' $ac_mid ')' - 1`
22234 if test $ac_mid -le $ac_hi; then
22238 ac_mid=`expr 2 '*' $ac_mid`
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 echo "$as_me: failed program was
:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 # Binary search between lo and hi bounds.
22255 while test "x
$ac_lo" != "x
$ac_hi"; do
22256 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22257 cat >conftest.$ac_ext <<_ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22265 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22267 typedef struct { char x; long y; } ac__type_alignof_;
22271 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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;;
22284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_compile") 2>conftest.er1
22287 grep -v '^ *+' conftest.er1 >conftest.err
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
22297 echo "$as_me: failed program was
:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ac_lo=`expr '(' $ac_mid ')' + 1`
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 ?*) ac_cv_alignof_long=$ac_lo;;
22307 '') if test "$ac_cv_type_long" = yes; then
22308 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22309 See \
`config.log' for more details." >&5
22310 echo "$as_me: error: cannot compute alignment of long
22311 See \`config.log
' for more details." >&2;}
22312 { (exit 77); exit 77; }; }
22314 ac_cv_alignof_long=0
22318 cat >conftest.$ac_ext <<_ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324 $ac_includes_default
22326 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22328 typedef struct { char x; long y; } ac__type_alignof_;
22329 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22330 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22332 #include <stdlib.h>
22337 FILE *f = fopen ("conftest.val", "w");
22340 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22342 long int i = longval ();
22343 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22345 fprintf (f, "%ld\n", i);
22349 unsigned long int i = ulongval ();
22350 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22352 fprintf (f, "%lu\n", i);
22354 return ferror (f) || fclose (f) != 0;
22360 rm -f conftest$ac_exeext
22361 if { (ac_try="$ac_link"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_link") 2>&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22371 { (case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_try") 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_alignof_long=`cat conftest.val`
22382 echo "$as_me: program exited with status $ac_status" >&5
22383 echo "$as_me: failed program was:" >&5
22384 sed 's
/^
/|
/' conftest.$ac_ext >&5
22386 ( exit $ac_status )
22387 if test "$ac_cv_type_long" = yes; then
22388 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22389 See \`config.log' for more details.
" >&5
22390 echo "$as_me: error
: cannot compute alignment of long
22391 See \
`config.log' for more details." >&2;}
22392 { (exit 77); exit 77; }; }
22394 ac_cv_alignof_long=0
22397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22401 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22402 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22406 cat >>confdefs.h <<_ACEOF
22407 #define ALIGNOF_LONG $ac_cv_alignof_long
22411 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22412 { echo "$as_me:$LINENO: checking for long long int" >&5
22413 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22414 if test "${ac_cv_type_long_long_int+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 $ac_includes_default
22424 typedef long long int ac__type_new_;
22428 if ((ac__type_new_ *) 0)
22430 if (sizeof (ac__type_new_))
22436 rm -f conftest.$ac_objext
22437 if { (ac_try="$ac_compile"
22438 case "(($ac_try" in
22439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22440 *) ac_try_echo
=$ac_try;;
22442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443 (eval "$ac_compile") 2>conftest.er1
22445 grep -v '^ *+' conftest.er1
>conftest.err
22447 cat conftest.err
>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && {
22450 test -z "$ac_c_werror_flag" ||
22451 test ! -s conftest.err
22452 } && test -s conftest.
$ac_objext; then
22453 ac_cv_type_long_long_int
=yes
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.
$ac_ext >&5
22458 ac_cv_type_long_long_int
=no
22461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22463 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22464 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22466 # The cast to long int works around a bug in the HP C Compiler,
22467 # see AC_CHECK_SIZEOF for more information.
22468 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22469 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22470 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22473 if test "$cross_compiling" = yes; then
22474 # Depending upon the size, compute the lo and hi bounds.
22475 cat >conftest.
$ac_ext <<_ACEOF
22478 cat confdefs.h
>>conftest.
$ac_ext
22479 cat >>conftest.
$ac_ext <<_ACEOF
22480 /* end confdefs.h. */
22481 $ac_includes_default
22483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22485 typedef struct { char x; long long int y; } ac__type_alignof_;
22489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22496 rm -f conftest.
$ac_objext
22497 if { (ac_try
="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22515 cat >conftest.$ac_ext <<_ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 $ac_includes_default
22523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22525 typedef struct { char x; long long int y; } ac__type_alignof_;
22529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22540 *) ac_try_echo
=$ac_try;;
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_compile") 2>conftest.er1
22545 grep -v '^ *+' conftest.er1
>conftest.err
22547 cat conftest.err
>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest.
$ac_objext; then
22553 ac_hi
=$ac_mid; break
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.
$ac_ext >&5
22558 ac_lo
=`expr $ac_mid + 1`
22559 if test $ac_lo -le $ac_mid; then
22563 ac_mid
=`expr 2 '*' $ac_mid + 1`
22566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.
$ac_ext >&5
22572 cat >conftest.
$ac_ext <<_ACEOF
22575 cat confdefs.h
>>conftest.
$ac_ext
22576 cat >>conftest.
$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22578 $ac_includes_default
22580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22582 typedef struct { char x; long long int y; } ac__type_alignof_;
22586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22593 rm -f conftest.
$ac_objext
22594 if { (ac_try
="$ac_compile"
22595 case "(($ac_try" in
22596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_compile") 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && {
22607 test -z "$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 } && test -s conftest.$ac_objext; then
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 $ac_includes_default
22620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22622 typedef struct { char x; long long int y; } ac__type_alignof_;
22626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22633 rm -f conftest.$ac_objext
22634 if { (ac_try="$ac_compile"
22635 case "(($ac_try" in
22636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22637 *) ac_try_echo
=$ac_try;;
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640 (eval "$ac_compile") 2>conftest.er1
22642 grep -v '^ *+' conftest.er1
>conftest.err
22644 cat conftest.err
>&5
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } && {
22647 test -z "$ac_c_werror_flag" ||
22648 test ! -s conftest.err
22649 } && test -s conftest.
$ac_objext; then
22650 ac_lo
=$ac_mid; break
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.
$ac_ext >&5
22655 ac_hi
=`expr '(' $ac_mid ')' - 1`
22656 if test $ac_mid -le $ac_hi; then
22660 ac_mid
=`expr 2 '*' $ac_mid`
22663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22666 echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.
$ac_ext >&5
22672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22676 # Binary search between lo and hi bounds.
22677 while test "x$ac_lo" != "x$ac_hi"; do
22678 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22679 cat >conftest.
$ac_ext <<_ACEOF
22682 cat confdefs.h
>>conftest.
$ac_ext
22683 cat >>conftest.
$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 $ac_includes_default
22687 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22689 typedef struct { char x; long long int y; } ac__type_alignof_;
22693 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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;;
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
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
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_lo=`expr '(' $ac_mid ')' + 1`
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22728 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22729 '') if test "$ac_cv_type_long_long_int" = yes; then
22730 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22731 See \`config.log
' for more details." >&5
22732 echo "$as_me: error: cannot compute alignment of long long int
22733 See \`config.log' for more details.
" >&2;}
22734 { (exit 77); exit 77; }; }
22736 ac_cv_alignof_long_long_int=0
22740 cat >conftest.$ac_ext <<_ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 $ac_includes_default
22748 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22750 typedef struct { char x; long long int y; } ac__type_alignof_;
22751 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22752 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22754 #include <stdlib.h>
22759 FILE *f = fopen ("conftest.val
", "w
");
22762 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22764 long int i = longval ();
22765 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22767 fprintf (f, "%ld
\n", i);
22771 unsigned long int i = ulongval ();
22772 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22774 fprintf (f, "%lu
\n", i);
22776 return ferror (f) || fclose (f) != 0;
22782 rm -f conftest$ac_exeext
22783 if { (ac_try="$ac_link"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_link") 2>&5
22791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22793 { (case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22798 (eval "$ac_try") 2>&5
22800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 ac_cv_alignof_long_long_int=`cat conftest.val`
22804 echo "$as_me: program exited with status
$ac_status" >&5
22805 echo "$as_me: failed program was
:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 ( exit $ac_status )
22809 if test "$ac_cv_type_long_long_int" = yes; then
22810 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
22811 See \
`config.log' for more details." >&5
22812 echo "$as_me: error: cannot compute alignment of long long int
22813 See \`config.log
' for more details." >&2;}
22814 { (exit 77); exit 77; }; }
22816 ac_cv_alignof_long_long_int=0
22819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22823 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22824 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22828 cat >>confdefs.h <<_ACEOF
22829 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22834 { echo "$as_me:$LINENO: checking for double" >&5
22835 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22836 if test "${ac_cv_type_double+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22839 cat >conftest.$ac_ext <<_ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 $ac_includes_default
22846 typedef double ac__type_new_;
22850 if ((ac__type_new_ *) 0)
22852 if (sizeof (ac__type_new_))
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_compile") 2>conftest.er1
22867 grep -v '^
*+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } && {
22872 test -z "$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22874 } && test -s conftest.$ac_objext; then
22875 ac_cv_type_double=yes
22877 echo "$as_me: failed program was:" >&5
22878 sed 's
/^
/|
/' conftest.$ac_ext >&5
22880 ac_cv_type_double=no
22883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22886 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22888 # The cast to long int works around a bug in the HP C Compiler,
22889 # see AC_CHECK_SIZEOF for more information.
22890 { echo "$as_me:$LINENO: checking alignment of double" >&5
22891 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22892 if test "${ac_cv_alignof_double+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 if test "$cross_compiling" = yes; then
22896 # Depending upon the size, compute the lo and hi bounds.
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 $ac_includes_default
22905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22907 typedef struct { char x; double y; } ac__type_alignof_;
22911 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22918 rm -f conftest.$ac_objext
22919 if { (ac_try="$ac_compile"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925 (eval "$ac_compile") 2>conftest.er1
22927 grep -v '^
*+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest.$ac_objext; then
22937 cat >conftest.$ac_ext <<_ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 $ac_includes_default
22945 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22947 typedef struct { char x; double y; } ac__type_alignof_;
22951 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22958 rm -f conftest.$ac_objext
22959 if { (ac_try="$ac_compile"
22960 case "(($ac_try" in
22961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962 *) ac_try_echo=$ac_try;;
22964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22965 (eval "$ac_compile") 2>conftest.er1
22967 grep -v '^
*+' conftest.er1 >conftest.err
22969 cat conftest.err >&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && {
22972 test -z "$ac_c_werror_flag" ||
22973 test ! -s conftest.err
22974 } && test -s conftest.$ac_objext; then
22975 ac_hi=$ac_mid; break
22977 echo "$as_me: failed program was:" >&5
22978 sed 's
/^
/|
/' conftest.$ac_ext >&5
22980 ac_lo=`expr $ac_mid + 1`
22981 if test $ac_lo -le $ac_mid; then
22985 ac_mid=`expr 2 '*' $ac_mid + 1`
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 echo "$as_me: failed program was:" >&5
22992 sed 's
/^
/|
/' conftest.$ac_ext >&5
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 $ac_includes_default
23002 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23004 typedef struct { char x; double y; } ac__type_alignof_;
23008 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23015 rm -f conftest.$ac_objext
23016 if { (ac_try="$ac_compile"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_compile") 2>conftest.er1
23024 grep -v '^
*+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && {
23029 test -z "$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 } && test -s conftest.$ac_objext; then
23034 cat >conftest.$ac_ext <<_ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 $ac_includes_default
23042 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23044 typedef struct { char x; double y; } ac__type_alignof_;
23048 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23064 grep -v '^
*+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_lo=$ac_mid; break
23074 echo "$as_me: failed program was:" >&5
23075 sed 's
/^
/|
/' conftest.$ac_ext >&5
23077 ac_hi=`expr '(' $ac_mid ')' - 1`
23078 if test $ac_mid -le $ac_hi; then
23082 ac_mid=`expr 2 '*' $ac_mid`
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 echo "$as_me: failed program was:" >&5
23089 sed 's
/^
/|
/' conftest.$ac_ext >&5
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 # Binary search between lo and hi bounds.
23099 while test "x$ac_lo" != "x$ac_hi"; do
23100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23101 cat >conftest.$ac_ext <<_ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 $ac_includes_default
23109 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23111 typedef struct { char x; double y; } ac__type_alignof_;
23115 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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;;
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23131 grep -v '^
*+' conftest.er1 >conftest.err
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
23141 echo "$as_me: failed program was:" >&5
23142 sed 's
/^
/|
/' conftest.$ac_ext >&5
23144 ac_lo=`expr '(' $ac_mid ')' + 1`
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 ?*) ac_cv_alignof_double=$ac_lo;;
23151 '') if test "$ac_cv_type_double" = yes; then
23152 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23153 See \`config.log' for more details.
" >&5
23154 echo "$as_me: error
: cannot compute alignment of double
23155 See \
`config.log' for more details." >&2;}
23156 { (exit 77); exit 77; }; }
23158 ac_cv_alignof_double=0
23162 cat >conftest.$ac_ext <<_ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168 $ac_includes_default
23170 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23172 typedef struct { char x; double y; } ac__type_alignof_;
23173 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23174 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23176 #include <stdlib.h>
23181 FILE *f = fopen ("conftest.val", "w");
23184 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23186 long int i = longval ();
23187 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23189 fprintf (f, "%ld\n", i);
23193 unsigned long int i = ulongval ();
23194 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23196 fprintf (f, "%lu\n", i);
23198 return ferror (f) || fclose (f) != 0;
23204 rm -f conftest$ac_exeext
23205 if { (ac_try="$ac_link"
23206 case "(($ac_try" in
23207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23208 *) ac_try_echo
=$ac_try;;
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_link") 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23215 { (case "(($ac_try" in
23216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_try") 2>&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ac_cv_alignof_double=`cat conftest.val
`
23226 echo "$as_me: program exited with status $ac_status" >&5
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ( exit $ac_status )
23231 if test "$ac_cv_type_double" = yes; then
23232 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23233 See \`config.log
' for more details." >&5
23234 echo "$as_me: error: cannot compute alignment of double
23235 See \`config.log' for more details.
" >&2;}
23236 { (exit 77); exit 77; }; }
23238 ac_cv_alignof_double=0
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23245 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23246 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23250 cat >>confdefs.h <<_ACEOF
23251 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23256 # Compute maximum alignment of any basic type.
23257 # We assume long's alignment is at least as strong as char, short, or int;
23258 # but we must check long long (if it exists) and double.
23260 MAX_ALIGNOF=$ac_cv_alignof_long
23261 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23262 MAX_ALIGNOF=$ac_cv_alignof_double
23264 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23265 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23268 cat >>confdefs.h <<_ACEOF
23269 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23274 # Some platforms predefine the types int8, int16, etc. Only check
23275 # a (hopefully) representative subset.
23276 { echo "$as_me:$LINENO: checking
for int8
" >&5
23277 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23278 if test "${ac_cv_type_int8+set}" = set; then
23279 echo $ECHO_N "(cached
) $ECHO_C" >&6
23281 cat >conftest.$ac_ext <<_ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23288 #ifdef HAVE_SUPPORTDEFS_H
23289 #include <SupportDefs.h>
23292 typedef int8 ac__type_new_;
23296 if ((ac__type_new_ *) 0)
23298 if (sizeof (ac__type_new_))
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_compile") 2>conftest.er1
23313 grep -v '^ *+' conftest.er1 >conftest.err
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest.$ac_objext; then
23321 ac_cv_type_int8=yes
23323 echo "$as_me: failed program was
:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23332 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23333 if test $ac_cv_type_int8 = yes; then
23335 cat >>confdefs.h <<_ACEOF
23336 #define HAVE_INT8 1
23341 { echo "$as_me:$LINENO: checking
for uint8
" >&5
23342 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
23343 if test "${ac_cv_type_uint8+set}" = set; then
23344 echo $ECHO_N "(cached
) $ECHO_C" >&6
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23353 #ifdef HAVE_SUPPORTDEFS_H
23354 #include <SupportDefs.h>
23357 typedef uint8 ac__type_new_;
23361 if ((ac__type_new_ *) 0)
23363 if (sizeof (ac__type_new_))
23369 rm -f conftest.$ac_objext
23370 if { (ac_try="$ac_compile"
23371 case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_compile") 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest.$ac_objext; then
23386 ac_cv_type_uint8=yes
23388 echo "$as_me: failed program was
:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ac_cv_type_uint8=no
23394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
23397 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23398 if test $ac_cv_type_uint8 = yes; then
23400 cat >>confdefs.h <<_ACEOF
23401 #define HAVE_UINT8 1
23406 { echo "$as_me:$LINENO: checking
for int64
" >&5
23407 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
23408 if test "${ac_cv_type_int64+set}" = set; then
23409 echo $ECHO_N "(cached
) $ECHO_C" >&6
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23418 #ifdef HAVE_SUPPORTDEFS_H
23419 #include <SupportDefs.h>
23422 typedef int64 ac__type_new_;
23426 if ((ac__type_new_ *) 0)
23428 if (sizeof (ac__type_new_))
23434 rm -f conftest.$ac_objext
23435 if { (ac_try="$ac_compile"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23441 (eval "$ac_compile") 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23447 (exit $ac_status); } && {
23448 test -z "$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 } && test -s conftest.$ac_objext; then
23451 ac_cv_type_int64=yes
23453 echo "$as_me: failed program was
:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_cv_type_int64=no
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23461 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
23462 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23463 if test $ac_cv_type_int64 = yes; then
23465 cat >>confdefs.h <<_ACEOF
23466 #define HAVE_INT64 1
23471 { echo "$as_me:$LINENO: checking
for uint64
" >&5
23472 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
23473 if test "${ac_cv_type_uint64+set}" = set; then
23474 echo $ECHO_N "(cached
) $ECHO_C" >&6
23476 cat >conftest.$ac_ext <<_ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h. */
23483 #ifdef HAVE_SUPPORTDEFS_H
23484 #include <SupportDefs.h>
23487 typedef uint64 ac__type_new_;
23491 if ((ac__type_new_ *) 0)
23493 if (sizeof (ac__type_new_))
23499 rm -f conftest.$ac_objext
23500 if { (ac_try="$ac_compile"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_compile") 2>conftest.er1
23508 grep -v '^ *+' conftest.er1 >conftest.err
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23512 (exit $ac_status); } && {
23513 test -z "$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 } && test -s conftest.$ac_objext; then
23516 ac_cv_type_uint64=yes
23518 echo "$as_me: failed program was
:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_type_uint64=no
23524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
23527 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23528 if test $ac_cv_type_uint64 = yes; then
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_UINT64 1
23538 # We also check for sig_atomic_t, which *should* be defined per ANSI
23539 # C, but is missing on some old platforms.
23540 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
23541 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
23542 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23543 echo $ECHO_N "(cached
) $ECHO_C" >&6
23545 cat >conftest.$ac_ext <<_ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551 #include <signal.h>
23553 typedef sig_atomic_t ac__type_new_;
23557 if ((ac__type_new_ *) 0)
23559 if (sizeof (ac__type_new_))
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_type_sig_atomic_t=yes
23584 echo "$as_me: failed program was
:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_cv_type_sig_atomic_t=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23592 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
23593 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23594 if test $ac_cv_type_sig_atomic_t = yes; then
23596 cat >>confdefs.h <<_ACEOF
23597 #define HAVE_SIG_ATOMIC_T 1
23605 # If the user did not disable integer datetimes, check that
23606 # there is a working 64-bit integral type to use.
23607 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23608 test x"$HAVE_LONG_INT_64" = x"no
" &&
23609 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
23610 test x"$HAVE_INT64" = x"no
" ; then
23611 { { echo "$as_me:$LINENO: error
:
23612 Integer-based datetime support requires a
64-bit integer
type,
23613 but no such
type could be found. The
--disable-integer-datetimes
23614 configure option can be used to disable integer-based storage
23615 of datetime values.
" >&5
23616 echo "$as_me: error
:
23617 Integer-based datetime support requires a
64-bit integer
type,
23618 but no such
type could be found. The
--disable-integer-datetimes
23619 configure option can be used to disable integer-based storage
23620 of datetime values.
" >&2;}
23621 { (exit 1); exit 1; }; }
23625 if test "$PORTNAME" != "win32
"
23627 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
23628 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
23629 if test "${pgac_cv_func_posix_signals+set}" = set; then
23630 echo $ECHO_N "(cached
) $ECHO_C" >&6
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 #include <signal.h>
23643 struct sigaction act, oact;
23644 sigemptyset(&act.sa_mask);
23645 act.sa_flags = SA_RESTART;
23646 sigaction(0, &act, &oact);
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (ac_try="$ac_link"
23653 case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_link") 2>conftest.er1
23660 grep -v '^ *+' conftest.er1 >conftest.err
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest$ac_exeext &&
23668 $as_test_x conftest$ac_exeext; then
23669 pgac_cv_func_posix_signals=yes
23671 echo "$as_me: failed program was
:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23674 pgac_cv_func_posix_signals=no
23677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23678 conftest$ac_exeext conftest.$ac_ext
23680 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
23681 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23682 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23684 cat >>confdefs.h <<\_ACEOF
23685 #define HAVE_POSIX_SIGNALS
23689 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23691 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23692 { { echo "$as_me:$LINENO: error
:
23693 Thread-safety requires POSIX signals
, which are not supported by this
23694 operating system.
" >&5
23695 echo "$as_me: error
:
23696 Thread-safety requires POSIX signals
, which are not supported by this
23697 operating system.
" >&2;}
23698 { (exit 1); exit 1; }; }
23702 if test $ac_cv_func_fseeko = yes; then
23703 # Check whether --enable-largefile was given.
23704 if test "${enable_largefile+set}" = set; then
23705 enableval=$enable_largefile;
23708 if test "$enable_largefile" != no; then
23710 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
23711 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
23712 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23713 echo $ECHO_N "(cached
) $ECHO_C" >&6
23715 ac_cv_sys_largefile_CC=no
23716 if test "$GCC" != yes; then
23719 # IRIX 6.2 and later do not support large files by default,
23720 # so use the C compiler's -n32 option if that helps.
23721 cat >conftest.$ac_ext <<_ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 #include <sys/types.h>
23728 /* Check that off_t can represent 2**63 - 1 correctly.
23729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23730 since some C++ compilers masquerading as C compilers
23731 incorrectly reject 9223372036854775807. */
23732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23734 && LARGE_OFF_T % 2147483647 == 1)
23744 rm -f conftest.$ac_objext
23745 if { (ac_try="$ac_compile"
23746 case "(($ac_try" in
23747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_compile") 2>conftest.er1
23753 grep -v '^ *+' conftest.er1 >conftest.err
23755 cat conftest.err >&5
23756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23757 (exit $ac_status); } && {
23758 test -z "$ac_c_werror_flag" ||
23759 test ! -s conftest.err
23760 } && test -s conftest.$ac_objext; then
23763 echo "$as_me: failed program was
:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23769 rm -f core conftest.err conftest.$ac_objext
23771 rm -f conftest.$ac_objext
23772 if { (ac_try="$ac_compile"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_compile") 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest.$ac_objext; then
23788 ac_cv_sys_largefile_CC=' -n32'; break
23790 echo "$as_me: failed program was
:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23796 rm -f core conftest.err conftest.$ac_objext
23800 rm -f conftest.$ac_ext
23803 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
23804 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23805 if test "$ac_cv_sys_largefile_CC" != no; then
23806 CC=$CC$ac_cv_sys_largefile_CC
23809 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
23810 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
23811 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23812 echo $ECHO_N "(cached
) $ECHO_C" >&6
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 #include <sys/types.h>
23822 /* Check that off_t can represent 2**63 - 1 correctly.
23823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23824 since some C++ compilers masquerading as C compilers
23825 incorrectly reject 9223372036854775807. */
23826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23828 && LARGE_OFF_T % 2147483647 == 1)
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23847 grep -v '^ *+' conftest.er1 >conftest.err
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23851 (exit $ac_status); } && {
23852 test -z "$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 } && test -s conftest.$ac_objext; then
23855 ac_cv_sys_file_offset_bits=no; break
23857 echo "$as_me: failed program was
:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 cat >conftest.$ac_ext <<_ACEOF
23867 cat confdefs.h >>conftest.$ac_ext
23868 cat >>conftest.$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23870 #define _FILE_OFFSET_BITS 64
23871 #include <sys/types.h>
23872 /* Check that off_t can represent 2**63 - 1 correctly.
23873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23874 since some C++ compilers masquerading as C compilers
23875 incorrectly reject 9223372036854775807. */
23876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23878 && LARGE_OFF_T % 2147483647 == 1)
23888 rm -f conftest.$ac_objext
23889 if { (ac_try="$ac_compile"
23890 case "(($ac_try" in
23891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23895 (eval "$ac_compile") 2>conftest.er1
23897 grep -v '^ *+' conftest.er1 >conftest.err
23899 cat conftest.err >&5
23900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23901 (exit $ac_status); } && {
23902 test -z "$ac_c_werror_flag" ||
23903 test ! -s conftest.err
23904 } && test -s conftest.$ac_objext; then
23905 ac_cv_sys_file_offset_bits=64; break
23907 echo "$as_me: failed program was
:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 ac_cv_sys_file_offset_bits=unknown
23918 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
23919 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23920 case $ac_cv_sys_file_offset_bits in #(
23923 cat >>confdefs.h <<_ACEOF
23924 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23929 if test $ac_cv_sys_file_offset_bits = unknown; then
23930 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
23931 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
23932 if test "${ac_cv_sys_large_files+set}" = set; then
23933 echo $ECHO_N "(cached
) $ECHO_C" >&6
23936 cat >conftest.$ac_ext <<_ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23942 #include <sys/types.h>
23943 /* Check that off_t can represent 2**63 - 1 correctly.
23944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23945 since some C++ compilers masquerading as C compilers
23946 incorrectly reject 9223372036854775807. */
23947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23949 && LARGE_OFF_T % 2147483647 == 1)
23959 rm -f conftest.$ac_objext
23960 if { (ac_try="$ac_compile"
23961 case "(($ac_try" in
23962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963 *) ac_try_echo=$ac_try;;
23965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23966 (eval "$ac_compile") 2>conftest.er1
23968 grep -v '^ *+' conftest.er1 >conftest.err
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23972 (exit $ac_status); } && {
23973 test -z "$ac_c_werror_flag" ||
23974 test ! -s conftest.err
23975 } && test -s conftest.$ac_objext; then
23976 ac_cv_sys_large_files=no; break
23978 echo "$as_me: failed program was
:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 cat >conftest.$ac_ext <<_ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 #define _LARGE_FILES 1
23992 #include <sys/types.h>
23993 /* Check that off_t can represent 2**63 - 1 correctly.
23994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23995 since some C++ compilers masquerading as C compilers
23996 incorrectly reject 9223372036854775807. */
23997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23999 && LARGE_OFF_T % 2147483647 == 1)
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013 *) ac_try_echo=$ac_try;;
24015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24016 (eval "$ac_compile") 2>conftest.er1
24018 grep -v '^ *+' conftest.er1 >conftest.err
24020 cat conftest.err >&5
24021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24022 (exit $ac_status); } && {
24023 test -z "$ac_c_werror_flag" ||
24024 test ! -s conftest.err
24025 } && test -s conftest.$ac_objext; then
24026 ac_cv_sys_large_files=1; break
24028 echo "$as_me: failed program was
:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 ac_cv_sys_large_files=unknown
24039 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
24040 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24041 case $ac_cv_sys_large_files in #(
24044 cat >>confdefs.h <<_ACEOF
24045 #define _LARGE_FILES $ac_cv_sys_large_files
24055 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24056 { echo "$as_me:$LINENO: checking
for off_t
" >&5
24057 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
24058 if test "${ac_cv_type_off_t+set}" = set; then
24059 echo $ECHO_N "(cached
) $ECHO_C" >&6
24061 cat >conftest.$ac_ext <<_ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24067 $ac_includes_default
24068 typedef off_t ac__type_new_;
24072 if ((ac__type_new_ *) 0)
24074 if (sizeof (ac__type_new_))
24080 rm -f conftest.$ac_objext
24081 if { (ac_try="$ac_compile"
24082 case "(($ac_try" in
24083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084 *) ac_try_echo=$ac_try;;
24086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24087 (eval "$ac_compile") 2>conftest.er1
24089 grep -v '^ *+' conftest.er1 >conftest.err
24091 cat conftest.err >&5
24092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24093 (exit $ac_status); } && {
24094 test -z "$ac_c_werror_flag" ||
24095 test ! -s conftest.err
24096 } && test -s conftest.$ac_objext; then
24097 ac_cv_type_off_t=yes
24099 echo "$as_me: failed program was
:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 ac_cv_type_off_t=no
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
24108 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24110 # The cast to long int works around a bug in the HP C Compiler
24111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24113 # This bug is HP SR number 8606223364.
24114 { echo "$as_me:$LINENO: checking size of off_t
" >&5
24115 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
24116 if test "${ac_cv_sizeof_off_t+set}" = set; then
24117 echo $ECHO_N "(cached
) $ECHO_C" >&6
24119 if test "$cross_compiling" = yes; then
24120 # Depending upon the size, compute the lo and hi bounds.
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 $ac_includes_default
24128 typedef off_t ac__type_sizeof_;
24132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24139 rm -f conftest.$ac_objext
24140 if { (ac_try="$ac_compile"
24141 case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24146 (eval "$ac_compile") 2>conftest.er1
24148 grep -v '^ *+' conftest.er1 >conftest.err
24150 cat conftest.err >&5
24151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24152 (exit $ac_status); } && {
24153 test -z "$ac_c_werror_flag" ||
24154 test ! -s conftest.err
24155 } && test -s conftest.$ac_objext; then
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 $ac_includes_default
24165 typedef off_t ac__type_sizeof_;
24169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24176 rm -f conftest.$ac_objext
24177 if { (ac_try="$ac_compile"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_compile") 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24189 (exit $ac_status); } && {
24190 test -z "$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24192 } && test -s conftest.$ac_objext; then
24193 ac_hi=$ac_mid; break
24195 echo "$as_me: failed program was
:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 ac_lo=`expr $ac_mid + 1`
24199 if test $ac_lo -le $ac_mid; then
24203 ac_mid=`expr 2 '*' $ac_mid + 1`
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24209 echo "$as_me: failed program was
:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24212 cat >conftest.$ac_ext <<_ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 $ac_includes_default
24219 typedef off_t ac__type_sizeof_;
24223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_compile") 2>conftest.er1
24239 grep -v '^ *+' conftest.er1 >conftest.err
24241 cat conftest.err >&5
24242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24243 (exit $ac_status); } && {
24244 test -z "$ac_c_werror_flag" ||
24245 test ! -s conftest.err
24246 } && test -s conftest.$ac_objext; then
24249 cat >conftest.$ac_ext <<_ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24255 $ac_includes_default
24256 typedef off_t ac__type_sizeof_;
24260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24267 rm -f conftest.$ac_objext
24268 if { (ac_try="$ac_compile"
24269 case "(($ac_try" in
24270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24271 *) ac_try_echo=$ac_try;;
24273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24274 (eval "$ac_compile") 2>conftest.er1
24276 grep -v '^ *+' conftest.er1 >conftest.err
24278 cat conftest.err >&5
24279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24280 (exit $ac_status); } && {
24281 test -z "$ac_c_werror_flag" ||
24282 test ! -s conftest.err
24283 } && test -s conftest.$ac_objext; then
24284 ac_lo=$ac_mid; break
24286 echo "$as_me: failed program was
:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24289 ac_hi=`expr '(' $ac_mid ')' - 1`
24290 if test $ac_mid -le $ac_hi; then
24294 ac_mid=`expr 2 '*' $ac_mid`
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24300 echo "$as_me: failed program was
:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310 # Binary search between lo and hi bounds.
24311 while test "x
$ac_lo" != "x
$ac_hi"; do
24312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24313 cat >conftest.$ac_ext <<_ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24319 $ac_includes_default
24320 typedef off_t ac__type_sizeof_;
24324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24331 rm -f conftest.$ac_objext
24332 if { (ac_try="$ac_compile"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_compile") 2>conftest.er1
24340 grep -v '^ *+' conftest.er1 >conftest.err
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24344 (exit $ac_status); } && {
24345 test -z "$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 } && test -s conftest.$ac_objext; then
24350 echo "$as_me: failed program was
:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_lo=`expr '(' $ac_mid ')' + 1`
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24360 '') if test "$ac_cv_type_off_t" = yes; then
24361 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
24362 See \
`config.log' for more details." >&5
24363 echo "$as_me: error: cannot compute sizeof (off_t)
24364 See \`config.log
' for more details." >&2;}
24365 { (exit 77); exit 77; }; }
24367 ac_cv_sizeof_off_t=0
24371 cat >conftest.$ac_ext <<_ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24377 $ac_includes_default
24378 typedef off_t ac__type_sizeof_;
24379 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24380 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24382 #include <stdlib.h>
24387 FILE *f = fopen ("conftest.val", "w");
24390 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24392 long int i = longval ();
24393 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24395 fprintf (f, "%ld\n", i);
24399 unsigned long int i = ulongval ();
24400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24402 fprintf (f, "%lu\n", i);
24404 return ferror (f) || fclose (f) != 0;
24410 rm -f conftest$ac_exeext
24411 if { (ac_try="$ac_link"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_link") 2>&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24421 { (case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_try") 2>&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 ac_cv_sizeof_off_t=`cat conftest.val`
24432 echo "$as_me: program exited with status $ac_status" >&5
24433 echo "$as_me: failed program was:" >&5
24434 sed 's
/^
/|
/' conftest.$ac_ext >&5
24436 ( exit $ac_status )
24437 if test "$ac_cv_type_off_t" = yes; then
24438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24439 See \`config.log' for more details.
" >&5
24440 echo "$as_me: error
: cannot compute sizeof
(off_t
)
24441 See \
`config.log' for more details." >&2;}
24442 { (exit 77); exit 77; }; }
24444 ac_cv_sizeof_off_t=0
24447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24451 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24452 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24456 cat >>confdefs.h <<_ACEOF
24457 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24462 # If we don't have largefile support, can't handle segsize >= 2GB.
24463 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24464 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24465 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24466 { (exit 1); exit 1; }; }
24469 # SunOS doesn't handle negative byte comparisons properly with +/- return
24470 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24471 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24472 if test "${ac_cv_func_memcmp_working+set}" = set; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
24475 if test "$cross_compiling" = yes; then
24476 ac_cv_func_memcmp_working=no
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 $ac_includes_default
24489 /* Some versions of memcmp are not 8-bit clean. */
24490 char c0 = '\100', c1 = '\200', c2 = '\201';
24491 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24494 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24495 or more and with at least one buffer not starting on a 4-byte boundary.
24496 William Lewis provided this test program. */
24501 for (i = 0; i < 4; i++)
24505 strcpy (a, "--------01111111");
24506 strcpy (b, "--------10000000");
24507 if (memcmp (a, b, 16) >= 0)
24517 rm -f conftest$ac_exeext
24518 if { (ac_try="$ac_link"
24519 case "(($ac_try" in
24520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24521 *) ac_try_echo
=$ac_try;;
24523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524 (eval "$ac_link") 2>&5
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24528 { (case "(($ac_try" in
24529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533 (eval "$ac_try") 2>&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 ac_cv_func_memcmp_working=yes
24539 echo "$as_me: program exited with status $ac_status" >&5
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24543 ( exit $ac_status )
24544 ac_cv_func_memcmp_working=no
24546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24551 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24552 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24553 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24554 *" memcmp.$ac_objext "* ) ;;
24555 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24562 # Select semaphore implementation type.
24563 if test "$PORTNAME" != "win32"; then
24564 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24566 cat >>confdefs.h <<\_ACEOF
24567 #define USE_NAMED_POSIX_SEMAPHORES 1
24570 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24572 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24574 cat >>confdefs.h <<\_ACEOF
24575 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24578 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24581 cat >>confdefs.h <<\_ACEOF
24582 #define USE_SYSV_SEMAPHORES 1
24585 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24590 cat >>confdefs.h <<\_ACEOF
24591 #define USE_WIN32_SEMAPHORES 1
24594 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24598 # Select shared-memory implementation type.
24599 if test "$PORTNAME" != "win32"; then
24601 cat >>confdefs.h <<\_ACEOF
24602 #define USE_SYSV_SHARED_MEMORY 1
24605 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24608 cat >>confdefs.h <<\_ACEOF
24609 #define USE_WIN32_SHARED_MEMORY 1
24612 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24615 # If not set in template file, set bytes to use libc memset()
24616 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24617 MEMSET_LOOP_LIMIT=1024
24620 cat >>confdefs.h <<_ACEOF
24621 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24626 if test "$enable_nls" = yes ; then
24628 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24629 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24630 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24633 ac_func_search_save_LIBS=$LIBS
24634 cat >conftest.$ac_ext <<_ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24641 /* Override any GCC internal prototype to avoid an error.
24642 Use char because int might match the return type of a GCC
24643 builtin and then its argument prototype would still apply. */
24647 char bind_textdomain_codeset ();
24651 return bind_textdomain_codeset ();
24656 for ac_lib in '' intl; do
24657 if test -z "$ac_lib"; then
24658 ac_res="none required"
24661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24663 rm -f conftest.$ac_objext conftest$ac_exeext
24664 if { (ac_try="$ac_link"
24665 case "(($ac_try" in
24666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24667 *) ac_try_echo
=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_link") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1
>conftest.err
24674 cat conftest.err
>&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest
$ac_exeext &&
24680 $as_test_x conftest
$ac_exeext; then
24681 ac_cv_search_bind_textdomain_codeset
=$ac_res
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.
$ac_ext >&5
24689 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24691 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24695 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24698 ac_cv_search_bind_textdomain_codeset
=no
24700 rm conftest.
$ac_ext
24701 LIBS
=$ac_func_search_save_LIBS
24703 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24704 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24705 ac_res
=$ac_cv_search_bind_textdomain_codeset
24706 if test "$ac_res" != no
; then
24707 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24710 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24711 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24712 { (exit 1); exit 1; }; }
24715 if test "${ac_cv_header_libintl_h+set}" = set; then
24716 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24717 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24718 if test "${ac_cv_header_libintl_h+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24722 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24724 # Is the header compilable?
24725 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24726 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24727 cat >conftest.
$ac_ext <<_ACEOF
24730 cat confdefs.h
>>conftest.
$ac_ext
24731 cat >>conftest.
$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 #include <libintl.h>
24736 rm -f conftest.
$ac_objext
24737 if { (ac_try
="$ac_compile"
24738 case "(($ac_try" in
24739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_compile") 2>conftest.er1
24745 grep -v '^ *+' conftest.er1 >conftest.err
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && {
24750 test -z "$ac_c_werror_flag" ||
24751 test ! -s conftest.err
24752 } && test -s conftest.$ac_objext; then
24753 ac_header_compiler=yes
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_header_compiler=no
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24763 echo "${ECHO_T}$ac_header_compiler" >&6; }
24765 # Is the header present?
24766 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24767 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <libintl.h>
24776 if { (ac_try="$ac_cpp conftest.$ac_ext"
24777 case "(($ac_try" in
24778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24779 *) ac_try_echo
=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1
>conftest.err
24786 cat conftest.err
>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } >/dev
/null
&& {
24789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24792 ac_header_preproc
=yes
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.
$ac_ext >&5
24797 ac_header_preproc
=no
24800 rm -f conftest.err conftest.
$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6; }
24804 # So? What about this header?
24805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24807 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24810 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24811 ac_header_preproc
=yes
24814 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24815 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24817 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24819 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24821 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24823 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24825 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24827 ## ---------------------------------------- ##
24828 ## Report this to pgsql-bugs@postgresql.org ##
24829 ## ---------------------------------------- ##
24831 ) |
sed "s/^/$as_me: WARNING: /" >&2
24834 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24835 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24836 if test "${ac_cv_header_libintl_h+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 ac_cv_header_libintl_h
=$ac_header_preproc
24841 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24842 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24845 if test $ac_cv_header_libintl_h = yes; then
24848 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24849 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24850 { (exit 1); exit 1; }; }
24854 for ac_prog
in msgfmt
24856 # Extract the first word of "$ac_prog", so it can be a program name with args.
24857 set dummy
$ac_prog; ac_word
=$2
24858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24860 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 if test -n "$MSGFMT"; then
24864 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
24866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24867 for as_dir
in $PATH
24870 test -z "$as_dir" && as_dir
=.
24871 for ac_exec_ext
in '' $ac_executable_extensions; do
24872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24873 ac_cv_prog_MSGFMT
="$ac_prog"
24874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24883 MSGFMT
=$ac_cv_prog_MSGFMT
24884 if test -n "$MSGFMT"; then
24885 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24886 echo "${ECHO_T}$MSGFMT" >&6; }
24888 { echo "$as_me:$LINENO: result: no" >&5
24889 echo "${ECHO_T}no" >&6; }
24893 test -n "$MSGFMT" && break
24896 if test -z "$MSGFMT"; then
24897 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24898 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24899 { (exit 1); exit 1; }; }
24901 for ac_prog
in msgmerge
24903 # Extract the first word of "$ac_prog", so it can be a program name with args.
24904 set dummy
$ac_prog; ac_word
=$2
24905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24907 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 if test -n "$MSGMERGE"; then
24911 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
24913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24914 for as_dir
in $PATH
24917 test -z "$as_dir" && as_dir
=.
24918 for ac_exec_ext
in '' $ac_executable_extensions; do
24919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24920 ac_cv_prog_MSGMERGE
="$ac_prog"
24921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24930 MSGMERGE
=$ac_cv_prog_MSGMERGE
24931 if test -n "$MSGMERGE"; then
24932 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24933 echo "${ECHO_T}$MSGMERGE" >&6; }
24935 { echo "$as_me:$LINENO: result: no" >&5
24936 echo "${ECHO_T}no" >&6; }
24940 test -n "$MSGMERGE" && break
24943 for ac_prog
in xgettext
24945 # Extract the first word of "$ac_prog", so it can be a program name with args.
24946 set dummy
$ac_prog; ac_word
=$2
24947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24949 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24952 if test -n "$XGETTEXT"; then
24953 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
24955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24956 for as_dir
in $PATH
24959 test -z "$as_dir" && as_dir
=.
24960 for ac_exec_ext
in '' $ac_executable_extensions; do
24961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24962 ac_cv_prog_XGETTEXT
="$ac_prog"
24963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24972 XGETTEXT
=$ac_cv_prog_XGETTEXT
24973 if test -n "$XGETTEXT"; then
24974 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24975 echo "${ECHO_T}$XGETTEXT" >&6; }
24977 { echo "$as_me:$LINENO: result: no" >&5
24978 echo "${ECHO_T}no" >&6; }
24982 test -n "$XGETTEXT" && break
24988 # Check for Tcl configuration script tclConfig.sh
24989 if test "$with_tcl" = yes; then
24990 for ac_prog
in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
24992 # Extract the first word of "$ac_prog", so it can be a program name with args.
24993 set dummy
$ac_prog; ac_word
=$2
24994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24996 if test "${ac_cv_path_TCLSH+set}" = set; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
25001 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
25004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25005 for as_dir
in $PATH
25008 test -z "$as_dir" && as_dir
=.
25009 for ac_exec_ext
in '' $ac_executable_extensions; do
25010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25011 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
25012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25022 TCLSH
=$ac_cv_path_TCLSH
25023 if test -n "$TCLSH"; then
25024 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25025 echo "${ECHO_T}$TCLSH" >&6; }
25027 { echo "$as_me:$LINENO: result: no" >&5
25028 echo "${ECHO_T}no" >&6; }
25032 test -n "$TCLSH" && break
25035 if test x
"$TCLSH" = x
""; then
25036 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25037 echo "$as_me: error: Tcl shell not found" >&2;}
25038 { (exit 1); exit 1; }; }
25041 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25042 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25043 # Let user override test
25044 if test -z "$TCL_CONFIG_SH"; then
25045 pgac_test_dirs
="$with_tclconfig"
25047 set X
$pgac_test_dirs; shift
25048 if test $# -eq 0; then
25049 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25050 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25051 { (exit 1); exit 1; }; }
25052 set X
`echo 'puts $auto_path' | $TCLSH`; shift
25056 if test -r "$pgac_dir/tclConfig.sh"; then
25057 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
25063 if test -z "$TCL_CONFIG_SH"; then
25064 { echo "$as_me:$LINENO: result: no" >&5
25065 echo "${ECHO_T}no" >&6; }
25066 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25067 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25068 { (exit 1); exit 1; }; }
25070 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25071 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25077 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
25078 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
25079 eval TCL_LIBS
=\"$TCL_LIBS\"
25080 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
25081 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
25083 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25084 ac_save_CPPFLAGS
=$CPPFLAGS
25085 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
25086 if test "${ac_cv_header_tcl_h+set}" = set; then
25087 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25088 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25089 if test "${ac_cv_header_tcl_h+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25093 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25095 # Is the header compilable?
25096 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25097 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25098 cat >conftest.
$ac_ext <<_ACEOF
25101 cat confdefs.h
>>conftest.
$ac_ext
25102 cat >>conftest.
$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25104 $ac_includes_default
25107 rm -f conftest.
$ac_objext
25108 if { (ac_try
="$ac_compile"
25109 case "(($ac_try" in
25110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_compile") 2>conftest.er1
25116 grep -v '^ *+' conftest.er1 >conftest.err
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } && {
25121 test -z "$ac_c_werror_flag" ||
25122 test ! -s conftest.err
25123 } && test -s conftest.$ac_objext; then
25124 ac_header_compiler=yes
25126 echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25129 ac_header_compiler=no
25132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25134 echo "${ECHO_T}$ac_header_compiler" >&6; }
25136 # Is the header present?
25137 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25138 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25147 if { (ac_try="$ac_cpp conftest.$ac_ext"
25148 case "(($ac_try" in
25149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25150 *) ac_try_echo
=$ac_try;;
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1
>conftest.err
25157 cat conftest.err
>&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } >/dev
/null
&& {
25160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25163 ac_header_preproc
=yes
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.
$ac_ext >&5
25168 ac_header_preproc
=no
25171 rm -f conftest.err conftest.
$ac_ext
25172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25173 echo "${ECHO_T}$ac_header_preproc" >&6; }
25175 # So? What about this header?
25176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25178 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25179 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25181 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25182 ac_header_preproc
=yes
25185 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25186 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25188 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25189 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25190 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25191 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25192 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25193 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25194 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25195 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25196 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25198 ## ---------------------------------------- ##
25199 ## Report this to pgsql-bugs@postgresql.org ##
25200 ## ---------------------------------------- ##
25202 ) |
sed "s/^/$as_me: WARNING: /" >&2
25205 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25206 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25207 if test "${ac_cv_header_tcl_h+set}" = set; then
25208 echo $ECHO_N "(cached) $ECHO_C" >&6
25210 ac_cv_header_tcl_h
=$ac_header_preproc
25212 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25213 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25216 if test $ac_cv_header_tcl_h = yes; then
25219 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25220 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25221 { (exit 1); exit 1; }; }
25225 CPPFLAGS
=$ac_save_CPPFLAGS
25229 # Check for DocBook and tools
25231 for ac_prog
in onsgmls nsgmls
25233 # Extract the first word of "$ac_prog", so it can be a program name with args.
25234 set dummy
$ac_prog; ac_word
=$2
25235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25237 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 if test -n "$NSGMLS"; then
25241 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25244 for as_dir
in $PATH
25247 test -z "$as_dir" && as_dir
=.
25248 for ac_exec_ext
in '' $ac_executable_extensions; do
25249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25250 ac_cv_prog_NSGMLS
="$ac_prog"
25251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25260 NSGMLS
=$ac_cv_prog_NSGMLS
25261 if test -n "$NSGMLS"; then
25262 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25263 echo "${ECHO_T}$NSGMLS" >&6; }
25265 { echo "$as_me:$LINENO: result: no" >&5
25266 echo "${ECHO_T}no" >&6; }
25270 test -n "$NSGMLS" && break
25273 for ac_prog
in openjade jade
25275 # Extract the first word of "$ac_prog", so it can be a program name with args.
25276 set dummy
$ac_prog; ac_word
=$2
25277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25279 if test "${ac_cv_prog_JADE+set}" = set; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25282 if test -n "$JADE"; then
25283 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25286 for as_dir
in $PATH
25289 test -z "$as_dir" && as_dir
=.
25290 for ac_exec_ext
in '' $ac_executable_extensions; do
25291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25292 ac_cv_prog_JADE
="$ac_prog"
25293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25302 JADE
=$ac_cv_prog_JADE
25303 if test -n "$JADE"; then
25304 { echo "$as_me:$LINENO: result: $JADE" >&5
25305 echo "${ECHO_T}$JADE" >&6; }
25307 { echo "$as_me:$LINENO: result: no" >&5
25308 echo "${ECHO_T}no" >&6; }
25312 test -n "$JADE" && break
25316 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25317 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25318 if test "${pgac_cv_check_docbook+set}" = set; then
25319 echo $ECHO_N "(cached) $ECHO_C" >&6
25321 cat >conftest.sgml
<<EOF
25322 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25324 <title>test</title>
25326 <title>random</title>
25328 <title>testsect</title>
25335 pgac_cv_check_docbook
=no
25337 if test -n "$NSGMLS"; then
25338 $NSGMLS -s conftest.sgml
1>&5 2>&1
25339 if test $?
-eq 0; then
25340 pgac_cv_check_docbook
=yes
25343 rm -f conftest.sgml
25345 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25346 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25348 have_docbook
=$pgac_cv_check_docbook
25351 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25352 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25353 if test "${pgac_cv_path_stylesheets+set}" = set; then
25354 echo $ECHO_N "(cached) $ECHO_C" >&6
25356 if test -n "$DOCBOOKSTYLE"; then
25357 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
25359 for pgac_prefix
in /usr
/usr
/local /opt
; do
25360 for pgac_infix
in share lib
; do
25361 for pgac_postfix
in \
25362 sgml
/stylesheets
/nwalsh-modular \
25363 sgml
/stylesheets
/docbook \
25364 sgml
/stylesheets
/dsssl
/docbook \
25365 sgml
/docbook-dsssl \
25366 sgml
/docbook
/dsssl
/modular \
25367 sgml
/docbook
/stylesheet
/dsssl
/modular \
25368 sgml
/docbook
/dsssl-stylesheets
25370 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
25371 if test -r "$pgac_candidate/html/docbook.dsl" \
25372 && test -r "$pgac_candidate/print/docbook.dsl"
25374 pgac_cv_path_stylesheets
=$pgac_candidate
25383 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
25385 if test -n "$DOCBOOKSTYLE"; then
25386 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25387 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25389 { echo "$as_me:$LINENO: result: no" >&5
25390 echo "${ECHO_T}no" >&6; }
25392 if test -n "$DOCBOOKSTYLE"; then
25393 for ac_prog
in collateindex.pl
25395 # Extract the first word of "$ac_prog", so it can be a program name with args.
25396 set dummy
$ac_prog; ac_word
=$2
25397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25399 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 case $COLLATEINDEX in
25404 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25408 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
25411 test -z "$as_dir" && as_dir
=.
25412 for ac_exec_ext
in '' $ac_executable_extensions; do
25413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25414 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25425 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25426 if test -n "$COLLATEINDEX"; then
25427 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25428 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25430 { echo "$as_me:$LINENO: result: no" >&5
25431 echo "${ECHO_T}no" >&6; }
25435 test -n "$COLLATEINDEX" && break
25439 for ac_prog
in collateindex.pl
25441 # Extract the first word of "$ac_prog", so it can be a program name with args.
25442 set dummy
$ac_prog; ac_word
=$2
25443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25445 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 case $COLLATEINDEX in
25450 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25454 for as_dir
in $PATH
25457 test -z "$as_dir" && as_dir
=.
25458 for ac_exec_ext
in '' $ac_executable_extensions; do
25459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25460 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25471 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25472 if test -n "$COLLATEINDEX"; then
25473 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25474 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25476 { echo "$as_me:$LINENO: result: no" >&5
25477 echo "${ECHO_T}no" >&6; }
25481 test -n "$COLLATEINDEX" && break
25485 for ac_prog
in sgmlspl
25487 # Extract the first word of "$ac_prog", so it can be a program name with args.
25488 set dummy
$ac_prog; ac_word
=$2
25489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25491 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25494 if test -n "$SGMLSPL"; then
25495 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
25497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25498 for as_dir
in $PATH
25501 test -z "$as_dir" && as_dir
=.
25502 for ac_exec_ext
in '' $ac_executable_extensions; do
25503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25504 ac_cv_prog_SGMLSPL
="$ac_prog"
25505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25514 SGMLSPL
=$ac_cv_prog_SGMLSPL
25515 if test -n "$SGMLSPL"; then
25516 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25517 echo "${ECHO_T}$SGMLSPL" >&6; }
25519 { echo "$as_me:$LINENO: result: no" >&5
25520 echo "${ECHO_T}no" >&6; }
25524 test -n "$SGMLSPL" && break
25530 # We have to run the thread test near the end so we have all our symbols
25531 # defined. Cross compiling throws a warning.
25533 if test "$enable_thread_safety_force" = yes; then
25534 if test "$PORTNAME" != "win32"
25536 { echo "$as_me:$LINENO: WARNING:
25537 *** Skipping thread test program. --enable-thread-safety-force was used.
25538 *** Run the program in src/test/thread on the your machine and add proper
25539 *** locking function calls to your applications to guarantee thread safety.
25541 echo "$as_me: WARNING:
25542 *** Skipping thread test program. --enable-thread-safety-force was used.
25543 *** Run the program in src/test/thread on the your machine and add proper
25544 *** locking function calls to your applications to guarantee thread safety.
25547 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25548 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25550 elif test "$enable_thread_safety" = yes; then
25551 if test "$PORTNAME" != "win32"
25553 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25554 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25558 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25559 LIBS
="$LIBS $PTHREAD_LIBS"
25560 if test "$cross_compiling" = yes; then
25561 { echo "$as_me:$LINENO: result: maybe" >&5
25562 echo "${ECHO_T}maybe" >&6; }
25563 { echo "$as_me:$LINENO: WARNING:
25564 *** Skipping thread test program because of cross-compile build.
25565 *** Run the program in src/test/thread on the target machine.
25567 echo "$as_me: WARNING:
25568 *** Skipping thread test program because of cross-compile build.
25569 *** Run the program in src/test/thread on the target machine.
25572 cat >conftest.
$ac_ext <<_ACEOF
25575 cat confdefs.h
>>conftest.
$ac_ext
25576 cat >>conftest.
$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 #include "$srcdir/src/test/thread/thread_test.c"
25580 rm -f conftest
$ac_exeext
25581 if { (ac_try
="$ac_link"
25582 case "(($ac_try" in
25583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_link") 2>&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25591 { (case "(($ac_try" in
25592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25593 *) ac_try_echo
=$ac_try;;
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596 (eval "$ac_try") 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 { echo "$as_me:$LINENO: result: yes" >&5
25601 echo "${ECHO_T}yes" >&6; }
25603 echo "$as_me: program exited with status $ac_status" >&5
25604 echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.
$ac_ext >&5
25607 ( exit $ac_status )
25608 { echo "$as_me:$LINENO: result: no" >&5
25609 echo "${ECHO_T}no" >&6; }
25610 { { echo "$as_me:$LINENO: error: thread test program failed
25611 This platform is not thread-safe. Check the file 'config.log'for the
25614 You can use the configure option --enable-thread-safety-force to force
25615 threads to be enabled. But you must then run the program in
25616 src/test/thread and add locking function calls to your applications to
25617 guarantee thread safety." >&5
25618 echo "$as_me: error: thread test program failed
25619 This platform is not thread-safe. Check the file 'config.log'for the
25622 You can use the configure option --enable-thread-safety-force to force
25623 threads to be enabled. But you must then run the program in
25624 src/test/thread and add locking function calls to your applications to
25625 guarantee thread safety." >&2;}
25626 { (exit 1); exit 1; }; }
25628 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25635 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25636 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25640 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25641 # This is much easier than trying to filter LIBS to the minimum for each
25642 # executable. (Note that shared library links won't use this switch, though.)
25643 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25644 # libreadline; therefore we postpone testing it until we know what library
25645 # dependencies readline has. The test code will try to link with $LIBS.
25646 if test "$with_readline" = yes; then
25647 link_test_func
=readline
25649 link_test_func
=exit
25651 if test "$PORTNAME" != "darwin"; then
25652 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25653 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25654 pgac_save_LDFLAGS
=$LDFLAGS
25655 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
25656 if test "$cross_compiling" = yes; then
25657 LDFLAGS
="$pgac_save_LDFLAGS"
25658 { echo "$as_me:$LINENO: result: assuming no" >&5
25659 echo "${ECHO_T}assuming no" >&6; }
25661 cat >conftest.
$ac_ext <<_ACEOF
25664 cat confdefs.h
>>conftest.
$ac_ext
25665 cat >>conftest.
$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25676 rm -f conftest
$ac_exeext
25677 if { (ac_try
="$ac_link"
25678 case "(($ac_try" in
25679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_link") 2>&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25687 { (case "(($ac_try" in
25688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25689 *) ac_try_echo
=$ac_try;;
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692 (eval "$ac_try") 2>&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 { echo "$as_me:$LINENO: result: yes" >&5
25697 echo "${ECHO_T}yes" >&6; }
25699 echo "$as_me: program exited with status $ac_status" >&5
25700 echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.
$ac_ext >&5
25703 ( exit $ac_status )
25704 LDFLAGS
="$pgac_save_LDFLAGS"
25705 { echo "$as_me:$LINENO: result: no" >&5
25706 echo "${ECHO_T}no" >&6; }
25708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25714 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25715 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25716 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25717 pgac_save_LDFLAGS
=$LDFLAGS
25718 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25719 if test "$cross_compiling" = yes; then
25720 LDFLAGS
="$pgac_save_LDFLAGS"
25721 { echo "$as_me:$LINENO: result: assuming no" >&5
25722 echo "${ECHO_T}assuming no" >&6; }
25724 cat >conftest.
$ac_ext <<_ACEOF
25727 cat confdefs.h
>>conftest.
$ac_ext
25728 cat >>conftest.
$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25739 rm -f conftest
$ac_exeext
25740 if { (ac_try
="$ac_link"
25741 case "(($ac_try" in
25742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_link") 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25750 { (case "(($ac_try" in
25751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25752 *) ac_try_echo
=$ac_try;;
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_try") 2>&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; }; then
25759 { echo "$as_me:$LINENO: result: yes" >&5
25760 echo "${ECHO_T}yes" >&6; }
25762 echo "$as_me: program exited with status $ac_status" >&5
25763 echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.
$ac_ext >&5
25766 ( exit $ac_status )
25767 LDFLAGS
="$pgac_save_LDFLAGS"
25768 { echo "$as_me:$LINENO: result: no" >&5
25769 echo "${ECHO_T}no" >&6; }
25771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25779 # Begin output steps
25781 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
25782 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
25783 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
25784 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
25785 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
25786 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
25788 # prepare build tree if outside source tree
25789 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25790 # Note 2: /bin/pwd might be better than shell's built-in at getting
25791 # a symlink-free name.
25792 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25796 if test "$no_create" != yes; then
25797 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25798 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
25799 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25800 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
25801 echo "$as_me: error: failed" >&2;}
25802 { (exit 1); exit 1; }; }
25803 { echo "$as_me:$LINENO: result: done" >&5
25804 echo "${ECHO_T}done" >&6; }
25810 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
25813 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}"
25816 if test "$PORTNAME" = "win32"; then
25817 ac_config_commands
="$ac_config_commands check_win32_symlinks"
25821 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
25824 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25827 cat >confcache
<<\_ACEOF
25828 # This file is a shell script that caches the results of configure
25829 # tests run on this system so they can be shared between configure
25830 # scripts and configure runs, see configure's option --config-cache.
25831 # It is not useful on other systems. If it contains results you don't
25832 # want to keep, you may remove or edit it.
25834 # config.status only pays attention to the cache file if you give it
25835 # the --recheck option to rerun configure.
25837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25839 # following values.
25843 # The following way of writing the cache mishandles newlines in values,
25844 # but we know of no workaround that is simple, portable, and efficient.
25845 # So, we kill variables containing newlines.
25846 # Ultrix sh set writes to stderr and can't be redirected directly,
25847 # and sets the high bit in the cache file unless we assign to the vars.
25849 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25850 eval ac_val
=\$
$ac_var
25854 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25855 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25858 _ | IFS | as_nl
) ;; #(
25859 *) $as_unset $ac_var ;;
25865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25866 *${as_nl}ac_space
=\
*)
25867 # `set' does not quote correctly, so add quotes (double-quote
25868 # substitution turns \\\\ into \\, and sed turns \\ into \).
25871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25874 # `set' quotes correctly as required by POSIX, so do not add quotes.
25875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25888 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25889 if test -w "$cache_file"; then
25890 test "x$cache_file" != "x/dev/null" &&
25891 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25892 echo "$as_me: updating cache $cache_file" >&6;}
25893 cat confcache
>$cache_file
25895 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25896 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25901 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25902 # Let make expand exec_prefix.
25903 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25905 DEFS
=-DHAVE_CONFIG_H
25909 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25910 # 1. Remove the extension, and $U if already installed.
25911 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25912 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25914 # will be set to the directory where LIBOBJS objects are built.
25915 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25916 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25918 LIBOBJS
=$ac_libobjs
25920 LTLIBOBJS
=$ac_ltlibobjs
25924 : ${CONFIG_STATUS=./config.status}
25925 ac_clean_files_save
=$ac_clean_files
25926 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25927 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25929 cat >$CONFIG_STATUS <<_ACEOF
25931 # Generated by $as_me.
25932 # Run this file to recreate the current configuration.
25933 # Compiler output produced by configure, useful for debugging
25934 # configure, is in config.log if it exists.
25937 ac_cs_recheck=false
25939 SHELL=\${CONFIG_SHELL-$SHELL}
25942 cat >>$CONFIG_STATUS <<\_ACEOF
25943 ## --------------------- ##
25944 ## M4sh Initialization. ##
25945 ## --------------------- ##
25947 # Be more Bourne compatible
25948 DUALCASE
=1; export DUALCASE
# for MKS sh
25949 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25952 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25953 # is contrary to our usage. Disable this feature.
25954 alias -g '${1+"$@"}'='"$@"'
25955 setopt NO_GLOB_SUBST
25957 case `(set -o) 2>/dev/null` in
25958 *posix
*) set -o posix
;;
25967 # Avoid depending upon Character Ranges.
25968 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25969 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25970 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25971 as_cr_digits
='0123456789'
25972 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25974 # The user is always right.
25975 if test "${PATH_SEPARATOR+set}" != set; then
25976 echo "#! /bin/sh" >conf$$.sh
25977 echo "exit 0" >>conf$$.sh
25979 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25987 # Support unset when possible.
25988 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25996 # We need space, tab and new line, in precisely that order. Quoting is
25997 # there to prevent editors from complaining about space-tab.
25998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25999 # splitting by setting IFS to empty value.)
26004 # Find who we are. Look in the path if we contain no directory separator.
26006 *[\\/]* ) as_myself
=$0 ;;
26007 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26008 for as_dir
in $PATH
26011 test -z "$as_dir" && as_dir
=.
26012 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26018 # We did not find ourselves, most probably we were run as `sh COMMAND'
26019 # in which case we are not to be found in the path.
26020 if test "x$as_myself" = x
; then
26023 if test ! -f "$as_myself"; then
26024 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26025 { (exit 1); exit 1; }
26028 # Work around bugs in pre-3.0 UWIN ksh.
26029 for as_var
in ENV MAIL MAILPATH
26030 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26038 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26039 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26040 LC_TELEPHONE LC_TIME
26042 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26043 eval $as_var=C
; export $as_var
26045 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26049 # Required to use basename.
26050 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26051 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26057 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26058 as_basename
=basename
26064 # Name of the executable.
26065 as_me
=`$as_basename -- "$0" ||
26066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26067 X"$0" : 'X\(//\)$' \| \
26068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26070 sed '/^.*\/\([^/][^/]*\)\/*$/{
26089 as_lineno_1
=$LINENO
26090 as_lineno_2
=$LINENO
26091 test "x$as_lineno_1" != "x$as_lineno_2" &&
26092 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26095 # uniformly replaced by the line number. The first 'sed' inserts a
26096 # line-number line after each line using $LINENO; the second 'sed'
26097 # does the real work. The second script uses 'N' to pair each
26098 # line-number line with the line containing $LINENO, and appends
26099 # trailing '-' during substitution so that $LINENO is not a special
26100 # case at line end.
26101 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26102 # scripts with optimization help from Paolo Bonzini. Blame Lee
26103 # E. McMahon (1931-1989) for sed's syntax. :-)
26115 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26118 ' >$as_me.lineno
&&
26119 chmod +x
"$as_me.lineno" ||
26120 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26121 { (exit 1); exit 1; }; }
26123 # Don't try to exec as it changes $[0], causing all sort of problems
26124 # (the dirname of $[0] is not the place where we might find the
26125 # original and so on. Autoconf is especially sensitive to this).
26126 .
"./$as_me.lineno"
26127 # Exit status is that of the last command.
26132 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26138 ECHO_C
= ECHO_N
= ECHO_T
=
26139 case `echo -n x` in
26141 case `echo 'x\c'` in
26142 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26149 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26150 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26156 rm -f conf$$ conf$$.exe conf$$.
file
26157 if test -d conf$$.dir
; then
26158 rm -f conf$$.dir
/conf$$.
file
26164 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26166 # ... but there are two gotchas:
26167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26169 # In both cases, we have to default to `cp -p'.
26170 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26172 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26177 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26178 rmdir conf$$.dir
2>/dev
/null
26180 if mkdir
-p .
2>/dev
/null
; then
26183 test -d .
/-p && rmdir .
/-p
26187 if test -x / >/dev
/null
2>&1; then
26188 as_test_x
='test -x'
26190 if ls -dL / >/dev
/null
2>&1; then
26197 if test -d "$1"; then
26203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26204 ???[sx]*):;;*)false;;esac;fi
26208 as_executable_p
=$as_test_x
26210 # Sed expression to map a string onto a valid CPP name.
26211 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26213 # Sed expression to map a string onto a valid variable name.
26214 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26219 # Save the log message, to keep $[0] and so on meaningful, and to
26220 # report actual input values of CONFIG_FILES etc. instead of their
26221 # values after options handling.
26223 This file was extended by PostgreSQL $as_me 8.4devel, which was
26224 generated by GNU Autoconf 2.61. Invocation command line was
26226 CONFIG_FILES = $CONFIG_FILES
26227 CONFIG_HEADERS = $CONFIG_HEADERS
26228 CONFIG_LINKS = $CONFIG_LINKS
26229 CONFIG_COMMANDS = $CONFIG_COMMANDS
26232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26237 cat >>$CONFIG_STATUS <<_ACEOF
26238 # Files that config.status was made for.
26239 config_files="$ac_config_files"
26240 config_headers="$ac_config_headers"
26241 config_links="$ac_config_links"
26242 config_commands="$ac_config_commands"
26246 cat >>$CONFIG_STATUS <<\_ACEOF
26248 \`$as_me' instantiates files from templates according to the
26249 current configuration.
26251 Usage: $0 [OPTIONS] [FILE]...
26253 -h, --help print this help, then exit
26254 -V, --version print version number and configuration settings, then exit
26255 -q, --quiet do not print progress messages
26256 -d, --debug don't remove temporary files
26257 --recheck update $as_me by reconfiguring in the same conditions
26258 --file=FILE[:TEMPLATE]
26259 instantiate the configuration file FILE
26260 --header=FILE[:TEMPLATE]
26261 instantiate the configuration header FILE
26263 Configuration files:
26266 Configuration headers:
26269 Configuration links:
26272 Configuration commands:
26275 Report bugs to <bug-autoconf@gnu.org>."
26278 cat >>$CONFIG_STATUS <<_ACEOF
26280 PostgreSQL config.status 8.4devel
26281 configured by $0, generated by GNU Autoconf 2.61,
26282 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26284 Copyright (C) 2006 Free Software Foundation, Inc.
26285 This config.status script is free software; the Free Software Foundation
26286 gives unlimited permission to copy, distribute and modify it."
26292 cat >>$CONFIG_STATUS <<\_ACEOF
26293 # If no file are specified by the user, then we need to provide default
26294 # value. By we need to know if files were specified by the user.
26300 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26301 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26312 # Handling of the options.
26313 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26315 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26316 echo "$ac_cs_version"; exit ;;
26317 --debug |
--debu |
--deb |
--de |
--d |
-d )
26319 --file |
--fil |
--fi |
--f )
26321 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26322 ac_need_defaults
=false
;;
26323 --header |
--heade |
--head |
--hea )
26325 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26326 ac_need_defaults
=false
;;
26328 # Conflict between --help and --header
26329 { echo "$as_me: error: ambiguous option: $1
26330 Try \`$0 --help' for more information." >&2
26331 { (exit 1); exit 1; }; };;
26332 --help |
--hel |
-h )
26333 echo "$ac_cs_usage"; exit ;;
26334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26335 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26338 # This is an error.
26339 -*) { echo "$as_me: error: unrecognized option: $1
26340 Try \`$0 --help' for more information." >&2
26341 { (exit 1); exit 1; }; } ;;
26343 *) ac_config_targets
="$ac_config_targets $1"
26344 ac_need_defaults
=false
;;
26350 ac_configure_extra_args
=
26352 if $ac_cs_silent; then
26354 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26358 cat >>$CONFIG_STATUS <<_ACEOF
26359 if \$ac_cs_recheck; then
26360 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26361 CONFIG_SHELL=$SHELL
26362 export CONFIG_SHELL
26363 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26367 cat >>$CONFIG_STATUS <<\_ACEOF
26371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26372 ## Running $as_me. ##
26378 cat >>$CONFIG_STATUS <<_ACEOF
26381 cat >>$CONFIG_STATUS <<\_ACEOF
26383 # Handling of arguments.
26384 for ac_config_target
in $ac_config_targets
26386 case $ac_config_target in
26387 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26388 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
26389 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
26390 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26391 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26392 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26393 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26394 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26395 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26396 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
26397 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
26398 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26401 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26402 { (exit 1); exit 1; }; };;
26407 # If the user did not use the arguments to specify the items to instantiate,
26408 # then the envvar interface is used. Set only those that are not.
26409 # We use the long form for the default assignment because of an extremely
26410 # bizarre bug on SunOS 4.1.3.
26411 if $ac_need_defaults; then
26412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26414 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
26415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26418 # Have a temporary directory for convenience. Make it in the build tree
26419 # simply because there is no reason against having it here, and in addition,
26420 # creating and moving files from /tmp can sometimes cause problems.
26421 # Hook for its removal unless debugging.
26422 # Note that there is a small window in which the directory will not be cleaned:
26423 # after its creation but before its name has been assigned to `$tmp'.
26427 trap 'exit_status=$?
26428 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26430 trap '{ (exit 1); exit 1; }' 1 2 13 15
26432 # Create a (secure) tmp directory for tmp files.
26435 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26436 test -n "$tmp" && test -d "$tmp"
26439 tmp
=.
/conf$$
-$RANDOM
26440 (umask 077 && mkdir
"$tmp")
26443 echo "$me: cannot create a temporary directory in ." >&2
26444 { (exit 1); exit 1; }
26448 # Set up the sed scripts for CONFIG_FILES section.
26451 # No need to generate the scripts if there are no CONFIG_FILES.
26452 # This happens for instance when ./config.status config.h
26453 if test -n "$CONFIG_FILES"; then
26460 for ac_last_try
in false false false false false
:; do
26461 cat >conf$
$subs.
sed <<_ACEOF
26462 SHELL!$SHELL$ac_delim
26463 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26464 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26465 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26466 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26467 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26468 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26469 exec_prefix!$exec_prefix$ac_delim
26470 prefix!$prefix$ac_delim
26471 program_transform_name!$program_transform_name$ac_delim
26472 bindir!$bindir$ac_delim
26473 sbindir!$sbindir$ac_delim
26474 libexecdir!$libexecdir$ac_delim
26475 datarootdir!$datarootdir$ac_delim
26476 datadir!$datadir$ac_delim
26477 sysconfdir!$sysconfdir$ac_delim
26478 sharedstatedir!$sharedstatedir$ac_delim
26479 localstatedir!$localstatedir$ac_delim
26480 includedir!$includedir$ac_delim
26481 oldincludedir!$oldincludedir$ac_delim
26482 docdir!$docdir$ac_delim
26483 infodir!$infodir$ac_delim
26484 htmldir!$htmldir$ac_delim
26485 dvidir!$dvidir$ac_delim
26486 pdfdir!$pdfdir$ac_delim
26487 psdir!$psdir$ac_delim
26488 libdir!$libdir$ac_delim
26489 localedir!$localedir$ac_delim
26490 mandir!$mandir$ac_delim
26491 DEFS!$DEFS$ac_delim
26492 ECHO_C!$ECHO_C$ac_delim
26493 ECHO_N!$ECHO_N$ac_delim
26494 ECHO_T!$ECHO_T$ac_delim
26495 LIBS!$LIBS$ac_delim
26496 build_alias!$build_alias$ac_delim
26497 host_alias!$host_alias$ac_delim
26498 target_alias!$target_alias$ac_delim
26499 configure_args!$configure_args$ac_delim
26500 build!$build$ac_delim
26501 build_cpu!$build_cpu$ac_delim
26502 build_vendor!$build_vendor$ac_delim
26503 build_os!$build_os$ac_delim
26504 host!$host$ac_delim
26505 host_cpu!$host_cpu$ac_delim
26506 host_vendor!$host_vendor$ac_delim
26507 host_os!$host_os$ac_delim
26508 PORTNAME!$PORTNAME$ac_delim
26509 enable_nls!$enable_nls$ac_delim
26510 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26511 default_port!$default_port$ac_delim
26512 enable_shared!$enable_shared$ac_delim
26513 enable_rpath!$enable_rpath$ac_delim
26514 enable_debug!$enable_debug$ac_delim
26515 enable_profiling!$enable_profiling$ac_delim
26516 DTRACE!$DTRACE$ac_delim
26517 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26518 enable_dtrace!$enable_dtrace$ac_delim
26520 CFLAGS!$CFLAGS$ac_delim
26521 LDFLAGS!$LDFLAGS$ac_delim
26522 CPPFLAGS!$CPPFLAGS$ac_delim
26523 ac_ct_CC!$ac_ct_CC$ac_delim
26524 EXEEXT!$EXEEXT$ac_delim
26525 OBJEXT!$OBJEXT$ac_delim
26529 autodepend!$autodepend$ac_delim
26530 INCLUDES!$INCLUDES$ac_delim
26531 enable_thread_safety!$enable_thread_safety$ac_delim
26532 with_tcl!$with_tcl$ac_delim
26533 with_perl!$with_perl$ac_delim
26534 with_python!$with_python$ac_delim
26535 with_gssapi!$with_gssapi$ac_delim
26536 with_krb5!$with_krb5$ac_delim
26537 krb_srvtab!$krb_srvtab$ac_delim
26538 with_pam!$with_pam$ac_delim
26539 with_ldap!$with_ldap$ac_delim
26540 with_bonjour!$with_bonjour$ac_delim
26541 with_openssl!$with_openssl$ac_delim
26542 with_ossp_uuid!$with_ossp_uuid$ac_delim
26543 XML2_CONFIG!$XML2_CONFIG$ac_delim
26544 with_libxml!$with_libxml$ac_delim
26545 with_libxslt!$with_libxslt$ac_delim
26546 with_system_tzdata!$with_system_tzdata$ac_delim
26547 with_zlib!$with_zlib$ac_delim
26548 GREP!$GREP$ac_delim
26549 EGREP!$EGREP$ac_delim
26550 ELF_SYS!$ELF_SYS$ac_delim
26551 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26553 with_gnu_ld!$with_gnu_ld$ac_delim
26554 ld_R_works!$ld_R_works$ac_delim
26555 RANLIB!$RANLIB$ac_delim
26556 STRIP!$STRIP$ac_delim
26557 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26558 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26563 elif $ac_last_try; then
26564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26566 { (exit 1); exit 1; }; }
26568 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26572 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26573 if test -n "$ac_eof"; then
26574 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26575 ac_eof
=`expr $ac_eof + 1`
26578 cat >>$CONFIG_STATUS <<_ACEOF
26579 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26584 s/^/s,@/; s/!/@,|#_!!_#|/
26587 s/'"$ac_delim"'$/,g/; t
26589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26590 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26591 rm -f conf$
$subs.
sed
26592 cat >>$CONFIG_STATUS <<_ACEOF
26598 for ac_last_try
in false false false false false
:; do
26599 cat >conf$
$subs.
sed <<_ACEOF
26601 LN_S!$LN_S$ac_delim
26603 YACC!$YACC$ac_delim
26604 YFLAGS!$YFLAGS$ac_delim
26605 FLEX!$FLEX$ac_delim
26606 FLEXFLAGS!$FLEXFLAGS$ac_delim
26607 PERL!$PERL$ac_delim
26608 perl_archlibexp!$perl_archlibexp$ac_delim
26609 perl_privlibexp!$perl_privlibexp$ac_delim
26610 perl_useshrplib!$perl_useshrplib$ac_delim
26611 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26612 PYTHON!$PYTHON$ac_delim
26613 python_version!$python_version$ac_delim
26614 python_configdir!$python_configdir$ac_delim
26615 python_includespec!$python_includespec$ac_delim
26616 python_libdir!$python_libdir$ac_delim
26617 python_libspec!$python_libspec$ac_delim
26618 python_additional_libs!$python_additional_libs$ac_delim
26619 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26620 HAVE_IPV6!$HAVE_IPV6$ac_delim
26621 LIBOBJS!$LIBOBJS$ac_delim
26622 acx_pthread_config!$acx_pthread_config$ac_delim
26623 PTHREAD_CC!$PTHREAD_CC$ac_delim
26624 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26625 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26626 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26627 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26628 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26629 MSGFMT!$MSGFMT$ac_delim
26630 MSGMERGE!$MSGMERGE$ac_delim
26631 XGETTEXT!$XGETTEXT$ac_delim
26632 TCLSH!$TCLSH$ac_delim
26633 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26634 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26635 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26636 TCL_LIBS!$TCL_LIBS$ac_delim
26637 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26638 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26639 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26640 NSGMLS!$NSGMLS$ac_delim
26641 JADE!$JADE$ac_delim
26642 have_docbook!$have_docbook$ac_delim
26643 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26644 COLLATEINDEX!$COLLATEINDEX$ac_delim
26645 SGMLSPL!$SGMLSPL$ac_delim
26646 vpath_build!$vpath_build$ac_delim
26647 LTLIBOBJS!$LTLIBOBJS$ac_delim
26650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26652 elif $ac_last_try; then
26653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26655 { (exit 1); exit 1; }; }
26657 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26661 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26662 if test -n "$ac_eof"; then
26663 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26664 ac_eof
=`expr $ac_eof + 1`
26667 cat >>$CONFIG_STATUS <<_ACEOF
26668 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26673 s/^/s,@/; s/!/@,|#_!!_#|/
26676 s/'"$ac_delim"'$/,g/; t
26678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26679 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26680 rm -f conf$
$subs.
sed
26681 cat >>$CONFIG_STATUS <<_ACEOF
26688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26690 # trailing colons and then remove the whole line if VPATH becomes empty
26691 # (actually we leave an empty line to preserve line numbers).
26692 if test "x$srcdir" = x.
; then
26693 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26694 s/:*\$(srcdir):*/:/
26695 s/:*\${srcdir}:*/:/
26697 s/^\([^=]*=[ ]*\):*/\1/
26703 cat >>$CONFIG_STATUS <<\_ACEOF
26704 fi # test -n "$CONFIG_FILES"
26707 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
26710 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26712 case $ac_mode$ac_tag in
26714 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26715 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26716 { (exit 1); exit 1; }; };;
26717 :[FH
]-) ac_tag
=-:-;;
26718 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26735 -) ac_f
="$tmp/stdin";;
26736 *) # Look for the file first in the build tree, then in the source tree
26737 # (if the path is not absolute). The absolute path cannot be DOS-style,
26738 # because $ac_f cannot contain `:'.
26742 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26744 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26745 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26746 { (exit 1); exit 1; }; };;
26748 ac_file_inputs
="$ac_file_inputs $ac_f"
26751 # Let's still pretend it is `configure' which instantiates (i.e., don't
26752 # use $as_me), people would be surprised to read:
26753 # /* config.h. Generated by config.status. */
26754 configure_input
="Generated from "`IFS=:
26755 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26756 if test x
"$ac_file" != x-
; then
26757 configure_input
="$ac_file. $configure_input"
26758 { echo "$as_me:$LINENO: creating $ac_file" >&5
26759 echo "$as_me: creating $ac_file" >&6;}
26763 *:-:* |
*:-) cat >"$tmp/stdin";;
26768 ac_dir
=`$as_dirname -- "$ac_file" ||
26769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26770 X"$ac_file" : 'X\(//\)[^/]' \| \
26771 X"$ac_file" : 'X\(//\)$' \| \
26772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26778 /^X\(\/\/\)[^/].*/{
26793 -*) as_dir
=.
/$as_dir;;
26795 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26799 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26800 *) as_qdir
=$as_dir;;
26802 as_dirs
="'$as_qdir' $as_dirs"
26803 as_dir
=`$as_dirname -- "$as_dir" ||
26804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26805 X"$as_dir" : 'X\(//\)[^/]' \| \
26806 X"$as_dir" : 'X\(//\)$' \| \
26807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26813 /^X\(\/\/\)[^/].*/{
26826 test -d "$as_dir" && break
26828 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26829 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26830 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26831 { (exit 1); exit 1; }; }; }
26835 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26837 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26838 # A ".." for each directory in $ac_dir_suffix.
26839 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26840 case $ac_top_builddir_sub in
26841 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26842 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26845 ac_abs_top_builddir
=$ac_pwd
26846 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26847 # for backward compatibility:
26848 ac_top_builddir
=$ac_top_build_prefix
26851 .
) # We are building in place.
26853 ac_top_srcdir
=$ac_top_builddir_sub
26854 ac_abs_top_srcdir
=$ac_pwd ;;
26855 [\\/]* | ?
:[\\/]* ) # Absolute name.
26856 ac_srcdir
=$srcdir$ac_dir_suffix;
26857 ac_top_srcdir
=$srcdir
26858 ac_abs_top_srcdir
=$srcdir ;;
26859 *) # Relative name.
26860 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26861 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26862 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26864 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26875 cat >>$CONFIG_STATUS <<\_ACEOF
26876 # If the template does not know about datarootdir, expand it.
26877 # FIXME: This hack should be removed a few years after 2.60.
26878 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26880 case `sed -n '/datarootdir/ {
26889 ' $ac_file_inputs` in
26890 *datarootdir
*) ac_datarootdir_seen
=yes;;
26891 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26892 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26893 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26895 cat >>$CONFIG_STATUS <<_ACEOF
26896 ac_datarootdir_hack='
26897 s&@datadir@&$datadir&g
26898 s&@docdir@&$docdir&g
26899 s&@infodir@&$infodir&g
26900 s&@localedir@&$localedir&g
26901 s&@mandir@&$mandir&g
26902 s&\\\${datarootdir}&$datarootdir&g' ;;
26906 # Neutralize VPATH when `$srcdir' = `.'.
26907 # Shell code in configure.ac might set extrasub.
26908 # FIXME: do we really want to maintain this feature?
26909 cat >>$CONFIG_STATUS <<_ACEOF
26913 cat >>$CONFIG_STATUS <<\_ACEOF
26915 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26916 s
&@configure_input@
&$configure_input&;t t
26917 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26918 s
&@srcdir@
&$ac_srcdir&;t t
26919 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26920 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26921 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26922 s
&@builddir@
&$ac_builddir&;t t
26923 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26924 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26925 $ac_datarootdir_hack
26926 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26929 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26931 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26932 which seems to be undefined. Please make sure it is defined." >&5
26933 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26934 which seems to be undefined. Please make sure it is defined." >&2;}
26938 -) cat "$tmp/out"; rm -f "$tmp/out";;
26939 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26948 # Transform confdefs.h into a sed script `conftest.defines', that
26949 # substitutes the proper values into config.h.in to produce config.h.
26950 rm -f conftest.defines conftest.
tail
26951 # First, append a space to every undef/define line, to ease matching.
26952 echo 's/$/ /' >conftest.defines
26953 # Then, protect against being on the right side of a sed subst, or in
26954 # an unquoted here document, in config.status. If some macros were
26955 # called several times there might be several #defines for the same
26956 # symbol, which is useless. But do not sort them, since the last
26957 # AC_DEFINE must be honored.
26958 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26959 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26960 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26961 # PARAMS is the parameter list in the macro definition--in most cases, it's
26962 # just an empty string.
26963 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26964 ac_dB
='\\)[ (].*,\\1define\\2'
26972 s/^[ ]*#[ ]*define[ ][ ]*//
26977 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26978 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26979 ' >>conftest.defines
26981 # Remove the space that was appended to ease matching.
26982 # Then replace #undef with comments. This is necessary, for
26983 # example, in the case of _POSIX_SOURCE, which is predefined and required
26984 # on some systems where configure will not decide to define it.
26985 # (The regexp can be short, since the line contains either #define or #undef.)
26987 s,^[ #]*u.*,/* & */,' >>conftest.defines
26989 # Break up conftest.defines:
26990 ac_max_sed_lines
=50
26992 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26993 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26994 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26996 ac_in
='$ac_file_inputs'
26997 ac_out
='"$tmp/out1"'
26998 ac_nxt
='"$tmp/out2"'
27002 # Write a here document:
27003 cat >>$CONFIG_STATUS <<_ACEOF
27004 # First, check the format of the line:
27005 cat >"\$tmp/defines.sed" <<\\CEOF
27006 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27007 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27011 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27013 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27014 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27015 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27016 grep . conftest.
tail >/dev
/null ||
break
27017 rm -f conftest.defines
27018 mv conftest.
tail conftest.defines
27020 rm -f conftest.defines conftest.
tail
27022 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27023 cat >>$CONFIG_STATUS <<\_ACEOF
27024 if test x
"$ac_file" != x-
; then
27025 echo "/* $configure_input */" >"$tmp/config.h"
27026 cat "$ac_result" >>"$tmp/config.h"
27027 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27028 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27029 echo "$as_me: $ac_file is unchanged" >&6;}
27032 mv "$tmp/config.h" $ac_file
27035 echo "/* $configure_input */"
27045 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27046 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27048 if test ! -r "$srcdir/$ac_source"; then
27049 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27050 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27051 { (exit 1); exit 1; }; }
27055 # Try a relative symlink, then a hard link, then a copy.
27057 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
27058 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
27060 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
27061 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
27062 cp -p "$srcdir/$ac_source" "$ac_file" ||
27063 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27064 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27065 { (exit 1); exit 1; }; }
27067 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27068 echo "$as_me: executing $ac_file commands" >&6;}
27073 case $ac_file$ac_mode in
27074 "check_win32_symlinks":C
)
27075 # Links sometimes fail undetected on Mingw -
27076 # so here we detect it and warn the user
27077 for FILE
in $CONFIG_LINKS
27079 # test -e works for symlinks in the MinGW console
27080 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27081 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27084 "src/include/pg_config.h":H
)
27085 # Update timestamp for pg_config.h (see Makefile.global)
27086 echo >src
/include
/stamp-h
27093 { (exit 0); exit 0; }
27095 chmod +x
$CONFIG_STATUS
27096 ac_clean_files
=$ac_clean_files_save
27099 # configure is writing to config.log, and then calls config.status.
27100 # config.status does its own redirection, appending to config.log.
27101 # Unfortunately, on DOS this fails, as config.log is still kept open
27102 # by configure, so config.status won't be able to write to it; its
27103 # output is simply discarded. So we exec the FD to /dev/null,
27104 # effectively closing config.log, so it can be properly (re)opened and
27105 # appended to by config.status. When coming back to configure, we
27106 # need to make the FD available again.
27107 if test "$no_create" != yes; then
27109 ac_config_status_args
=
27110 test "$silent" = yes &&
27111 ac_config_status_args
="$ac_config_status_args --quiet"
27113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27116 # would make configure fail if this is the last instruction.
27117 $ac_cs_success ||
{ (exit 1); exit 1; }
27121 # Warn about unknown options
27122 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27123 for pgac_arg
in $pgac_args with_gnu_ld
; do
27124 if test "$pgac_var" = "$pgac_arg"; then
27128 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
27129 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27130 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}