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
740 python_additional_libs
771 ac_precious_vars
='build_alias
784 # Initialize some variables set by options.
786 ac_init_version
=false
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name
=s
,x
,x
,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir
='${exec_prefix}/bin'
811 sbindir
='${exec_prefix}/sbin'
812 libexecdir
='${exec_prefix}/libexec'
813 datarootdir
='${prefix}/share'
814 datadir
='${datarootdir}'
815 sysconfdir
='${prefix}/etc'
816 sharedstatedir
='${prefix}/com'
817 localstatedir
='${prefix}/var'
818 includedir
='${prefix}/include'
819 oldincludedir
='/usr/include'
820 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir
='${datarootdir}/info'
826 libdir
='${exec_prefix}/lib'
827 localedir
='${datarootdir}/locale'
828 mandir
='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\
$ac_option
842 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
857 -build |
--build |
--buil |
--bui |
--bu)
858 ac_prev
=build_alias
;;
859 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
860 build_alias
=$ac_optarg ;;
862 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
863 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
864 ac_prev
=cache_file
;;
865 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
866 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
867 cache_file
=$ac_optarg ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
874 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
875 datadir
=$ac_optarg ;;
877 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
878 |
--dataroo |
--dataro |
--datar)
879 ac_prev
=datarootdir
;;
880 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
881 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
882 datarootdir
=$ac_optarg ;;
884 -disable-* |
--disable-*)
885 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_
$ac_feature=no
;;
893 -docdir |
--docdir |
--docdi |
--doc |
--do)
895 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
898 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
900 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
903 -enable-* |
--enable-*)
904 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
910 eval enable_
$ac_feature=\
$ac_optarg ;;
912 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
913 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
914 |
--exec |
--exe |
--ex)
915 ac_prev
=exec_prefix
;;
916 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
917 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
918 |
--exec=* |
--exe=* |
--ex=*)
919 exec_prefix
=$ac_optarg ;;
921 -gas |
--gas |
--ga |
--g)
922 # Obsolete; use --with-gas.
925 -help |
--help |
--hel |
--he |
-h)
927 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
928 ac_init_help
=recursive
;;
929 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
930 ac_init_help
=short
;;
932 -host |
--host |
--hos |
--ho)
933 ac_prev
=host_alias
;;
934 -host=* |
--host=* |
--hos=* |
--ho=*)
935 host_alias
=$ac_optarg ;;
937 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
939 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
941 htmldir
=$ac_optarg ;;
943 -includedir |
--includedir |
--includedi |
--included |
--include \
944 |
--includ |
--inclu |
--incl |
--inc)
945 ac_prev
=includedir
;;
946 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
947 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
948 includedir
=$ac_optarg ;;
950 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
952 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
953 infodir
=$ac_optarg ;;
955 -libdir |
--libdir |
--libdi |
--libd)
957 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
960 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
961 |
--libexe |
--libex |
--libe)
962 ac_prev
=libexecdir
;;
963 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
964 |
--libexe=* |
--libex=* |
--libe=*)
965 libexecdir
=$ac_optarg ;;
967 -localedir |
--localedir |
--localedi |
--localed |
--locale)
969 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
970 localedir
=$ac_optarg ;;
972 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
973 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
974 ac_prev
=localstatedir
;;
975 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
976 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
977 localstatedir
=$ac_optarg ;;
979 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
981 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
985 # Obsolete; use --without-fp.
988 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
989 |
--no-cr |
--no-c |
-n)
992 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
993 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
996 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
997 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
998 |
--oldin |
--oldi |
--old |
--ol |
--o)
999 ac_prev
=oldincludedir
;;
1000 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1001 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1002 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1003 oldincludedir
=$ac_optarg ;;
1005 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1007 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1008 prefix
=$ac_optarg ;;
1010 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1011 |
--program-pre |
--program-pr |
--program-p)
1012 ac_prev
=program_prefix
;;
1013 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1014 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1015 program_prefix
=$ac_optarg ;;
1017 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1018 |
--program-suf |
--program-su |
--program-s)
1019 ac_prev
=program_suffix
;;
1020 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1021 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1022 program_suffix
=$ac_optarg ;;
1024 -program-transform-name |
--program-transform-name \
1025 |
--program-transform-nam |
--program-transform-na \
1026 |
--program-transform-n |
--program-transform- \
1027 |
--program-transform |
--program-transfor \
1028 |
--program-transfo |
--program-transf \
1029 |
--program-trans |
--program-tran \
1030 |
--progr-tra |
--program-tr |
--program-t)
1031 ac_prev
=program_transform_name
;;
1032 -program-transform-name=* |
--program-transform-name=* \
1033 |
--program-transform-nam=* |
--program-transform-na=* \
1034 |
--program-transform-n=* |
--program-transform-=* \
1035 |
--program-transform=* |
--program-transfor=* \
1036 |
--program-transfo=* |
--program-transf=* \
1037 |
--program-trans=* |
--program-tran=* \
1038 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1039 program_transform_name
=$ac_optarg ;;
1041 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1043 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1044 pdfdir
=$ac_optarg ;;
1046 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1048 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1052 |
-silent |
--silent |
--silen |
--sile |
--sil)
1055 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1057 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1059 sbindir
=$ac_optarg ;;
1061 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1062 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1063 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1065 ac_prev
=sharedstatedir
;;
1066 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1067 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1068 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1070 sharedstatedir
=$ac_optarg ;;
1072 -site |
--site |
--sit)
1074 -site=* |
--site=* |
--sit=*)
1077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1080 srcdir
=$ac_optarg ;;
1082 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1083 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1084 ac_prev
=sysconfdir
;;
1085 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1086 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1087 sysconfdir
=$ac_optarg ;;
1089 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1090 ac_prev
=target_alias
;;
1091 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1092 target_alias
=$ac_optarg ;;
1094 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1097 -version |
--version |
--versio |
--versi |
--vers |
-V)
1098 ac_init_version
=: ;;
1101 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1107 eval with_
$ac_package=\
$ac_optarg ;;
1109 -without-* |
--without-*)
1110 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_
$ac_package=no
;;
1119 # Obsolete; use --with-x.
1122 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1123 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1124 ac_prev
=x_includes
;;
1125 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1126 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1127 x_includes
=$ac_optarg ;;
1129 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1130 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1131 ac_prev
=x_libraries
;;
1132 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1133 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1134 x_libraries
=$ac_optarg ;;
1136 -*) { echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138 { (exit 1); exit 1; }; }
1142 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1145 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146 { (exit 1); exit 1; }; }
1147 eval $ac_envvar=\
$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1154 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161 if test -n "$ac_prev"; then
1162 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1163 { echo "$as_me: error: missing argument to $ac_option" >&2
1164 { (exit 1); exit 1; }; }
1167 # Be sure to have absolute directory names.
1168 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val
=\$
$ac_var
1175 [\\/$
]* | ?
:[\\/]* ) continue;;
1176 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1178 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1179 { (exit 1); exit 1; }; }
1182 # There might be people who depend on the old broken behavior: `$host'
1183 # used to hold the argument of --host etc.
1184 # FIXME: To remove some day.
1187 target
=$target_alias
1189 # FIXME: To remove some day.
1190 if test "x$host_alias" != x
; then
1191 if test "x$build_alias" = x
; then
1192 cross_compiling
=maybe
1193 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1194 If a cross compiler is detected then cross compile mode will be used." >&2
1195 elif test "x$build_alias" != "x$host_alias"; then
1201 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1203 test "$silent" = yes && exec 6>/dev
/null
1206 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di
=`ls -di .` &&
1208 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1209 { echo "$as_me: error: Working directory cannot be determined" >&2
1210 { (exit 1); exit 1; }; }
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 { echo "$as_me: error: pwd does not report name of working directory" >&2
1213 { (exit 1); exit 1; }; }
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted
=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir
=`$as_dirname -- "$0" ||
1221 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$0" : 'X\(//\)[^/]' \| \
1223 X"$0" : 'X\(//\)$' \| \
1224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1248 ac_srcdir_defaulted
=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1252 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1253 { (exit 1); exit 1; }; }
1255 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1258 { (exit 1); exit 1; }; }
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1268 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 for ac_var
in $ac_precious_vars; do
1271 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1273 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1284 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1342 --build=BUILD configure
for building on BUILD
[guessed
]
1343 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1347 if test -n "$ac_init_help"; then
1348 case $ac_init_help in
1349 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1354 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1355 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1356 --disable-integer-datetimes disable
64-bit integer date
/time support
1357 --enable-nls[=LANGUAGES
] enable Native Language Support
1358 --disable-shared do not build shared libraries
1359 --disable-rpath do not embed shared library search path
in executables
1360 --disable-spinlocks do not use spinlocks
1361 --enable-debug build with debugging symbols
(-g)
1362 --enable-profiling build with profiling enabled
1363 --enable-coverage build with coverage testing instrumentation
1364 --enable-dtrace build with DTrace support
1365 --enable-depend turn on automatic dependency tracking
1366 --enable-cassert enable assertion checks
(for debugging
)
1367 --enable-thread-safety make client libraries thread-safe
1368 --enable-thread-safety-force force thread-safety despite thread
test failure
1369 --disable-float4-byval disable float4 passed by value
1370 --disable-float8-byval disable float8 passed by value
1371 --disable-largefile omit support
for large files
1374 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1375 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1377 --with-includes=DIRS
look for additional header files
in DIRS
1378 --with-libraries=DIRS
look for additional libraries
in DIRS
1379 --with-libs=DIRS alternative spelling of
--with-libraries
1380 --with-pgport=PORTNUM
set default port number
[5432]
1381 --with-blocksize=BLOCKSIZE
set table block size
in kB
[8]
1382 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1383 --with-wal-blocksize=BLOCKSIZE
set WAL block size
in kB
[8]
1384 --with-wal-segsize=SEGSIZE
set WAL segment size
in MB
[16]
1385 --with-tcl build Tcl modules
(PL
/Tcl
)
1386 --with-tclconfig=DIR tclConfig.sh is
in DIR
1387 --with-perl build Perl modules
(PL
/Perl
)
1388 --with-python build Python modules
(PL
/Python
)
1389 --with-gssapi build with GSSAPI support
1390 --with-krb5 build with Kerberos
5 support
1391 --with-krb-srvnam=NAME default service principal name
in Kerberos
[postgres
]
1392 --with-pam build with PAM support
1393 --with-ldap build with LDAP support
1394 --with-bonjour build with Bonjour support
1395 --with-openssl build with OpenSSL support
1396 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1397 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1398 --with-ossp-uuid use OSSP UUID library when building contrib
/uuid-ossp
1399 --with-libxml build with XML support
1400 --with-libxslt use XSLT support when building contrib
/xml2
1401 --with-system-tzdata=DIR use system
time zone data
in DIR
1402 --without-zlib do not use Zlib
1403 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1405 Some influential environment variables
:
1406 CC C compiler
command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1409 nonstandard directory
<lib dir
>
1410 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1411 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1412 you have headers
in a nonstandard directory
<include dir
>
1416 location of DocBook stylesheets
1418 Use these variables to override the choices made by
`configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1421 Report bugs to <pgsql-bugs@postgresql.org>.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" || continue
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1449 .) # We are building in place.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1473 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1482 PostgreSQL configure 8.4devel
1483 generated by GNU Autoconf 2.61
1485 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1486 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1490 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1498 It was created by PostgreSQL $as_me 8.4devel, which was
1499 generated by GNU Autoconf 2.61. Invocation command line was
1511 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1512 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1513 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1514 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1515 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1517 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1518 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1520 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1521 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1522 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1523 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1524 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1525 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1526 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 echo "PATH: $as_dir"
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1559 ac_must_keep_next=false
1565 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1570 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1573 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1575 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576 if test $ac_must_keep_next = true; then
1577 ac_must_keep_next=false # Got value, back to normal.
1580 *=* | --config-cache | -C | -disable-* | --disable-* \
1581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583 | -with-* | --with-* | -without-* | --without-* | --x)
1584 case "$ac_configure_args0 " in
1585 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1588 -* ) ac_must_keep_next=true ;;
1591 ac_configure_args="$ac_configure_args '$ac_arg'"
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log. We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605 # Save into config.log some information that might help in debugging.
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1615 # The following way of writing the cache mishandles newlines in values,
1617 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1618 eval ac_val=\$$ac_var
1622 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1623 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1626 _ | IFS | as_nl) ;; #(
1627 *) $as_unset $ac_var ;;
1632 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1633 *${as_nl}ac_space=\ *)
1635 "s/'\''/'\''\\\\'\'''\''/g;
1636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1647 ## ----------------- ##
1648 ## Output variables. ##
1649 ## ----------------- ##
1652 for ac_var in $ac_subst_vars
1654 eval ac_val=\$$ac_var
1656 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 echo "$ac_var='\''$ac_val'\''"
1662 if test -n "$ac_subst_files"; then
1664 ## ------------------- ##
1665 ## File substitutions. ##
1666 ## ------------------- ##
1669 for ac_var in $ac_subst_files
1671 eval ac_val=\$$ac_var
1673 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1675 echo "$ac_var='\''$ac_val'\''"
1680 if test -s confdefs.h; then
1690 test "$ac_signal" != 0 &&
1691 echo "$as_me: caught signal $ac_signal"
1692 echo "$as_me: exit $exit_status"
1694 rm -f core *.core core.conftest.* &&
1695 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1698 for ac_signal in 1 2 13 15; do
1699 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1703 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1704 rm -f -r conftest* confdefs.h
1706 # Predefined preprocessor variables.
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_NAME "$PACKAGE_NAME"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_STRING "$PACKAGE_STRING"
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1733 # Let the site file select an alternate cache file if it wants to.
1734 # Prefer explicitly selected file to automatically selected ones.
1735 if test -n "$CONFIG_SITE"; then
1736 set x "$CONFIG_SITE"
1737 elif test "x$prefix" != xNONE; then
1738 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1740 set x "$ac_default_prefix/share/config.site" \
1741 "$ac_default_prefix/etc/config.site"
1746 if test -r "$ac_site_file"; then
1747 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1748 echo "$as_me: loading site script $ac_site_file" >&6;}
1749 sed 's/^/| /' "$ac_site_file" >&5
1754 if test -r "$cache_file"; then
1755 # Some versions of bash will fail to source /dev/null (special
1756 # files actually), so we avoid doing that.
1757 if test -f "$cache_file"; then
1758 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1759 echo "$as_me: loading cache $cache_file" >&6;}
1761 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1762 *) . "./$cache_file";;
1766 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1767 echo "$as_me: creating cache $cache_file" >&6;}
1771 # Check that the precious variables saved in the cache have kept the same
1773 ac_cache_corrupted=false
1774 for ac_var in $ac_precious_vars; do
1775 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1776 eval ac_new_set=\$ac_env_${ac_var}_set
1777 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1778 eval ac_new_val=\$ac_env_${ac_var}_value
1779 case $ac_old_set,$ac_new_set in
1781 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1782 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1783 ac_cache_corrupted=: ;;
1785 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1786 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1790 if test "x$ac_old_val" != "x$ac_new_val"; then
1791 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1792 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1793 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1794 echo "$as_me: former value
: $ac_old_val" >&2;}
1795 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1796 echo "$as_me: current value
: $ac_new_val" >&2;}
1797 ac_cache_corrupted=:
1800 # Pass precious variables to config.status.
1801 if test "$ac_new_set" = set; then
1803 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1804 *) ac_arg=$ac_var=$ac_new_val ;;
1806 case " $ac_configure_args " in
1807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1808 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1812 if $ac_cache_corrupted; then
1813 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1814 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1815 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1816 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1817 { (exit 1); exit 1; }; }
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1856 for ac_dir in config "$srcdir"/config; do
1857 if test -f "$ac_dir/install-sh"; then
1859 ac_install_sh="$ac_aux_dir/install-sh -c"
1861 elif test -f "$ac_dir/install.sh"; then
1863 ac_install_sh="$ac_aux_dir/install.sh -c"
1865 elif test -f "$ac_dir/shtool"; then
1867 ac_install_sh="$ac_aux_dir/shtool install -c"
1871 if test -z "$ac_aux_dir"; then
1872 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1873 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1874 { (exit 1); exit 1; }; }
1877 # These three variables are undocumented and unsupported,
1878 # and are intended to be withdrawn in a future Autoconf release.
1879 # They can cause serious problems if a builder's source tree is in a directory
1880 # whose full name contains unusual characters.
1881 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1882 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1883 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1887 configure_args=$ac_configure_args
1891 cat >>confdefs.h <<_ACEOF
1892 #define PG_VERSION "$PACKAGE_VERSION"
1896 # Make sure we can run config.sub.
1897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1898 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1899 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1900 { (exit 1); exit 1; }; }
1902 { echo "$as_me:$LINENO: checking build system type" >&5
1903 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1904 if test "${ac_cv_build+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 ac_build_alias=$build_alias
1908 test "x$ac_build_alias" = x &&
1909 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1910 test "x$ac_build_alias" = x &&
1911 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1912 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1913 { (exit 1); exit 1; }; }
1914 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1915 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1916 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1917 { (exit 1); exit 1; }; }
1920 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1921 echo "${ECHO_T}$ac_cv_build" >&6; }
1922 case $ac_cv_build in
1924 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1925 echo "$as_me: error: invalid value of canonical build" >&2;}
1926 { (exit 1); exit 1; }; };;
1929 ac_save_IFS=$IFS; IFS='-'
1935 # Remember, the first character of IFS is used to create $*,
1936 # except with old shells:
1939 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1942 { echo "$as_me:$LINENO: checking host system type" >&5
1943 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1944 if test "${ac_cv_host+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test "x$host_alias" = x; then
1948 ac_cv_host=$ac_cv_build
1950 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1951 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1952 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1953 { (exit 1); exit 1; }; }
1957 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1958 echo "${ECHO_T}$ac_cv_host" >&6; }
1961 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1962 echo "$as_me: error: invalid value of canonical host" >&2;}
1963 { (exit 1); exit 1; }; };;
1966 ac_save_IFS=$IFS; IFS='-'
1972 # Remember, the first character of IFS is used to create $*,
1973 # except with old shells:
1976 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1981 { echo "$as_me:$LINENO: checking which template to use" >&5
1982 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1985 pgac_args="$pgac_args with_template"
1988 # Check whether --with-template was given.
1989 if test "${with_template+set}" = set; then
1990 withval=$with_template;
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; }; }
1998 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1999 echo "$as_me: error: argument required for --with-template option" >&2;}
2000 { (exit 1); exit 1; }; }
2005 list) echo; ls "$srcdir/src/template"; exit;;
2006 *) if test -f "$srcdir/src/template/$with_template" ; then
2009 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2010 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2011 { (exit 1); exit 1; }; }
2020 # --with-template not given
2023 aix*) template=aix ;;
2024 bsdi*) template=bsdi ;;
2025 cygwin*) template=cygwin ;;
2026 darwin*) template=darwin ;;
2027 dgux*) template=dgux ;;
2028 freebsd*) template=freebsd ;;
2029 hpux*) template=hpux ;;
2030 irix*) template=irix ;;
2031 linux*|gnu*|k*bsd*-gnu)
2033 mingw*) template=win32 ;;
2034 netbsd*) template=netbsd ;;
2035 nextstep*) template=nextstep ;;
2036 openbsd*) template=openbsd ;;
2037 osf*) template=osf ;;
2038 sco*) template=sco ;;
2039 solaris*) template=solaris ;;
2040 sunos*) template=sunos4 ;;
2042 case $host_vendor in
2043 univel) template=univel ;;
2045 sysv4*) template=svr4 ;;
2046 sysv5*) template=unixware ;;
2047 ultrix*) template=ultrix4 ;;
2050 if test x"$template" = x"" ; then
2051 { { echo "$as_me:$LINENO: error:
2052 *******************************************************************
2053 PostgreSQL has apparently not been ported to your platform yet.
2054 To try a manual configuration, look into the src/template directory
2055 for a similar platform and use the '--with-template=' option.
2057 Please also contact <pgsql-ports@postgresql.org> to see about
2058 rectifying this. Include the above 'checking host system type...'
2060 *******************************************************************
2062 echo "$as_me: error:
2063 *******************************************************************
2064 PostgreSQL has apparently not been ported to your platform yet.
2065 To try a manual configuration, look into the src/template directory
2066 for a similar platform and use the '--with-template=' option.
2068 Please also contact <pgsql-ports@postgresql.org> to see about
2069 rectifying this. Include the above 'checking host system type...'
2071 *******************************************************************
2073 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $template" >&5
2082 echo "${ECHO_T}$template" >&6; }
2087 # Initialize default assumption that we do not need separate assembly code
2088 # for TAS (test-and-set). This can be overridden by the template file
2089 # when it's executed.
2096 ## Command line options
2100 # Add non-standard directories to the include path
2103 pgac_args="$pgac_args with_includes"
2106 # Check whether --with-includes was given.
2107 if test "${with_includes+set}" = set; then
2108 withval=$with_includes;
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; }; }
2116 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2117 echo "$as_me: error: argument required for --with-includes option" >&2;}
2118 { (exit 1); exit 1; }; }
2131 # Add non-standard directories to the library search path
2134 pgac_args="$pgac_args with_libraries"
2137 # Check whether --with-libraries was given.
2138 if test "${with_libraries+set}" = set; then
2139 withval=$with_libraries;
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 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2148 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2149 { (exit 1); exit 1; }; }
2152 LIBRARY_DIRS=$withval
2161 pgac_args="$pgac_args with_libs"
2164 # Check whether --with-libs was given.
2165 if test "${with_libs+set}" = set; then
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 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2175 echo "$as_me: error: argument required for --with-libs option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2189 # 64-bit integer date/time storage: enabled by default.
2191 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2192 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2194 pgac_args="$pgac_args enable_integer_datetimes"
2196 # Check whether --enable-integer-datetimes was given.
2197 if test "${enable_integer_datetimes+set}" = set; then
2198 enableval=$enable_integer_datetimes;
2202 cat >>confdefs.h <<\_ACEOF
2203 #define USE_INTEGER_DATETIMES 1
2211 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2212 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2213 { (exit 1); exit 1; }; }
2218 enable_integer_datetimes=yes
2220 cat >>confdefs.h <<\_ACEOF
2221 #define USE_INTEGER_DATETIMES 1
2227 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2228 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2234 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2235 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2237 pgac_args="$pgac_args enable_nls"
2239 # Check whether --enable-nls was given.
2240 if test "${enable_nls+set}" = set; then
2241 enableval=$enable_nls;
2251 WANTED_LANGUAGES=$enableval
2261 if test "$enable_nls" = yes; then
2263 cat >>confdefs.h <<\_ACEOF
2264 #define ENABLE_NLS 1
2269 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2270 echo "${ECHO_T}$enable_nls" >&6; }
2275 # Default port number (--with-pgport), default 5432
2277 { echo "$as_me:$LINENO: checking for default port number" >&5
2278 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2280 pgac_args="$pgac_args with_pgport"
2283 # Check whether --with-pgport was given.
2284 if test "${with_pgport+set}" = set; then
2285 withval=$with_pgport;
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 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2294 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2295 { (exit 1); exit 1; }; }
2298 default_port=$withval
2307 { echo "$as_me:$LINENO: result: $default_port" >&5
2308 echo "${ECHO_T}$default_port" >&6; }
2309 # Need both of these because some places want an integer and some a string
2311 cat >>confdefs.h <<_ACEOF
2312 #define DEF_PGPORT ${default_port}
2316 cat >>confdefs.h <<_ACEOF
2317 #define DEF_PGPORT_STR "${default_port}"
2323 # Option to disable shared libraries
2326 pgac_args="$pgac_args enable_shared"
2328 # Check whether --enable-shared was given.
2329 if test "${enable_shared+set}" = set; then
2330 enableval=$enable_shared;
2339 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2340 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2341 { (exit 1); exit 1; }; }
2354 # '-rpath'-like feature can be disabled
2357 pgac_args="$pgac_args enable_rpath"
2359 # Check whether --enable-rpath was given.
2360 if test "${enable_rpath+set}" = set; then
2361 enableval=$enable_rpath;
2370 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2371 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2372 { (exit 1); exit 1; }; }
2388 pgac_args="$pgac_args enable_spinlocks"
2390 # Check whether --enable-spinlocks was given.
2391 if test "${enable_spinlocks+set}" = set; then
2392 enableval=$enable_spinlocks;
2401 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2402 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2403 { (exit 1); exit 1; }; }
2408 enable_spinlocks=yes
2415 # --enable-debug adds -g to compiler flags
2418 pgac_args="$pgac_args enable_debug"
2420 # Check whether --enable-debug was given.
2421 if test "${enable_debug+set}" = set; then
2422 enableval=$enable_debug;
2431 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2432 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2433 { (exit 1); exit 1; }; }
2446 # --enable-profiling enables gcc profiling
2449 pgac_args="$pgac_args enable_profiling"
2451 # Check whether --enable-profiling was given.
2452 if test "${enable_profiling+set}" = set; then
2453 enableval=$enable_profiling;
2462 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2463 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2464 { (exit 1); exit 1; }; }
2477 # --enable-coverage enables generation of code coverage metrics with gcov
2480 pgac_args="$pgac_args enable_coverage"
2482 # Check whether --enable-coverage was given.
2483 if test "${enable_coverage+set}" = set; then
2484 enableval=$enable_coverage;
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_GCOV+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$GCOV"; then
2497 ac_cv_prog_GCOV="$GCOV" # 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_GCOV="$ac_prog"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 GCOV=$ac_cv_prog_GCOV
2517 if test -n "$GCOV"; then
2518 { echo "$as_me:$LINENO: result: $GCOV" >&5
2519 echo "${ECHO_T}$GCOV" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2526 test -n "$GCOV" && break
2529 if test -z "$GCOV"; then
2530 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2531 echo "$as_me: error: gcov not found" >&2;}
2532 { (exit 1); exit 1; }; }
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_LCOV+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$LCOV"; then
2544 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_LCOV="$ac_prog"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 LCOV=$ac_cv_prog_LCOV
2564 if test -n "$LCOV"; then
2565 { echo "$as_me:$LINENO: result: $LCOV" >&5
2566 echo "${ECHO_T}$LCOV" >&6; }
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2573 test -n "$LCOV" && break
2576 if test -z "$LCOV"; then
2577 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2578 echo "$as_me: error: lcov not found" >&2;}
2579 { (exit 1); exit 1; }; }
2581 for ac_prog in genhtml
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_GENHTML+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$GENHTML"; then
2591 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_GENHTML="$ac_prog"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 GENHTML=$ac_cv_prog_GENHTML
2611 if test -n "$GENHTML"; then
2612 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2613 echo "${ECHO_T}$GENHTML" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2620 test -n "$GENHTML" && break
2623 if test -z "$GENHTML"; then
2624 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2625 echo "$as_me: error: genhtml not found" >&2;}
2626 { (exit 1); exit 1; }; }
2633 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2634 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2635 { (exit 1); exit 1; }; }
2651 pgac_args="$pgac_args enable_dtrace"
2653 # Check whether --enable-dtrace was given.
2654 if test "${enable_dtrace+set}" = set; then
2655 enableval=$enable_dtrace;
2659 cat >>confdefs.h <<\_ACEOF
2660 #define ENABLE_DTRACE 1
2663 for ac_prog in dtrace
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666 set dummy $ac_prog; ac_word=$2
2667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2669 if test "${ac_cv_prog_DTRACE+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 if test -n "$DTRACE"; then
2673 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_DTRACE="$ac_prog"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 DTRACE=$ac_cv_prog_DTRACE
2693 if test -n "$DTRACE"; then
2694 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2695 echo "${ECHO_T}$DTRACE" >&6; }
2697 { echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6; }
2702 test -n "$DTRACE" && break
2705 if test -z "$DTRACE"; then
2706 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2707 echo "$as_me: error: dtrace not found" >&2;}
2708 { (exit 1); exit 1; }; }
2716 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2717 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2718 { (exit 1); exit 1; }; }
2733 { echo "$as_me:$LINENO: checking for block size" >&5
2734 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2736 pgac_args="$pgac_args with_blocksize"
2739 # Check whether --with-blocksize was given.
2740 if test "${with_blocksize+set}" = set; then
2741 withval=$with_blocksize;
2744 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2745 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2746 { (exit 1); exit 1; }; }
2749 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2750 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2751 { (exit 1); exit 1; }; }
2763 case ${blocksize} in
2770 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2771 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2772 { (exit 1); exit 1; }; }
2774 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2775 echo "${ECHO_T}${blocksize}kB" >&6; }
2778 cat >>confdefs.h <<_ACEOF
2779 #define BLCKSZ ${BLCKSZ}
2784 # Relation segment size
2786 { echo "$as_me:$LINENO: checking for segment size" >&5
2787 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2789 pgac_args="$pgac_args with_segsize"
2792 # Check whether --with-segsize was given.
2793 if test "${with_segsize+set}" = set; then
2794 withval=$with_segsize;
2797 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2798 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2799 { (exit 1); exit 1; }; }
2802 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2803 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2804 { (exit 1); exit 1; }; }
2816 # this expression is set up to avoid unnecessary integer overflow
2817 # blocksize is already guaranteed to be a factor of 1024
2818 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2819 test $? -eq 0 || exit 1
2820 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2821 echo "${ECHO_T}${segsize}GB" >&6; }
2824 cat >>confdefs.h <<_ACEOF
2825 #define RELSEG_SIZE ${RELSEG_SIZE}
2832 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2833 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2835 pgac_args="$pgac_args with_wal_blocksize"
2838 # Check whether --with-wal-blocksize was given.
2839 if test "${with_wal_blocksize+set}" = set; then
2840 withval=$with_wal_blocksize;
2843 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2844 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2845 { (exit 1); exit 1; }; }
2848 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2849 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2850 { (exit 1); exit 1; }; }
2853 wal_blocksize=$withval
2862 case ${wal_blocksize} in
2863 1) XLOG_BLCKSZ=1024;;
2864 2) XLOG_BLCKSZ=2048;;
2865 4) XLOG_BLCKSZ=4096;;
2866 8) XLOG_BLCKSZ=8192;;
2867 16) XLOG_BLCKSZ=16384;;
2868 32) XLOG_BLCKSZ=32768;;
2869 64) XLOG_BLCKSZ=65536;;
2870 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2871 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2872 { (exit 1); exit 1; }; }
2874 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2875 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2878 cat >>confdefs.h <<_ACEOF
2879 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2886 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2887 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2889 pgac_args="$pgac_args with_wal_segsize"
2892 # Check whether --with-wal-segsize was given.
2893 if test "${with_wal_segsize+set}" = set; then
2894 withval=$with_wal_segsize;
2897 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2898 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2899 { (exit 1); exit 1; }; }
2902 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2903 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2904 { (exit 1); exit 1; }; }
2907 wal_segsize=$withval
2916 case ${wal_segsize} in
2924 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2925 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2926 { (exit 1); exit 1; }; }
2928 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2929 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2932 cat >>confdefs.h <<_ACEOF
2933 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2941 # For historical reasons you can also use --with-CC to specify the C compiler
2942 # to use, although the standard way to do this is to set the CC environment
2945 pgac_args="$pgac_args with_CC"
2948 # Check whether --with-CC was given.
2949 if test "${with_CC+set}" = set; then
2953 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2954 echo "$as_me: error: argument required for --with-CC option" >&2;}
2955 { (exit 1); exit 1; }; }
2958 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2959 echo "$as_me: error: argument required for --with-CC option" >&2;}
2960 { (exit 1); exit 1; }; }
2972 aix) pgac_cc_list="gcc xlc";;
2973 irix) pgac_cc_list="cc";; # no gcc
2974 *) pgac_cc_list="gcc cc";;
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in $pgac_cc_list
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$CC"; then
3014 { echo "$as_me:$LINENO: result: $CC" >&5
3015 echo "${ECHO_T}$CC" >&6; }
3017 { echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6; }
3022 test -n "$CC" && break
3025 if test -z "$CC"; then
3027 for ac_prog in $pgac_cc_list
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_ac_ct_CC="$ac_prog"
3047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3059 echo "${ECHO_T}$ac_ct_CC" >&6; }
3061 { echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6; }
3066 test -n "$ac_ct_CC" && break
3069 if test "x$ac_ct_CC" = x; then
3072 case $cross_compiling:$ac_tool_warned in
3074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3075 whose name does not start with the host triplet. If you think this
3076 configuration is useful to you, please write to autoconf@gnu.org." >&5
3077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3078 whose name does not start with the host triplet. If you think this
3079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3080 ac_tool_warned=yes ;;
3087 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3088 See \`config.log
' for more details." >&5
3089 echo "$as_me: error: no acceptable C compiler found in \$PATH
3090 See \`config.log' for more details.
" >&2;}
3091 { (exit 1); exit 1; }; }
3093 # Provide some information about the compiler.
3094 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3095 ac_compiler=`set X $ac_compile; echo $2`
3096 { (ac_try="$ac_compiler --version >&5"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compiler --version >&5") 2>&5
3104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3105 (exit $ac_status); }
3106 { (ac_try="$ac_compiler -v >&5"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compiler -v >&5") 2>&5
3114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3115 (exit $ac_status); }
3116 { (ac_try="$ac_compiler -V >&5"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compiler -V >&5") 2>&5
3124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3125 (exit $ac_status); }
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 ac_clean_files_save=$ac_clean_files
3143 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3144 # Try to create an executable without -o first, disregard a.out.
3145 # It will help us diagnose broken compilers, and finding out an intuition
3147 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3148 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3149 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151 # List of possible output files, starting from the most likely.
3152 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3153 # only as a last resort. b.out is created by i960 compilers.
3154 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3156 # The IRIX 6 linker writes into existing files which may not be
3157 # executable, retaining their permissions. Remove them first so a
3158 # subsequent execution test works.
3160 for ac_file in $ac_files
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3164 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3169 if { (ac_try="$ac_link_default"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_link_default") 2>&5
3177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3178 (exit $ac_status); }; then
3179 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3180 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3181 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3182 # so that the user can short-circuit this test for compilers unknown to
3184 for ac_file in $ac_files ''
3186 test -f "$ac_file" || continue
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3191 # We found the default executable, but exeext='' is most
3195 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199 # We set ac_cv_exeext here because the later test for it is not
3200 # safe: cross compilers may not add the suffix if given an `-o'
3201 # argument, so we may need to know it at that point already.
3202 # Even if this section looks crufty: it has the advantage of
3209 test "$ac_cv_exeext" = no && ac_cv_exeext=
3215 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3216 echo "${ECHO_T}$ac_file" >&6; }
3217 if test -z "$ac_file"; then
3218 echo "$as_me: failed program was
:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3221 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3222 See \
`config.log' for more details." >&5
3223 echo "$as_me: error: C compiler cannot create executables
3224 See \`config.log
' for more details." >&2;}
3225 { (exit 77); exit 77; }; }
3228 ac_exeext=$ac_cv_exeext
3230 # Check that the compiler produces executables we can run. If not, either
3231 # the compiler is broken, or we cross compile.
3232 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3235 # If not cross compiling, check that we can run a simple program.
3236 if test "$cross_compiling" != yes; then
3237 if { ac_try='.
/$ac_file'
3238 { (case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_try") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3249 if test "$cross_compiling" = maybe; then
3252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3253 If you meant to cross compile, use \`--host'.
3254 See \
`config.log' for more details." >&5
3255 echo "$as_me: error: cannot run C compiled programs.
3256 If you meant to cross compile, use \`--host'.
3257 See \`config.log' for more details.
" >&2;}
3258 { (exit 1); exit 1; }; }
3262 { echo "$as_me:$LINENO: result
: yes" >&5
3263 echo "${ECHO_T}yes" >&6; }
3265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3266 ac_clean_files=$ac_clean_files_save
3267 # Check that the compiler produces executables we can run. If not, either
3268 # the compiler is broken, or we cross compile.
3269 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3270 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3271 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3272 echo "${ECHO_T}$cross_compiling" >&6; }
3274 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3275 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3276 if { (ac_try="$ac_link"
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_link") 2>&5
3284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3285 (exit $ac_status); }; then
3286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3288 # work properly (i.e., refer to `conftest.exe'), while it won't with
3290 for ac_file in conftest.exe conftest conftest.*; do
3291 test -f "$ac_file" || continue
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3301 See \
`config.log' for more details." >&5
3302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3303 See \`config.log
' for more details." >&2;}
3304 { (exit 1); exit 1; }; }
3307 rm -f conftest$ac_cv_exeext
3308 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3309 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3311 rm -f conftest.$ac_ext
3312 EXEEXT=$ac_cv_exeext
3314 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3316 if test "${ac_cv_objext+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.o conftest.obj
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; then
3345 for ac_file in conftest.o conftest.obj conftest.*; do
3346 test -f "$ac_file" || continue;
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3349 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3354 echo "$as_me: failed program was:" >&5
3355 sed 's
/^
/|
/' conftest.$ac_ext >&5
3357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details.
" >&5
3359 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3360 See \
`config.log' for more details." >&2;}
3361 { (exit 1); exit 1; }; }
3364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3366 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3367 echo "${ECHO_T}$ac_cv_objext" >&6; }
3368 OBJEXT=$ac_cv_objext
3370 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3397 *) ac_try_echo
=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1
>conftest.err
3404 cat conftest.err
>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest.
$ac_objext; then
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.
$ac_ext >&5
3418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3419 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3422 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3424 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3425 ac_test_CFLAGS
=${CFLAGS+set}
3426 ac_save_CFLAGS
=$CFLAGS
3427 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3429 if test "${ac_cv_prog_cc_g+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 ac_save_c_werror_flag
=$ac_c_werror_flag
3433 ac_c_werror_flag
=yes
3436 cat >conftest.
$ac_ext <<_ACEOF
3439 cat confdefs.h
>>conftest.
$ac_ext
3440 cat >>conftest.
$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3451 rm -f conftest.
$ac_objext
3452 if { (ac_try
="$ac_compile"
3454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_compile") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } && {
3465 test -z "$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3467 } && test -s conftest.$ac_objext; then
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3493 *) ac_try_echo
=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1
>conftest.err
3500 cat conftest.err
>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.
$ac_objext; then
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.
$ac_ext >&5
3511 ac_c_werror_flag
=$ac_save_c_werror_flag
3513 cat >conftest.
$ac_ext <<_ACEOF
3516 cat confdefs.h
>>conftest.
$ac_ext
3517 cat >>conftest.
$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3528 rm -f conftest.
$ac_objext
3529 if { (ac_try
="$ac_compile"
3531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_c_werror_flag=$ac_save_c_werror_flag
3562 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3564 if test "$ac_test_CFLAGS" = set; then
3565 CFLAGS=$ac_save_CFLAGS
3566 elif test $ac_cv_prog_cc_g = yes; then
3567 if test "$GCC" = yes; then
3573 if test "$GCC" = yes; then
3579 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3580 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_cc_c89+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_cv_prog_cc_c89=no
3586 cat >conftest.$ac_ext <<_ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3594 #include <sys/types.h>
3595 #include <sys/stat.h>
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3610 s = g (p, va_arg (v,int));
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
3618 as 'x'. The following induces an error, until -std is added to get
3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
3621 that's true only with -std. */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 CC="$ac_save_CC $ac_arg"
3647 rm -f conftest.$ac_objext
3648 if { (ac_try="$ac_compile"
3650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3651 *) ac_try_echo
=$ac_try;;
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_compile") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1
>conftest.err
3658 cat conftest.err
>&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest.
$ac_objext; then
3664 ac_cv_prog_cc_c89
=$ac_arg
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.
$ac_ext >&5
3672 rm -f core conftest.err conftest.
$ac_objext
3673 test "x$ac_cv_prog_cc_c89" != "xno" && break
3675 rm -f conftest.
$ac_ext
3680 case "x$ac_cv_prog_cc_c89" in
3682 { echo "$as_me:$LINENO: result: none needed" >&5
3683 echo "${ECHO_T}none needed" >&6; } ;;
3685 { echo "$as_me:$LINENO: result: unsupported" >&5
3686 echo "${ECHO_T}unsupported" >&6; } ;;
3688 CC
="$CC $ac_cv_prog_cc_c89"
3689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3690 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3695 ac_cpp
='$CPP $CPPFLAGS'
3696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3701 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3702 # but has idiosyncrasies of its own. We assume icc will define
3703 # __INTEL_COMPILER regardless of CFLAGS.
3705 cat >conftest.
$ac_ext <<_ACEOF
3708 cat confdefs.h
>>conftest.
$ac_ext
3709 cat >>conftest.
$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3715 #ifndef __INTEL_COMPILER
3722 rm -f conftest.
$ac_objext
3723 if { (ac_try
="$ac_compile"
3725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_compile") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest.$ac_objext; then
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 . "$srcdir/src/template/$template" || exit
3756 # CFLAGS are selected so:
3757 # If the user specifies something in the environment, that is used.
3758 # else: If the template file set something, that is used.
3759 # else: If coverage was enabled, don't set anything.
3760 # else: If the compiler is GCC, then we use -O2.
3761 # else: If the compiler is something else, then we use -O.
3763 if test "$ac_env_CFLAGS_set" = set; then
3764 CFLAGS=$ac_env_CFLAGS_value
3765 elif test "${CFLAGS+set}" = set; then
3766 : # (keep what template set)
3767 elif test "$enable_coverage" = yes; then
3768 : # no optimization by default
3769 elif test "$GCC" = yes; then
3772 # if the user selected debug mode, don't use -O
3773 if test "$enable_debug" != yes; then
3778 # Some versions of GCC support some additional useful warning flags.
3779 # Check whether they are supported, and add them to CFLAGS if so.
3780 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3782 if test "$GCC" = yes -a "$ICC" = no; then
3783 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3784 # These work in some but not all gcc versions
3785 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3786 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3787 pgac_save_CFLAGS=$CFLAGS
3788 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3808 *) ac_try_echo
=$ac_try;;
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_compile") 2>conftest.er1
3813 grep -v '^ *+' conftest.er1
>conftest.err
3815 cat conftest.err
>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && {
3818 test -z "$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 } && test -s conftest.
$ac_objext; then
3821 { echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6; }
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.
$ac_ext >&5
3827 CFLAGS
="$pgac_save_CFLAGS"
3828 { echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6; }
3832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3834 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3835 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3836 pgac_save_CFLAGS
=$CFLAGS
3837 CFLAGS
="$pgac_save_CFLAGS -Wendif-labels"
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3853 rm -f conftest.
$ac_objext
3854 if { (ac_try
="$ac_compile"
3856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest.$ac_objext; then
3870 { echo "$as_me:$LINENO: result: yes" >&5
3871 echo "${ECHO_T}yes" >&6; }
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 CFLAGS="$pgac_save_CFLAGS"
3877 { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 # Disable strict-aliasing rules; needed for gcc 3.3+
3884 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3885 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3886 pgac_save_CFLAGS=$CFLAGS
3887 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3907 *) ac_try_echo
=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_compile") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1
>conftest.err
3914 cat conftest.err
>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } && {
3917 test -z "$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3919 } && test -s conftest.
$ac_objext; then
3920 { echo "$as_me:$LINENO: result: yes" >&5
3921 echo "${ECHO_T}yes" >&6; }
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.
$ac_ext >&5
3926 CFLAGS
="$pgac_save_CFLAGS"
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3933 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3934 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3935 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3936 pgac_save_CFLAGS
=$CFLAGS
3937 CFLAGS
="$pgac_save_CFLAGS -fwrapv"
3938 cat >conftest.
$ac_ext <<_ACEOF
3941 cat confdefs.h
>>conftest.
$ac_ext
3942 cat >>conftest.
$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3953 rm -f conftest.
$ac_objext
3954 if { (ac_try
="$ac_compile"
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3970 { echo "$as_me:$LINENO: result: yes" >&5
3971 echo "${ECHO_T}yes" >&6; }
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 CFLAGS="$pgac_save_CFLAGS"
3977 { echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6; }
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 elif test "$ICC" = yes; then
3984 # Intel's compiler has a bug/misoptimization in checking for
3985 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3986 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3987 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3988 pgac_save_CFLAGS=$CFLAGS
3989 CFLAGS="$pgac_save_CFLAGS -mp1"
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4009 *) ac_try_echo
=$ac_try;;
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4014 grep -v '^ *+' conftest.er1
>conftest.err
4016 cat conftest.err
>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.
$ac_objext; then
4022 { echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6; }
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.
$ac_ext >&5
4028 CFLAGS
="$pgac_save_CFLAGS"
4029 { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 # Make sure strict aliasing is off (though this is said to be the default)
4036 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4037 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4038 pgac_save_CFLAGS
=$CFLAGS
4039 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4055 rm -f conftest.
$ac_objext
4056 if { (ac_try
="$ac_compile"
4058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4072 { echo "$as_me:$LINENO: result: yes" >&5
4073 echo "${ECHO_T}yes" >&6; }
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 CFLAGS="$pgac_save_CFLAGS"
4079 { echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6; }
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 elif test x"${CC}" = x"xlc"; then
4086 # AIX xlc has to have strict aliasing turned off too
4087 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4088 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4089 pgac_save_CFLAGS=$CFLAGS
4090 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4106 rm -f conftest.$ac_objext
4107 if { (ac_try="$ac_compile"
4109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4110 *) ac_try_echo
=$ac_try;;
4112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_compile") 2>conftest.er1
4115 grep -v '^ *+' conftest.er1
>conftest.err
4117 cat conftest.err
>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } && {
4120 test -z "$ac_c_werror_flag" ||
4121 test ! -s conftest.err
4122 } && test -s conftest.
$ac_objext; then
4123 { echo "$as_me:$LINENO: result: yes" >&5
4124 echo "${ECHO_T}yes" >&6; }
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.
$ac_ext >&5
4129 CFLAGS
="$pgac_save_CFLAGS"
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4138 # supply -g if --enable-debug
4139 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4143 # enable code coverage if --enable-coverage
4144 if test "$enable_coverage" = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
4148 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4149 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4150 { (exit 1); exit 1; }; }
4154 # enable profiling if --enable-profiling
4155 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4156 if test "$GCC" = yes; then
4158 cat >>confdefs.h
<<\_ACEOF
4159 #define PROFILE_PID_DIR 1
4162 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4164 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4165 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4166 { (exit 1); exit 1; }; }
4170 # We already have this in Makefile.win32, but configure needs it too
4171 if test "$PORTNAME" = "win32"; then
4172 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4175 # Check if the compiler still works with the template settings
4176 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4177 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4178 cat >conftest.
$ac_ext <<_ACEOF
4181 cat confdefs.h
>>conftest.
$ac_ext
4182 cat >>conftest.
$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4193 rm -f conftest.
$ac_objext conftest
$ac_exeext
4194 if { (ac_try
="$ac_link"
4196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_link") 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest$ac_exeext &&
4210 $as_test_x conftest$ac_exeext; then
4211 { echo "$as_me:$LINENO: result: yes" >&5
4212 echo "${ECHO_T}yes" >&6; }
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 { echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6; }
4219 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4220 echo "$as_me: error: cannot proceed" >&2;}
4221 { (exit 1); exit 1; }; }
4224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4225 conftest$ac_exeext conftest.$ac_ext
4227 # Defend against gcc -ffast-math
4228 if test "$GCC" = yes; then
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4239 #ifdef __FAST_MATH__
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4250 *) ac_try_echo
=$ac_try;;
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_compile") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1
>conftest.err
4257 cat conftest.err
>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_c_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest.
$ac_objext; then
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.
$ac_ext >&5
4268 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4269 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4270 { (exit 1); exit 1; }; }
4273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4277 ac_cpp
='$CPP $CPPFLAGS'
4278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4281 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4282 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4283 # On Suns, sometimes $CPP names a directory.
4284 if test -n "$CPP" && test -d "$CPP"; then
4287 if test -z "$CPP"; then
4288 if test "${ac_cv_prog_CPP+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 # Double quotes because CPP needs to be expanded
4292 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4295 for ac_c_preproc_warn_flag
in '' yes
4297 # Use a header file that comes with gcc, so configuring glibc
4298 # with a fresh cross-compiler works.
4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300 # <limits.h> exists even on freestanding compilers.
4301 # On the NeXT, cc -E runs the code through the compiler's parser,
4302 # not just through cpp. "Syntax error" is here to catch this case.
4303 cat >conftest.
$ac_ext <<_ACEOF
4306 cat confdefs.h
>>conftest.
$ac_ext
4307 cat >>conftest.
$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4310 # include <limits.h>
4312 # include <assert.h>
4316 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null && {
4329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 # Broken: fails on valid input.
4341 rm -f conftest.err conftest.$ac_ext
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <ac_nonexistent.h>
4353 if { (ac_try="$ac_cpp conftest.$ac_ext"
4355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4356 *) ac_try_echo
=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev
/null
&& {
4366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4369 # Broken: success on invalid input.
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4375 # Passes both tests.
4380 rm -f conftest.err conftest.
$ac_ext
4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384 rm -f conftest.err conftest.
$ac_ext
4385 if $ac_preproc_ok; then
4397 { echo "$as_me:$LINENO: result: $CPP" >&5
4398 echo "${ECHO_T}$CPP" >&6; }
4400 for ac_c_preproc_warn_flag
in '' yes
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat >conftest.
$ac_ext <<_ACEOF
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4415 # include <limits.h>
4417 # include <assert.h>
4421 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4429 grep -v '^ *+' conftest.er1 >conftest.err
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } >/dev/null && {
4434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 # Broken: fails on valid input.
4446 rm -f conftest.err conftest.$ac_ext
4448 # OK, works on sane cases. Now check whether nonexistent headers
4449 # can be detected and how.
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ac_nonexistent.h>
4458 if { (ac_try="$ac_cpp conftest.$ac_ext"
4460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4461 *) ac_try_echo
=$ac_try;;
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1
>conftest.err
4468 cat conftest.err
>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev
/null
&& {
4471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4474 # Broken: success on invalid input.
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.
$ac_ext >&5
4480 # Passes both tests.
4485 rm -f conftest.err conftest.
$ac_ext
4488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489 rm -f conftest.err conftest.
$ac_ext
4490 if $ac_preproc_ok; then
4493 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4494 See \`config.log' for more details." >&5
4495 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4496 See \`config.log' for more details." >&2;}
4497 { (exit 1); exit 1; }; }
4501 ac_cpp
='$CPP $CPPFLAGS'
4502 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4508 # Create compiler version string
4509 if test x
"$GCC" = x
"yes" ; then
4510 cc_string
="GCC `${CC} --version | sed q`"
4515 cat >>confdefs.h
<<_ACEOF
4516 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4522 # Set up TAS assembly code if needed; the template file has now had its
4523 # chance to request this.
4525 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4528 if test "$need_tas" = yes ; then
4537 # Automatic dependency tracking
4540 pgac_args
="$pgac_args enable_depend"
4542 # Check whether --enable-depend was given.
4543 if test "${enable_depend+set}" = set; then
4544 enableval
=$enable_depend;
4553 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4554 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4555 { (exit 1); exit 1; }; }
4569 # Enable assert checks
4572 pgac_args
="$pgac_args enable_cassert"
4574 # Check whether --enable-cassert was given.
4575 if test "${enable_cassert+set}" = set; then
4576 enableval
=$enable_cassert;
4580 cat >>confdefs.h
<<\_ACEOF
4581 #define USE_ASSERT_CHECKING 1
4589 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4590 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4591 { (exit 1); exit 1; }; }
4604 # Include directories
4607 IFS
="${IFS}${PATH_SEPARATOR}"
4608 # SRCH_INC comes from the template file
4609 for dir
in $with_includes $SRCH_INC; do
4610 if test -d "$dir"; then
4611 INCLUDES
="$INCLUDES -I$dir"
4613 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4614 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4622 # Library directories
4625 IFS
="${IFS}${PATH_SEPARATOR}"
4626 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4627 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4628 if test -d "$dir"; then
4629 LIBDIRS
="$LIBDIRS -L$dir"
4631 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4632 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4638 # Enable thread-safe client libraries
4640 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4641 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4642 if test "$PORTNAME" != "win32"; then
4644 pgac_args
="$pgac_args enable_thread_safety"
4646 # Check whether --enable-thread-safety was given.
4647 if test "${enable_thread_safety+set}" = set; then
4648 enableval
=$enable_thread_safety;
4657 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4658 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4659 { (exit 1); exit 1; }; }
4664 enable_thread_safety
=no
4670 # Win32 should always use threads
4672 pgac_args
="$pgac_args enable_thread_safety"
4674 # Check whether --enable-thread-safety was given.
4675 if test "${enable_thread_safety+set}" = set; then
4676 enableval
=$enable_thread_safety;
4685 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4686 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4687 { (exit 1); exit 1; }; }
4692 enable_thread_safety
=yes
4700 pgac_args
="$pgac_args enable_thread_safety_force"
4702 # Check whether --enable-thread-safety-force was given.
4703 if test "${enable_thread_safety_force+set}" = set; then
4704 enableval
=$enable_thread_safety_force;
4713 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4714 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4715 { (exit 1); exit 1; }; }
4720 enable_thread_safety_force
=no
4725 if test "$enable_thread_safety" = yes -o \
4726 "$enable_thread_safety_force" = yes; then
4727 enable_thread_safety
="yes" # for 'force'
4729 cat >>confdefs.h
<<\_ACEOF
4730 #define ENABLE_THREAD_SAFETY 1
4734 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4735 echo "${ECHO_T}$enable_thread_safety" >&6; }
4739 # Optionally build Tcl modules (PL/Tcl)
4741 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4742 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4744 pgac_args
="$pgac_args with_tcl"
4747 # Check whether --with-tcl was given.
4748 if test "${with_tcl+set}" = set; then
4758 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4759 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4760 { (exit 1); exit 1; }; }
4770 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4771 echo "${ECHO_T}$with_tcl" >&6; }
4774 # We see if the path to the Tcl/Tk configuration scripts is specified.
4775 # This will override the use of tclsh to find the paths to search.
4778 pgac_args
="$pgac_args with_tclconfig"
4781 # Check whether --with-tclconfig was given.
4782 if test "${with_tclconfig+set}" = set; then
4783 withval
=$with_tclconfig;
4786 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4787 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4788 { (exit 1); exit 1; }; }
4791 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4792 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4793 { (exit 1); exit 1; }; }
4805 # Optionally build Perl modules (PL/Perl)
4807 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4808 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4810 pgac_args
="$pgac_args with_perl"
4813 # Check whether --with-perl was given.
4814 if test "${with_perl+set}" = set; then
4824 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4825 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4826 { (exit 1); exit 1; }; }
4836 { echo "$as_me:$LINENO: result: $with_perl" >&5
4837 echo "${ECHO_T}$with_perl" >&6; }
4841 # Optionally build Python modules (PL/Python)
4843 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4844 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4846 pgac_args
="$pgac_args with_python"
4849 # Check whether --with-python was given.
4850 if test "${with_python+set}" = set; then
4851 withval
=$with_python;
4860 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4861 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4862 { (exit 1); exit 1; }; }
4872 { echo "$as_me:$LINENO: result: $with_python" >&5
4873 echo "${ECHO_T}$with_python" >&6; }
4879 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4880 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4882 pgac_args
="$pgac_args with_gssapi"
4885 # Check whether --with-gssapi was given.
4886 if test "${with_gssapi+set}" = set; then
4887 withval
=$with_gssapi;
4892 cat >>confdefs.h
<<\_ACEOF
4893 #define ENABLE_GSS 1
4896 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4903 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4904 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4905 { (exit 1); exit 1; }; }
4915 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4916 echo "${ECHO_T}$with_gssapi" >&6; }
4922 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4923 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4925 pgac_args
="$pgac_args with_krb5"
4928 # Check whether --with-krb5 was given.
4929 if test "${with_krb5+set}" = set; then
4935 cat >>confdefs.h
<<\_ACEOF
4939 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4946 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4947 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4948 { (exit 1); exit 1; }; }
4958 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4959 echo "${ECHO_T}$with_krb5" >&6; }
4967 # Kerberos configuration parameters
4970 pgac_args
="$pgac_args with_krb_srvnam"
4973 # Check whether --with-krb-srvnam was given.
4974 if test "${with_krb_srvnam+set}" = set; then
4975 withval
=$with_krb_srvnam;
4978 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4979 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4980 { (exit 1); exit 1; }; }
4983 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4984 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4985 { (exit 1); exit 1; }; }
4993 with_krb_srvnam
="postgres"
4998 cat >>confdefs.h
<<_ACEOF
4999 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5007 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5008 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5010 pgac_args
="$pgac_args with_pam"
5013 # Check whether --with-pam was given.
5014 if test "${with_pam+set}" = set; then
5019 cat >>confdefs.h
<<\_ACEOF
5028 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5029 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5030 { (exit 1); exit 1; }; }
5040 { echo "$as_me:$LINENO: result: $with_pam" >&5
5041 echo "${ECHO_T}$with_pam" >&6; }
5048 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5049 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5051 pgac_args
="$pgac_args with_ldap"
5054 # Check whether --with-ldap was given.
5055 if test "${with_ldap+set}" = set; then
5060 cat >>confdefs.h
<<\_ACEOF
5069 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5070 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5071 { (exit 1); exit 1; }; }
5081 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5082 echo "${ECHO_T}$with_ldap" >&6; }
5089 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5090 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5092 pgac_args
="$pgac_args with_bonjour"
5095 # Check whether --with-bonjour was given.
5096 if test "${with_bonjour+set}" = set; then
5097 withval
=$with_bonjour;
5101 cat >>confdefs.h
<<\_ACEOF
5102 #define USE_BONJOUR 1
5110 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5111 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5112 { (exit 1); exit 1; }; }
5122 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5123 echo "${ECHO_T}$with_bonjour" >&6; }
5130 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5131 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5133 pgac_args
="$pgac_args with_openssl"
5136 # Check whether --with-openssl was given.
5137 if test "${with_openssl+set}" = set; then
5138 withval
=$with_openssl;
5142 cat >>confdefs.h
<<\_ACEOF
5151 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5152 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5153 { (exit 1); exit 1; }; }
5163 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5164 echo "${ECHO_T}$with_openssl" >&6; }
5172 pgac_args
="$pgac_args with_readline"
5175 # Check whether --with-readline was given.
5176 if test "${with_readline+set}" = set; then
5177 withval
=$with_readline;
5186 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5187 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5188 { (exit 1); exit 1; }; }
5198 # readline on MinGW has problems with backslashes in psql and other bugs.
5199 # This is particularly a problem with non-US code pages.
5200 # Therefore disable its use until we understand the cause. 2004-07-20
5201 if test "$PORTNAME" = "win32"; then
5202 if test "$with_readline" = yes; then
5203 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5204 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5214 pgac_args
="$pgac_args with_libedit_preferred"
5217 # Check whether --with-libedit-preferred was given.
5218 if test "${with_libedit_preferred+set}" = set; then
5219 withval
=$with_libedit_preferred;
5228 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5229 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5230 { (exit 1); exit 1; }; }
5235 with_libedit_preferred
=no
5246 pgac_args
="$pgac_args with_ossp_uuid"
5249 # Check whether --with-ossp-uuid was given.
5250 if test "${with_ossp_uuid+set}" = set; then
5251 withval
=$with_ossp_uuid;
5260 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5261 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5262 { (exit 1); exit 1; }; }
5279 pgac_args
="$pgac_args with_libxml"
5282 # Check whether --with-libxml was given.
5283 if test "${with_libxml+set}" = set; then
5284 withval
=$with_libxml;
5288 cat >>confdefs.h
<<\_ACEOF
5289 #define USE_LIBXML 1
5297 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5298 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5299 { (exit 1); exit 1; }; }
5310 if test "$with_libxml" = yes ; then
5311 for ac_prog
in xml2-config
5313 # Extract the first word of "$ac_prog", so it can be a program name with args.
5314 set dummy
$ac_prog; ac_word
=$2
5315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5317 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 if test -n "$XML2_CONFIG"; then
5321 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir
=.
5328 for ac_exec_ext
in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5341 if test -n "$XML2_CONFIG"; then
5342 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5343 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5345 { echo "$as_me:$LINENO: result: no" >&5
5346 echo "${ECHO_T}no" >&6; }
5350 test -n "$XML2_CONFIG" && break
5353 if test -n "$XML2_CONFIG"; then
5354 for pgac_option
in `$XML2_CONFIG --cflags`; do
5355 case $pgac_option in
5356 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5359 for pgac_option
in `$XML2_CONFIG --libs`; do
5360 case $pgac_option in
5361 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5373 pgac_args
="$pgac_args with_libxslt"
5376 # Check whether --with-libxslt was given.
5377 if test "${with_libxslt+set}" = set; then
5378 withval
=$with_libxslt;
5382 cat >>confdefs.h
<<\_ACEOF
5383 #define USE_LIBXSLT 1
5391 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5392 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5393 { (exit 1); exit 1; }; }
5411 pgac_args
="$pgac_args with_system_tzdata"
5414 # Check whether --with-system-tzdata was given.
5415 if test "${with_system_tzdata+set}" = set; then
5416 withval
=$with_system_tzdata;
5419 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5420 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5421 { (exit 1); exit 1; }; }
5424 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5425 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5426 { (exit 1); exit 1; }; }
5442 pgac_args
="$pgac_args with_zlib"
5445 # Check whether --with-zlib was given.
5446 if test "${with_zlib+set}" = set; then
5456 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5457 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5458 { (exit 1); exit 1; }; }
5474 # Assume system is ELF if it predefines __ELF__ as 1,
5475 # otherwise believe host_os based default.
5477 freebsd1
*|freebsd2
*) elf
=no
;;
5478 freebsd3
*|freebsd4
*) elf
=yes;;
5482 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5483 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5484 if test "${ac_cv_path_GREP+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 # Extract the first word of "grep ggrep" to use in msg output
5488 if test -z "$GREP"; then
5489 set dummy
grep ggrep
; ac_prog_name
=$2
5490 if test "${ac_cv_path_GREP+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 ac_path_GREP_found
=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5496 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5499 test -z "$as_dir" && as_dir
=.
5500 for ac_prog
in grep ggrep
; do
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5503 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5504 # Check for GNU ac_path_GREP and select it if it is found.
5505 # Check for GNU $ac_path_GREP
5506 case `"$ac_path_GREP" --version 2>&1` in
5508 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5511 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5514 cat "conftest.in" "conftest.in" >"conftest.tmp"
5515 mv "conftest.tmp" "conftest.in"
5516 cp "conftest.in" "conftest.nl"
5517 echo 'GREP' >> "conftest.nl"
5518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5519 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5520 ac_count
=`expr $ac_count + 1`
5521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5522 # Best one so far, save it but keep looking for a better one
5523 ac_cv_path_GREP
="$ac_path_GREP"
5524 ac_path_GREP_max
=$ac_count
5526 # 10*(2^10) chars as input seems more than enough
5527 test $ac_count -gt 10 && break
5529 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5533 $ac_path_GREP_found && break 3
5543 GREP
="$ac_cv_path_GREP"
5544 if test -z "$GREP"; then
5545 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5546 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5547 { (exit 1); exit 1; }; }
5551 ac_cv_path_GREP
=$GREP
5556 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5557 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5558 GREP
="$ac_cv_path_GREP"
5561 { echo "$as_me:$LINENO: checking for egrep" >&5
5562 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5563 if test "${ac_cv_path_EGREP+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5567 then ac_cv_path_EGREP
="$GREP -E"
5569 # Extract the first word of "egrep" to use in msg output
5570 if test -z "$EGREP"; then
5571 set dummy
egrep; ac_prog_name
=$2
5572 if test "${ac_cv_path_EGREP+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 ac_path_EGREP_found
=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5578 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5581 test -z "$as_dir" && as_dir
=.
5582 for ac_prog
in egrep; do
5583 for ac_exec_ext
in '' $ac_executable_extensions; do
5584 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5585 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5586 # Check for GNU ac_path_EGREP and select it if it is found.
5587 # Check for GNU $ac_path_EGREP
5588 case `"$ac_path_EGREP" --version 2>&1` in
5590 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5593 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 echo 'EGREP' >> "conftest.nl"
5600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5601 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5602 ac_count
=`expr $ac_count + 1`
5603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_EGREP
="$ac_path_EGREP"
5606 ac_path_EGREP_max
=$ac_count
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5611 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5615 $ac_path_EGREP_found && break 3
5625 EGREP
="$ac_cv_path_EGREP"
5626 if test -z "$EGREP"; then
5627 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5628 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5629 { (exit 1); exit 1; }; }
5633 ac_cv_path_EGREP
=$EGREP
5639 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5640 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5641 EGREP
="$ac_cv_path_EGREP"
5644 cat >conftest.
$ac_ext <<_ACEOF
5647 cat confdefs.h
>>conftest.
$ac_ext
5648 cat >>conftest.
$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "yes" >/dev
/null
2>&1; then
5659 if test "X$elf" = "Xyes" ; then
5673 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5674 LDFLAGS
="$LDFLAGS $LIBDIRS"
5679 # Check whether --with-gnu-ld was given.
5680 if test "${with_gnu_ld+set}" = set; then
5681 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5687 if test "$GCC" = yes; then
5688 # Check if gcc -print-prog-name=ld gives a path.
5689 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5690 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5693 # gcc leaves a trailing carriage return which upsets mingw
5694 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5696 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5699 # Accept absolute paths.
5700 [\\/]* |
[A-Za-z
]:[\\/]*)
5701 re_direlt
='/[^/][^/]*/\.\./'
5702 # Canonicalize the path of ld
5703 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5704 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5705 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5707 test -z "$LD" && LD
="$ac_prog"
5710 # If it fails, then pretend we aren't using GCC.
5714 # If it is relative, then search for the first ld in PATH.
5718 elif test "$with_gnu_ld" = yes; then
5719 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5720 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5722 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5723 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5725 if test "${ac_cv_path_LD+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 if test -z "$LD"; then
5729 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5730 for ac_dir
in $PATH; do
5731 test -z "$ac_dir" && ac_dir
=.
5732 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5733 ac_cv_path_LD
="$ac_dir/$ac_prog"
5734 # Check to see if the program is GNU ld. I'd rather use --version,
5735 # but apparently some GNU ld's only accept -v.
5736 # Break only if it was the GNU/non-GNU ld that we prefer.
5737 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5738 test "$with_gnu_ld" != no
&& break
5740 test "$with_gnu_ld" != yes && break
5746 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5751 if test -n "$LD"; then
5752 { echo "$as_me:$LINENO: result: $LD" >&5
5753 echo "${ECHO_T}$LD" >&6; }
5755 { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5758 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5759 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5760 { (exit 1); exit 1; }; }
5761 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5762 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5763 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5767 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5768 ac_cv_prog_gnu_ld
=yes
5770 ac_cv_prog_gnu_ld
=no
5773 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5774 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5775 with_gnu_ld
=$ac_cv_prog_gnu_ld
5780 case $host_os in sysv5
*)
5781 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5782 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5783 if test "${pgac_cv_prog_ld_R+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5788 cat >conftest.
$ac_ext <<_ACEOF
5791 cat confdefs.h
>>conftest.
$ac_ext
5792 cat >>conftest.
$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5803 rm -f conftest.
$ac_objext conftest
$ac_exeext
5804 if { (ac_try
="$ac_link"
5806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_link") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest$ac_exeext &&
5820 $as_test_x conftest$ac_exeext; then
5821 pgac_cv_prog_ld_R=yes
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 pgac_cv_prog_ld_R=no
5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830 conftest$ac_exeext conftest.$ac_ext
5831 LDFLAGS=$pgac_save_LDFLAGS
5834 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5835 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5836 ld_R_works=$pgac_cv_prog_ld_R
5839 if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_prog_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 if test -n "$RANLIB"; then
5848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 RANLIB=$ac_cv_prog_RANLIB
5868 if test -n "$RANLIB"; then
5869 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5870 echo "${ECHO_T}$RANLIB" >&6; }
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5878 if test -z "$ac_cv_prog_RANLIB"; then
5879 ac_ct_RANLIB=$RANLIB
5880 # Extract the first word of "ranlib", so it can be a program name with args.
5881 set dummy ranlib; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 if test -n "$ac_ct_RANLIB"; then
5888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_ac_ct_RANLIB="ranlib"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5908 if test -n "$ac_ct_RANLIB"; then
5909 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5910 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5912 { echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6; }
5916 if test "x$ac_ct_RANLIB" = x; then
5919 case $cross_compiling:$ac_tool_warned in
5921 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5922 whose name does not start with the host triplet. If you think this
5923 configuration is useful to you, please write to autoconf@gnu.org." >&5
5924 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5925 whose name does not start with the host triplet. If you think this
5926 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5927 ac_tool_warned=yes ;;
5929 RANLIB=$ac_ct_RANLIB
5932 RANLIB="$ac_cv_prog_RANLIB"
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}strip; ac_word=$2
5939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5941 if test "${ac_cv_prog_STRIP+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 if test -n "$STRIP"; then
5945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 STRIP=$ac_cv_prog_STRIP
5965 if test -n "$STRIP"; then
5966 { echo "$as_me:$LINENO: result: $STRIP" >&5
5967 echo "${ECHO_T}$STRIP" >&6; }
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5975 if test -z "$ac_cv_prog_STRIP"; then
5977 # Extract the first word of "strip", so it can be a program name with args.
5978 set dummy strip; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 if test -n "$ac_ct_STRIP"; then
5985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_STRIP="strip"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6005 if test -n "$ac_ct_STRIP"; then
6006 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6007 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6013 if test "x$ac_ct_STRIP" = x; then
6016 case $cross_compiling:$ac_tool_warned in
6018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6019 whose name does not start with the host triplet. If you think this
6020 configuration is useful to you, please write to autoconf@gnu.org." >&5
6021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6022 whose name does not start with the host triplet. If you think this
6023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6024 ac_tool_warned=yes ;;
6029 STRIP="$ac_cv_prog_STRIP"
6033 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6034 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6035 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6036 STRIP_STATIC_LIB="$STRIP -x"
6037 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6038 { echo "$as_me:$LINENO: result: yes" >&5
6039 echo "${ECHO_T}yes" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6050 # Extract the first word of "tar", so it can be a program name with args.
6051 set dummy tar; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_TAR+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 if test -n "$TAR"; then
6082 { echo "$as_me:$LINENO: result: $TAR" >&5
6083 echo "${ECHO_T}$TAR" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6090 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6091 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6093 if test "$LN_S" = "ln -s"; then
6094 { echo "$as_me:$LINENO: result: yes" >&5
6095 echo "${ECHO_T}yes" >&6; }
6097 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6098 echo "${ECHO_T}no, using $LN_S" >&6; }
6101 for ac_prog in gawk mawk nawk awk
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_AWK+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$AWK"; then
6111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_AWK="$ac_prog"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 if test -n "$AWK"; then
6132 { echo "$as_me:$LINENO: result: $AWK" >&5
6133 echo "${ECHO_T}$AWK" >&6; }
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6140 test -n "$AWK" && break
6144 # Let the user override the search
6145 if test -z "$BISON"; then
6146 for ac_prog in bison
6148 # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_prog_BISON+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 if test -n "$BISON"; then
6156 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_BISON="$ac_prog"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 BISON=$ac_cv_prog_BISON
6176 if test -n "$BISON"; then
6177 { echo "$as_me:$LINENO: result: $BISON" >&5
6178 echo "${ECHO_T}$BISON" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 test -n "$BISON" && break
6190 if test "$BISON"; then
6191 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6192 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6193 echo "$as_me: using $pgac_bison_version" >&6;}
6194 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6196 { echo "$as_me:$LINENO: WARNING:
6197 *** The installed version of Bison is too old to use with PostgreSQL.
6198 *** Bison version 1.875 or later is required." >&5
6199 echo "$as_me: WARNING:
6200 *** The installed version of Bison is too old to use with PostgreSQL.
6201 *** Bison version 1.875 or later is required." >&2;}
6206 if test -z "$BISON"; then
6207 { echo "$as_me:$LINENO: WARNING:
6208 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6209 *** change any of the parser definition files. You can obtain Bison from
6210 *** a GNU mirror site. (If you are using the official distribution of
6211 *** PostgreSQL then you do not need to worry about this, because the Bison
6212 *** output is pre-generated.)" >&5
6213 echo "$as_me: WARNING:
6214 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6215 *** change any of the parser definition files. You can obtain Bison from
6216 *** a GNU mirror site. (If you are using the official distribution of
6217 *** PostgreSQL then you do not need to worry about this, because the Bison
6218 *** output is pre-generated.)" >&2;}
6220 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6223 { echo "$as_me:$LINENO: checking for flex" >&5
6224 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6225 if test "${pgac_cv_path_flex+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 # Let the user override the test
6229 if test -n "$FLEX"; then
6230 pgac_cv_path_flex=$FLEX
6234 for pgac_dir in $PATH; do
6236 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6239 for pgac_prog in flex lex; do
6240 pgac_candidate="$pgac_dir/$pgac_prog"
6241 if test -f "$pgac_candidate" \
6242 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6244 echo '%%' > conftest.l
6245 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6246 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6247 pgac_broken_flex=$pgac_candidate
6251 pgac_cv_path_flex=$pgac_candidate
6257 rm -f conftest.l lex.yy.c
6258 : ${pgac_cv_path_flex=no}
6262 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6263 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6264 if test x"$pgac_cv_path_flex" = x"no"; then
6265 if test -n "$pgac_broken_flex"; then
6266 { echo "$as_me:$LINENO: WARNING:
6267 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6268 *** should get version 2.5.4 or later." >&5
6269 echo "$as_me: WARNING:
6270 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6271 *** should get version 2.5.4 or later." >&2;}
6274 { echo "$as_me:$LINENO: WARNING:
6275 *** Without Flex you will not be able to build PostgreSQL from CVS or
6276 *** change any of the scanner definition files. You can obtain Flex from
6277 *** a GNU mirror site. (If you are using the official distribution of
6278 *** PostgreSQL then you do not need to worry about this because the Flex
6279 *** output is pre-generated.)" >&5
6280 echo "$as_me: WARNING:
6281 *** Without Flex you will not be able to build PostgreSQL from CVS or
6282 *** change any of the scanner definition files. You can obtain Flex from
6283 *** a GNU mirror site. (If you are using the official distribution of
6284 *** PostgreSQL then you do not need to worry about this because the Flex
6285 *** output is pre-generated.)" >&2;}
6289 FLEX=$pgac_cv_path_flex
6290 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6291 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6292 echo "$as_me: using $pgac_flex_version" >&6;}
6299 # Extract the first word of "perl", so it can be a program name with args.
6300 set dummy perl; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_PERL+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 PERL=$ac_cv_path_PERL
6330 if test -n "$PERL"; then
6331 { echo "$as_me:$LINENO: result: $PERL" >&5
6332 echo "${ECHO_T}$PERL" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6339 if test "$with_perl" = yes; then
6341 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6342 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6343 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6344 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6345 echo "${ECHO_T}$perl_archlibexp" >&6; }
6346 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6347 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6348 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6349 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6350 echo "${ECHO_T}$perl_privlibexp" >&6; }
6351 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6352 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6353 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6354 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6355 echo "${ECHO_T}$perl_useshrplib" >&6; }
6357 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6358 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6359 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6360 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6361 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6362 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6363 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6366 if test "$with_python" = yes; then
6367 # Extract the first word of "python", so it can be a program name with args.
6368 set dummy python; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_PYTHON+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 PYTHON=$ac_cv_path_PYTHON
6398 if test -n "$PYTHON"; then
6399 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6400 echo "${ECHO_T}$PYTHON" >&6; }
6402 { echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6; }
6407 if test x"$PYTHON" = x""; then
6408 { { echo "$as_me:$LINENO: error: Python not found" >&5
6409 echo "$as_me: error: Python not found" >&2;}
6410 { (exit 1); exit 1; }; }
6414 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6415 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6416 if "${PYTHON}" 2>&- -c 'import distutils'
6418 { echo "$as_me:$LINENO: result: yes" >&5
6419 echo "${ECHO_T}yes" >&6; }
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6423 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6424 echo "$as_me: error: distutils module not found" >&2;}
6425 { (exit 1); exit 1; }; }
6427 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6428 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6429 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6430 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')"`
6431 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6433 # This should be enough of a message.
6434 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6435 echo "${ECHO_T}$python_configdir" >&6; }
6438 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6439 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6441 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6442 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6443 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6444 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6446 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6448 # New way: use the official shared library
6449 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6450 python_libspec="-L${python_libdir} -l${ldlibrary}"
6452 # Old way: use libpython from python_configdir
6453 python_libdir="${python_configdir}"
6454 python_libspec="-L${python_libdir} -lpython${python_version}"
6457 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6459 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6460 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6463 # threaded python is not supported on bsd's
6464 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6465 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6466 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6467 if test "$pythreads" = "1"; then
6468 { echo "$as_me:$LINENO: result: yes" >&5
6469 echo "${ECHO_T}yes" >&6; }
6472 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6473 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6474 { (exit 1); exit 1; }; }
6478 { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6485 # Supply a numeric version string for use by 3rd party add-ons
6486 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6487 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6489 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6491 cat >>confdefs.h <<_ACEOF
6492 #define PG_VERSION_NUM $PG_VERSION_NUM
6499 ## Most libraries are included only if they demonstrably provide a function
6500 ## we need, but libm is an exception: always include it, because there are
6501 ## too many compilers that play cute optimization games that will break
6502 ## probes for standard functions such as pow().
6506 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6507 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6508 if test "${ac_cv_lib_m_main+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 ac_check_lib_save_LIBS=$LIBS
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (ac_try="$ac_link"
6532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6533 *) ac_try_echo
=$ac_try;;
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_link") 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest
$ac_exeext &&
6546 $as_test_x conftest
$ac_exeext; then
6547 ac_cv_lib_m_main
=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.
$ac_ext >&5
6555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6556 conftest
$ac_exeext conftest.
$ac_ext
6557 LIBS
=$ac_check_lib_save_LIBS
6559 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6560 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6561 if test $ac_cv_lib_m_main = yes; then
6562 cat >>confdefs.h
<<_ACEOF
6570 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6571 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6572 if test "${ac_cv_search_setproctitle+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 ac_func_search_save_LIBS
=$LIBS
6576 cat >conftest.
$ac_ext <<_ACEOF
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6583 /* Override any GCC internal prototype to avoid an error.
6584 Use char because int might match the return type of a GCC
6585 builtin and then its argument prototype would still apply. */
6589 char setproctitle ();
6593 return setproctitle ();
6598 for ac_lib
in '' util
; do
6599 if test -z "$ac_lib"; then
6600 ac_res
="none required"
6603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6605 rm -f conftest.
$ac_objext conftest
$ac_exeext
6606 if { (ac_try
="$ac_link"
6608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
6623 ac_cv_search_setproctitle=$ac_res
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6633 if test "${ac_cv_search_setproctitle+set}" = set; then
6637 if test "${ac_cv_search_setproctitle+set}" = set; then
6640 ac_cv_search_setproctitle=no
6643 LIBS=$ac_func_search_save_LIBS
6645 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6646 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6647 ac_res=$ac_cv_search_setproctitle
6648 if test "$ac_res" != no; then
6649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6653 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6654 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6655 if test "${ac_cv_search_dlopen+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 ac_func_search_save_LIBS=$LIBS
6659 cat >conftest.$ac_ext <<_ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6666 /* Override any GCC internal prototype to avoid an error.
6667 Use char because int might match the return type of a GCC
6668 builtin and then its argument prototype would still apply. */
6681 for ac_lib in '' dl; do
6682 if test -z "$ac_lib"; then
6683 ac_res="none required"
6686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (ac_try="$ac_link"
6691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6692 *) ac_try_echo
=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_link") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest
$ac_exeext &&
6705 $as_test_x conftest
$ac_exeext; then
6706 ac_cv_search_dlopen
=$ac_res
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6714 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6716 if test "${ac_cv_search_dlopen+set}" = set; then
6720 if test "${ac_cv_search_dlopen+set}" = set; then
6723 ac_cv_search_dlopen
=no
6726 LIBS
=$ac_func_search_save_LIBS
6728 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6729 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6730 ac_res
=$ac_cv_search_dlopen
6731 if test "$ac_res" != no
; then
6732 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6736 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6737 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6738 if test "${ac_cv_search_socket+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_func_search_save_LIBS
=$LIBS
6742 cat >conftest.
$ac_ext <<_ACEOF
6745 cat confdefs.h
>>conftest.
$ac_ext
6746 cat >>conftest.
$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6749 /* Override any GCC internal prototype to avoid an error.
6750 Use char because int might match the return type of a GCC
6751 builtin and then its argument prototype would still apply. */
6764 for ac_lib
in '' socket wsock32
; do
6765 if test -z "$ac_lib"; then
6766 ac_res
="none required"
6769 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6771 rm -f conftest.
$ac_objext conftest
$ac_exeext
6772 if { (ac_try
="$ac_link"
6774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_link") 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest$ac_exeext &&
6788 $as_test_x conftest$ac_exeext; then
6789 ac_cv_search_socket=$ac_res
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6799 if test "${ac_cv_search_socket+set}" = set; then
6803 if test "${ac_cv_search_socket+set}" = set; then
6806 ac_cv_search_socket=no
6809 LIBS=$ac_func_search_save_LIBS
6811 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6812 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6813 ac_res=$ac_cv_search_socket
6814 if test "$ac_res" != no; then
6815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6819 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6820 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6821 if test "${ac_cv_search_shl_load+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 ac_func_search_save_LIBS=$LIBS
6825 cat >conftest.$ac_ext <<_ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6832 /* Override any GCC internal prototype to avoid an error.
6833 Use char because int might match the return type of a GCC
6834 builtin and then its argument prototype would still apply. */
6847 for ac_lib in '' dld; do
6848 if test -z "$ac_lib"; then
6849 ac_res="none required"
6852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6854 rm -f conftest.$ac_objext conftest$ac_exeext
6855 if { (ac_try="$ac_link"
6857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6858 *) ac_try_echo
=$ac_try;;
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_link") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1
>conftest.err
6865 cat conftest.err
>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest
$ac_exeext &&
6871 $as_test_x conftest
$ac_exeext; then
6872 ac_cv_search_shl_load
=$ac_res
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6882 if test "${ac_cv_search_shl_load+set}" = set; then
6886 if test "${ac_cv_search_shl_load+set}" = set; then
6889 ac_cv_search_shl_load
=no
6892 LIBS
=$ac_func_search_save_LIBS
6894 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6895 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6896 ac_res
=$ac_cv_search_shl_load
6897 if test "$ac_res" != no
; then
6898 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6902 # We only use libld in port/dynloader/aix.c
6905 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6906 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6907 if test "${ac_cv_search_ldopen+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_func_search_save_LIBS
=$LIBS
6911 cat >conftest.
$ac_ext <<_ACEOF
6914 cat confdefs.h
>>conftest.
$ac_ext
6915 cat >>conftest.
$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6918 /* Override any GCC internal prototype to avoid an error.
6919 Use char because int might match the return type of a GCC
6920 builtin and then its argument prototype would still apply. */
6933 for ac_lib
in '' ld
; do
6934 if test -z "$ac_lib"; then
6935 ac_res
="none required"
6938 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6940 rm -f conftest.
$ac_objext conftest
$ac_exeext
6941 if { (ac_try
="$ac_link"
6943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_link") 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest$ac_exeext &&
6957 $as_test_x conftest$ac_exeext; then
6958 ac_cv_search_ldopen=$ac_res
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6968 if test "${ac_cv_search_ldopen+set}" = set; then
6972 if test "${ac_cv_search_ldopen+set}" = set; then
6975 ac_cv_search_ldopen=no
6978 LIBS=$ac_func_search_save_LIBS
6980 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6981 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6982 ac_res=$ac_cv_search_ldopen
6983 if test "$ac_res" != no; then
6984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6990 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6991 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6992 if test "${ac_cv_search_getopt_long+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_func_search_save_LIBS=$LIBS
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7009 char getopt_long ();
7013 return getopt_long ();
7018 for ac_lib in '' getopt gnugetopt; do
7019 if test -z "$ac_lib"; then
7020 ac_res="none required"
7023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (ac_try="$ac_link"
7028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7029 *) ac_try_echo
=$ac_try;;
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_link") 2>conftest.er1
7034 grep -v '^ *+' conftest.er1
>conftest.err
7036 cat conftest.err
>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest
$ac_exeext &&
7042 $as_test_x conftest
$ac_exeext; then
7043 ac_cv_search_getopt_long
=$ac_res
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7051 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7053 if test "${ac_cv_search_getopt_long+set}" = set; then
7057 if test "${ac_cv_search_getopt_long+set}" = set; then
7060 ac_cv_search_getopt_long
=no
7063 LIBS
=$ac_func_search_save_LIBS
7065 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7066 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7067 ac_res
=$ac_cv_search_getopt_long
7068 if test "$ac_res" != no
; then
7069 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7073 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7074 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7075 if test "${ac_cv_search_crypt+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_func_search_save_LIBS
=$LIBS
7079 cat >conftest.
$ac_ext <<_ACEOF
7082 cat confdefs.h
>>conftest.
$ac_ext
7083 cat >>conftest.
$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7086 /* Override any GCC internal prototype to avoid an error.
7087 Use char because int might match the return type of a GCC
7088 builtin and then its argument prototype would still apply. */
7101 for ac_lib
in '' crypt; do
7102 if test -z "$ac_lib"; then
7103 ac_res
="none required"
7106 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7108 rm -f conftest.
$ac_objext conftest
$ac_exeext
7109 if { (ac_try
="$ac_link"
7111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_link") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest$ac_exeext &&
7125 $as_test_x conftest$ac_exeext; then
7126 ac_cv_search_crypt=$ac_res
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7136 if test "${ac_cv_search_crypt+set}" = set; then
7140 if test "${ac_cv_search_crypt+set}" = set; then
7143 ac_cv_search_crypt=no
7146 LIBS=$ac_func_search_save_LIBS
7148 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7149 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7150 ac_res=$ac_cv_search_crypt
7151 if test "$ac_res" != no; then
7152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7157 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7158 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7159 if test "${ac_cv_search_fdatasync+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 ac_func_search_save_LIBS=$LIBS
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7170 /* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7180 return fdatasync ();
7185 for ac_lib in '' rt posix4; do
7186 if test -z "$ac_lib"; then
7187 ac_res="none required"
7190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7196 *) ac_try_echo
=$ac_try;;
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_link") 2>conftest.er1
7201 grep -v '^ *+' conftest.er1
>conftest.err
7203 cat conftest.err
>&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest
$ac_exeext &&
7209 $as_test_x conftest
$ac_exeext; then
7210 ac_cv_search_fdatasync
=$ac_res
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7220 if test "${ac_cv_search_fdatasync+set}" = set; then
7224 if test "${ac_cv_search_fdatasync+set}" = set; then
7227 ac_cv_search_fdatasync
=no
7230 LIBS
=$ac_func_search_save_LIBS
7232 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7233 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7234 ac_res
=$ac_cv_search_fdatasync
7235 if test "$ac_res" != no
; then
7236 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7241 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7242 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7243 if test "${ac_cv_search_shmget+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_func_search_save_LIBS
=$LIBS
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7254 /* Override any GCC internal prototype to avoid an error.
7255 Use char because int might match the return type of a GCC
7256 builtin and then its argument prototype would still apply. */
7269 for ac_lib
in '' cygipc
; do
7270 if test -z "$ac_lib"; then
7271 ac_res
="none required"
7274 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7276 rm -f conftest.
$ac_objext conftest
$ac_exeext
7277 if { (ac_try
="$ac_link"
7279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_link") 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest$ac_exeext &&
7293 $as_test_x conftest$ac_exeext; then
7294 ac_cv_search_shmget=$ac_res
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7304 if test "${ac_cv_search_shmget+set}" = set; then
7308 if test "${ac_cv_search_shmget+set}" = set; then
7311 ac_cv_search_shmget=no
7314 LIBS=$ac_func_search_save_LIBS
7316 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7317 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7318 ac_res=$ac_cv_search_shmget
7319 if test "$ac_res" != no; then
7320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7325 if test "$with_readline" = yes; then
7328 if test "${pgac_cv_check_readline+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 pgac_cv_check_readline=no
7332 pgac_save_LIBS=$LIBS
7333 if test x"$with_libedit_preferred" != x"yes"
7334 then READLINE_ORDER="-lreadline -ledit"
7335 else READLINE_ORDER="-ledit -lreadline"
7337 for pgac_rllib in $READLINE_ORDER ; do
7338 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7339 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7340 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7341 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7349 /* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
7364 rm -f conftest.$ac_objext conftest$ac_exeext
7365 if { (ac_try="$ac_link"
7367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7368 *) ac_try_echo
=$ac_try;;
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_link") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1
>conftest.err
7375 cat conftest.err
>&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest
$ac_exeext &&
7381 $as_test_x conftest
$ac_exeext; then
7383 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7384 # recognize dependent libraries; assume curses is needed if we didn't
7385 # find any dependency.
7387 netbsd
* | openbsd
* | irix
*)
7388 if test x
"$pgac_lib" = x
"" ; then
7389 pgac_lib
=" -lcurses"
7393 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.
$ac_ext >&5
7403 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7404 conftest
$ac_exeext conftest.
$ac_ext
7406 if test "$pgac_cv_check_readline" != no
; then
7407 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7408 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7415 LIBS
=$pgac_save_LIBS
7419 if test "$pgac_cv_check_readline" != no
; then
7420 LIBS
="$pgac_cv_check_readline $LIBS"
7422 cat >>confdefs.h
<<\_ACEOF
7423 #define HAVE_LIBREADLINE 1
7429 if test x
"$pgac_cv_check_readline" = x
"no"; then
7430 { { echo "$as_me:$LINENO: error: readline library not found
7431 If you have readline already installed, see config.log for details on the
7432 failure. It is possible the compiler isn't looking in the proper directory.
7433 Use --without-readline to disable readline support." >&5
7434 echo "$as_me: error: readline library not found
7435 If you have readline already installed, see config.log for details on the
7436 failure. It is possible the compiler isn't looking in the proper directory.
7437 Use --without-readline to disable readline support." >&2;}
7438 { (exit 1); exit 1; }; }
7442 if test "$with_zlib" = yes; then
7444 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7445 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7446 if test "${ac_cv_lib_z_inflate+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_check_lib_save_LIBS
=$LIBS
7451 cat >conftest.
$ac_ext <<_ACEOF
7454 cat confdefs.h
>>conftest.
$ac_ext
7455 cat >>conftest.
$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7458 /* Override any GCC internal prototype to avoid an error.
7459 Use char because int might match the return type of a GCC
7460 builtin and then its argument prototype would still apply. */
7473 rm -f conftest.
$ac_objext conftest
$ac_exeext
7474 if { (ac_try
="$ac_link"
7476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_link") 2>conftest.er1
7482 grep -v '^ *+' conftest.er1 >conftest.err
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && {
7487 test -z "$ac_c_werror_flag" ||
7488 test ! -s conftest.err
7489 } && test -s conftest$ac_exeext &&
7490 $as_test_x conftest$ac_exeext; then
7491 ac_cv_lib_z_inflate=yes
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7496 ac_cv_lib_z_inflate=no
7499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7500 conftest$ac_exeext conftest.$ac_ext
7501 LIBS=$ac_check_lib_save_LIBS
7503 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7504 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7505 if test $ac_cv_lib_z_inflate = yes; then
7506 cat >>confdefs.h <<_ACEOF
7513 { { echo "$as_me:$LINENO: error: zlib library not found
7514 If you have zlib already installed, see config.log for details on the
7515 failure. It is possible the compiler isn't looking in the proper directory.
7516 Use --without-zlib to disable zlib support." >&5
7517 echo "$as_me: error: zlib library not found
7518 If you have zlib already installed, see config.log for details on the
7519 failure. It is possible the compiler isn't looking in the proper directory.
7520 Use --without-zlib to disable zlib support." >&2;}
7521 { (exit 1); exit 1; }; }
7526 if test "$enable_spinlocks" = yes; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_SPINLOCKS 1
7533 { echo "$as_me:$LINENO: WARNING:
7534 *** Not using spinlocks will cause poor performance." >&5
7535 echo "$as_me: WARNING:
7536 *** Not using spinlocks will cause poor performance." >&2;}
7539 if test "$with_gssapi" = yes ; then
7540 if test "$PORTNAME" != "win32"; then
7541 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7542 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7543 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_func_search_save_LIBS=$LIBS
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7554 /* Override any GCC internal prototype to avoid an error.
7555 Use char because int might match the return type of a GCC
7556 builtin and then its argument prototype would still apply. */
7560 char gss_init_sec_context ();
7564 return gss_init_sec_context ();
7569 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7570 if test -z "$ac_lib"; then
7571 ac_res="none required"
7574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (ac_try="$ac_link"
7579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7580 *) ac_try_echo
=$ac_try;;
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_link") 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest
$ac_exeext &&
7593 $as_test_x conftest
$ac_exeext; then
7594 ac_cv_search_gss_init_sec_context
=$ac_res
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.
$ac_ext >&5
7602 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7604 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7608 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7611 ac_cv_search_gss_init_sec_context
=no
7614 LIBS
=$ac_func_search_save_LIBS
7616 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7617 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7618 ac_res
=$ac_cv_search_gss_init_sec_context
7619 if test "$ac_res" != no
; then
7620 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7623 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7624 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7625 { (exit 1); exit 1; }; }
7629 LIBS
="$LIBS -lgssapi32"
7633 if test "$with_krb5" = yes ; then
7634 if test "$PORTNAME" != "win32"; then
7635 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7636 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7637 if test "${ac_cv_search_com_err+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_func_search_save_LIBS
=$LIBS
7641 cat >conftest.
$ac_ext <<_ACEOF
7644 cat confdefs.h
>>conftest.
$ac_ext
7645 cat >>conftest.
$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7663 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7664 if test -z "$ac_lib"; then
7665 ac_res
="none required"
7668 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7670 rm -f conftest.
$ac_objext conftest
$ac_exeext
7671 if { (ac_try
="$ac_link"
7673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_link") 2>conftest.er1
7679 grep -v '^ *+' conftest.er1 >conftest.err
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_c_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest$ac_exeext &&
7687 $as_test_x conftest$ac_exeext; then
7688 ac_cv_search_com_err=$ac_res
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7698 if test "${ac_cv_search_com_err+set}" = set; then
7702 if test "${ac_cv_search_com_err+set}" = set; then
7705 ac_cv_search_com_err=no
7708 LIBS=$ac_func_search_save_LIBS
7710 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7711 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7712 ac_res=$ac_cv_search_com_err
7713 if test "$ac_res" != no; then
7714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7717 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7718 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7719 { (exit 1); exit 1; }; }
7722 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7723 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7724 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_func_search_save_LIBS=$LIBS
7728 cat >conftest.$ac_ext <<_ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7735 /* Override any GCC internal prototype to avoid an error.
7736 Use char because int might match the return type of a GCC
7737 builtin and then its argument prototype would still apply. */
7741 char krb5_sendauth ();
7745 return krb5_sendauth ();
7750 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7751 if test -z "$ac_lib"; then
7752 ac_res="none required"
7755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7761 *) ac_try_echo
=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1
>conftest.err
7768 cat conftest.err
>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest
$ac_exeext &&
7774 $as_test_x conftest
$ac_exeext; then
7775 ac_cv_search_krb5_sendauth
=$ac_res
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7783 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7785 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7789 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7792 ac_cv_search_krb5_sendauth
=no
7795 LIBS
=$ac_func_search_save_LIBS
7797 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7798 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7799 ac_res
=$ac_cv_search_krb5_sendauth
7800 if test "$ac_res" != no
; then
7801 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7804 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7805 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7806 { (exit 1); exit 1; }; }
7810 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7811 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7812 if test "${ac_cv_search_com_err+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 ac_func_search_save_LIBS
=$LIBS
7816 cat >conftest.
$ac_ext <<_ACEOF
7819 cat confdefs.h
>>conftest.
$ac_ext
7820 cat >>conftest.
$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7823 /* Override any GCC internal prototype to avoid an error.
7824 Use char because int might match the return type of a GCC
7825 builtin and then its argument prototype would still apply. */
7838 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
7839 if test -z "$ac_lib"; then
7840 ac_res
="none required"
7843 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7845 rm -f conftest.
$ac_objext conftest
$ac_exeext
7846 if { (ac_try
="$ac_link"
7848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_link") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest$ac_exeext &&
7862 $as_test_x conftest$ac_exeext; then
7863 ac_cv_search_com_err=$ac_res
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7873 if test "${ac_cv_search_com_err+set}" = set; then
7877 if test "${ac_cv_search_com_err+set}" = set; then
7880 ac_cv_search_com_err=no
7883 LIBS=$ac_func_search_save_LIBS
7885 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7886 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7887 ac_res=$ac_cv_search_com_err
7888 if test "$ac_res" != no; then
7889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7892 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7893 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7894 { (exit 1); exit 1; }; }
7900 if test "$with_openssl" = yes ; then
7901 if test "$PORTNAME" != "win32"; then
7903 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7904 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7905 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 ac_check_lib_save_LIBS=$LIBS
7909 LIBS="-lcrypto $LIBS"
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7917 /* Override any GCC internal prototype to avoid an error.
7918 Use char because int might match the return type of a GCC
7919 builtin and then its argument prototype would still apply. */
7923 char CRYPTO_new_ex_data ();
7927 return CRYPTO_new_ex_data ();
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (ac_try="$ac_link"
7935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7936 *) ac_try_echo
=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_link") 2>conftest.er1
7941 grep -v '^ *+' conftest.er1
>conftest.err
7943 cat conftest.err
>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest
$ac_exeext &&
7949 $as_test_x conftest
$ac_exeext; then
7950 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.
$ac_ext >&5
7955 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
7958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7959 conftest
$ac_exeext conftest.
$ac_ext
7960 LIBS
=$ac_check_lib_save_LIBS
7962 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7963 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7964 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7965 cat >>confdefs.h
<<_ACEOF
7966 #define HAVE_LIBCRYPTO 1
7969 LIBS
="-lcrypto $LIBS"
7972 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7973 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7974 { (exit 1); exit 1; }; }
7978 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7979 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7980 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_check_lib_save_LIBS
=$LIBS
7985 cat >conftest.
$ac_ext <<_ACEOF
7988 cat confdefs.h
>>conftest.
$ac_ext
7989 cat >>conftest.
$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7998 char SSL_library_init ();
8002 return SSL_library_init ();
8007 rm -f conftest.
$ac_objext conftest
$ac_exeext
8008 if { (ac_try
="$ac_link"
8010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_link") 2>conftest.er1
8016 grep -v '^ *+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest$ac_exeext &&
8024 $as_test_x conftest$ac_exeext; then
8025 ac_cv_lib_ssl_SSL_library_init=yes
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_cv_lib_ssl_SSL_library_init=no
8033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8037 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8038 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8039 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_LIBSSL 1
8047 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8048 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8049 { (exit 1); exit 1; }; }
8054 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8055 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8056 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 ac_check_lib_save_LIBS=$LIBS
8060 LIBS="-leay32 $LIBS"
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 /* Override any GCC internal prototype to avoid an error.
8069 Use char because int might match the return type of a GCC
8070 builtin and then its argument prototype would still apply. */
8074 char CRYPTO_new_ex_data ();
8078 return CRYPTO_new_ex_data ();
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (ac_try="$ac_link"
8086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8087 *) ac_try_echo
=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_link") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1
>conftest.err
8094 cat conftest.err
>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest
$ac_exeext &&
8100 $as_test_x conftest
$ac_exeext; then
8101 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.
$ac_ext >&5
8106 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
8109 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8110 conftest
$ac_exeext conftest.
$ac_ext
8111 LIBS
=$ac_check_lib_save_LIBS
8113 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8114 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8115 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8116 cat >>confdefs.h
<<_ACEOF
8117 #define HAVE_LIBEAY32 1
8120 LIBS
="-leay32 $LIBS"
8123 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8124 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8125 { (exit 1); exit 1; }; }
8129 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8130 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8131 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_check_lib_save_LIBS
=$LIBS
8135 LIBS
="-lssleay32 $LIBS"
8136 cat >conftest.
$ac_ext <<_ACEOF
8139 cat confdefs.h
>>conftest.
$ac_ext
8140 cat >>conftest.
$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 /* Override any GCC internal prototype to avoid an error.
8144 Use char because int might match the return type of a GCC
8145 builtin and then its argument prototype would still apply. */
8149 char SSL_library_init ();
8153 return SSL_library_init ();
8158 rm -f conftest.
$ac_objext conftest
$ac_exeext
8159 if { (ac_try
="$ac_link"
8161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest$ac_exeext &&
8175 $as_test_x conftest$ac_exeext; then
8176 ac_cv_lib_ssleay32_SSL_library_init=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_cv_lib_ssleay32_SSL_library_init=no
8184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186 LIBS=$ac_check_lib_save_LIBS
8188 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8189 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8190 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_LIBSSLEAY32 1
8195 LIBS="-lssleay32 $LIBS"
8198 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8199 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8200 { (exit 1); exit 1; }; }
8206 if test "$with_pam" = yes ; then
8208 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8209 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8210 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 ac_check_lib_save_LIBS=$LIBS
8215 cat >conftest.$ac_ext <<_ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8222 /* Override any GCC internal prototype to avoid an error.
8223 Use char because int might match the return type of a GCC
8224 builtin and then its argument prototype would still apply. */
8232 return pam_start ();
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8241 *) ac_try_echo
=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_link") 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest
$ac_exeext &&
8254 $as_test_x conftest
$ac_exeext; then
8255 ac_cv_lib_pam_pam_start
=yes
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.
$ac_ext >&5
8260 ac_cv_lib_pam_pam_start
=no
8263 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8264 conftest
$ac_exeext conftest.
$ac_ext
8265 LIBS
=$ac_check_lib_save_LIBS
8267 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8268 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8269 if test $ac_cv_lib_pam_pam_start = yes; then
8270 cat >>confdefs.h
<<_ACEOF
8271 #define HAVE_LIBPAM 1
8277 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8278 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8279 { (exit 1); exit 1; }; }
8284 if test "$with_libxml" = yes ; then
8286 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8287 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8288 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 ac_check_lib_save_LIBS
=$LIBS
8293 cat >conftest.
$ac_ext <<_ACEOF
8296 cat confdefs.h
>>conftest.
$ac_ext
8297 cat >>conftest.
$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8300 /* Override any GCC internal prototype to avoid an error.
8301 Use char because int might match the return type of a GCC
8302 builtin and then its argument prototype would still apply. */
8306 char xmlSaveToBuffer ();
8310 return xmlSaveToBuffer ();
8315 rm -f conftest.
$ac_objext conftest
$ac_exeext
8316 if { (ac_try
="$ac_link"
8318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_link") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest$ac_exeext &&
8332 $as_test_x conftest$ac_exeext; then
8333 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 ac_cv_lib_xml2_xmlSaveToBuffer=no
8341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8342 conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8345 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8346 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8347 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8348 cat >>confdefs.h <<_ACEOF
8349 #define HAVE_LIBXML2 1
8355 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8356 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8357 { (exit 1); exit 1; }; }
8362 if test "$with_libxslt" = yes ; then
8364 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8365 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8366 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_check_lib_save_LIBS=$LIBS
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 /* Override any GCC internal prototype to avoid an error.
8379 Use char because int might match the return type of a GCC
8380 builtin and then its argument prototype would still apply. */
8384 char xsltCleanupGlobals ();
8388 return xsltCleanupGlobals ();
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (ac_try="$ac_link"
8396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8397 *) ac_try_echo
=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_link") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1
>conftest.err
8404 cat conftest.err
>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest
$ac_exeext &&
8410 $as_test_x conftest
$ac_exeext; then
8411 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_cv_lib_xslt_xsltCleanupGlobals
=no
8419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8420 conftest
$ac_exeext conftest.
$ac_ext
8421 LIBS
=$ac_check_lib_save_LIBS
8423 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8424 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8425 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8426 cat >>confdefs.h
<<_ACEOF
8427 #define HAVE_LIBXSLT 1
8433 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8434 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8435 { (exit 1); exit 1; }; }
8440 # for contrib/uuid-ossp
8441 if test "$with_ossp_uuid" = yes ; then
8442 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8443 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8444 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_check_lib_save_LIBS
=$LIBS
8448 LIBS
="-lossp-uuid $LIBS"
8449 cat >conftest.
$ac_ext <<_ACEOF
8452 cat confdefs.h
>>conftest.
$ac_ext
8453 cat >>conftest.
$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8462 char uuid_export ();
8466 return uuid_export ();
8471 rm -f conftest.
$ac_objext conftest
$ac_exeext
8472 if { (ac_try
="$ac_link"
8474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_link") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest$ac_exeext &&
8488 $as_test_x conftest$ac_exeext; then
8489 ac_cv_lib_ossp_uuid_uuid_export=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_cv_lib_ossp_uuid_uuid_export=no
8497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8498 conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8501 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8502 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8503 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8504 OSSP_UUID_LIBS="-lossp-uuid"
8506 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8507 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8508 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 ac_check_lib_save_LIBS=$LIBS
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8520 /* Override any GCC internal prototype to avoid an error.
8521 Use char because int might match the return type of a GCC
8522 builtin and then its argument prototype would still apply. */
8526 char uuid_export ();
8530 return uuid_export ();
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8539 *) ac_try_echo
=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8544 grep -v '^ *+' conftest.er1
>conftest.err
8546 cat conftest.err
>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest
$ac_exeext &&
8552 $as_test_x conftest
$ac_exeext; then
8553 ac_cv_lib_uuid_uuid_export
=yes
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.
$ac_ext >&5
8558 ac_cv_lib_uuid_uuid_export
=no
8561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8562 conftest
$ac_exeext conftest.
$ac_ext
8563 LIBS
=$ac_check_lib_save_LIBS
8565 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8566 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8567 if test $ac_cv_lib_uuid_uuid_export = yes; then
8568 OSSP_UUID_LIBS
="-luuid"
8570 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8571 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8572 { (exit 1); exit 1; }; }
8585 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8586 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8587 if test "${ac_cv_header_stdc+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 cat >conftest.
$ac_ext <<_ACEOF
8593 cat confdefs.h
>>conftest.
$ac_ext
8594 cat >>conftest.
$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8609 rm -f conftest.
$ac_objext
8610 if { (ac_try
="$ac_compile"
8612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_header_stdc=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_header_stdc=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 if test $ac_cv_header_stdc = yes; then
8637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8648 $EGREP "memchr" >/dev/null 2>&1; then
8651 ac_cv_header_stdc=no
8657 if test $ac_cv_header_stdc = yes; then
8658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8669 $EGREP "free" >/dev/null 2>&1; then
8672 ac_cv_header_stdc=no
8678 if test $ac_cv_header_stdc = yes; then
8679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8680 if test "$cross_compiling" = yes; then
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8691 #if ((' ' & 0x0FF) == 0x020)
8692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8695 # define ISLOWER(c) \
8696 (('a' <= (c) && (c) <= 'i') \
8697 || ('j' <= (c) && (c) <= 'r') \
8698 || ('s' <= (c) && (c) <= 'z'))
8699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8707 for (i = 0; i < 256; i++)
8708 if (XOR (islower (i), ISLOWER (i))
8709 || toupper (i) != TOUPPER (i))
8714 rm -f conftest$ac_exeext
8715 if { (ac_try="$ac_link"
8717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8718 *) ac_try_echo
=$ac_try;;
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_link") 2>&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8725 { (case "(($ac_try" in
8726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_try") 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8736 echo "$as_me: program exited with status $ac_status" >&5
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_header_stdc=no
8743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8749 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8750 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8751 if test $ac_cv_header_stdc = yes; then
8753 cat >>confdefs.h <<\_ACEOF
8754 #define STDC_HEADERS 1
8759 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8769 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8770 inttypes.h stdint.h unistd.h
8772 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 $ac_includes_default
8786 #include <$ac_header>
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8792 *) ac_try_echo
=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1
>conftest.err
8799 cat conftest.err
>&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest.
$ac_objext; then
8805 eval "$as_ac_Header=yes"
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.
$ac_ext >&5
8810 eval "$as_ac_Header=no"
8813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8815 ac_res
=`eval echo '${'$as_ac_Header'}'`
8816 { echo "$as_me:$LINENO: result: $ac_res" >&5
8817 echo "${ECHO_T}$ac_res" >&6; }
8818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8819 cat >>confdefs.h
<<_ACEOF
8820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8854 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
8856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8857 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8860 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 ac_res
=`eval echo '${'$as_ac_Header'}'`
8864 { echo "$as_me:$LINENO: result: $ac_res" >&5
8865 echo "${ECHO_T}$ac_res" >&6; }
8867 # Is the header compilable?
8868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8870 cat >conftest.
$ac_ext <<_ACEOF
8873 cat confdefs.h
>>conftest.
$ac_ext
8874 cat >>conftest.
$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 #include <$ac_header>
8879 rm -f conftest.
$ac_objext
8880 if { (ac_try
="$ac_compile"
8882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
8896 ac_header_compiler=yes
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8901 ac_header_compiler=no
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8906 echo "${ECHO_T}$ac_header_compiler" >&6; }
8908 # Is the header present?
8909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 #include <$ac_header>
8919 if { (ac_try="$ac_cpp conftest.$ac_ext"
8921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8922 *) ac_try_echo
=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1
>conftest.err
8929 cat conftest.err
>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } >/dev
/null
&& {
8932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8935 ac_header_preproc
=yes
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.
$ac_ext >&5
8940 ac_header_preproc
=no
8943 rm -f conftest.err conftest.
$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8945 echo "${ECHO_T}$ac_header_preproc" >&6; }
8947 # So? What about this header?
8948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8954 ac_header_preproc
=yes
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8970 ## ---------------------------------------- ##
8971 ## Report this to pgsql-bugs@postgresql.org ##
8972 ## ---------------------------------------- ##
8974 ) |
sed "s/^/$as_me: WARNING: /" >&2
8977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8979 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 eval "$as_ac_Header=\$ac_header_preproc"
8984 ac_res
=`eval echo '${'$as_ac_Header'}'`
8985 { echo "$as_me:$LINENO: result: $ac_res" >&5
8986 echo "${ECHO_T}$ac_res" >&6; }
8989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8990 cat >>confdefs.h
<<_ACEOF
8991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8999 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9000 # netinet/in.h is included first.
9002 for ac_header
in netinet
/in.h
9004 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9005 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9008 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 ac_res
=`eval echo '${'$as_ac_Header'}'`
9012 { echo "$as_me:$LINENO: result: $ac_res" >&5
9013 echo "${ECHO_T}$ac_res" >&6; }
9015 # Is the header compilable?
9016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9018 cat >conftest.
$ac_ext <<_ACEOF
9021 cat confdefs.h
>>conftest.
$ac_ext
9022 cat >>conftest.
$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9024 $ac_includes_default
9025 #include <$ac_header>
9027 rm -f conftest.
$ac_objext
9028 if { (ac_try
="$ac_compile"
9030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_compile") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && {
9041 test -z "$ac_c_werror_flag" ||
9042 test ! -s conftest.err
9043 } && test -s conftest.$ac_objext; then
9044 ac_header_compiler=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_header_compiler=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9054 echo "${ECHO_T}$ac_header_compiler" >&6; }
9056 # Is the header present?
9057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 #include <$ac_header>
9067 if { (ac_try="$ac_cpp conftest.$ac_ext"
9069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9070 *) ac_try_echo
=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9075 grep -v '^ *+' conftest.er1
>conftest.err
9077 cat conftest.err
>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } >/dev
/null
&& {
9080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9081 test ! -s conftest.err
9083 ac_header_preproc
=yes
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.
$ac_ext >&5
9088 ac_header_preproc
=no
9091 rm -f conftest.err conftest.
$ac_ext
9092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9093 echo "${ECHO_T}$ac_header_preproc" >&6; }
9095 # So? What about this header?
9096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9102 ac_header_preproc
=yes
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9118 ## ---------------------------------------- ##
9119 ## Report this to pgsql-bugs@postgresql.org ##
9120 ## ---------------------------------------- ##
9122 ) |
sed "s/^/$as_me: WARNING: /" >&2
9125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9127 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 eval "$as_ac_Header=\$ac_header_preproc"
9132 ac_res
=`eval echo '${'$as_ac_Header'}'`
9133 { echo "$as_me:$LINENO: result: $ac_res" >&5
9134 echo "${ECHO_T}$ac_res" >&6; }
9137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9138 cat >>confdefs.h
<<_ACEOF
9139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9147 for ac_header
in netinet
/tcp.h
9149 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 cat >conftest.
$ac_ext <<_ACEOF
9158 cat confdefs.h
>>conftest.
$ac_ext
9159 cat >>conftest.
$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 $ac_includes_default
9162 #ifdef HAVE_NETINET_IN_H
9163 #include <netinet/in.h>
9167 #include <$ac_header>
9169 rm -f conftest.
$ac_objext
9170 if { (ac_try
="$ac_compile"
9172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_compile") 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 } && test -s conftest.$ac_objext; then
9186 eval "$as_ac_Header=yes"
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9191 eval "$as_ac_Header=no"
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 ac_res=`eval echo '${'$as_ac_Header'}'`
9197 { echo "$as_me:$LINENO: result: $ac_res" >&5
9198 echo "${ECHO_T}$ac_res" >&6; }
9199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9209 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9211 for ac_header in readline/readline.h
9213 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 ac_res=`eval echo '${'$as_ac_Header'}'`
9221 { echo "$as_me:$LINENO: result: $ac_res" >&5
9222 echo "${ECHO_T}$ac_res" >&6; }
9224 # Is the header compilable?
9225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 $ac_includes_default
9234 #include <$ac_header>
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9240 *) ac_try_echo
=$ac_try;;
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_compile") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1
>conftest.err
9247 cat conftest.err
>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && {
9250 test -z "$ac_c_werror_flag" ||
9251 test ! -s conftest.err
9252 } && test -s conftest.
$ac_objext; then
9253 ac_header_compiler
=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.
$ac_ext >&5
9258 ac_header_compiler
=no
9261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9263 echo "${ECHO_T}$ac_header_compiler" >&6; }
9265 # Is the header present?
9266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9268 cat >conftest.
$ac_ext <<_ACEOF
9271 cat confdefs.h
>>conftest.
$ac_ext
9272 cat >>conftest.
$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 #include <$ac_header>
9276 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } >/dev/null && {
9289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9290 test ! -s conftest.err
9292 ac_header_preproc=yes
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9297 ac_header_preproc=no
9300 rm -f conftest.err conftest.$ac_ext
9301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9302 echo "${ECHO_T}$ac_header_preproc" >&6; }
9304 # So? What about this header?
9305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9311 ac_header_preproc=yes
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9327 ## ---------------------------------------- ##
9328 ## Report this to pgsql-bugs@postgresql.org ##
9329 ## ---------------------------------------- ##
9331 ) | sed "s/^/$as_me: WARNING: /" >&2
9334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 eval "$as_ac_Header=\$ac_header_preproc"
9341 ac_res=`eval echo '${'$as_ac_Header'}'`
9342 { echo "$as_me:$LINENO: result: $ac_res" >&5
9343 echo "${ECHO_T}$ac_res" >&6; }
9346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9347 cat >>confdefs.h <<_ACEOF
9348 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9353 for ac_header in readline.h
9355 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 ac_res=`eval echo '${'$as_ac_Header'}'`
9363 { echo "$as_me:$LINENO: result: $ac_res" >&5
9364 echo "${ECHO_T}$ac_res" >&6; }
9366 # Is the header compilable?
9367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <$ac_header>
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9382 *) ac_try_echo
=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1
>conftest.err
9389 cat conftest.err
>&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.
$ac_objext; then
9395 ac_header_compiler
=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.
$ac_ext >&5
9400 ac_header_compiler
=no
9403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6; }
9407 # Is the header present?
9408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9410 cat >conftest.
$ac_ext <<_ACEOF
9413 cat confdefs.h
>>conftest.
$ac_ext
9414 cat >>conftest.
$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <$ac_header>
9418 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } >/dev/null && {
9431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9434 ac_header_preproc=yes
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9442 rm -f conftest.err conftest.$ac_ext
9443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 echo "${ECHO_T}$ac_header_preproc" >&6; }
9446 # So? What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9453 ac_header_preproc=yes
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9469 ## ---------------------------------------- ##
9470 ## Report this to pgsql-bugs@postgresql.org ##
9471 ## ---------------------------------------- ##
9473 ) | sed "s/^/$as_me: WARNING: /" >&2
9476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 eval "$as_ac_Header=\$ac_header_preproc"
9483 ac_res=`eval echo '${'$as_ac_Header'}'`
9484 { echo "$as_me:$LINENO: result: $ac_res" >&5
9485 echo "${ECHO_T}$ac_res" >&6; }
9488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9489 cat >>confdefs.h <<_ACEOF
9490 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9494 { { echo "$as_me:$LINENO: error: readline header not found
9495 If you have readline already installed, see config.log for details on the
9496 failure. It is possible the compiler isn't looking in the proper directory.
9497 Use --without-readline to disable readline support." >&5
9498 echo "$as_me: error: readline header not found
9499 If you have readline already installed, see config.log for details on the
9500 failure. It is possible the compiler isn't looking in the proper directory.
9501 Use --without-readline to disable readline support." >&2;}
9502 { (exit 1); exit 1; }; }
9512 for ac_header in readline/history.h
9514 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 ac_res=`eval echo '${'$as_ac_Header'}'`
9522 { echo "$as_me:$LINENO: result: $ac_res" >&5
9523 echo "${ECHO_T}$ac_res" >&6; }
9525 # Is the header compilable?
9526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <$ac_header>
9537 rm -f conftest.$ac_objext
9538 if { (ac_try="$ac_compile"
9540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9541 *) ac_try_echo
=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1
>conftest.err
9548 cat conftest.err
>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.
$ac_objext; then
9554 ac_header_compiler
=yes
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9559 ac_header_compiler
=no
9562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 echo "${ECHO_T}$ac_header_compiler" >&6; }
9566 # Is the header present?
9567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9569 cat >conftest.
$ac_ext <<_ACEOF
9572 cat confdefs.h
>>conftest.
$ac_ext
9573 cat >>conftest.
$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <$ac_header>
9577 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } >/dev/null && {
9590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9593 ac_header_preproc=yes
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_header_preproc=no
9601 rm -f conftest.err conftest.$ac_ext
9602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9603 echo "${ECHO_T}$ac_header_preproc" >&6; }
9605 # So? What about this header?
9606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9612 ac_header_preproc=yes
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9628 ## ---------------------------------------- ##
9629 ## Report this to pgsql-bugs@postgresql.org ##
9630 ## ---------------------------------------- ##
9632 ) | sed "s/^/$as_me: WARNING: /" >&2
9635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 eval "$as_ac_Header=\$ac_header_preproc"
9642 ac_res=`eval echo '${'$as_ac_Header'}'`
9643 { echo "$as_me:$LINENO: result: $ac_res" >&5
9644 echo "${ECHO_T}$ac_res" >&6; }
9647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9654 for ac_header in history.h
9656 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 ac_res=`eval echo '${'$as_ac_Header'}'`
9664 { echo "$as_me:$LINENO: result: $ac_res" >&5
9665 echo "${ECHO_T}$ac_res" >&6; }
9667 # Is the header compilable?
9668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9677 #include <$ac_header>
9679 rm -f conftest.$ac_objext
9680 if { (ac_try="$ac_compile"
9682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9683 *) ac_try_echo
=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_compile") 2>conftest.er1
9688 grep -v '^ *+' conftest.er1
>conftest.err
9690 cat conftest.err
>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest.
$ac_objext; then
9696 ac_header_compiler
=yes
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.
$ac_ext >&5
9701 ac_header_compiler
=no
9704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9706 echo "${ECHO_T}$ac_header_compiler" >&6; }
9708 # Is the header present?
9709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9711 cat >conftest.
$ac_ext <<_ACEOF
9714 cat confdefs.h
>>conftest.
$ac_ext
9715 cat >>conftest.
$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 #include <$ac_header>
9719 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } >/dev/null && {
9732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9735 ac_header_preproc=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_header_preproc=no
9743 rm -f conftest.err conftest.$ac_ext
9744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9745 echo "${ECHO_T}$ac_header_preproc" >&6; }
9747 # So? What about this header?
9748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9754 ac_header_preproc=yes
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9770 ## ---------------------------------------- ##
9771 ## Report this to pgsql-bugs@postgresql.org ##
9772 ## ---------------------------------------- ##
9774 ) | sed "s/^/$as_me: WARNING: /" >&2
9777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 eval "$as_ac_Header=\$ac_header_preproc"
9784 ac_res=`eval echo '${'$as_ac_Header'}'`
9785 { echo "$as_me:$LINENO: result: $ac_res" >&5
9786 echo "${ECHO_T}$ac_res" >&6; }
9789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9795 { { echo "$as_me:$LINENO: error: history header not found
9796 If you have readline already installed, see config.log for details on the
9797 failure. It is possible the compiler isn't looking in the proper directory.
9798 Use --without-readline to disable readline support." >&5
9799 echo "$as_me: error: history header not found
9800 If you have readline already installed, see config.log for details on the
9801 failure. It is possible the compiler isn't looking in the proper directory.
9802 Use --without-readline to disable readline support." >&2;}
9803 { (exit 1); exit 1; }; }
9814 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9815 # Some installations of libedit usurp /usr/include/readline/, which seems
9816 # bad practice, since in combined installations readline will have its headers
9817 # there. We might have to resort to AC_EGREP checks to make sure we found
9818 # the proper header...
9820 for ac_header in editline/readline.h
9822 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 ac_res=`eval echo '${'$as_ac_Header'}'`
9830 { echo "$as_me:$LINENO: result: $ac_res" >&5
9831 echo "${ECHO_T}$ac_res" >&6; }
9833 # Is the header compilable?
9834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 $ac_includes_default
9843 #include <$ac_header>
9845 rm -f conftest.$ac_objext
9846 if { (ac_try="$ac_compile"
9848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9849 *) ac_try_echo
=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_compile") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1
>conftest.err
9856 cat conftest.err
>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest.
$ac_objext; then
9862 ac_header_compiler
=yes
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.
$ac_ext >&5
9867 ac_header_compiler
=no
9870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9872 echo "${ECHO_T}$ac_header_compiler" >&6; }
9874 # Is the header present?
9875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9877 cat >conftest.
$ac_ext <<_ACEOF
9880 cat confdefs.h
>>conftest.
$ac_ext
9881 cat >>conftest.
$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 #include <$ac_header>
9885 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } >/dev/null && {
9898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9901 ac_header_preproc=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_header_preproc=no
9909 rm -f conftest.err conftest.$ac_ext
9910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9911 echo "${ECHO_T}$ac_header_preproc" >&6; }
9913 # So? What about this header?
9914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9920 ac_header_preproc=yes
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936 ## ---------------------------------------- ##
9937 ## Report this to pgsql-bugs@postgresql.org ##
9938 ## ---------------------------------------- ##
9940 ) | sed "s/^/$as_me: WARNING: /" >&2
9943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 eval "$as_ac_Header=\$ac_header_preproc"
9950 ac_res=`eval echo '${'$as_ac_Header'}'`
9951 { echo "$as_me:$LINENO: result: $ac_res" >&5
9952 echo "${ECHO_T}$ac_res" >&6; }
9955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9962 for ac_header in readline.h
9964 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 ac_res=`eval echo '${'$as_ac_Header'}'`
9972 { echo "$as_me:$LINENO: result: $ac_res" >&5
9973 echo "${ECHO_T}$ac_res" >&6; }
9975 # Is the header compilable?
9976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #include <$ac_header>
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9991 *) ac_try_echo
=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1
>conftest.err
9998 cat conftest.err
>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.
$ac_objext; then
10004 ac_header_compiler
=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.
$ac_ext >&5
10009 ac_header_compiler
=no
10012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10014 echo "${ECHO_T}$ac_header_compiler" >&6; }
10016 # Is the header present?
10017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10019 cat >conftest.
$ac_ext <<_ACEOF
10022 cat confdefs.h
>>conftest.
$ac_ext
10023 cat >>conftest.
$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 #include <$ac_header>
10027 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10028 case "(($ac_try" in
10029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } >/dev/null && {
10040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10043 ac_header_preproc=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_header_preproc=no
10051 rm -f conftest.err conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10053 echo "${ECHO_T}$ac_header_preproc" >&6; }
10055 # So? What about this header?
10056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10062 ac_header_preproc=yes
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10078 ## ---------------------------------------- ##
10079 ## Report this to pgsql-bugs@postgresql.org ##
10080 ## ---------------------------------------- ##
10082 ) | sed "s/^/$as_me: WARNING: /" >&2
10085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 eval "$as_ac_Header=\$ac_header_preproc"
10092 ac_res=`eval echo '${'$as_ac_Header'}'`
10093 { echo "$as_me:$LINENO: result: $ac_res" >&5
10094 echo "${ECHO_T}$ac_res" >&6; }
10097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10098 cat >>confdefs.h <<_ACEOF
10099 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10104 for ac_header in readline/readline.h
10106 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 ac_res=`eval echo '${'$as_ac_Header'}'`
10114 { echo "$as_me:$LINENO: result: $ac_res" >&5
10115 echo "${ECHO_T}$ac_res" >&6; }
10117 # Is the header compilable?
10118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10133 *) ac_try_echo
=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1
>conftest.err
10140 cat conftest.err
>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.
$ac_objext; then
10146 ac_header_compiler
=yes
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.
$ac_ext >&5
10151 ac_header_compiler
=no
10154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10156 echo "${ECHO_T}$ac_header_compiler" >&6; }
10158 # Is the header present?
10159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10161 cat >conftest.
$ac_ext <<_ACEOF
10164 cat confdefs.h
>>conftest.
$ac_ext
10165 cat >>conftest.
$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 #include <$ac_header>
10169 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10170 case "(($ac_try" in
10171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev/null && {
10182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10185 ac_header_preproc=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_header_preproc=no
10193 rm -f conftest.err conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10195 echo "${ECHO_T}$ac_header_preproc" >&6; }
10197 # So? What about this header?
10198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10204 ac_header_preproc=yes
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10220 ## ---------------------------------------- ##
10221 ## Report this to pgsql-bugs@postgresql.org ##
10222 ## ---------------------------------------- ##
10224 ) | sed "s/^/$as_me: WARNING: /" >&2
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 ac_res=`eval echo '${'$as_ac_Header'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10245 { { echo "$as_me:$LINENO: error: readline header not found
10246 If you have libedit already installed, see config.log for details on the
10247 failure. It is possible the compiler isn't looking in the proper directory.
10248 Use --without-readline to disable libedit support." >&5
10249 echo "$as_me: error: readline header not found
10250 If you have libedit already installed, see config.log for details on the
10251 failure. It is possible the compiler isn't looking in the proper directory.
10252 Use --without-readline to disable libedit support." >&2;}
10253 { (exit 1); exit 1; }; }
10266 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10267 # not be there at all. Hence, don't complain if not found. We must check
10268 # though, since in yet other versions it is an independent header.
10270 for ac_header in editline/history.h
10272 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 ac_res=`eval echo '${'$as_ac_Header'}'`
10280 { echo "$as_me:$LINENO: result: $ac_res" >&5
10281 echo "${ECHO_T}$ac_res" >&6; }
10283 # Is the header compilable?
10284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 $ac_includes_default
10293 #include <$ac_header>
10295 rm -f conftest.$ac_objext
10296 if { (ac_try="$ac_compile"
10297 case "(($ac_try" in
10298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10299 *) ac_try_echo
=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_compile") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1
>conftest.err
10306 cat conftest.err
>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest.
$ac_objext; then
10312 ac_header_compiler
=yes
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.
$ac_ext >&5
10317 ac_header_compiler
=no
10320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10322 echo "${ECHO_T}$ac_header_compiler" >&6; }
10324 # Is the header present?
10325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10327 cat >conftest.
$ac_ext <<_ACEOF
10330 cat confdefs.h
>>conftest.
$ac_ext
10331 cat >>conftest.
$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 #include <$ac_header>
10335 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10336 case "(($ac_try" in
10337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } >/dev/null && {
10348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10351 ac_header_preproc=yes
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_header_preproc=no
10359 rm -f conftest.err conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361 echo "${ECHO_T}$ac_header_preproc" >&6; }
10363 # So? What about this header?
10364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10370 ac_header_preproc=yes
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10386 ## ---------------------------------------- ##
10387 ## Report this to pgsql-bugs@postgresql.org ##
10388 ## ---------------------------------------- ##
10390 ) | sed "s/^/$as_me: WARNING: /" >&2
10393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 eval "$as_ac_Header=\$ac_header_preproc"
10400 ac_res=`eval echo '${'$as_ac_Header'}'`
10401 { echo "$as_me:$LINENO: result: $ac_res" >&5
10402 echo "${ECHO_T}$ac_res" >&6; }
10405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10412 for ac_header in history.h
10414 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_res=`eval echo '${'$as_ac_Header'}'`
10422 { echo "$as_me:$LINENO: result: $ac_res" >&5
10423 echo "${ECHO_T}$ac_res" >&6; }
10425 # Is the header compilable?
10426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10428 cat >conftest.$ac_ext <<_ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 #include <$ac_header>
10437 rm -f conftest.$ac_objext
10438 if { (ac_try="$ac_compile"
10439 case "(($ac_try" in
10440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10441 *) ac_try_echo
=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1
>conftest.err
10448 cat conftest.err
>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.
$ac_objext; then
10454 ac_header_compiler
=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.
$ac_ext >&5
10459 ac_header_compiler
=no
10462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 echo "${ECHO_T}$ac_header_compiler" >&6; }
10466 # Is the header present?
10467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10469 cat >conftest.
$ac_ext <<_ACEOF
10472 cat confdefs.h
>>conftest.
$ac_ext
10473 cat >>conftest.
$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #include <$ac_header>
10477 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10478 case "(($ac_try" in
10479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } >/dev/null && {
10490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10493 ac_header_preproc=yes
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_header_preproc=no
10501 rm -f conftest.err conftest.$ac_ext
10502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10503 echo "${ECHO_T}$ac_header_preproc" >&6; }
10505 # So? What about this header?
10506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10512 ac_header_preproc=yes
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10528 ## ---------------------------------------- ##
10529 ## Report this to pgsql-bugs@postgresql.org ##
10530 ## ---------------------------------------- ##
10532 ) | sed "s/^/$as_me: WARNING: /" >&2
10535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 eval "$as_ac_Header=\$ac_header_preproc"
10542 ac_res=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10554 for ac_header in readline/history.h
10556 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 ac_res=`eval echo '${'$as_ac_Header'}'`
10564 { echo "$as_me:$LINENO: result: $ac_res" >&5
10565 echo "${ECHO_T}$ac_res" >&6; }
10567 # Is the header compilable?
10568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10570 cat >conftest.$ac_ext <<_ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #include <$ac_header>
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10583 *) ac_try_echo
=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1
>conftest.err
10590 cat conftest.err
>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.
$ac_objext; then
10596 ac_header_compiler
=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.
$ac_ext >&5
10601 ac_header_compiler
=no
10604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.
$ac_ext <<_ACEOF
10614 cat confdefs.h
>>conftest.
$ac_ext
10615 cat >>conftest.
$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <$ac_header>
10619 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null && {
10632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10635 ac_header_preproc=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_header_preproc=no
10643 rm -f conftest.err conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10645 echo "${ECHO_T}$ac_header_preproc" >&6; }
10647 # So? What about this header?
10648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10654 ac_header_preproc=yes
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10670 ## ---------------------------------------- ##
10671 ## Report this to pgsql-bugs@postgresql.org ##
10672 ## ---------------------------------------- ##
10674 ) | sed "s/^/$as_me: WARNING: /" >&2
10677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 eval "$as_ac_Header=\$ac_header_preproc"
10684 ac_res=`eval echo '${'$as_ac_Header'}'`
10685 { echo "$as_me:$LINENO: result: $ac_res" >&5
10686 echo "${ECHO_T}$ac_res" >&6; }
10689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10690 cat >>confdefs.h <<_ACEOF
10691 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10708 if test "$with_zlib" = yes; then
10709 if test "${ac_cv_header_zlib_h+set}" = set; then
10710 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10711 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10712 if test "${ac_cv_header_zlib_h+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10716 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10718 # Is the header compilable?
10719 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10720 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10730 rm -f conftest.$ac_objext
10731 if { (ac_try="$ac_compile"
10732 case "(($ac_try" in
10733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10734 *) ac_try_echo
=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_compile") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1
>conftest.err
10741 cat conftest.err
>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest.
$ac_objext; then
10747 ac_header_compiler
=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.
$ac_ext >&5
10752 ac_header_compiler
=no
10755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10757 echo "${ECHO_T}$ac_header_compiler" >&6; }
10759 # Is the header present?
10760 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10761 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10762 cat >conftest.
$ac_ext <<_ACEOF
10765 cat confdefs.h
>>conftest.
$ac_ext
10766 cat >>conftest.
$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10770 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10771 case "(($ac_try" in
10772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null && {
10783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10786 ac_header_preproc=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_header_preproc=no
10794 rm -f conftest.err conftest.$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 echo "${ECHO_T}$ac_header_preproc" >&6; }
10798 # So? What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10801 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10802 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10804 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10805 ac_header_preproc=yes
10808 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10813 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10815 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10817 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10819 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10821 ## ---------------------------------------- ##
10822 ## Report this to pgsql-bugs@postgresql.org ##
10823 ## ---------------------------------------- ##
10825 ) | sed "s/^/$as_me: WARNING: /" >&2
10828 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10829 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10830 if test "${ac_cv_header_zlib_h+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 ac_cv_header_zlib_h=$ac_header_preproc
10835 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10836 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10839 if test $ac_cv_header_zlib_h = yes; then
10842 { { echo "$as_me:$LINENO: error: zlib header not found
10843 If you have zlib already installed, see config.log for details on the
10844 failure. It is possible the compiler isn't looking in the proper directory.
10845 Use --without-zlib to disable zlib support." >&5
10846 echo "$as_me: error: zlib header not found
10847 If you have zlib already installed, see config.log for details on the
10848 failure. It is possible the compiler isn't looking in the proper directory.
10849 Use --without-zlib to disable zlib support." >&2;}
10850 { (exit 1); exit 1; }; }
10856 if test "$with_gssapi" = yes ; then
10858 for ac_header in gssapi/gssapi.h
10860 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 ac_res=`eval echo '${'$as_ac_Header'}'`
10868 { echo "$as_me:$LINENO: result: $ac_res" >&5
10869 echo "${ECHO_T}$ac_res" >&6; }
10871 # Is the header compilable?
10872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 $ac_includes_default
10881 #include <$ac_header>
10883 rm -f conftest.$ac_objext
10884 if { (ac_try="$ac_compile"
10885 case "(($ac_try" in
10886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10887 *) ac_try_echo
=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_compile") 2>conftest.er1
10892 grep -v '^ *+' conftest.er1
>conftest.err
10894 cat conftest.err
>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest.
$ac_objext; then
10900 ac_header_compiler
=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.
$ac_ext >&5
10905 ac_header_compiler
=no
10908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10910 echo "${ECHO_T}$ac_header_compiler" >&6; }
10912 # Is the header present?
10913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10915 cat >conftest.
$ac_ext <<_ACEOF
10918 cat confdefs.h
>>conftest.
$ac_ext
10919 cat >>conftest.
$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <$ac_header>
10923 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10924 case "(($ac_try" in
10925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } >/dev/null && {
10936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10939 ac_header_preproc=yes
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_header_preproc=no
10947 rm -f conftest.err conftest.$ac_ext
10948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10949 echo "${ECHO_T}$ac_header_preproc" >&6; }
10951 # So? What about this header?
10952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10958 ac_header_preproc=yes
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10974 ## ---------------------------------------- ##
10975 ## Report this to pgsql-bugs@postgresql.org ##
10976 ## ---------------------------------------- ##
10978 ) | sed "s/^/$as_me: WARNING: /" >&2
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 eval "$as_ac_Header=\$ac_header_preproc"
10988 ac_res=`eval echo '${'$as_ac_Header'}'`
10989 { echo "$as_me:$LINENO: result: $ac_res" >&5
10990 echo "${ECHO_T}$ac_res" >&6; }
10993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10994 cat >>confdefs.h <<_ACEOF
10995 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11000 for ac_header in gssapi.h
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11013 # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 $ac_includes_default
11023 #include <$ac_header>
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11029 *) ac_try_echo
=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1
>conftest.err
11036 cat conftest.err
>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest.
$ac_objext; then
11042 ac_header_compiler
=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.
$ac_ext >&5
11047 ac_header_compiler
=no
11050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11052 echo "${ECHO_T}$ac_header_compiler" >&6; }
11054 # Is the header present?
11055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11057 cat >conftest.
$ac_ext <<_ACEOF
11060 cat confdefs.h
>>conftest.
$ac_ext
11061 cat >>conftest.
$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <$ac_header>
11065 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11066 case "(($ac_try" in
11067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } >/dev/null && {
11078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11081 ac_header_preproc=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_header_preproc=no
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11093 # So? What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100 ac_header_preproc=yes
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116 ## ---------------------------------------- ##
11117 ## Report this to pgsql-bugs@postgresql.org ##
11118 ## ---------------------------------------- ##
11120 ) | sed "s/^/$as_me: WARNING: /" >&2
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 eval "$as_ac_Header=\$ac_header_preproc"
11130 ac_res=`eval echo '${'$as_ac_Header'}'`
11131 { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11141 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11142 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11143 { (exit 1); exit 1; }; }
11154 if test "$with_krb5" = yes ; then
11155 if test "${ac_cv_header_krb5_h+set}" = set; then
11156 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11157 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11158 if test "${ac_cv_header_krb5_h+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11162 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11164 # Is the header compilable?
11165 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11166 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11176 rm -f conftest.$ac_objext
11177 if { (ac_try="$ac_compile"
11178 case "(($ac_try" in
11179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11180 *) ac_try_echo
=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1
>conftest.err
11187 cat conftest.err
>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest.
$ac_objext; then
11193 ac_header_compiler
=yes
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.
$ac_ext >&5
11198 ac_header_compiler
=no
11201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6; }
11205 # Is the header present?
11206 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11207 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11208 cat >conftest.
$ac_ext <<_ACEOF
11211 cat confdefs.h
>>conftest.
$ac_ext
11212 cat >>conftest.
$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11216 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11217 case "(($ac_try" in
11218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } >/dev/null && {
11229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11230 test ! -s conftest.err
11232 ac_header_preproc=yes
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 ac_header_preproc=no
11240 rm -f conftest.err conftest.$ac_ext
11241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11242 echo "${ECHO_T}$ac_header_preproc" >&6; }
11244 # So? What about this header?
11245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11248 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11250 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11251 ac_header_preproc=yes
11254 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11255 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11257 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11259 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11261 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11263 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11265 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11267 ## ---------------------------------------- ##
11268 ## Report this to pgsql-bugs@postgresql.org ##
11269 ## ---------------------------------------- ##
11271 ) | sed "s/^/$as_me: WARNING: /" >&2
11274 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11275 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11276 if test "${ac_cv_header_krb5_h+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 ac_cv_header_krb5_h=$ac_header_preproc
11281 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11282 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11285 if test $ac_cv_header_krb5_h = yes; then
11288 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11289 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11290 { (exit 1); exit 1; }; }
11296 if test "$with_openssl" = yes ; then
11297 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11298 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11299 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11300 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11304 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11306 # Is the header compilable?
11307 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11308 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 #include <openssl/ssl.h>
11318 rm -f conftest.$ac_objext
11319 if { (ac_try="$ac_compile"
11320 case "(($ac_try" in
11321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11322 *) ac_try_echo
=$ac_try;;
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_compile") 2>conftest.er1
11327 grep -v '^ *+' conftest.er1
>conftest.err
11329 cat conftest.err
>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && {
11332 test -z "$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11334 } && test -s conftest.
$ac_objext; then
11335 ac_header_compiler
=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.
$ac_ext >&5
11340 ac_header_compiler
=no
11343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6; }
11347 # Is the header present?
11348 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11349 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11350 cat >conftest.
$ac_ext <<_ACEOF
11353 cat confdefs.h
>>conftest.
$ac_ext
11354 cat >>conftest.
$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #include <openssl/ssl.h>
11358 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11359 case "(($ac_try" in
11360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11366 grep -v '^ *+' conftest.er1 >conftest.err
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null && {
11371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11374 ac_header_preproc=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_header_preproc=no
11382 rm -f conftest.err conftest.$ac_ext
11383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11384 echo "${ECHO_T}$ac_header_preproc" >&6; }
11386 # So? What about this header?
11387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11389 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11390 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11392 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11393 ac_header_preproc=yes
11396 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11397 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11399 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11401 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11403 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11405 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11407 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11409 ## ---------------------------------------- ##
11410 ## Report this to pgsql-bugs@postgresql.org ##
11411 ## ---------------------------------------- ##
11413 ) | sed "s/^/$as_me: WARNING: /" >&2
11416 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11417 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11418 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11423 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11424 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11427 if test $ac_cv_header_openssl_ssl_h = yes; then
11430 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11431 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11432 { (exit 1); exit 1; }; }
11436 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11437 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11438 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11439 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11443 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11445 # Is the header compilable?
11446 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11447 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 $ac_includes_default
11455 #include <openssl/err.h>
11457 rm -f conftest.$ac_objext
11458 if { (ac_try="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11461 *) ac_try_echo
=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1
>conftest.err
11468 cat conftest.err
>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.
$ac_objext; then
11474 ac_header_compiler
=yes
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.
$ac_ext >&5
11479 ac_header_compiler
=no
11482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11484 echo "${ECHO_T}$ac_header_compiler" >&6; }
11486 # Is the header present?
11487 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11488 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11489 cat >conftest.
$ac_ext <<_ACEOF
11492 cat confdefs.h
>>conftest.
$ac_ext
11493 cat >>conftest.
$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <openssl/err.h>
11497 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11498 case "(($ac_try" in
11499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } >/dev/null && {
11510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11513 ac_header_preproc=yes
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ac_header_preproc=no
11521 rm -f conftest.err conftest.$ac_ext
11522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11523 echo "${ECHO_T}$ac_header_preproc" >&6; }
11525 # So? What about this header?
11526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11528 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11529 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11531 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11532 ac_header_preproc=yes
11535 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11536 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11538 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11540 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11542 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11544 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11546 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11548 ## ---------------------------------------- ##
11549 ## Report this to pgsql-bugs@postgresql.org ##
11550 ## ---------------------------------------- ##
11552 ) | sed "s/^/$as_me: WARNING: /" >&2
11555 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11556 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11557 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 ac_cv_header_openssl_err_h=$ac_header_preproc
11562 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11563 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11566 if test $ac_cv_header_openssl_err_h = yes; then
11569 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11570 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11571 { (exit 1); exit 1; }; }
11576 for ac_func in ERR_set_mark
11578 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 cat >conftest.$ac_ext <<_ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11592 #define $ac_func innocuous_$ac_func
11594 /* System header to define __stub macros and hopefully few prototypes,
11595 which can conflict with char $ac_func (); below.
11596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597 <limits.h> exists even on freestanding compilers. */
11600 # include <limits.h>
11602 # include <assert.h>
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11614 /* The GNU C library defines this for functions which it implements
11615 to always fail with ENOSYS. Some functions are actually named
11616 something starting with __ and the normal name is an alias. */
11617 #if defined __stub_$ac_func || defined __stub___$ac_func
11624 return $ac_func ();
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (ac_try="$ac_link"
11631 case "(($ac_try" in
11632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11633 *) ac_try_echo
=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_link") 2>conftest.er1
11638 grep -v '^ *+' conftest.er1
>conftest.err
11640 cat conftest.err
>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } && {
11643 test -z "$ac_c_werror_flag" ||
11644 test ! -s conftest.err
11645 } && test -s conftest
$ac_exeext &&
11646 $as_test_x conftest
$ac_exeext; then
11647 eval "$as_ac_var=yes"
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.
$ac_ext >&5
11652 eval "$as_ac_var=no"
11655 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11656 conftest
$ac_exeext conftest.
$ac_ext
11658 ac_res
=`eval echo '${'$as_ac_var'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_var'}'` = yes; then
11662 cat >>confdefs.h
<<_ACEOF
11663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 if test "$with_pam" = yes ; then
11673 for ac_header
in security
/pam_appl.h
11675 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 ac_res
=`eval echo '${'$as_ac_Header'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11686 # Is the header compilable?
11687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11689 cat >conftest.
$ac_ext <<_ACEOF
11692 cat confdefs.h
>>conftest.
$ac_ext
11693 cat >>conftest.
$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 $ac_includes_default
11696 #include <$ac_header>
11698 rm -f conftest.
$ac_objext
11699 if { (ac_try
="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
11715 ac_header_compiler=yes
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 ac_header_compiler=no
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11725 echo "${ECHO_T}$ac_header_compiler" >&6; }
11727 # Is the header present?
11728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 #include <$ac_header>
11738 if { (ac_try="$ac_cpp conftest.$ac_ext"
11739 case "(($ac_try" in
11740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11741 *) ac_try_echo
=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11746 grep -v '^ *+' conftest.er1
>conftest.err
11748 cat conftest.err
>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } >/dev
/null
&& {
11751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11754 ac_header_preproc
=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.
$ac_ext >&5
11759 ac_header_preproc
=no
11762 rm -f conftest.err conftest.
$ac_ext
11763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11764 echo "${ECHO_T}$ac_header_preproc" >&6; }
11766 # So? What about this header?
11767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11773 ac_header_preproc
=yes
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11789 ## ---------------------------------------- ##
11790 ## Report this to pgsql-bugs@postgresql.org ##
11791 ## ---------------------------------------- ##
11793 ) |
sed "s/^/$as_me: WARNING: /" >&2
11796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11798 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 eval "$as_ac_Header=\$ac_header_preproc"
11803 ac_res
=`eval echo '${'$as_ac_Header'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11809 cat >>confdefs.h
<<_ACEOF
11810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11815 for ac_header
in pam
/pam_appl.h
11817 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 ac_res
=`eval echo '${'$as_ac_Header'}'`
11825 { echo "$as_me:$LINENO: result: $ac_res" >&5
11826 echo "${ECHO_T}$ac_res" >&6; }
11828 # Is the header compilable?
11829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11831 cat >conftest.
$ac_ext <<_ACEOF
11834 cat confdefs.h
>>conftest.
$ac_ext
11835 cat >>conftest.
$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 $ac_includes_default
11838 #include <$ac_header>
11840 rm -f conftest.
$ac_objext
11841 if { (ac_try
="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <$ac_header>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11883 *) ac_try_echo
=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1
>conftest.err
11890 cat conftest.err
>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev
/null
&& {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11896 ac_header_preproc
=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.
$ac_ext >&5
11901 ac_header_preproc
=no
11904 rm -f conftest.err conftest.
$ac_ext
11905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6; }
11908 # So? What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc
=yes
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11931 ## ---------------------------------------- ##
11932 ## Report this to pgsql-bugs@postgresql.org ##
11933 ## ---------------------------------------- ##
11935 ) |
sed "s/^/$as_me: WARNING: /" >&2
11938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11940 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 eval "$as_ac_Header=\$ac_header_preproc"
11945 ac_res
=`eval echo '${'$as_ac_Header'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11951 cat >>confdefs.h
<<_ACEOF
11952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11957 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11958 { (exit 1); exit 1; }; }
11969 if test "$with_libxml" = yes ; then
11970 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11971 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11972 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11973 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11977 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11979 # Is the header compilable?
11980 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11981 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11982 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11989 #include <libxml/parser.h>
11991 rm -f conftest.
$ac_objext
11992 if { (ac_try
="$ac_compile"
11993 case "(($ac_try" in
11994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_compile") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest.$ac_objext; then
12008 ac_header_compiler=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_header_compiler=no
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12018 echo "${ECHO_T}$ac_header_compiler" >&6; }
12020 # Is the header present?
12021 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12022 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12023 cat >conftest.$ac_ext <<_ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 #include <libxml/parser.h>
12031 if { (ac_try="$ac_cpp conftest.$ac_ext"
12032 case "(($ac_try" in
12033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12034 *) ac_try_echo
=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12039 grep -v '^ *+' conftest.er1
>conftest.err
12041 cat conftest.err
>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } >/dev
/null
&& {
12044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12045 test ! -s conftest.err
12047 ac_header_preproc
=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.
$ac_ext >&5
12052 ac_header_preproc
=no
12055 rm -f conftest.err conftest.
$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12057 echo "${ECHO_T}$ac_header_preproc" >&6; }
12059 # So? What about this header?
12060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12062 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12063 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12065 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12066 ac_header_preproc
=yes
12069 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12070 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12072 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12074 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12076 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12078 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12080 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12082 ## ---------------------------------------- ##
12083 ## Report this to pgsql-bugs@postgresql.org ##
12084 ## ---------------------------------------- ##
12086 ) |
sed "s/^/$as_me: WARNING: /" >&2
12089 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12090 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12091 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 ac_cv_header_libxml_parser_h
=$ac_header_preproc
12096 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12097 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12100 if test $ac_cv_header_libxml_parser_h = yes; then
12103 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12104 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12105 { (exit 1); exit 1; }; }
12111 if test "$with_libxslt" = yes ; then
12112 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12113 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12114 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12115 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12119 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12121 # Is the header compilable?
12122 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12123 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12124 cat >conftest.
$ac_ext <<_ACEOF
12127 cat confdefs.h
>>conftest.
$ac_ext
12128 cat >>conftest.
$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 $ac_includes_default
12131 #include <libxslt/xslt.h>
12133 rm -f conftest.
$ac_objext
12134 if { (ac_try
="$ac_compile"
12135 case "(($ac_try" in
12136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_compile") 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && {
12147 test -z "$ac_c_werror_flag" ||
12148 test ! -s conftest.err
12149 } && test -s conftest.$ac_objext; then
12150 ac_header_compiler=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_compiler=no
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12160 echo "${ECHO_T}$ac_header_compiler" >&6; }
12162 # Is the header present?
12163 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12164 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #include <libxslt/xslt.h>
12173 if { (ac_try="$ac_cpp conftest.$ac_ext"
12174 case "(($ac_try" in
12175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12176 *) ac_try_echo
=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1
>conftest.err
12183 cat conftest.err
>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } >/dev
/null
&& {
12186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12189 ac_header_preproc
=yes
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.
$ac_ext >&5
12194 ac_header_preproc
=no
12197 rm -f conftest.err conftest.
$ac_ext
12198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6; }
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12204 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12207 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc
=yes
12211 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12212 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12214 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12216 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12218 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12220 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12222 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12224 ## ---------------------------------------- ##
12225 ## Report this to pgsql-bugs@postgresql.org ##
12226 ## ---------------------------------------- ##
12228 ) |
sed "s/^/$as_me: WARNING: /" >&2
12231 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12232 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12233 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
12238 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12239 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12242 if test $ac_cv_header_libxslt_xslt_h = yes; then
12245 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12246 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12247 { (exit 1); exit 1; }; }
12253 if test "$with_ldap" = yes ; then
12254 if test "$PORTNAME" != "win32"; then
12256 for ac_header
in ldap.h
12258 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12259 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12262 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_res
=`eval echo '${'$as_ac_Header'}'`
12266 { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12269 # Is the header compilable?
12270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12272 cat >conftest.
$ac_ext <<_ACEOF
12275 cat confdefs.h
>>conftest.
$ac_ext
12276 cat >>conftest.
$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 #include <$ac_header>
12281 rm -f conftest.
$ac_objext
12282 if { (ac_try
="$ac_compile"
12283 case "(($ac_try" in
12284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_compile") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && {
12295 test -z "$ac_c_werror_flag" ||
12296 test ! -s conftest.err
12297 } && test -s conftest.$ac_objext; then
12298 ac_header_compiler=yes
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_header_compiler=no
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12308 echo "${ECHO_T}$ac_header_compiler" >&6; }
12310 # Is the header present?
12311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 #include <$ac_header>
12321 if { (ac_try="$ac_cpp conftest.$ac_ext"
12322 case "(($ac_try" in
12323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12324 *) ac_try_echo
=$ac_try;;
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12329 grep -v '^ *+' conftest.er1
>conftest.err
12331 cat conftest.err
>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } >/dev
/null
&& {
12334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12337 ac_header_preproc
=yes
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.
$ac_ext >&5
12342 ac_header_preproc
=no
12345 rm -f conftest.err conftest.
$ac_ext
12346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12347 echo "${ECHO_T}$ac_header_preproc" >&6; }
12349 # So? What about this header?
12350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12356 ac_header_preproc
=yes
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12372 ## ---------------------------------------- ##
12373 ## Report this to pgsql-bugs@postgresql.org ##
12374 ## ---------------------------------------- ##
12376 ) |
sed "s/^/$as_me: WARNING: /" >&2
12379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12381 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 eval "$as_ac_Header=\$ac_header_preproc"
12386 ac_res
=`eval echo '${'$as_ac_Header'}'`
12387 { echo "$as_me:$LINENO: result: $ac_res" >&5
12388 echo "${ECHO_T}$ac_res" >&6; }
12391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12392 cat >>confdefs.h
<<_ACEOF
12393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12398 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12399 { (exit 1); exit 1; }; }
12406 for ac_header
in winldap.h
12408 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12411 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 cat >conftest.
$ac_ext <<_ACEOF
12417 cat confdefs.h
>>conftest.
$ac_ext
12418 cat >>conftest.
$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 $ac_includes_default
12421 #include <windows.h>
12424 #include <$ac_header>
12426 rm -f conftest.
$ac_objext
12427 if { (ac_try
="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 eval "$as_ac_Header=yes"
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 eval "$as_ac_Header=no"
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 ac_res=`eval echo '${'$as_ac_Header'}'`
12454 { echo "$as_me:$LINENO: result: $ac_res" >&5
12455 echo "${ECHO_T}$ac_res" >&6; }
12456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12457 cat >>confdefs.h <<_ACEOF
12458 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12462 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12463 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12464 { (exit 1); exit 1; }; }
12472 if test "$with_bonjour" = yes ; then
12473 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12474 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12475 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12476 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12480 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12482 # Is the header compilable?
12483 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12484 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12492 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12494 rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12498 *) ac_try_echo
=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_compile") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1
>conftest.err
12505 cat conftest.err
>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } && {
12508 test -z "$ac_c_werror_flag" ||
12509 test ! -s conftest.err
12510 } && test -s conftest.
$ac_objext; then
12511 ac_header_compiler
=yes
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.
$ac_ext >&5
12516 ac_header_compiler
=no
12519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12521 echo "${ECHO_T}$ac_header_compiler" >&6; }
12523 # Is the header present?
12524 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12525 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12526 cat >conftest.
$ac_ext <<_ACEOF
12529 cat confdefs.h
>>conftest.
$ac_ext
12530 cat >>conftest.
$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12534 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } >/dev/null && {
12547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12550 ac_header_preproc=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_header_preproc=no
12558 rm -f conftest.err conftest.$ac_ext
12559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12560 echo "${ECHO_T}$ac_header_preproc" >&6; }
12562 # So? What about this header?
12563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12565 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12566 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12568 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12569 ac_header_preproc=yes
12572 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12573 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12575 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12577 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12579 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12581 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12582 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12583 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12585 ## ---------------------------------------- ##
12586 ## Report this to pgsql-bugs@postgresql.org ##
12587 ## ---------------------------------------- ##
12589 ) | sed "s/^/$as_me: WARNING: /" >&2
12592 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12593 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12594 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12599 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12600 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12603 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12606 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12607 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12608 { (exit 1); exit 1; }; }
12614 # for contrib/uuid-ossp
12615 if test "$with_ossp_uuid" = yes ; then
12617 for ac_header in ossp/uuid.h
12619 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 ac_res=`eval echo '${'$as_ac_Header'}'`
12627 { echo "$as_me:$LINENO: result: $ac_res" >&5
12628 echo "${ECHO_T}$ac_res" >&6; }
12630 # Is the header compilable?
12631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <$ac_header>
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12646 *) ac_try_echo
=$ac_try;;
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12651 grep -v '^ *+' conftest.er1
>conftest.err
12653 cat conftest.err
>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.
$ac_objext; then
12659 ac_header_compiler
=yes
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.
$ac_ext >&5
12664 ac_header_compiler
=no
12667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12669 echo "${ECHO_T}$ac_header_compiler" >&6; }
12671 # Is the header present?
12672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12674 cat >conftest.
$ac_ext <<_ACEOF
12677 cat confdefs.h
>>conftest.
$ac_ext
12678 cat >>conftest.
$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 #include <$ac_header>
12682 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12683 case "(($ac_try" in
12684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null && {
12695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12698 ac_header_preproc=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_header_preproc=no
12706 rm -f conftest.err conftest.$ac_ext
12707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12708 echo "${ECHO_T}$ac_header_preproc" >&6; }
12710 # So? What about this header?
12711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12717 ac_header_preproc=yes
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12733 ## ---------------------------------------- ##
12734 ## Report this to pgsql-bugs@postgresql.org ##
12735 ## ---------------------------------------- ##
12737 ) | sed "s/^/$as_me: WARNING: /" >&2
12740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 eval "$as_ac_Header=\$ac_header_preproc"
12747 ac_res=`eval echo '${'$as_ac_Header'}'`
12748 { echo "$as_me:$LINENO: result: $ac_res" >&5
12749 echo "${ECHO_T}$ac_res" >&6; }
12752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12760 for ac_header in uuid.h
12762 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 ac_res=`eval echo '${'$as_ac_Header'}'`
12770 { echo "$as_me:$LINENO: result: $ac_res" >&5
12771 echo "${ECHO_T}$ac_res" >&6; }
12773 # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 #include <$ac_header>
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12789 *) ac_try_echo
=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1
>conftest.err
12796 cat conftest.err
>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.
$ac_objext; then
12802 ac_header_compiler
=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.
$ac_ext >&5
12807 ac_header_compiler
=no
12810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12812 echo "${ECHO_T}$ac_header_compiler" >&6; }
12814 # Is the header present?
12815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12817 cat >conftest.
$ac_ext <<_ACEOF
12820 cat confdefs.h
>>conftest.
$ac_ext
12821 cat >>conftest.
$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #include <$ac_header>
12825 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12826 case "(($ac_try" in
12827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12833 grep -v '^ *+' conftest.er1 >conftest.err
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev/null && {
12838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12841 ac_header_preproc=yes
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ac_header_preproc=no
12849 rm -f conftest.err conftest.$ac_ext
12850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12851 echo "${ECHO_T}$ac_header_preproc" >&6; }
12853 # So? What about this header?
12854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12860 ac_header_preproc=yes
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12876 ## ---------------------------------------- ##
12877 ## Report this to pgsql-bugs@postgresql.org ##
12878 ## ---------------------------------------- ##
12880 ) | sed "s/^/$as_me: WARNING: /" >&2
12883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 eval "$as_ac_Header=\$ac_header_preproc"
12890 ac_res=`eval echo '${'$as_ac_Header'}'`
12891 { echo "$as_me:$LINENO: result: $ac_res" >&5
12892 echo "${ECHO_T}$ac_res" >&6; }
12895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12896 cat >>confdefs.h <<_ACEOF
12897 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12901 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12902 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12903 { (exit 1); exit 1; }; }
12916 ## Types, structures, compiler characteristics
12919 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12920 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12921 if test "${ac_cv_c_bigendian+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 # See if sys/param.h defines the BYTE_ORDER macro.
12925 cat >conftest.$ac_ext <<_ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 #include <sys/types.h>
12932 #include <sys/param.h>
12937 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12938 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12939 bogus endian macros
12946 rm -f conftest.$ac_objext
12947 if { (ac_try="$ac_compile"
12948 case "(($ac_try" in
12949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12950 *) ac_try_echo
=$ac_try;;
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_compile") 2>conftest.er1
12955 grep -v '^ *+' conftest.er1
>conftest.err
12957 cat conftest.err
>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } && {
12960 test -z "$ac_c_werror_flag" ||
12961 test ! -s conftest.err
12962 } && test -s conftest.
$ac_objext; then
12963 # It does; now see whether it defined to BIG_ENDIAN or not.
12964 cat >conftest.
$ac_ext <<_ACEOF
12967 cat confdefs.h
>>conftest.
$ac_ext
12968 cat >>conftest.
$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <sys/types.h>
12971 #include <sys/param.h>
12976 #if BYTE_ORDER != BIG_ENDIAN
12984 rm -f conftest.
$ac_objext
12985 if { (ac_try
="$ac_compile"
12986 case "(($ac_try" in
12987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_compile") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } && {
12998 test -z "$ac_c_werror_flag" ||
12999 test ! -s conftest.err
13000 } && test -s conftest.$ac_objext; then
13001 ac_cv_c_bigendian=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_c_bigendian=no
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 # It does not; compile a test program.
13015 if test "$cross_compiling" = yes; then
13016 # try to guess the endianness by grepping values into an object file
13017 ac_cv_c_bigendian=unknown
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13025 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13026 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13027 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13028 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13029 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13033 _ascii (); _ebcdic ();
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
13055 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13056 ac_cv_c_bigendian
=yes
13058 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13059 if test "$ac_cv_c_bigendian" = unknown
; then
13060 ac_cv_c_bigendian
=no
13062 # finding both strings is unlikely to happen, but who knows?
13063 ac_cv_c_bigendian
=unknown
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.
$ac_ext >&5
13073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13075 cat >conftest.
$ac_ext <<_ACEOF
13078 cat confdefs.h
>>conftest.
$ac_ext
13079 cat >>conftest.
$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 $ac_includes_default
13086 /* Are we little or big endian? From Harbison&Steele. */
13090 char c[sizeof (long int)];
13093 return u.c[sizeof (long int) - 1] == 1;
13099 rm -f conftest
$ac_exeext
13100 if { (ac_try
="$ac_link"
13101 case "(($ac_try" in
13102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_link") 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13112 *) ac_try_echo
=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_c_bigendian
=no
13121 echo "$as_me: program exited with status $ac_status" >&5
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.
$ac_ext >&5
13125 ( exit $ac_status )
13126 ac_cv_c_bigendian
=yes
13128 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13136 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13137 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13138 case $ac_cv_c_bigendian in
13141 cat >>confdefs.h
<<\_ACEOF
13142 #define WORDS_BIGENDIAN 1
13148 { { echo "$as_me:$LINENO: error: unknown endianness
13149 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13150 echo "$as_me: error: unknown endianness
13151 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13152 { (exit 1); exit 1; }; } ;;
13155 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13157 if test "${ac_cv_c_const+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 cat >conftest.
$ac_ext <<_ACEOF
13163 cat confdefs.h
>>conftest.
$ac_ext
13164 cat >>conftest.
$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13170 /* FIXME: Include the comments suggested by Paul. */
13171 #ifndef __cplusplus
13172 /* Ultrix mips cc rejects this. */
13173 typedef int charset[2];
13175 /* SunOS 4.1.1 cc rejects this. */
13176 char const *const *pcpcc;
13178 /* NEC SVR4.0.2 mips cc rejects this. */
13179 struct point {int x, y;};
13180 static struct point const zero = {0,0};
13181 /* AIX XL C 1.02.0.0 rejects this.
13182 It does not let you subtract one const X* pointer from another in
13183 an arm of an if-expression whose if-part is not a constant
13185 const char *g = "string";
13186 pcpcc = &g + (g ? g-g : 0);
13187 /* HPUX 7.0 cc rejects these. */
13189 ppc = (char**) pcpcc;
13190 pcpcc = (char const *const *) ppc;
13191 { /* SCO 3.2v4 cc rejects this. */
13193 char const *s = 0 ? (char *) 0 : (char const *) 0;
13198 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13199 int x[] = {25, 17};
13200 const int *foo = &x[0];
13203 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13204 typedef const int *iptr;
13208 { /* AIX XL C 1.02.0.0 rejects this saying
13209 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13210 struct s { int j; const int *ap[3]; };
13211 struct s *b; b->j = 5;
13213 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13214 const int foo = 10;
13215 if (!foo) return 0;
13217 return !cs[0] && !zero.x;
13224 rm -f conftest.
$ac_objext
13225 if { (ac_try
="$ac_compile"
13226 case "(($ac_try" in
13227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_compile") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest.$ac_objext; then
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13252 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13253 if test $ac_cv_c_const = no; then
13255 cat >>confdefs.h <<\_ACEOF
13261 { echo "$as_me:$LINENO: checking for inline" >&5
13262 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13263 if test "${ac_cv_c_inline+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 for ac_kw in inline __inline__ __inline; do
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #ifndef __cplusplus
13276 static $ac_kw foo_t static_foo () {return 0; }
13277 $ac_kw foo_t foo () {return 0; }
13281 rm -f conftest.$ac_objext
13282 if { (ac_try="$ac_compile"
13283 case "(($ac_try" in
13284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13285 *) ac_try_echo
=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_compile") 2>conftest.er1
13290 grep -v '^ *+' conftest.er1
>conftest.err
13292 cat conftest.err
>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && {
13295 test -z "$ac_c_werror_flag" ||
13296 test ! -s conftest.err
13297 } && test -s conftest.
$ac_objext; then
13298 ac_cv_c_inline
=$ac_kw
13300 echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.
$ac_ext >&5
13306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13307 test "$ac_cv_c_inline" != no
&& break
13311 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13312 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13315 case $ac_cv_c_inline in
13318 case $ac_cv_c_inline in
13320 *) ac_val
=$ac_cv_c_inline;;
13322 cat >>confdefs.h
<<_ACEOF
13323 #ifndef __cplusplus
13324 #define inline $ac_val
13330 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13331 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13332 if test "${ac_cv_c_stringize+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 cat >conftest.
$ac_ext <<_ACEOF
13338 cat confdefs.h
>>conftest.
$ac_ext
13339 cat >>conftest.
$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13343 char *s = x(teststring);
13345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13346 $EGREP "#teststring" >/dev
/null
2>&1; then
13347 ac_cv_c_stringize
=no
13349 ac_cv_c_stringize
=yes
13354 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13355 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13356 if test $ac_cv_c_stringize = yes; then
13358 cat >>confdefs.h
<<\_ACEOF
13359 #define HAVE_STRINGIZE 1
13364 { echo "$as_me:$LINENO: checking for signed types" >&5
13365 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13366 if test "${pgac_cv_c_signed+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 cat >conftest.
$ac_ext <<_ACEOF
13372 cat confdefs.h
>>conftest.
$ac_ext
13373 cat >>conftest.
$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13379 signed char c; signed short s; signed int i;
13384 rm -f conftest.
$ac_objext
13385 if { (ac_try
="$ac_compile"
13386 case "(($ac_try" in
13387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_compile") 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest.$ac_objext; then
13401 pgac_cv_c_signed=yes
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 pgac_cv_c_signed=no
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13412 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13413 if test x"$pgac_cv_c_signed" = xno ; then
13415 cat >>confdefs.h <<\_ACEOF
13420 { echo "$as_me:$LINENO: checking for working volatile" >&5
13421 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13422 if test "${ac_cv_c_volatile+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13437 int * volatile y = (int *) 0;
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13447 *) ac_try_echo
=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_compile") 2>conftest.er1
13452 grep -v '^ *+' conftest.er1
>conftest.err
13454 cat conftest.err
>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest.
$ac_objext; then
13460 ac_cv_c_volatile
=yes
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.
$ac_ext >&5
13465 ac_cv_c_volatile
=no
13468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13470 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13471 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13472 if test $ac_cv_c_volatile = no
; then
13474 cat >>confdefs.h
<<\_ACEOF
13480 { echo "$as_me:$LINENO: checking for __func__" >&5
13481 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13482 if test "${pgac_cv_funcname_func_support+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.
$ac_ext <<_ACEOF
13488 cat confdefs.h
>>conftest.
$ac_ext
13489 cat >>conftest.
$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13495 printf("%s\n", __func__);
13500 rm -f conftest.
$ac_objext
13501 if { (ac_try
="$ac_compile"
13502 case "(($ac_try" in
13503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_compile") 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest.$ac_objext; then
13517 pgac_cv_funcname_func_support=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 pgac_cv_funcname_func_support=no
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13527 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13528 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13529 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13531 cat >>confdefs.h <<\_ACEOF
13532 #define HAVE_FUNCNAME__FUNC 1
13536 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13537 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13538 if test "${pgac_cv_funcname_function_support+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13551 printf("%s\n", __FUNCTION__);
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13560 *) ac_try_echo
=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1
>conftest.err
13567 cat conftest.err
>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest.
$ac_objext; then
13573 pgac_cv_funcname_function_support
=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.
$ac_ext >&5
13578 pgac_cv_funcname_function_support
=no
13581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13583 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13584 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13585 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13587 cat >>confdefs.h
<<\_ACEOF
13588 #define HAVE_FUNCNAME__FUNCTION 1
13593 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13594 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13595 if test "${ac_cv_struct_tm+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 cat >conftest.
$ac_ext <<_ACEOF
13601 cat confdefs.h
>>conftest.
$ac_ext
13602 cat >>conftest.
$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13604 #include <sys/types.h>
13611 int *p = &tm.tm_sec;
13617 rm -f conftest.
$ac_objext
13618 if { (ac_try
="$ac_compile"
13619 case "(($ac_try" in
13620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compile") 2>conftest.er1
13626 grep -v '^ *+' conftest.er1 >conftest.err
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } && {
13631 test -z "$ac_c_werror_flag" ||
13632 test ! -s conftest.err
13633 } && test -s conftest.$ac_objext; then
13634 ac_cv_struct_tm=time.h
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_struct_tm=sys/time.h
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13645 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13646 if test $ac_cv_struct_tm = sys/time.h; then
13648 cat >>confdefs.h <<\_ACEOF
13649 #define TM_IN_SYS_TIME 1
13654 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13655 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13656 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #include <sys/types.h>
13666 #include <$ac_cv_struct_tm>
13672 static struct tm ac_aggr;
13673 if (ac_aggr.tm_zone)
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13683 *) ac_try_echo
=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1
>conftest.err
13690 cat conftest.err
>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest.
$ac_objext; then
13696 ac_cv_member_struct_tm_tm_zone
=yes
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.
$ac_ext >&5
13701 cat >conftest.
$ac_ext <<_ACEOF
13704 cat confdefs.h
>>conftest.
$ac_ext
13705 cat >>conftest.
$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13707 #include <sys/types.h>
13708 #include <$ac_cv_struct_tm>
13714 static struct tm ac_aggr;
13715 if (sizeof ac_aggr.tm_zone)
13721 rm -f conftest.
$ac_objext
13722 if { (ac_try
="$ac_compile"
13723 case "(($ac_try" in
13724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_compile") 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest.$ac_objext; then
13738 ac_cv_member_struct_tm_tm_zone=yes
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_cv_member_struct_tm_tm_zone=no
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13752 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13753 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756 #define HAVE_STRUCT_TM_TM_ZONE 1
13762 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13764 cat >>confdefs.h <<\_ACEOF
13765 #define HAVE_TM_ZONE 1
13769 { echo "$as_me:$LINENO: checking for tzname" >&5
13770 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13771 if test "${ac_cv_var_tzname+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 cat >conftest.$ac_ext <<_ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13781 #ifndef tzname /* For SGI. */
13782 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (ac_try="$ac_link"
13795 case "(($ac_try" in
13796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13797 *) ac_try_echo
=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_link") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1
>conftest.err
13804 cat conftest.err
>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } && {
13807 test -z "$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 } && test -s conftest
$ac_exeext &&
13810 $as_test_x conftest
$ac_exeext; then
13811 ac_cv_var_tzname
=yes
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.
$ac_ext >&5
13816 ac_cv_var_tzname
=no
13819 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13820 conftest
$ac_exeext conftest.
$ac_ext
13822 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13823 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13824 if test $ac_cv_var_tzname = yes; then
13826 cat >>confdefs.h
<<\_ACEOF
13827 #define HAVE_TZNAME 1
13832 { echo "$as_me:$LINENO: checking for union semun" >&5
13833 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13834 if test "${ac_cv_type_union_semun+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 cat >conftest.
$ac_ext <<_ACEOF
13840 cat confdefs.h
>>conftest.
$ac_ext
13841 cat >>conftest.
$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843 #include <sys/types.h>
13844 #include <sys/ipc.h>
13845 #include <sys/sem.h>
13847 typedef union semun ac__type_new_;
13851 if ((ac__type_new_ *) 0)
13853 if (sizeof (ac__type_new_))
13859 rm -f conftest.
$ac_objext
13860 if { (ac_try
="$ac_compile"
13861 case "(($ac_try" in
13862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_compile") 2>conftest.er1
13868 grep -v '^ *+' conftest.er1 >conftest.err
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && {
13873 test -z "$ac_c_werror_flag" ||
13874 test ! -s conftest.err
13875 } && test -s conftest.$ac_objext; then
13876 ac_cv_type_union_semun=yes
13878 echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13881 ac_cv_type_union_semun=no
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13887 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13888 if test $ac_cv_type_union_semun = yes; then
13890 cat >>confdefs.h <<_ACEOF
13891 #define HAVE_UNION_SEMUN 1
13897 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13898 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13899 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 #include <sys/types.h>
13909 #ifdef HAVE_SYS_UN_H
13910 #include <sys/un.h>
13914 typedef struct sockaddr_un ac__type_new_;
13918 if ((ac__type_new_ *) 0)
13920 if (sizeof (ac__type_new_))
13926 rm -f conftest.$ac_objext
13927 if { (ac_try="$ac_compile"
13928 case "(($ac_try" in
13929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13930 *) ac_try_echo
=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_compile") 2>conftest.er1
13935 grep -v '^ *+' conftest.er1
>conftest.err
13937 cat conftest.err
>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } && {
13940 test -z "$ac_c_werror_flag" ||
13941 test ! -s conftest.err
13942 } && test -s conftest.
$ac_objext; then
13943 ac_cv_type_struct_sockaddr_un
=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.
$ac_ext >&5
13948 ac_cv_type_struct_sockaddr_un
=no
13951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13953 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13954 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13955 if test $ac_cv_type_struct_sockaddr_un = yes; then
13957 cat >>confdefs.h
<<_ACEOF
13958 #define HAVE_STRUCT_SOCKADDR_UN 1
13962 cat >>confdefs.h
<<\_ACEOF
13963 #define HAVE_UNIX_SOCKETS 1
13968 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13969 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13970 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 cat >conftest.
$ac_ext <<_ACEOF
13976 cat confdefs.h
>>conftest.
$ac_ext
13977 cat >>conftest.
$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13980 #ifdef HAVE_SYS_SOCKET_H
13981 #include <sys/socket.h>
13985 typedef struct sockaddr_storage ac__type_new_;
13989 if ((ac__type_new_ *) 0)
13991 if (sizeof (ac__type_new_))
13997 rm -f conftest.
$ac_objext
13998 if { (ac_try
="$ac_compile"
13999 case "(($ac_try" in
14000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_compile") 2>conftest.er1
14006 grep -v '^ *+' conftest.er1 >conftest.err
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest.$ac_objext; then
14014 ac_cv_type_struct_sockaddr_storage=yes
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ac_cv_type_struct_sockaddr_storage=no
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14025 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14026 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14035 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14036 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14037 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 #include <sys/types.h>
14047 #ifdef HAVE_SYS_SOCKET_H
14048 #include <sys/socket.h>
14055 static struct sockaddr_storage ac_aggr;
14056 if (ac_aggr.ss_family)
14062 rm -f conftest.$ac_objext
14063 if { (ac_try="$ac_compile"
14064 case "(($ac_try" in
14065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14066 *) ac_try_echo
=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_compile") 2>conftest.er1
14071 grep -v '^ *+' conftest.er1
>conftest.err
14073 cat conftest.err
>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } && {
14076 test -z "$ac_c_werror_flag" ||
14077 test ! -s conftest.err
14078 } && test -s conftest.
$ac_objext; then
14079 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.
$ac_ext >&5
14084 cat >conftest.
$ac_ext <<_ACEOF
14087 cat confdefs.h
>>conftest.
$ac_ext
14088 cat >>conftest.
$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 #include <sys/types.h>
14091 #ifdef HAVE_SYS_SOCKET_H
14092 #include <sys/socket.h>
14099 static struct sockaddr_storage ac_aggr;
14100 if (sizeof ac_aggr.ss_family)
14106 rm -f conftest.
$ac_objext
14107 if { (ac_try
="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
14123 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_cv_member_struct_sockaddr_storage_ss_family=no
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14137 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14138 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14140 cat >>confdefs.h <<_ACEOF
14141 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14146 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14147 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14148 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <sys/types.h>
14158 #ifdef HAVE_SYS_SOCKET_H
14159 #include <sys/socket.h>
14166 static struct sockaddr_storage ac_aggr;
14167 if (ac_aggr.__ss_family)
14173 rm -f conftest.$ac_objext
14174 if { (ac_try="$ac_compile"
14175 case "(($ac_try" in
14176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14177 *) ac_try_echo
=$ac_try;;
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14182 grep -v '^ *+' conftest.er1
>conftest.err
14184 cat conftest.err
>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.
$ac_objext; then
14190 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.
$ac_ext >&5
14195 cat >conftest.
$ac_ext <<_ACEOF
14198 cat confdefs.h
>>conftest.
$ac_ext
14199 cat >>conftest.
$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <sys/types.h>
14202 #ifdef HAVE_SYS_SOCKET_H
14203 #include <sys/socket.h>
14210 static struct sockaddr_storage ac_aggr;
14211 if (sizeof ac_aggr.__ss_family)
14217 rm -f conftest.
$ac_objext
14218 if { (ac_try
="$ac_compile"
14219 case "(($ac_try" in
14220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_compile") 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest.$ac_objext; then
14234 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ac_cv_member_struct_sockaddr_storage___ss_family=no
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14248 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14249 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14257 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14258 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14259 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <sys/types.h>
14269 #ifdef HAVE_SYS_SOCKET_H
14270 #include <sys/socket.h>
14277 static struct sockaddr_storage ac_aggr;
14278 if (ac_aggr.ss_len)
14284 rm -f conftest.$ac_objext
14285 if { (ac_try="$ac_compile"
14286 case "(($ac_try" in
14287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14288 *) ac_try_echo
=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_compile") 2>conftest.er1
14293 grep -v '^ *+' conftest.er1
>conftest.err
14295 cat conftest.err
>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest.
$ac_objext; then
14301 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.
$ac_ext >&5
14306 cat >conftest.
$ac_ext <<_ACEOF
14309 cat confdefs.h
>>conftest.
$ac_ext
14310 cat >>conftest.
$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 #include <sys/types.h>
14313 #ifdef HAVE_SYS_SOCKET_H
14314 #include <sys/socket.h>
14321 static struct sockaddr_storage ac_aggr;
14322 if (sizeof ac_aggr.ss_len)
14328 rm -f conftest.
$ac_objext
14329 if { (ac_try
="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest.$ac_objext; then
14345 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_member_struct_sockaddr_storage_ss_len=no
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14359 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14360 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14368 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14369 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14370 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 #include <sys/types.h>
14380 #ifdef HAVE_SYS_SOCKET_H
14381 #include <sys/socket.h>
14388 static struct sockaddr_storage ac_aggr;
14389 if (ac_aggr.__ss_len)
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14399 *) ac_try_echo
=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1
>conftest.err
14406 cat conftest.err
>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest.
$ac_objext; then
14412 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.
$ac_ext >&5
14417 cat >conftest.
$ac_ext <<_ACEOF
14420 cat confdefs.h
>>conftest.
$ac_ext
14421 cat >>conftest.
$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <sys/types.h>
14424 #ifdef HAVE_SYS_SOCKET_H
14425 #include <sys/socket.h>
14432 static struct sockaddr_storage ac_aggr;
14433 if (sizeof ac_aggr.__ss_len)
14439 rm -f conftest.
$ac_objext
14440 if { (ac_try
="$ac_compile"
14441 case "(($ac_try" in
14442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_compile") 2>conftest.er1
14448 grep -v '^ *+' conftest.er1 >conftest.err
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } && {
14453 test -z "$ac_c_werror_flag" ||
14454 test ! -s conftest.err
14455 } && test -s conftest.$ac_objext; then
14456 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 ac_cv_member_struct_sockaddr_storage___ss_len=no
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14470 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14471 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14479 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14480 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14481 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 #include <sys/types.h>
14491 #ifdef HAVE_SYS_SOCKET_H
14492 #include <sys/socket.h>
14499 static struct sockaddr ac_aggr;
14500 if (ac_aggr.sa_len)
14506 rm -f conftest.$ac_objext
14507 if { (ac_try="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14510 *) ac_try_echo
=$ac_try;;
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14515 grep -v '^ *+' conftest.er1
>conftest.err
14517 cat conftest.err
>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && {
14520 test -z "$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 } && test -s conftest.
$ac_objext; then
14523 ac_cv_member_struct_sockaddr_sa_len
=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.
$ac_ext >&5
14528 cat >conftest.
$ac_ext <<_ACEOF
14531 cat confdefs.h
>>conftest.
$ac_ext
14532 cat >>conftest.
$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534 #include <sys/types.h>
14535 #ifdef HAVE_SYS_SOCKET_H
14536 #include <sys/socket.h>
14543 static struct sockaddr ac_aggr;
14544 if (sizeof ac_aggr.sa_len)
14550 rm -f conftest.
$ac_objext
14551 if { (ac_try
="$ac_compile"
14552 case "(($ac_try" in
14553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_compile") 2>conftest.er1
14559 grep -v '^ *+' conftest.er1 >conftest.err
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest.$ac_objext; then
14567 ac_cv_member_struct_sockaddr_sa_len=yes
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_cv_member_struct_sockaddr_sa_len=no
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14581 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14582 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14584 cat >>confdefs.h <<_ACEOF
14585 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14591 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14592 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14593 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 #include <sys/types.h>
14603 #include <sys/socket.h>
14607 typedef struct addrinfo ac__type_new_;
14611 if ((ac__type_new_ *) 0)
14613 if (sizeof (ac__type_new_))
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14623 *) ac_try_echo
=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1
>conftest.err
14630 cat conftest.err
>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest.
$ac_objext; then
14636 ac_cv_type_struct_addrinfo
=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.
$ac_ext >&5
14641 ac_cv_type_struct_addrinfo
=no
14644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14646 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14647 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14648 if test $ac_cv_type_struct_addrinfo = yes; then
14650 cat >>confdefs.h
<<_ACEOF
14651 #define HAVE_STRUCT_ADDRINFO 1
14658 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14659 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14660 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 cat >conftest.
$ac_ext <<_ACEOF
14666 cat confdefs.h
>>conftest.
$ac_ext
14667 cat >>conftest.
$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <sys/param.h>
14670 #include <sys/types.h>
14671 #include <sys/socket.h>
14672 #include <sys/ucred.h>
14674 typedef struct cmsgcred ac__type_new_;
14678 if ((ac__type_new_ *) 0)
14680 if (sizeof (ac__type_new_))
14686 rm -f conftest.
$ac_objext
14687 if { (ac_try
="$ac_compile"
14688 case "(($ac_try" in
14689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_compile") 2>conftest.er1
14695 grep -v '^ *+' conftest.er1 >conftest.err
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } && {
14700 test -z "$ac_c_werror_flag" ||
14701 test ! -s conftest.err
14702 } && test -s conftest.$ac_objext; then
14703 ac_cv_type_struct_cmsgcred=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_type_struct_cmsgcred=no
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14714 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14715 if test $ac_cv_type_struct_cmsgcred = yes; then
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_STRUCT_CMSGCRED 1
14723 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14724 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14725 if test "${ac_cv_type_struct_fcred+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <sys/param.h>
14735 #include <sys/types.h>
14736 #include <sys/socket.h>
14737 #include <sys/ucred.h>
14739 typedef struct fcred ac__type_new_;
14743 if ((ac__type_new_ *) 0)
14745 if (sizeof (ac__type_new_))
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14755 *) ac_try_echo
=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1
>conftest.err
14762 cat conftest.err
>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.
$ac_objext; then
14768 ac_cv_type_struct_fcred
=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.
$ac_ext >&5
14773 ac_cv_type_struct_fcred
=no
14776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14779 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14780 if test $ac_cv_type_struct_fcred = yes; then
14782 cat >>confdefs.h
<<_ACEOF
14783 #define HAVE_STRUCT_FCRED 1
14788 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14789 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14790 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 cat >conftest.
$ac_ext <<_ACEOF
14796 cat confdefs.h
>>conftest.
$ac_ext
14797 cat >>conftest.
$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 #include <sys/param.h>
14800 #include <sys/types.h>
14801 #include <sys/socket.h>
14802 #include <sys/ucred.h>
14804 typedef struct sockcred ac__type_new_;
14808 if ((ac__type_new_ *) 0)
14810 if (sizeof (ac__type_new_))
14816 rm -f conftest.
$ac_objext
14817 if { (ac_try
="$ac_compile"
14818 case "(($ac_try" in
14819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } && {
14830 test -z "$ac_c_werror_flag" ||
14831 test ! -s conftest.err
14832 } && test -s conftest.$ac_objext; then
14833 ac_cv_type_struct_sockcred=yes
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_cv_type_struct_sockcred=no
14841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14844 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14845 if test $ac_cv_type_struct_sockcred = yes; then
14847 cat >>confdefs.h <<_ACEOF
14848 #define HAVE_STRUCT_SOCKCRED 1
14855 { echo "$as_me:$LINENO: checking for struct option" >&5
14856 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14857 if test "${ac_cv_type_struct_option+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #ifdef HAVE_GETOPT_H
14867 #include <getopt.h>
14870 typedef struct option ac__type_new_;
14874 if ((ac__type_new_ *) 0)
14876 if (sizeof (ac__type_new_))
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14886 *) ac_try_echo
=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_compile") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest.
$ac_objext; then
14899 ac_cv_type_struct_option
=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.
$ac_ext >&5
14904 ac_cv_type_struct_option
=no
14907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14910 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14911 if test $ac_cv_type_struct_option = yes; then
14913 cat >>confdefs.h
<<_ACEOF
14914 #define HAVE_STRUCT_OPTION 1
14921 if test "$with_zlib" = yes; then
14922 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14923 # did not). While we could work around the lack of z_streamp, it
14924 # seems unwise to encourage people to use such old zlib versions...
14925 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14926 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14927 if test "${ac_cv_type_z_streamp+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 cat >conftest.
$ac_ext <<_ACEOF
14933 cat confdefs.h
>>conftest.
$ac_ext
14934 cat >>conftest.
$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14938 typedef z_streamp ac__type_new_;
14942 if ((ac__type_new_ *) 0)
14944 if (sizeof (ac__type_new_))
14950 rm -f conftest.
$ac_objext
14951 if { (ac_try
="$ac_compile"
14952 case "(($ac_try" in
14953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_compile") 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } && {
14964 test -z "$ac_c_werror_flag" ||
14965 test ! -s conftest.err
14966 } && test -s conftest.$ac_objext; then
14967 ac_cv_type_z_streamp=yes
14969 echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14972 ac_cv_type_z_streamp=no
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14978 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14979 if test $ac_cv_type_z_streamp = yes; then
14982 { { echo "$as_me:$LINENO: error: zlib version is too old
14983 Use --without-zlib to disable zlib support." >&5
14984 echo "$as_me: error: zlib version is too old
14985 Use --without-zlib to disable zlib support." >&2;}
14986 { (exit 1); exit 1; }; }
14991 if test "$with_krb5" = yes; then
14992 # Check for differences between MIT and Heimdal (KTH) releases
14993 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14994 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14995 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15009 static krb5_ticket ac_aggr;
15010 if (ac_aggr.enc_part2)
15016 rm -f conftest.$ac_objext
15017 if { (ac_try="$ac_compile"
15018 case "(($ac_try" in
15019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15020 *) ac_try_echo
=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_compile") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1
>conftest.err
15027 cat conftest.err
>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } && {
15030 test -z "$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15032 } && test -s conftest.
$ac_objext; then
15033 ac_cv_member_krb5_ticket_enc_part2
=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 cat >conftest.
$ac_ext <<_ACEOF
15041 cat confdefs.h
>>conftest.
$ac_ext
15042 cat >>conftest.
$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15049 static krb5_ticket ac_aggr;
15050 if (sizeof ac_aggr.enc_part2)
15056 rm -f conftest.
$ac_objext
15057 if { (ac_try
="$ac_compile"
15058 case "(($ac_try" in
15059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_compile") 2>conftest.er1
15065 grep -v '^ *+' conftest.er1 >conftest.err
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } && {
15070 test -z "$ac_c_werror_flag" ||
15071 test ! -s conftest.err
15072 } && test -s conftest.$ac_objext; then
15073 ac_cv_member_krb5_ticket_enc_part2=yes
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_cv_member_krb5_ticket_enc_part2=no
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15087 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15088 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_KRB5_TICKET_ENC_PART2 1
15096 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15097 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15098 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15112 static krb5_ticket ac_aggr;
15113 if (ac_aggr.client)
15119 rm -f conftest.$ac_objext
15120 if { (ac_try="$ac_compile"
15121 case "(($ac_try" in
15122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15123 *) ac_try_echo
=$ac_try;;
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_compile") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1
>conftest.err
15130 cat conftest.err
>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest.
$ac_objext; then
15136 ac_cv_member_krb5_ticket_client
=yes
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.
$ac_ext >&5
15141 cat >conftest.
$ac_ext <<_ACEOF
15144 cat confdefs.h
>>conftest.
$ac_ext
15145 cat >>conftest.
$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15152 static krb5_ticket ac_aggr;
15153 if (sizeof ac_aggr.client)
15159 rm -f conftest.
$ac_objext
15160 if { (ac_try
="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && {
15173 test -z "$ac_c_werror_flag" ||
15174 test ! -s conftest.err
15175 } && test -s conftest.$ac_objext; then
15176 ac_cv_member_krb5_ticket_client=yes
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ac_cv_member_krb5_ticket_client=no
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15190 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15191 if test $ac_cv_member_krb5_ticket_client = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_KRB5_TICKET_CLIENT 1
15199 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15200 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15201 { (exit 1); exit 1; }; }
15206 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15207 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15208 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15222 static krb5_error ac_aggr;
15223 if (ac_aggr.text.data)
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15233 *) ac_try_echo
=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1
>conftest.err
15240 cat conftest.err
>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest.
$ac_objext; then
15246 ac_cv_member_krb5_error_text_data
=yes
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.
$ac_ext >&5
15251 cat >conftest.
$ac_ext <<_ACEOF
15254 cat confdefs.h
>>conftest.
$ac_ext
15255 cat >>conftest.
$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15262 static krb5_error ac_aggr;
15263 if (sizeof ac_aggr.text.data)
15269 rm -f conftest.
$ac_objext
15270 if { (ac_try
="$ac_compile"
15271 case "(($ac_try" in
15272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_compile") 2>conftest.er1
15278 grep -v '^ *+' conftest.er1 >conftest.err
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_c_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest.$ac_objext; then
15286 ac_cv_member_krb5_error_text_data=yes
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 ac_cv_member_krb5_error_text_data=no
15294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15300 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15301 if test $ac_cv_member_krb5_error_text_data = yes; then
15303 cat >>confdefs.h <<_ACEOF
15304 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15309 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15310 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15311 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15325 static krb5_error ac_aggr;
15326 if (ac_aggr.e_data)
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15336 *) ac_try_echo
=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1
>conftest.err
15343 cat conftest.err
>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest.
$ac_objext; then
15349 ac_cv_member_krb5_error_e_data
=yes
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.
$ac_ext >&5
15354 cat >conftest.
$ac_ext <<_ACEOF
15357 cat confdefs.h
>>conftest.
$ac_ext
15358 cat >>conftest.
$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15365 static krb5_error ac_aggr;
15366 if (sizeof ac_aggr.e_data)
15372 rm -f conftest.
$ac_objext
15373 if { (ac_try
="$ac_compile"
15374 case "(($ac_try" in
15375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_compile") 2>conftest.er1
15381 grep -v '^ *+' conftest.er1 >conftest.err
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } && {
15386 test -z "$ac_c_werror_flag" ||
15387 test ! -s conftest.err
15388 } && test -s conftest.$ac_objext; then
15389 ac_cv_member_krb5_error_e_data=yes
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ac_cv_member_krb5_error_e_data=no
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15403 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15404 if test $ac_cv_member_krb5_error_e_data = yes; then
15406 cat >>confdefs.h <<_ACEOF
15407 #define HAVE_KRB5_ERROR_E_DATA 1
15412 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15413 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15414 { (exit 1); exit 1; }; }
15420 # Win32 requires headers to be loaded for __stdcall, so can't use
15421 # AC_CHECK_FUNCS here.
15422 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15423 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15424 cat >conftest.$ac_ext <<_ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15434 krb5_free_unparsed_name(NULL,NULL);
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15443 *) ac_try_echo
=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_link") 2>conftest.er1
15448 grep -v '^ *+' conftest.er1
>conftest.err
15450 cat conftest.err
>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } && {
15453 test -z "$ac_c_werror_flag" ||
15454 test ! -s conftest.err
15455 } && test -s conftest
$ac_exeext &&
15456 $as_test_x conftest
$ac_exeext; then
15458 cat >>confdefs.h
<<\_ACEOF
15459 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15462 { echo "$as_me:$LINENO: result: yes" >&5
15463 echo "${ECHO_T}yes" >&6; }
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.
$ac_ext >&5
15468 { echo "$as_me:$LINENO: result: no" >&5
15469 echo "${ECHO_T}no" >&6; }
15472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15473 conftest
$ac_exeext conftest.
$ac_ext
15478 ## Functions, global variables
15481 { echo "$as_me:$LINENO: checking for int timezone" >&5
15482 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15483 if test "${pgac_cv_var_int_timezone+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 cat >conftest.
$ac_ext <<_ACEOF
15489 cat confdefs.h
>>conftest.
$ac_ext
15490 cat >>conftest.
$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15498 res = timezone / 60;
15500 res = _timezone / 60;
15506 rm -f conftest.
$ac_objext conftest
$ac_exeext
15507 if { (ac_try
="$ac_link"
15508 case "(($ac_try" in
15509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest$ac_exeext &&
15523 $as_test_x conftest$ac_exeext; then
15524 pgac_cv_var_int_timezone=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 pgac_cv_var_int_timezone=no
15532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15533 conftest$ac_exeext conftest.$ac_ext
15535 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15536 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15537 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15539 cat >>confdefs.h <<\_ACEOF
15540 #define HAVE_INT_TIMEZONE
15544 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15545 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15546 if test "${ac_cv_func_accept_return+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 if test "${ac_cv_func_accept_arg1+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 if test "${ac_cv_func_accept_arg2+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 if test "${ac_cv_func_accept_arg3+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15559 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15560 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15561 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #ifdef HAVE_SYS_TYPES_H
15569 #include <sys/types.h>
15571 #ifdef HAVE_SYS_SOCKET_H
15572 #include <sys/socket.h>
15574 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15587 *) ac_try_echo
=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_compile") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1
>conftest.err
15594 cat conftest.err
>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && {
15597 test -z "$ac_c_werror_flag" ||
15598 test ! -s conftest.err
15599 } && test -s conftest.
$ac_objext; then
15600 ac_not_found
=no
; break 4
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.
$ac_ext >&5
15608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15613 if test "$ac_not_found" = yes; then
15614 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15615 echo "$as_me: error: could not determine argument types" >&2;}
15616 { (exit 1); exit 1; }; }
15618 if test "$ac_cv_func_accept_arg3" = "void"; then
15619 ac_cv_func_accept_arg3
=int
15629 { 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
15630 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15632 cat >>confdefs.h
<<_ACEOF
15633 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15637 cat >>confdefs.h
<<_ACEOF
15638 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15642 cat >>confdefs.h
<<_ACEOF
15643 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15647 cat >>confdefs.h
<<_ACEOF
15648 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15652 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15653 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15654 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 cat >conftest.
$ac_ext <<_ACEOF
15660 cat confdefs.h
>>conftest.
$ac_ext
15661 cat >>conftest.
$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 #include <sys/time.h>
15667 struct timeval *tp;
15668 struct timezone *tzp;
15669 gettimeofday(tp,tzp);
15674 rm -f conftest.
$ac_objext
15675 if { (ac_try
="$ac_compile"
15676 case "(($ac_try" in
15677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_compile") 2>conftest.er1
15683 grep -v '^ *+' conftest.er1 >conftest.err
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } && {
15688 test -z "$ac_c_werror_flag" ||
15689 test ! -s conftest.err
15690 } && test -s conftest.$ac_objext; then
15691 pgac_cv_func_gettimeofday_1arg=no
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 pgac_cv_func_gettimeofday_1arg=yes
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15702 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15703 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15705 cat >>confdefs.h <<\_ACEOF
15706 #define GETTIMEOFDAY_1ARG
15733 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15735 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 cat >conftest.$ac_ext <<_ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749 #define $ac_func innocuous_$ac_func
15751 /* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char $ac_func (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15757 # include <limits.h>
15759 # include <assert.h>
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15771 /* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774 #if defined __stub_$ac_func || defined __stub___$ac_func
15781 return $ac_func ();
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15790 *) ac_try_echo
=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15795 grep -v '^ *+' conftest.er1
>conftest.err
15797 cat conftest.err
>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest
$ac_exeext &&
15803 $as_test_x conftest
$ac_exeext; then
15804 eval "$as_ac_var=yes"
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 eval "$as_ac_var=no"
15812 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15813 conftest
$ac_exeext conftest.
$ac_ext
15815 ac_res
=`eval echo '${'$as_ac_var'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15818 if test `eval echo '${'$as_ac_var'}'` = yes; then
15819 cat >>confdefs.h
<<_ACEOF
15820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15827 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15828 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15829 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 cat >conftest.
$ac_ext <<_ACEOF
15835 cat confdefs.h
>>conftest.
$ac_ext
15836 cat >>conftest.
$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 #include <unistd.h>
15851 rm -f conftest.
$ac_objext
15852 if { (ac_try
="$ac_compile"
15853 case "(($ac_try" in
15854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_compile") 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_c_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest.$ac_objext; then
15868 ac_cv_have_decl_fdatasync=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_have_decl_fdatasync=no
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15879 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15880 if test $ac_cv_have_decl_fdatasync = yes; then
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_DECL_FDATASYNC 1
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_DECL_FDATASYNC 0
15896 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15897 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15898 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15912 #ifndef posix_fadvise
15913 (void) posix_fadvise;
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15924 *) ac_try_echo
=$ac_try;;
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_compile") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1
>conftest.err
15931 cat conftest.err
>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest.
$ac_objext; then
15937 ac_cv_have_decl_posix_fadvise
=yes
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.
$ac_ext >&5
15942 ac_cv_have_decl_posix_fadvise
=no
15945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15948 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15949 if test $ac_cv_have_decl_posix_fadvise = yes; then
15951 cat >>confdefs.h
<<_ACEOF
15952 #define HAVE_DECL_POSIX_FADVISE 1
15957 cat >>confdefs.h
<<_ACEOF
15958 #define HAVE_DECL_POSIX_FADVISE 0
15965 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15966 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15967 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 cat >conftest.
$ac_ext <<_ACEOF
15973 cat confdefs.h
>>conftest.
$ac_ext
15974 cat >>conftest.
$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15988 rm -f conftest.
$ac_objext
15989 if { (ac_try
="$ac_compile"
15990 case "(($ac_try" in
15991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest.$ac_objext; then
16005 ac_cv_have_decl_strlcat=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_cv_have_decl_strlcat=no
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16016 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16017 if test $ac_cv_have_decl_strlcat = yes; then
16019 cat >>confdefs.h <<_ACEOF
16020 #define HAVE_DECL_STRLCAT 1
16025 cat >>confdefs.h <<_ACEOF
16026 #define HAVE_DECL_STRLCAT 0
16031 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16032 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16033 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 $ac_includes_default
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16058 *) ac_try_echo
=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_compile") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1
>conftest.err
16065 cat conftest.err
>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest.
$ac_objext; then
16071 ac_cv_have_decl_strlcpy
=yes
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.
$ac_ext >&5
16076 ac_cv_have_decl_strlcpy
=no
16079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16081 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16082 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16083 if test $ac_cv_have_decl_strlcpy = yes; then
16085 cat >>confdefs.h
<<_ACEOF
16086 #define HAVE_DECL_STRLCPY 1
16091 cat >>confdefs.h
<<_ACEOF
16092 #define HAVE_DECL_STRLCPY 0
16099 # This is probably only present on Darwin, but may as well check always
16100 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16101 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16102 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 cat >conftest.
$ac_ext <<_ACEOF
16108 cat confdefs.h
>>conftest.
$ac_ext
16109 cat >>conftest.
$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16116 #ifndef F_FULLFSYNC
16117 (void) F_FULLFSYNC;
16124 rm -f conftest.
$ac_objext
16125 if { (ac_try
="$ac_compile"
16126 case "(($ac_try" in
16127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16133 grep -v '^ *+' conftest.er1 >conftest.err
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } && {
16138 test -z "$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16140 } && test -s conftest.$ac_objext; then
16141 ac_cv_have_decl_F_FULLFSYNC=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_cv_have_decl_F_FULLFSYNC=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16152 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16153 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16155 cat >>confdefs.h <<_ACEOF
16156 #define HAVE_DECL_F_FULLFSYNC 1
16161 cat >>confdefs.h <<_ACEOF
16162 #define HAVE_DECL_F_FULLFSYNC 0
16171 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16172 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16173 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 $ac_includes_default
16183 #include <netinet/in.h>
16185 typedef struct sockaddr_in6 ac__type_new_;
16189 if ((ac__type_new_ *) 0)
16191 if (sizeof (ac__type_new_))
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16201 *) ac_try_echo
=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1
>conftest.err
16208 cat conftest.err
>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.
$ac_objext; then
16214 ac_cv_type_struct_sockaddr_in6
=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.
$ac_ext >&5
16219 ac_cv_type_struct_sockaddr_in6
=no
16222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16225 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16226 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16228 cat >>confdefs.h
<<\_ACEOF
16229 #define HAVE_IPV6 1
16237 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16238 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16239 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 cat >conftest.
$ac_ext <<_ACEOF
16245 cat confdefs.h
>>conftest.
$ac_ext
16246 cat >>conftest.
$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <machine/vmparam.h>
16249 #include <sys/exec.h>
16254 PS_STRINGS->ps_nargvstr = 1;
16255 PS_STRINGS->ps_argvstr = "foo";
16260 rm -f conftest.
$ac_objext conftest
$ac_exeext
16261 if { (ac_try
="$ac_link"
16262 case "(($ac_try" in
16263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_link") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && {
16274 test -z "$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 } && test -s conftest$ac_exeext &&
16277 $as_test_x conftest$ac_exeext; then
16278 pgac_cv_var_PS_STRINGS=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 pgac_cv_var_PS_STRINGS=no
16286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16287 conftest$ac_exeext conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16290 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16291 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16293 cat >>confdefs.h <<\_ACEOF
16294 #define HAVE_PS_STRINGS
16300 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16301 # is missing. Yes, there are machines that have only one. We may
16302 # also decide to use snprintf.c if snprintf() is present but does not
16303 # have all the features we need --- see below.
16305 if test "$PORTNAME" = "win32"; then
16306 # Win32 gets snprintf.c built unconditionally.
16308 # To properly translate all NLS languages strings, we must support the
16309 # *printf() %$ format, which allows *printf() arguments to be selected
16310 # by position in the translated string.
16312 # libintl versions < 0.13 use the native *printf() functions, and Win32
16313 # *printf() doesn't understand %$, so we must use our /port versions,
16314 # which do understand %$. libintl versions >= 0.13 include their own
16315 # *printf versions on Win32. The libintl 0.13 release note text is:
16317 # C format strings with positions, as they arise when a translator
16318 # needs to reorder a sentence, are now supported on all platforms.
16319 # On those few platforms (NetBSD and Woe32) for which the native
16320 # printf()/fprintf()/... functions don't support such format
16321 # strings, replacements are provided through <libintl.h>.
16323 # We could use libintl >= 0.13's *printf() if we were sure that we had
16324 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16325 # to guarantee that, it is best to just use our own, so we are sure to
16326 # get %$ support. In include/port.h we disable the *printf() macros
16327 # that might have been defined by libintl.
16329 # We do this unconditionally whether NLS is used or not so we are sure
16330 # that all Win32 libraries and binaries behave the same.
16331 pgac_need_repl_snprintf=yes
16333 pgac_need_repl_snprintf=no
16335 for ac_func in snprintf
16337 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 cat >conftest.$ac_ext <<_ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16351 #define $ac_func innocuous_$ac_func
16353 /* System header to define __stub macros and hopefully few prototypes,
16354 which can conflict with char $ac_func (); below.
16355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16356 <limits.h> exists even on freestanding compilers. */
16359 # include <limits.h>
16361 # include <assert.h>
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16373 /* The GNU C library defines this for functions which it implements
16374 to always fail with ENOSYS. Some functions are actually named
16375 something starting with __ and the normal name is an alias. */
16376 #if defined __stub_$ac_func || defined __stub___$ac_func
16383 return $ac_func ();
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16392 *) ac_try_echo
=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_link") 2>conftest.er1
16397 grep -v '^ *+' conftest.er1
>conftest.err
16399 cat conftest.err
>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } && {
16402 test -z "$ac_c_werror_flag" ||
16403 test ! -s conftest.err
16404 } && test -s conftest
$ac_exeext &&
16405 $as_test_x conftest
$ac_exeext; then
16406 eval "$as_ac_var=yes"
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.
$ac_ext >&5
16411 eval "$as_ac_var=no"
16414 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16415 conftest
$ac_exeext conftest.
$ac_ext
16417 ac_res
=`eval echo '${'$as_ac_var'}'`
16418 { echo "$as_me:$LINENO: result: $ac_res" >&5
16419 echo "${ECHO_T}$ac_res" >&6; }
16420 if test `eval echo '${'$as_ac_var'}'` = yes; then
16421 cat >>confdefs.h
<<_ACEOF
16422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16426 pgac_need_repl_snprintf
=yes
16431 for ac_func
in vsnprintf
16433 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16436 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 cat >conftest.
$ac_ext <<_ACEOF
16442 cat confdefs.h
>>conftest.
$ac_ext
16443 cat >>conftest.
$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16447 #define $ac_func innocuous_$ac_func
16449 /* System header to define __stub macros and hopefully few prototypes,
16450 which can conflict with char $ac_func (); below.
16451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452 <limits.h> exists even on freestanding compilers. */
16455 # include <limits.h>
16457 # include <assert.h>
16462 /* Override any GCC internal prototype to avoid an error.
16463 Use char because int might match the return type of a GCC
16464 builtin and then its argument prototype would still apply. */
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined __stub_$ac_func || defined __stub___$ac_func
16479 return $ac_func ();
16484 rm -f conftest.
$ac_objext conftest
$ac_exeext
16485 if { (ac_try
="$ac_link"
16486 case "(($ac_try" in
16487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_link") 2>conftest.er1
16493 grep -v '^ *+' conftest.er1 >conftest.err
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && {
16498 test -z "$ac_c_werror_flag" ||
16499 test ! -s conftest.err
16500 } && test -s conftest$ac_exeext &&
16501 $as_test_x conftest$ac_exeext; then
16502 eval "$as_ac_var=yes"
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 eval "$as_ac_var=no"
16510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511 conftest$ac_exeext conftest.$ac_ext
16513 ac_res=`eval echo '${'$as_ac_var'}'`
16514 { echo "$as_me:$LINENO: result: $ac_res" >&5
16515 echo "${ECHO_T}$ac_res" >&6; }
16516 if test `eval echo '${'$as_ac_var'}'` = yes; then
16517 cat >>confdefs.h <<_ACEOF
16518 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16522 pgac_need_repl_snprintf=yes
16529 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16530 # include/c.h will provide declarations. Note this is a separate test
16531 # from whether the functions exist in the C library --- there are
16532 # systems that have the functions but don't bother to declare them :-(
16534 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16535 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16536 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 cat >conftest.$ac_ext <<_ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h. */
16545 $ac_includes_default
16557 rm -f conftest.$ac_objext
16558 if { (ac_try="$ac_compile"
16559 case "(($ac_try" in
16560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16561 *) ac_try_echo
=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_compile") 2>conftest.er1
16566 grep -v '^ *+' conftest.er1
>conftest.err
16568 cat conftest.err
>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && {
16571 test -z "$ac_c_werror_flag" ||
16572 test ! -s conftest.err
16573 } && test -s conftest.
$ac_objext; then
16574 ac_cv_have_decl_snprintf
=yes
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.
$ac_ext >&5
16579 ac_cv_have_decl_snprintf
=no
16582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16585 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16586 if test $ac_cv_have_decl_snprintf = yes; then
16588 cat >>confdefs.h
<<_ACEOF
16589 #define HAVE_DECL_SNPRINTF 1
16594 cat >>confdefs.h
<<_ACEOF
16595 #define HAVE_DECL_SNPRINTF 0
16600 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16601 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16602 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.
$ac_ext <<_ACEOF
16608 cat confdefs.h
>>conftest.
$ac_ext
16609 cat >>conftest.
$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16623 rm -f conftest.
$ac_objext
16624 if { (ac_try
="$ac_compile"
16625 case "(($ac_try" in
16626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_compile") 2>conftest.er1
16632 grep -v '^ *+' conftest.er1 >conftest.err
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } && {
16637 test -z "$ac_c_werror_flag" ||
16638 test ! -s conftest.err
16639 } && test -s conftest.$ac_objext; then
16640 ac_cv_have_decl_vsnprintf=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_have_decl_vsnprintf=no
16648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16651 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16652 if test $ac_cv_have_decl_vsnprintf = yes; then
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_DECL_VSNPRINTF 1
16660 cat >>confdefs.h <<_ACEOF
16661 #define HAVE_DECL_VSNPRINTF 0
16670 { echo "$as_me:$LINENO: checking for isinf" >&5
16671 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16672 if test "${ac_cv_func_isinf+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 cat >conftest.$ac_ext <<_ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16683 double glob_double;
16688 return isinf(glob_double) ? 0 : 1;
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (ac_try="$ac_link"
16695 case "(($ac_try" in
16696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16697 *) ac_try_echo
=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_link") 2>conftest.er1
16702 grep -v '^ *+' conftest.er1
>conftest.err
16704 cat conftest.err
>&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } && {
16707 test -z "$ac_c_werror_flag" ||
16708 test ! -s conftest.err
16709 } && test -s conftest
$ac_exeext &&
16710 $as_test_x conftest
$ac_exeext; then
16711 ac_cv_func_isinf
=yes
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.
$ac_ext >&5
16716 ac_cv_func_isinf
=no
16719 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16720 conftest
$ac_exeext conftest.
$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16723 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16725 if test $ac_cv_func_isinf = yes ; then
16727 cat >>confdefs.h
<<\_ACEOF
16728 #define HAVE_ISINF 1
16732 case " $LIBOBJS " in
16733 *" isinf.$ac_objext "* ) ;;
16734 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16738 # Look for a way to implement a substitute for isinf()
16743 for ac_func
in fpclass fp_class fp_class_d class
16745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16748 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 cat >conftest.
$ac_ext <<_ACEOF
16754 cat confdefs.h
>>conftest.
$ac_ext
16755 cat >>conftest.
$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16759 #define $ac_func innocuous_$ac_func
16761 /* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char $ac_func (); below.
16763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16764 <limits.h> exists even on freestanding compilers. */
16767 # include <limits.h>
16769 # include <assert.h>
16774 /* Override any GCC internal prototype to avoid an error.
16775 Use char because int might match the return type of a GCC
16776 builtin and then its argument prototype would still apply. */
16781 /* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784 #if defined __stub_$ac_func || defined __stub___$ac_func
16791 return $ac_func ();
16796 rm -f conftest.
$ac_objext conftest
$ac_exeext
16797 if { (ac_try
="$ac_link"
16798 case "(($ac_try" in
16799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext &&
16813 $as_test_x conftest$ac_exeext; then
16814 eval "$as_ac_var=yes"
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 eval "$as_ac_var=no"
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16825 ac_res=`eval echo '${'$as_ac_var'}'`
16826 { echo "$as_me:$LINENO: result: $ac_res" >&5
16827 echo "${ECHO_T}$ac_res" >&6; }
16828 if test `eval echo '${'$as_ac_var'}'` = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16838 # Some versions of libedit contain strlcpy(); so disregard that library while
16839 # checking for these standard libc functions.
16840 pgac_save_LIBS="$LIBS"
16841 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16857 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16859 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 cat >conftest.$ac_ext <<_ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16873 #define $ac_func innocuous_$ac_func
16875 /* System header to define __stub macros and hopefully few prototypes,
16876 which can conflict with char $ac_func (); below.
16877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16878 <limits.h> exists even on freestanding compilers. */
16881 # include <limits.h>
16883 # include <assert.h>
16888 /* Override any GCC internal prototype to avoid an error.
16889 Use char because int might match the return type of a GCC
16890 builtin and then its argument prototype would still apply. */
16895 /* The GNU C library defines this for functions which it implements
16896 to always fail with ENOSYS. Some functions are actually named
16897 something starting with __ and the normal name is an alias. */
16898 #if defined __stub_$ac_func || defined __stub___$ac_func
16905 return $ac_func ();
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (ac_try="$ac_link"
16912 case "(($ac_try" in
16913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16914 *) ac_try_echo
=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_link") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1
>conftest.err
16921 cat conftest.err
>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest
$ac_exeext &&
16927 $as_test_x conftest
$ac_exeext; then
16928 eval "$as_ac_var=yes"
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.
$ac_ext >&5
16933 eval "$as_ac_var=no"
16936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16937 conftest
$ac_exeext conftest.
$ac_ext
16939 ac_res
=`eval echo '${'$as_ac_var'}'`
16940 { echo "$as_me:$LINENO: result: $ac_res" >&5
16941 echo "${ECHO_T}$ac_res" >&6; }
16942 if test `eval echo '${'$as_ac_var'}'` = yes; then
16943 cat >>confdefs.h
<<_ACEOF
16944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16948 case " $LIBOBJS " in
16949 *" $ac_func.$ac_objext "* ) ;;
16950 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16959 LIBS
="$pgac_save_LIBS"
16961 # System's version of getaddrinfo(), if any, may be used only if we found
16962 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16963 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16964 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16965 # because we want to use our own getaddrinfo.c on Windows anyway.)
16966 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
16968 for ac_func
in getaddrinfo
16970 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16973 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 cat >conftest.
$ac_ext <<_ACEOF
16979 cat confdefs.h
>>conftest.
$ac_ext
16980 cat >>conftest.
$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16984 #define $ac_func innocuous_$ac_func
16986 /* System header to define __stub macros and hopefully few prototypes,
16987 which can conflict with char $ac_func (); below.
16988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16989 <limits.h> exists even on freestanding compilers. */
16992 # include <limits.h>
16994 # include <assert.h>
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17006 /* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
17009 #if defined __stub_$ac_func || defined __stub___$ac_func
17016 return $ac_func ();
17021 rm -f conftest.
$ac_objext conftest
$ac_exeext
17022 if { (ac_try
="$ac_link"
17023 case "(($ac_try" in
17024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_link") 2>conftest.er1
17030 grep -v '^ *+' conftest.er1 >conftest.err
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } && {
17035 test -z "$ac_c_werror_flag" ||
17036 test ! -s conftest.err
17037 } && test -s conftest$ac_exeext &&
17038 $as_test_x conftest$ac_exeext; then
17039 eval "$as_ac_var=yes"
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 eval "$as_ac_var=no"
17047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17048 conftest$ac_exeext conftest.$ac_ext
17050 ac_res=`eval echo '${'$as_ac_var'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052 echo "${ECHO_T}$ac_res" >&6; }
17053 if test `eval echo '${'$as_ac_var'}'` = yes; then
17054 cat >>confdefs.h <<_ACEOF
17055 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17059 case " $LIBOBJS " in
17060 *" $ac_func.$ac_objext "* ) ;;
17061 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17070 case " $LIBOBJS " in
17071 *" getaddrinfo.$ac_objext "* ) ;;
17072 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17078 # Similarly, use system's getopt_long() only if system provides struct option.
17079 # Solaris' getopt() doesn't do what we want for long options, so always use
17080 # our versions on that platform.
17081 if test "$PORTNAME" = "solaris"; then
17082 case " $LIBOBJS " in
17083 *" getopt.$ac_objext "* ) ;;
17084 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17088 case " $LIBOBJS " in
17089 *" getopt_long.$ac_objext "* ) ;;
17090 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17094 elif test x"$ac_cv_type_struct_option" = xyes ; then
17096 for ac_func in getopt_long
17098 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17112 #define $ac_func innocuous_$ac_func
17114 /* System header to define __stub macros and hopefully few prototypes,
17115 which can conflict with char $ac_func (); below.
17116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17117 <limits.h> exists even on freestanding compilers. */
17120 # include <limits.h>
17122 # include <assert.h>
17127 /* Override any GCC internal prototype to avoid an error.
17128 Use char because int might match the return type of a GCC
17129 builtin and then its argument prototype would still apply. */
17134 /* The GNU C library defines this for functions which it implements
17135 to always fail with ENOSYS. Some functions are actually named
17136 something starting with __ and the normal name is an alias. */
17137 #if defined __stub_$ac_func || defined __stub___$ac_func
17144 return $ac_func ();
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (ac_try="$ac_link"
17151 case "(($ac_try" in
17152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17153 *) ac_try_echo
=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_link") 2>conftest.er1
17158 grep -v '^ *+' conftest.er1
>conftest.err
17160 cat conftest.err
>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest
$ac_exeext &&
17166 $as_test_x conftest
$ac_exeext; then
17167 eval "$as_ac_var=yes"
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.
$ac_ext >&5
17172 eval "$as_ac_var=no"
17175 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17176 conftest
$ac_exeext conftest.
$ac_ext
17178 ac_res
=`eval echo '${'$as_ac_var'}'`
17179 { echo "$as_me:$LINENO: result: $ac_res" >&5
17180 echo "${ECHO_T}$ac_res" >&6; }
17181 if test `eval echo '${'$as_ac_var'}'` = yes; then
17182 cat >>confdefs.h
<<_ACEOF
17183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187 case " $LIBOBJS " in
17188 *" $ac_func.$ac_objext "* ) ;;
17189 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17198 case " $LIBOBJS " in
17199 *" getopt_long.$ac_objext "* ) ;;
17200 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17207 if test "$PORTNAME" = "win32"; then
17209 for ac_func
in gettimeofday
17211 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17214 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 cat >conftest.
$ac_ext <<_ACEOF
17220 cat confdefs.h
>>conftest.
$ac_ext
17221 cat >>conftest.
$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17225 #define $ac_func innocuous_$ac_func
17227 /* System header to define __stub macros and hopefully few prototypes,
17228 which can conflict with char $ac_func (); below.
17229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17230 <limits.h> exists even on freestanding compilers. */
17233 # include <limits.h>
17235 # include <assert.h>
17240 /* Override any GCC internal prototype to avoid an error.
17241 Use char because int might match the return type of a GCC
17242 builtin and then its argument prototype would still apply. */
17247 /* The GNU C library defines this for functions which it implements
17248 to always fail with ENOSYS. Some functions are actually named
17249 something starting with __ and the normal name is an alias. */
17250 #if defined __stub_$ac_func || defined __stub___$ac_func
17257 return $ac_func ();
17262 rm -f conftest.
$ac_objext conftest
$ac_exeext
17263 if { (ac_try
="$ac_link"
17264 case "(($ac_try" in
17265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_link") 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && {
17276 test -z "$ac_c_werror_flag" ||
17277 test ! -s conftest.err
17278 } && test -s conftest$ac_exeext &&
17279 $as_test_x conftest$ac_exeext; then
17280 eval "$as_ac_var=yes"
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 eval "$as_ac_var=no"
17288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17289 conftest$ac_exeext conftest.$ac_ext
17291 ac_res=`eval echo '${'$as_ac_var'}'`
17292 { echo "$as_me:$LINENO: result: $ac_res" >&5
17293 echo "${ECHO_T}$ac_res" >&6; }
17294 if test `eval echo '${'$as_ac_var'}'` = yes; then
17295 cat >>confdefs.h <<_ACEOF
17296 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17300 case " $LIBOBJS " in
17301 *" $ac_func.$ac_objext "* ) ;;
17302 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17310 case " $LIBOBJS " in
17311 *" kill.$ac_objext "* ) ;;
17312 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17316 case " $LIBOBJS " in
17317 *" open.$ac_objext "* ) ;;
17318 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17322 case " $LIBOBJS " in
17323 *" rand.$ac_objext "* ) ;;
17324 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17328 case " $LIBOBJS " in
17329 *" win32error.$ac_objext "* ) ;;
17330 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17335 cat >>confdefs.h <<\_ACEOF
17336 #define HAVE_SYMLINK 1
17341 if test "$with_readline" = yes; then
17342 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17343 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17351 #ifdef HAVE_READLINE_READLINE_H
17352 # include <readline/readline.h>
17353 #elif defined(HAVE_READLINE_H)
17354 # include <readline.h>
17360 rl_completion_append_character = 'x';
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17369 *) ac_try_echo
=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
17374 grep -v '^ *+' conftest.er1
>conftest.err
17376 cat conftest.err
>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } && {
17379 test -z "$ac_c_werror_flag" ||
17380 test ! -s conftest.err
17381 } && test -s conftest
$ac_exeext &&
17382 $as_test_x conftest
$ac_exeext; then
17383 { echo "$as_me:$LINENO: result: yes" >&5
17384 echo "${ECHO_T}yes" >&6; }
17386 cat >>confdefs.h
<<\_ACEOF
17387 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.
$ac_ext >&5
17394 { echo "$as_me:$LINENO: result: no" >&5
17395 echo "${ECHO_T}no" >&6; }
17398 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17399 conftest
$ac_exeext conftest.
$ac_ext
17402 for ac_func
in rl_completion_matches rl_filename_completion_function
17404 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17407 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 cat >conftest.
$ac_ext <<_ACEOF
17413 cat confdefs.h
>>conftest.
$ac_ext
17414 cat >>conftest.
$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17418 #define $ac_func innocuous_$ac_func
17420 /* System header to define __stub macros and hopefully few prototypes,
17421 which can conflict with char $ac_func (); below.
17422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17423 <limits.h> exists even on freestanding compilers. */
17426 # include <limits.h>
17428 # include <assert.h>
17433 /* Override any GCC internal prototype to avoid an error.
17434 Use char because int might match the return type of a GCC
17435 builtin and then its argument prototype would still apply. */
17440 /* The GNU C library defines this for functions which it implements
17441 to always fail with ENOSYS. Some functions are actually named
17442 something starting with __ and the normal name is an alias. */
17443 #if defined __stub_$ac_func || defined __stub___$ac_func
17450 return $ac_func ();
17455 rm -f conftest.
$ac_objext conftest
$ac_exeext
17456 if { (ac_try
="$ac_link"
17457 case "(($ac_try" in
17458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_link") 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } && {
17469 test -z "$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 } && test -s conftest$ac_exeext &&
17472 $as_test_x conftest$ac_exeext; then
17473 eval "$as_ac_var=yes"
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 eval "$as_ac_var=no"
17481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17482 conftest$ac_exeext conftest.$ac_ext
17484 ac_res=`eval echo '${'$as_ac_var'}'`
17485 { echo "$as_me:$LINENO: result: $ac_res" >&5
17486 echo "${ECHO_T}$ac_res" >&6; }
17487 if test `eval echo '${'$as_ac_var'}'` = yes; then
17488 cat >>confdefs.h <<_ACEOF
17489 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17496 for ac_func in replace_history_entry
17498 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 cat >conftest.$ac_ext <<_ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17512 #define $ac_func innocuous_$ac_func
17514 /* System header to define __stub macros and hopefully few prototypes,
17515 which can conflict with char $ac_func (); below.
17516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17517 <limits.h> exists even on freestanding compilers. */
17520 # include <limits.h>
17522 # include <assert.h>
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17534 /* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537 #if defined __stub_$ac_func || defined __stub___$ac_func
17544 return $ac_func ();
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17553 *) ac_try_echo
=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_link") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1
>conftest.err
17560 cat conftest.err
>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest
$ac_exeext &&
17566 $as_test_x conftest
$ac_exeext; then
17567 eval "$as_ac_var=yes"
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.
$ac_ext >&5
17572 eval "$as_ac_var=no"
17575 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17576 conftest
$ac_exeext conftest.
$ac_ext
17578 ac_res
=`eval echo '${'$as_ac_var'}'`
17579 { echo "$as_me:$LINENO: result: $ac_res" >&5
17580 echo "${ECHO_T}$ac_res" >&6; }
17581 if test `eval echo '${'$as_ac_var'}'` = yes; then
17582 cat >>confdefs.h
<<_ACEOF
17583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17593 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17594 cat >conftest.
$ac_ext <<_ACEOF
17597 cat confdefs.h
>>conftest.
$ac_ext
17598 cat >>conftest.
$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 #include <setjmp.h>
17604 sigjmp_buf x; sigsetjmp(x, 1);
17609 rm -f conftest.
$ac_objext conftest
$ac_exeext
17610 if { (ac_try
="$ac_link"
17611 case "(($ac_try" in
17612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_SIGSETJMP 1
17632 { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 { echo "$as_me:$LINENO: result: no" >&5
17639 echo "${ECHO_T}no" >&6; }
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17645 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17646 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17647 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 #include <signal.h>
17657 /* NetBSD declares sys_siglist in unistd.h. */
17658 #ifdef HAVE_UNISTD_H
17659 # include <unistd.h>
17666 #ifndef sys_siglist
17667 (void) sys_siglist;
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17678 *) ac_try_echo
=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17683 grep -v '^ *+' conftest.er1
>conftest.err
17685 cat conftest.err
>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest.
$ac_objext; then
17691 ac_cv_have_decl_sys_siglist
=yes
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.
$ac_ext >&5
17696 ac_cv_have_decl_sys_siglist
=no
17699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17702 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17703 if test $ac_cv_have_decl_sys_siglist = yes; then
17705 cat >>confdefs.h
<<_ACEOF
17706 #define HAVE_DECL_SYS_SIGLIST 1
17711 cat >>confdefs.h
<<_ACEOF
17712 #define HAVE_DECL_SYS_SIGLIST 0
17721 { echo "$as_me:$LINENO: checking for syslog" >&5
17722 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17723 if test "${ac_cv_func_syslog+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 cat >conftest.
$ac_ext <<_ACEOF
17729 cat confdefs.h
>>conftest.
$ac_ext
17730 cat >>conftest.
$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17734 #define syslog innocuous_syslog
17736 /* System header to define __stub macros and hopefully few prototypes,
17737 which can conflict with char syslog (); below.
17738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17739 <limits.h> exists even on freestanding compilers. */
17742 # include <limits.h>
17744 # include <assert.h>
17749 /* Override any GCC internal prototype to avoid an error.
17750 Use char because int might match the return type of a GCC
17751 builtin and then its argument prototype would still apply. */
17756 /* The GNU C library defines this for functions which it implements
17757 to always fail with ENOSYS. Some functions are actually named
17758 something starting with __ and the normal name is an alias. */
17759 #if defined __stub_syslog || defined __stub___syslog
17771 rm -f conftest.
$ac_objext conftest
$ac_exeext
17772 if { (ac_try
="$ac_link"
17773 case "(($ac_try" in
17774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_link") 2>conftest.er1
17780 grep -v '^ *+' conftest.er1 >conftest.err
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } && {
17785 test -z "$ac_c_werror_flag" ||
17786 test ! -s conftest.err
17787 } && test -s conftest$ac_exeext &&
17788 $as_test_x conftest$ac_exeext; then
17789 ac_cv_func_syslog=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_cv_func_syslog=no
17797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17798 conftest$ac_exeext conftest.$ac_ext
17800 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17801 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17802 if test $ac_cv_func_syslog = yes; then
17803 if test "${ac_cv_header_syslog_h+set}" = set; then
17804 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17805 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17806 if test "${ac_cv_header_syslog_h+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17810 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17812 # Is the header compilable?
17813 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17814 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 $ac_includes_default
17822 #include <syslog.h>
17824 rm -f conftest.$ac_objext
17825 if { (ac_try="$ac_compile"
17826 case "(($ac_try" in
17827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17828 *) ac_try_echo
=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_compile") 2>conftest.er1
17833 grep -v '^ *+' conftest.er1
>conftest.err
17835 cat conftest.err
>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest.
$ac_objext; then
17841 ac_header_compiler
=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.
$ac_ext >&5
17846 ac_header_compiler
=no
17849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17851 echo "${ECHO_T}$ac_header_compiler" >&6; }
17853 # Is the header present?
17854 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17855 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17856 cat >conftest.
$ac_ext <<_ACEOF
17859 cat confdefs.h
>>conftest.
$ac_ext
17860 cat >>conftest.
$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 #include <syslog.h>
17864 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17865 case "(($ac_try" in
17866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } >/dev/null && {
17877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17880 ac_header_preproc=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 ac_header_preproc=no
17888 rm -f conftest.err conftest.$ac_ext
17889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17890 echo "${ECHO_T}$ac_header_preproc" >&6; }
17892 # So? What about this header?
17893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17895 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17896 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17898 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17899 ac_header_preproc=yes
17902 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17903 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17905 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17906 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17907 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17908 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17909 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17911 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17913 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17915 ## ---------------------------------------- ##
17916 ## Report this to pgsql-bugs@postgresql.org ##
17917 ## ---------------------------------------- ##
17919 ) | sed "s/^/$as_me: WARNING: /" >&2
17922 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17923 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17924 if test "${ac_cv_header_syslog_h+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 ac_cv_header_syslog_h=$ac_header_preproc
17929 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17930 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17933 if test $ac_cv_header_syslog_h = yes; then
17935 cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_SYSLOG 1
17945 { echo "$as_me:$LINENO: checking for optreset" >&5
17946 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17947 if test "${pgac_cv_var_int_optreset+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <unistd.h>
17960 extern int optreset; optreset = 1;
17965 rm -f conftest.$ac_objext conftest$ac_exeext
17966 if { (ac_try="$ac_link"
17967 case "(($ac_try" in
17968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17969 *) ac_try_echo
=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_link") 2>conftest.er1
17974 grep -v '^ *+' conftest.er1
>conftest.err
17976 cat conftest.err
>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest
$ac_exeext &&
17982 $as_test_x conftest
$ac_exeext; then
17983 pgac_cv_var_int_optreset
=yes
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.
$ac_ext >&5
17988 pgac_cv_var_int_optreset
=no
17991 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17992 conftest
$ac_exeext conftest.
$ac_ext
17994 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17995 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17996 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
17998 cat >>confdefs.h
<<\_ACEOF
17999 #define HAVE_INT_OPTRESET 1
18006 for ac_func
in strtoll strtoq
18008 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18011 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 cat >conftest.
$ac_ext <<_ACEOF
18017 cat confdefs.h
>>conftest.
$ac_ext
18018 cat >>conftest.
$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18022 #define $ac_func innocuous_$ac_func
18024 /* System header to define __stub macros and hopefully few prototypes,
18025 which can conflict with char $ac_func (); below.
18026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18027 <limits.h> exists even on freestanding compilers. */
18030 # include <limits.h>
18032 # include <assert.h>
18037 /* Override any GCC internal prototype to avoid an error.
18038 Use char because int might match the return type of a GCC
18039 builtin and then its argument prototype would still apply. */
18044 /* The GNU C library defines this for functions which it implements
18045 to always fail with ENOSYS. Some functions are actually named
18046 something starting with __ and the normal name is an alias. */
18047 #if defined __stub_$ac_func || defined __stub___$ac_func
18054 return $ac_func ();
18059 rm -f conftest.
$ac_objext conftest
$ac_exeext
18060 if { (ac_try
="$ac_link"
18061 case "(($ac_try" in
18062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_link") 2>conftest.er1
18068 grep -v '^ *+' conftest.er1 >conftest.err
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest$ac_exeext &&
18076 $as_test_x conftest$ac_exeext; then
18077 eval "$as_ac_var=yes"
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18082 eval "$as_ac_var=no"
18085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18086 conftest$ac_exeext conftest.$ac_ext
18088 ac_res=`eval echo '${'$as_ac_var'}'`
18089 { echo "$as_me:$LINENO: result: $ac_res" >&5
18090 echo "${ECHO_T}$ac_res" >&6; }
18091 if test `eval echo '${'$as_ac_var'}'` = yes; then
18092 cat >>confdefs.h <<_ACEOF
18093 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18101 for ac_func in strtoull strtouq
18103 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 cat >conftest.$ac_ext <<_ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18117 #define $ac_func innocuous_$ac_func
18119 /* System header to define __stub macros and hopefully few prototypes,
18120 which can conflict with char $ac_func (); below.
18121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18122 <limits.h> exists even on freestanding compilers. */
18125 # include <limits.h>
18127 # include <assert.h>
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18139 /* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
18142 #if defined __stub_$ac_func || defined __stub___$ac_func
18149 return $ac_func ();
18154 rm -f conftest.$ac_objext conftest$ac_exeext
18155 if { (ac_try="$ac_link"
18156 case "(($ac_try" in
18157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18158 *) ac_try_echo
=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_link") 2>conftest.er1
18163 grep -v '^ *+' conftest.er1
>conftest.err
18165 cat conftest.err
>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } && {
18168 test -z "$ac_c_werror_flag" ||
18169 test ! -s conftest.err
18170 } && test -s conftest
$ac_exeext &&
18171 $as_test_x conftest
$ac_exeext; then
18172 eval "$as_ac_var=yes"
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.
$ac_ext >&5
18177 eval "$as_ac_var=no"
18180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18181 conftest
$ac_exeext conftest.
$ac_ext
18183 ac_res
=`eval echo '${'$as_ac_var'}'`
18184 { echo "$as_me:$LINENO: result: $ac_res" >&5
18185 echo "${ECHO_T}$ac_res" >&6; }
18186 if test `eval echo '${'$as_ac_var'}'` = yes; then
18187 cat >>confdefs.h
<<_ACEOF
18188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18195 # Check for one of atexit() or on_exit()
18197 for ac_func
in atexit
18199 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18202 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 cat >conftest.
$ac_ext <<_ACEOF
18208 cat confdefs.h
>>conftest.
$ac_ext
18209 cat >>conftest.
$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18213 #define $ac_func innocuous_$ac_func
18215 /* System header to define __stub macros and hopefully few prototypes,
18216 which can conflict with char $ac_func (); below.
18217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18218 <limits.h> exists even on freestanding compilers. */
18221 # include <limits.h>
18223 # include <assert.h>
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18235 /* The GNU C library defines this for functions which it implements
18236 to always fail with ENOSYS. Some functions are actually named
18237 something starting with __ and the normal name is an alias. */
18238 #if defined __stub_$ac_func || defined __stub___$ac_func
18245 return $ac_func ();
18250 rm -f conftest.
$ac_objext conftest
$ac_exeext
18251 if { (ac_try
="$ac_link"
18252 case "(($ac_try" in
18253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } && {
18264 test -z "$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 } && test -s conftest$ac_exeext &&
18267 $as_test_x conftest$ac_exeext; then
18268 eval "$as_ac_var=yes"
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no"
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277 conftest$ac_exeext conftest.$ac_ext
18279 ac_res=`eval echo '${'$as_ac_var'}'`
18280 { echo "$as_me:$LINENO: result: $ac_res" >&5
18281 echo "${ECHO_T}$ac_res" >&6; }
18282 if test `eval echo '${'$as_ac_var'}'` = yes; then
18283 cat >>confdefs.h <<_ACEOF
18284 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18289 for ac_func in on_exit
18291 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18305 #define $ac_func innocuous_$ac_func
18307 /* System header to define __stub macros and hopefully few prototypes,
18308 which can conflict with char $ac_func (); below.
18309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310 <limits.h> exists even on freestanding compilers. */
18313 # include <limits.h>
18315 # include <assert.h>
18320 /* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18327 /* The GNU C library defines this for functions which it implements
18328 to always fail with ENOSYS. Some functions are actually named
18329 something starting with __ and the normal name is an alias. */
18330 #if defined __stub_$ac_func || defined __stub___$ac_func
18337 return $ac_func ();
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18346 *) ac_try_echo
=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1
>conftest.err
18353 cat conftest.err
>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } && {
18356 test -z "$ac_c_werror_flag" ||
18357 test ! -s conftest.err
18358 } && test -s conftest
$ac_exeext &&
18359 $as_test_x conftest
$ac_exeext; then
18360 eval "$as_ac_var=yes"
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18365 eval "$as_ac_var=no"
18368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18369 conftest
$ac_exeext conftest.
$ac_ext
18371 ac_res
=`eval echo '${'$as_ac_var'}'`
18372 { echo "$as_me:$LINENO: result: $ac_res" >&5
18373 echo "${ECHO_T}$ac_res" >&6; }
18374 if test `eval echo '${'$as_ac_var'}'` = yes; then
18375 cat >>confdefs.h
<<_ACEOF
18376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18381 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18382 { (exit 1); exit 1; }; }
18391 for ac_func
in fseeko
18393 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18396 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 cat >conftest.
$ac_ext <<_ACEOF
18402 cat confdefs.h
>>conftest.
$ac_ext
18403 cat >>conftest.
$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18407 #define $ac_func innocuous_$ac_func
18409 /* System header to define __stub macros and hopefully few prototypes,
18410 which can conflict with char $ac_func (); below.
18411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18412 <limits.h> exists even on freestanding compilers. */
18415 # include <limits.h>
18417 # include <assert.h>
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18429 /* The GNU C library defines this for functions which it implements
18430 to always fail with ENOSYS. Some functions are actually named
18431 something starting with __ and the normal name is an alias. */
18432 #if defined __stub_$ac_func || defined __stub___$ac_func
18439 return $ac_func ();
18444 rm -f conftest.
$ac_objext conftest
$ac_exeext
18445 if { (ac_try
="$ac_link"
18446 case "(($ac_try" in
18447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_link") 2>conftest.er1
18453 grep -v '^ *+' conftest.er1 >conftest.err
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } && {
18458 test -z "$ac_c_werror_flag" ||
18459 test ! -s conftest.err
18460 } && test -s conftest$ac_exeext &&
18461 $as_test_x conftest$ac_exeext; then
18462 eval "$as_ac_var=yes"
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 eval "$as_ac_var=no"
18470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18471 conftest$ac_exeext conftest.$ac_ext
18473 ac_res=`eval echo '${'$as_ac_var'}'`
18474 { echo "$as_me:$LINENO: result: $ac_res" >&5
18475 echo "${ECHO_T}$ac_res" >&6; }
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477 cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18482 case " $LIBOBJS " in
18483 *" $ac_func.$ac_objext "* ) ;;
18484 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18493 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE_FSEEKO 1
18500 ac_cv_func_fseeko=yes;;
18502 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18503 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18504 if test "${ac_cv_sys_largefile_source+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 #include <sys/types.h> /* for off_t */
18519 int (*fp) (FILE *, off_t, int) = fseeko;
18520 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18529 *) ac_try_echo
=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1
>conftest.err
18536 cat conftest.err
>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } && {
18539 test -z "$ac_c_werror_flag" ||
18540 test ! -s conftest.err
18541 } && test -s conftest
$ac_exeext &&
18542 $as_test_x conftest
$ac_exeext; then
18543 ac_cv_sys_largefile_source
=no
; break
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.
$ac_ext >&5
18551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18552 conftest
$ac_exeext conftest.
$ac_ext
18553 cat >conftest.
$ac_ext <<_ACEOF
18556 cat confdefs.h
>>conftest.
$ac_ext
18557 cat >>conftest.
$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18559 #define _LARGEFILE_SOURCE 1
18560 #include <sys/types.h> /* for off_t */
18565 int (*fp) (FILE *, off_t, int) = fseeko;
18566 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18571 rm -f conftest.
$ac_objext conftest
$ac_exeext
18572 if { (ac_try
="$ac_link"
18573 case "(($ac_try" in
18574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest$ac_exeext &&
18588 $as_test_x conftest$ac_exeext; then
18589 ac_cv_sys_largefile_source=1; break
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18598 conftest$ac_exeext conftest.$ac_ext
18599 ac_cv_sys_largefile_source=unknown
18603 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18604 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18605 case $ac_cv_sys_largefile_source in #(
18608 cat >>confdefs.h <<_ACEOF
18609 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18615 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18616 # in glibc 2.1.3, but that breaks too many other things.
18617 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18618 if test $ac_cv_sys_largefile_source != unknown; then
18620 cat >>confdefs.h <<\_ACEOF
18621 #define HAVE_FSEEKO 1
18632 # For each platform, we need to know about any special compile and link
18633 # libraries, and whether the normal C function names are thread-safe.
18634 # See the comment at the top of src/port/thread.c for more information.
18635 # WIN32 doesn't need the pthread tests; it always uses threads
18636 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18641 ac_cpp='$CPP $CPPFLAGS'
18642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18648 # We used to check for pthread.h first, but this fails if pthread.h
18649 # requires special compiler flags (e.g. on True64 or Sequent).
18650 # It gets checked for in the link test anyway.
18652 # First of all, check if the user has set any of the PTHREAD_LIBS,
18653 # etcetera environment variables, and if threads linking works using
18655 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18656 save_CFLAGS="$CFLAGS"
18657 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18659 LIBS="$PTHREAD_LIBS $LIBS"
18660 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18661 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18669 /* Override any GCC internal prototype to avoid an error.
18670 Use char because int might match the return type of a GCC
18671 builtin and then its argument prototype would still apply. */
18675 char pthread_join ();
18679 return pthread_join ();
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18688 *) ac_try_echo
=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_link") 2>conftest.er1
18693 grep -v '^ *+' conftest.er1
>conftest.err
18695 cat conftest.err
>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
18700 } && test -s conftest
$ac_exeext &&
18701 $as_test_x conftest
$ac_exeext; then
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.
$ac_ext >&5
18710 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18711 conftest
$ac_exeext conftest.
$ac_ext
18712 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18713 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18714 if test x
"$acx_pthread_ok" = xno
; then
18719 CFLAGS
="$save_CFLAGS"
18722 # We must check for the threads library under a number of different
18723 # names; the ordering is very important because some systems
18724 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18725 # libraries is broken (non-POSIX).
18727 # Create a list of thread flags to try. Items starting with a "-" are
18728 # C compiler flags, and other items are library names, except for "none"
18729 # which indicates that we try without any flags at all, and "pthread-config"
18730 # which is a program returning the flags for the Pth emulation library.
18732 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18734 # The ordering *is* (sometimes) important. Some notes on the
18735 # individual items follow:
18737 # pthreads: AIX (must check this before -lpthread)
18738 # none: in case threads are in libc; should be tried before -Kthread and
18739 # other compiler flags to prevent continual compiler warnings
18740 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18741 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18742 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18743 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18744 # -pthreads: Solaris/gcc
18745 # -mthreads: Mingw32/gcc, Lynx/gcc
18746 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18747 # doesn't hurt to check since this sometimes defines pthreads too;
18748 # also defines -D_REENTRANT)
18749 # pthread: Linux, etcetera
18750 # --thread-safe: KAI C++
18751 # pthread-config: use pthread-config program (for GNU Pth library)
18753 case "${host_cpu}-${host_os}" in
18756 # On Solaris (at least, for some versions), libc contains stubbed
18757 # (non-functional) versions of the pthreads routines, so link-based
18758 # tests will erroneously succeed. (We need to link with -pthread or
18759 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18760 # a function called by this macro, so we could check for that, but
18761 # who knows whether they'll stub that too in a future libc.) So,
18762 # we'll just look for -pthreads and -lpthread first:
18764 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18768 if test x
"$acx_pthread_ok" = xno
; then
18769 for flag
in $acx_pthread_flags; do
18771 tryPTHREAD_CFLAGS
=""
18775 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18776 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18780 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18781 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18782 tryPTHREAD_CFLAGS
="$flag"
18786 # skip this if we already have flags defined, for PostgreSQL
18787 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18788 # Extract the first word of "pthread-config", so it can be a program name with args.
18789 set dummy pthread-config
; ac_word
=$2
18790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18792 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 if test -n "$acx_pthread_config"; then
18796 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18799 for as_dir
in $PATH
18802 test -z "$as_dir" && as_dir
=.
18803 for ac_exec_ext
in '' $ac_executable_extensions; do
18804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18805 ac_cv_prog_acx_pthread_config
="yes"
18806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18816 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18817 if test -n "$acx_pthread_config"; then
18818 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18819 echo "${ECHO_T}$acx_pthread_config" >&6; }
18821 { echo "$as_me:$LINENO: result: no" >&5
18822 echo "${ECHO_T}no" >&6; }
18826 if test x
"$acx_pthread_config" = xno
; then continue; fi
18827 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18828 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18832 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18833 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18834 tryPTHREAD_LIBS
="-l$flag"
18839 save_CFLAGS
="$CFLAGS"
18840 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18841 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18843 # Check for various functions. We must include pthread.h,
18844 # since some functions may be macros. (On the Sequent, we
18845 # need a special flag -Kthread to make this header compile.)
18846 # We check for pthread_join because it is in -lpthread on IRIX
18847 # while pthread_create is in libc. We check for pthread_attr_init
18848 # due to DEC craziness with -lpthreads. We check for
18849 # pthread_cleanup_push because it is one of the few pthread
18850 # functions on Solaris that doesn't have a non-functional libc stub.
18851 # We try pthread_create on general principles.
18852 cat >conftest.
$ac_ext <<_ACEOF
18855 cat confdefs.h
>>conftest.
$ac_ext
18856 cat >>conftest.
$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 #include <pthread.h>
18862 pthread_t th; pthread_join(th, 0);
18863 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18864 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18869 rm -f conftest.
$ac_objext conftest
$ac_exeext
18870 if { (ac_try
="$ac_link"
18871 case "(($ac_try" in
18872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest$ac_exeext &&
18886 $as_test_x conftest$ac_exeext; then
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18896 conftest$ac_exeext conftest.$ac_ext
18898 if test "x$acx_pthread_ok" = xyes; then
18899 # Don't use options that are ignored by the compiler.
18900 # We find them by checking stderror.
18901 cat >conftest.$ac_ext <<_ACEOF
18903 main (int argc, char **argv)
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18912 # we continue with more flags because Linux needs -lpthread
18913 # for libpq builds on PostgreSQL. The test above only
18914 # tests for building binaries, not shared libraries.
18915 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18916 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18917 else acx_pthread_ok=no
18922 CFLAGS="$save_CFLAGS"
18924 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18925 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18929 # Various other checks:
18930 if test "x$acx_pthread_ok" = xyes; then
18932 LIBS="$PTHREAD_LIBS $LIBS"
18933 save_CFLAGS="$CFLAGS"
18934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18936 # Detect AIX lossage: threads are created detached by default
18937 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18938 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18939 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <pthread.h>
18950 int attr=PTHREAD_CREATE_JOINABLE;
18955 rm -f conftest.$ac_objext conftest$ac_exeext
18956 if { (ac_try="$ac_link"
18957 case "(($ac_try" in
18958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18959 *) ac_try_echo
=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_link") 2>conftest.er1
18964 grep -v '^ *+' conftest.er1
>conftest.err
18966 cat conftest.err
>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } && {
18969 test -z "$ac_c_werror_flag" ||
18970 test ! -s conftest.err
18971 } && test -s conftest
$ac_exeext &&
18972 $as_test_x conftest
$ac_exeext; then
18973 ok
=PTHREAD_CREATE_JOINABLE
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.
$ac_ext >&5
18981 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18982 conftest
$ac_exeext conftest.
$ac_ext
18983 if test x
"$ok" = xunknown
; then
18984 cat >conftest.
$ac_ext <<_ACEOF
18987 cat confdefs.h
>>conftest.
$ac_ext
18988 cat >>conftest.
$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 #include <pthread.h>
18994 int attr=PTHREAD_CREATE_UNDETACHED;
18999 rm -f conftest.
$ac_objext conftest
$ac_exeext
19000 if { (ac_try
="$ac_link"
19001 case "(($ac_try" in
19002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_link") 2>conftest.er1
19008 grep -v '^ *+' conftest.er1 >conftest.err
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } && {
19013 test -z "$ac_c_werror_flag" ||
19014 test ! -s conftest.err
19015 } && test -s conftest$ac_exeext &&
19016 $as_test_x conftest$ac_exeext; then
19017 ok=PTHREAD_CREATE_UNDETACHED
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19026 conftest$ac_exeext conftest.$ac_ext
19028 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define PTHREAD_CREATE_JOINABLE $ok
19035 { echo "$as_me:$LINENO: result: ${ok}" >&5
19036 echo "${ECHO_T}${ok}" >&6; }
19037 if test x"$ok" = xunknown; then
19038 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19039 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19042 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19043 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19045 # We always add these in PostgreSQL
19046 # case "${host_cpu}-${host_os}" in
19047 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19048 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19050 { echo "$as_me:$LINENO: result: ${flag}" >&5
19051 echo "${ECHO_T}${flag}" >&6; }
19052 if test "x$flag" != xno; then
19053 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19057 CFLAGS="$save_CFLAGS"
19059 # Supporting cc_r would require a special CC in all places that
19060 # use libpq, and that is ugly, so we don't do it. Users can still
19061 # define their compiler as cc_r to do thread builds of everything.
19062 # More AIX lossage: must compile with cc_r
19063 # Extract the first word of "cc_r", so it can be a program name with args.
19064 set dummy cc_r; ac_word=$2
19065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19067 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 if test -n "$PTHREAD_CC"; then
19071 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19074 for as_dir in $PATH
19077 test -z "$as_dir" && as_dir=.
19078 for ac_exec_ext in '' $ac_executable_extensions; do
19079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19080 ac_cv_prog_PTHREAD_CC="cc_r"
19081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19088 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19091 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19092 if test -n "$PTHREAD_CC"; then
19093 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19094 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19096 { echo "$as_me:$LINENO: result: no" >&5
19097 echo "${ECHO_T}no" >&6; }
19109 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19110 if test x"$acx_pthread_ok" = xyes; then
19112 cat >>confdefs.h <<\_ACEOF
19113 #define HAVE_PTHREAD 1
19122 ac_cpp='$CPP $CPPFLAGS'
19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19129 # Some platforms use these, so just defineed them. They can't hurt if they
19130 # are not supported.
19131 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19134 # At this point, we don't want to muck with the compiler name for threading.
19135 # Let's see who fails, perhaps AIX. 2004-04-23
19136 if test "$PTHREAD_CC" != "$CC"; then
19137 { { echo "$as_me:$LINENO: error:
19138 PostgreSQL does not support platforms that require a special compiler
19139 for thread safety." >&5
19140 echo "$as_me: error:
19141 PostgreSQL does not support platforms that require a special compiler
19142 for thread safety." >&2;}
19143 { (exit 1); exit 1; }; }
19146 if test "$THREAD_SUPPORT" = no; then
19147 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19148 This platform is known to not support thread-safe programs. For details,
19149 compile and run src/bin/pg_thread_test." >&5
19150 echo "$as_me: error: cannot enable threads on this platform
19151 This platform is known to not support thread-safe programs. For details,
19152 compile and run src/bin/pg_thread_test." >&2;}
19153 { (exit 1); exit 1; }; }
19156 # Check for *_r functions
19159 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19160 LIBS="$LIBS $PTHREAD_LIBS"
19162 if test "$PORTNAME" != "win32"; then
19163 if test "${ac_cv_header_pthread_h+set}" = set; then
19164 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19165 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19166 if test "${ac_cv_header_pthread_h+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19170 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19172 # Is the header compilable?
19173 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19174 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 $ac_includes_default
19182 #include <pthread.h>
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19188 *) ac_try_echo
=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19193 grep -v '^ *+' conftest.er1
>conftest.err
19195 cat conftest.err
>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.
$ac_objext; then
19201 ac_header_compiler
=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.
$ac_ext >&5
19206 ac_header_compiler
=no
19209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19211 echo "${ECHO_T}$ac_header_compiler" >&6; }
19213 # Is the header present?
19214 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19215 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19216 cat >conftest.
$ac_ext <<_ACEOF
19219 cat confdefs.h
>>conftest.
$ac_ext
19220 cat >>conftest.
$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 #include <pthread.h>
19224 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19225 case "(($ac_try" in
19226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } >/dev/null && {
19237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19240 ac_header_preproc=yes
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ac_header_preproc=no
19248 rm -f conftest.err conftest.$ac_ext
19249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19250 echo "${ECHO_T}$ac_header_preproc" >&6; }
19252 # So? What about this header?
19253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19255 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19256 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19257 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19258 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19259 ac_header_preproc=yes
19262 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19263 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19264 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19265 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19266 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19267 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19268 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19269 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19270 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19271 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19272 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19273 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19275 ## ---------------------------------------- ##
19276 ## Report this to pgsql-bugs@postgresql.org ##
19277 ## ---------------------------------------- ##
19279 ) | sed "s/^/$as_me: WARNING: /" >&2
19282 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19283 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19284 if test "${ac_cv_header_pthread_h+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 ac_cv_header_pthread_h=$ac_header_preproc
19289 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19290 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19293 if test $ac_cv_header_pthread_h = yes; then
19296 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19297 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19298 { (exit 1); exit 1; }; }
19307 for ac_func in strerror_r getpwuid_r gethostbyname_r
19309 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define $ac_func innocuous_$ac_func
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char $ac_func (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19331 # include <limits.h>
19333 # include <assert.h>
19338 /* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19345 /* The GNU C library defines this for functions which it implements
19346 to always fail with ENOSYS. Some functions are actually named
19347 something starting with __ and the normal name is an alias. */
19348 #if defined __stub_$ac_func || defined __stub___$ac_func
19355 return $ac_func ();
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19364 *) ac_try_echo
=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_link") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1
>conftest.err
19371 cat conftest.err
>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest
$ac_exeext &&
19377 $as_test_x conftest
$ac_exeext; then
19378 eval "$as_ac_var=yes"
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.
$ac_ext >&5
19383 eval "$as_ac_var=no"
19386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19387 conftest
$ac_exeext conftest.
$ac_ext
19389 ac_res
=`eval echo '${'$as_ac_var'}'`
19390 { echo "$as_me:$LINENO: result: $ac_res" >&5
19391 echo "${ECHO_T}$ac_res" >&6; }
19392 if test `eval echo '${'$as_ac_var'}'` = yes; then
19393 cat >>confdefs.h
<<_ACEOF
19394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19401 # Do test here with the proper thread flags
19402 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19403 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19404 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 cat >conftest.
$ac_ext <<_ACEOF
19410 cat confdefs.h
>>conftest.
$ac_ext
19411 cat >>conftest.
$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 #include <sys/types.h>
19419 struct passwd *space;
19422 struct passwd **result;
19423 getpwuid_r(uid, space, buf, bufsize, result);
19428 rm -f conftest.
$ac_objext
19429 if { (ac_try
="$ac_compile"
19430 case "(($ac_try" in
19431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_compile") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest.$ac_objext; then
19445 pgac_cv_func_getpwuid_r_5arg=yes
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 pgac_cv_func_getpwuid_r_5arg=no
19453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19456 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19457 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19459 cat >>confdefs.h <<\_ACEOF
19460 #define GETPWUID_R_5ARG
19465 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19466 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19467 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 #include <string.h>
19481 int strerror_r(int, char *, size_t);
19483 /* Older AIX has 'int' for the third argument so we don't test the args. */
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19494 *) ac_try_echo
=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1
>conftest.err
19501 cat conftest.err
>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest.
$ac_objext; then
19507 pgac_cv_func_strerror_r_int
=yes
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.
$ac_ext >&5
19512 pgac_cv_func_strerror_r_int
=no
19515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19517 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19518 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19519 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
19521 cat >>confdefs.h
<<\_ACEOF
19522 #define STRERROR_R_INT
19532 # do not use values from template file
19541 # We can test for libldap_r only after we know PTHREAD_LIBS
19542 if test "$with_ldap" = yes ; then
19544 if test "$PORTNAME" != "win32"; then
19546 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19547 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19548 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 ac_check_lib_save_LIBS
=$LIBS
19552 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
19553 cat >conftest.
$ac_ext <<_ACEOF
19556 cat confdefs.h
>>conftest.
$ac_ext
19557 cat >>conftest.
$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19570 return ldap_bind ();
19575 rm -f conftest.
$ac_objext conftest
$ac_exeext
19576 if { (ac_try
="$ac_link"
19577 case "(($ac_try" in
19578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582 (eval "$ac_link") 2>conftest.er1
19584 grep -v '^ *+' conftest.er1 >conftest.err
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } && {
19589 test -z "$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19591 } && test -s conftest$ac_exeext &&
19592 $as_test_x conftest$ac_exeext; then
19593 ac_cv_lib_ldap_ldap_bind=yes
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19598 ac_cv_lib_ldap_ldap_bind=no
19601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19602 conftest$ac_exeext conftest.$ac_ext
19603 LIBS=$ac_check_lib_save_LIBS
19605 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19606 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19607 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19608 cat >>confdefs.h <<_ACEOF
19609 #define HAVE_LIBLDAP 1
19612 LIBS="-lldap $LIBS"
19615 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19616 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19617 { (exit 1); exit 1; }; }
19620 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19621 if test "$enable_thread_safety" = yes; then
19622 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19624 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19625 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19626 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 ac_check_lib_save_LIBS=$LIBS
19630 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19638 /* Override any GCC internal prototype to avoid an error.
19639 Use char because int might match the return type of a GCC
19640 builtin and then its argument prototype would still apply. */
19644 char ldap_simple_bind ();
19648 return ldap_simple_bind ();
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (ac_try="$ac_link"
19655 case "(($ac_try" in
19656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19657 *) ac_try_echo
=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_link") 2>conftest.er1
19662 grep -v '^ *+' conftest.er1
>conftest.err
19664 cat conftest.err
>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && {
19667 test -z "$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 } && test -s conftest
$ac_exeext &&
19670 $as_test_x conftest
$ac_exeext; then
19671 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.
$ac_ext >&5
19676 ac_cv_lib_ldap_r_ldap_simple_bind
=no
19679 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19680 conftest
$ac_exeext conftest.
$ac_ext
19681 LIBS
=$ac_check_lib_save_LIBS
19683 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19684 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19685 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19686 cat >>confdefs.h
<<_ACEOF
19687 #define HAVE_LIBLDAP_R 1
19690 LIBS
="-lldap_r $LIBS"
19693 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19694 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19695 { (exit 1); exit 1; }; }
19698 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19700 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19704 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19705 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19706 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 ac_check_lib_save_LIBS
=$LIBS
19710 LIBS
="-lwldap32 $LIBS"
19711 cat >conftest.
$ac_ext <<_ACEOF
19714 cat confdefs.h
>>conftest.
$ac_ext
19715 cat >>conftest.
$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19718 /* Override any GCC internal prototype to avoid an error.
19719 Use char because int might match the return type of a GCC
19720 builtin and then its argument prototype would still apply. */
19728 return ldap_bind ();
19733 rm -f conftest.
$ac_objext conftest
$ac_exeext
19734 if { (ac_try
="$ac_link"
19735 case "(($ac_try" in
19736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } && {
19747 test -z "$ac_c_werror_flag" ||
19748 test ! -s conftest.err
19749 } && test -s conftest$ac_exeext &&
19750 $as_test_x conftest$ac_exeext; then
19751 ac_cv_lib_wldap32_ldap_bind=yes
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_cv_lib_wldap32_ldap_bind=no
19759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19760 conftest$ac_exeext conftest.$ac_ext
19761 LIBS=$ac_check_lib_save_LIBS
19763 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19764 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19765 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_LIBWLDAP32 1
19770 LIBS="-lwldap32 $LIBS"
19773 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19774 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19775 { (exit 1); exit 1; }; }
19778 LDAP_LIBS_FE="-lwldap32"
19779 LDAP_LIBS_BE="-lwldap32"
19787 # This test makes sure that run tests work at all. Sometimes a shared
19788 # library is found by the linker, but the runtime linker can't find it.
19789 # This check should come after all modifications of compiler or linker
19790 # variables, and before any other run tests.
19791 { echo "$as_me:$LINENO: checking test program" >&5
19792 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19793 if test "$cross_compiling" = yes; then
19794 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19795 echo "${ECHO_T}cross-compiling" >&6; }
19797 cat >conftest.$ac_ext <<_ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 int main() { return 0; }
19805 rm -f conftest$ac_exeext
19806 if { (ac_try="$ac_link"
19807 case "(($ac_try" in
19808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19809 *) ac_try_echo
=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_link") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19816 { (case "(($ac_try" in
19817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 { echo "$as_me:$LINENO: result: ok" >&5
19826 echo "${ECHO_T}ok" >&6; }
19828 echo "$as_me: program exited with status $ac_status" >&5
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ( exit $ac_status )
19833 { echo "$as_me:$LINENO: result: failed" >&5
19834 echo "${ECHO_T}failed" >&6; }
19835 { { echo "$as_me:$LINENO: error:
19836 Could not execute a simple test program. This may be a problem
19837 related to locating shared libraries. Check the file 'config.log'
19838 for the exact reason." >&5
19839 echo "$as_me: error:
19840 Could not execute a simple test program. This may be a problem
19841 related to locating shared libraries. Check the file 'config.log'
19842 for the exact reason." >&2;}
19843 { (exit 1); exit 1; }; }
19845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19850 # --------------------
19851 # Run tests below here
19852 # --------------------
19854 # Force use of our snprintf if system's doesn't do arg control
19855 # See comment above at snprintf test for details.
19856 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19857 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19858 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19859 if test "${pgac_cv_printf_arg_control+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 if test "$cross_compiling" = yes; then
19863 pgac_cv_printf_arg_control=cross
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19872 #include <string.h>
19878 /* can it swap arguments? */
19879 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19880 if (strcmp(buf, "4 3") != 0)
19885 rm -f conftest$ac_exeext
19886 if { (ac_try="$ac_link"
19887 case "(($ac_try" in
19888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19889 *) ac_try_echo
=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_link") 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19896 { (case "(($ac_try" in
19897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_try") 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 pgac_cv_printf_arg_control=yes
19907 echo "$as_me: program exited with status $ac_status" >&5
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ( exit $ac_status )
19912 pgac_cv_printf_arg_control=no
19914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19920 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19921 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19923 if test $pgac_cv_printf_arg_control != yes ; then
19924 pgac_need_repl_snprintf=yes
19930 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19931 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19932 if test "${pgac_cv_type_long_int_64+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 if test "$cross_compiling" = yes; then
19936 # If cross-compiling, check the size reported by the compiler and
19937 # trust that the arithmetic works.
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19948 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19955 rm -f conftest.$ac_objext
19956 if { (ac_try="$ac_compile"
19957 case "(($ac_try" in
19958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19959 *) ac_try_echo
=$ac_try;;
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19964 grep -v '^ *+' conftest.er1
>conftest.err
19966 cat conftest.err
>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.
$ac_objext; then
19972 pgac_cv_type_long_int_64
=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.
$ac_ext >&5
19977 pgac_cv_type_long_int_64
=no
19980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19982 cat >conftest.
$ac_ext <<_ACEOF
19985 cat confdefs.h
>>conftest.
$ac_ext
19986 cat >>conftest.
$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 typedef long int ac_int64;
19991 * These are globals to discourage the compiler from folding all the
19992 * arithmetic tests down to compile-time constants.
19994 ac_int64 a = 20000001;
19995 ac_int64 b = 40000005;
19997 int does_int64_work()
20001 if (sizeof(ac_int64) != 8)
20002 return 0; /* definitely not the right size */
20004 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20012 exit(! does_int64_work());
20015 rm -f conftest
$ac_exeext
20016 if { (ac_try
="$ac_link"
20017 case "(($ac_try" in
20018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_link") 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20026 { (case "(($ac_try" in
20027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20028 *) ac_try_echo
=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_try") 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 pgac_cv_type_long_int_64
=yes
20037 echo "$as_me: program exited with status $ac_status" >&5
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.
$ac_ext >&5
20041 ( exit $ac_status )
20042 pgac_cv_type_long_int_64
=no
20044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20049 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20050 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20052 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
20053 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
20055 cat >>confdefs.h
<<\_ACEOF
20056 #define HAVE_LONG_INT_64 1
20062 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
20063 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20064 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20065 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 if test "$cross_compiling" = yes; then
20069 # If cross-compiling, check the size reported by the compiler and
20070 # trust that the arithmetic works.
20071 cat >conftest.
$ac_ext <<_ACEOF
20074 cat confdefs.h
>>conftest.
$ac_ext
20075 cat >>conftest.
$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20081 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20088 rm -f conftest.
$ac_objext
20089 if { (ac_try
="$ac_compile"
20090 case "(($ac_try" in
20091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_compile") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } && {
20102 test -z "$ac_c_werror_flag" ||
20103 test ! -s conftest.err
20104 } && test -s conftest.$ac_objext; then
20105 pgac_cv_type_long_long_int_64=yes
20107 echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20110 pgac_cv_type_long_long_int_64=no
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 typedef long long int ac_int64;
20124 * These are globals to discourage the compiler from folding all the
20125 * arithmetic tests down to compile-time constants.
20127 ac_int64 a = 20000001;
20128 ac_int64 b = 40000005;
20130 int does_int64_work()
20134 if (sizeof(ac_int64) != 8)
20135 return 0; /* definitely not the right size */
20137 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20145 exit(! does_int64_work());
20148 rm -f conftest$ac_exeext
20149 if { (ac_try="$ac_link"
20150 case "(($ac_try" in
20151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20152 *) ac_try_echo
=$ac_try;;
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_link") 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20159 { (case "(($ac_try" in
20160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_try") 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 pgac_cv_type_long_long_int_64=yes
20170 echo "$as_me: program exited with status $ac_status" >&5
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ( exit $ac_status )
20175 pgac_cv_type_long_long_int_64=no
20177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20182 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20183 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20185 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20186 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20188 cat >>confdefs.h <<\_ACEOF
20189 #define HAVE_LONG_LONG_INT_64 1
20198 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20206 #define INT64CONST(x) x##LL
20207 long long int foo = INT64CONST(0x1234567890123456);
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20221 *) ac_try_echo
=$ac_try;;
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_compile") 2>conftest.er1
20226 grep -v '^ *+' conftest.er1
>conftest.err
20228 cat conftest.err
>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && {
20231 test -z "$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 } && test -s conftest.
$ac_objext; then
20235 cat >>confdefs.h
<<\_ACEOF
20236 #define HAVE_LL_CONSTANTS 1
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.
$ac_ext >&5
20246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20250 # If we found "long int" is 64 bits, assume snprintf handles it. If
20251 # we found we need to use "long long int", better check. We cope with
20252 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20253 # work, fall back to our own snprintf emulation (which we know uses %lld).
20255 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20256 if test $pgac_need_repl_snprintf = no
; then
20257 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20258 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20259 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 for pgac_format
in '%lld' '%qd' '%I64d'; do
20263 if test "$cross_compiling" = yes; then
20264 pgac_cv_snprintf_long_long_int_format
=cross
; break
20266 cat >conftest.
$ac_ext <<_ACEOF
20269 cat confdefs.h
>>conftest.
$ac_ext
20270 cat >>conftest.
$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20273 typedef long long int ac_int64;
20274 #define INT64_FORMAT "$pgac_format"
20276 ac_int64 a = 20000001;
20277 ac_int64 b = 40000005;
20279 int does_int64_snprintf_work()
20284 if (sizeof(ac_int64) != 8)
20285 return 0; /* doesn't look like the right size */
20288 snprintf(buf, 100, INT64_FORMAT, c);
20289 if (strcmp(buf, "800000140000005") != 0)
20290 return 0; /* either multiply or snprintf is busted */
20294 exit(! does_int64_snprintf_work());
20297 rm -f conftest
$ac_exeext
20298 if { (ac_try
="$ac_link"
20299 case "(($ac_try" in
20300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20308 { (case "(($ac_try" in
20309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20310 *) ac_try_echo
=$ac_try;;
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
20319 echo "$as_me: program exited with status $ac_status" >&5
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.
$ac_ext >&5
20324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20331 LONG_LONG_INT_FORMAT
=''
20333 case $pgac_cv_snprintf_long_long_int_format in
20334 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20335 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20336 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20337 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20338 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
20339 *) { echo "$as_me:$LINENO: result: none" >&5
20340 echo "${ECHO_T}none" >&6; };;
20342 if test "$LONG_LONG_INT_FORMAT" = ""; then
20343 # Force usage of our own snprintf, since system snprintf is broken
20344 pgac_need_repl_snprintf
=yes
20345 LONG_LONG_INT_FORMAT
='%lld'
20348 # Here if we previously decided we needed to use our own snprintf
20349 LONG_LONG_INT_FORMAT
='%lld'
20351 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20352 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
20353 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
20355 # Here if we are not using 'long long int' at all
20356 INT64_FORMAT
='"%ld"'
20357 UINT64_FORMAT
='"%lu"'
20361 cat >>confdefs.h
<<_ACEOF
20362 #define INT64_FORMAT $INT64_FORMAT
20367 cat >>confdefs.h
<<_ACEOF
20368 #define UINT64_FORMAT $UINT64_FORMAT
20372 # Now we have checked all the reasons to replace snprintf
20373 if test $pgac_need_repl_snprintf = yes; then
20375 cat >>confdefs.h
<<\_ACEOF
20376 #define USE_REPL_SNPRINTF 1
20379 case " $LIBOBJS " in
20380 *" snprintf.$ac_objext "* ) ;;
20381 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20387 # Need a #define for the size of Datum (unsigned long)
20388 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20389 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20390 if test "${ac_cv_type_unsigned_long+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 cat >conftest.
$ac_ext <<_ACEOF
20396 cat confdefs.h
>>conftest.
$ac_ext
20397 cat >>conftest.
$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 $ac_includes_default
20400 typedef unsigned long ac__type_new_;
20404 if ((ac__type_new_ *) 0)
20406 if (sizeof (ac__type_new_))
20412 rm -f conftest.
$ac_objext
20413 if { (ac_try
="$ac_compile"
20414 case "(($ac_try" in
20415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_compile") 2>conftest.er1
20421 grep -v '^ *+' conftest.er1 >conftest.err
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } && {
20426 test -z "$ac_c_werror_flag" ||
20427 test ! -s conftest.err
20428 } && test -s conftest.$ac_objext; then
20429 ac_cv_type_unsigned_long=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_cv_type_unsigned_long=no
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20440 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20442 # The cast to long int works around a bug in the HP C Compiler
20443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20444 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20445 # This bug is HP SR number 8606223364.
20446 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20447 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20448 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 if test "$cross_compiling" = yes; then
20452 # Depending upon the size, compute the lo and hi bounds.
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 $ac_includes_default
20460 typedef unsigned long ac__type_sizeof_;
20464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20471 rm -f conftest.$ac_objext
20472 if { (ac_try="$ac_compile"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_compile") 2>conftest.er1
20480 grep -v '^
*+' conftest.er1 >conftest.err
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest.$ac_objext; then
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 $ac_includes_default
20497 typedef unsigned long ac__type_sizeof_;
20501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20508 rm -f conftest.$ac_objext
20509 if { (ac_try="$ac_compile"
20510 case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_compile") 2>conftest.er1
20517 grep -v '^
*+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } && {
20522 test -z "$ac_c_werror_flag" ||
20523 test ! -s conftest.err
20524 } && test -s conftest.$ac_objext; then
20525 ac_hi=$ac_mid; break
20527 echo "$as_me: failed program was:" >&5
20528 sed 's
/^
/|
/' conftest.$ac_ext >&5
20530 ac_lo=`expr $ac_mid + 1`
20531 if test $ac_lo -le $ac_mid; then
20535 ac_mid=`expr 2 '*' $ac_mid + 1`
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541 echo "$as_me: failed program was:" >&5
20542 sed 's
/^
/|
/' conftest.$ac_ext >&5
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 $ac_includes_default
20551 typedef unsigned long ac__type_sizeof_;
20555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20562 rm -f conftest.$ac_objext
20563 if { (ac_try="$ac_compile"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_compile") 2>conftest.er1
20571 grep -v '^
*+' conftest.er1 >conftest.err
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } && {
20576 test -z "$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 } && test -s conftest.$ac_objext; then
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 $ac_includes_default
20588 typedef unsigned long ac__type_sizeof_;
20592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20599 rm -f conftest.$ac_objext
20600 if { (ac_try="$ac_compile"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_compile") 2>conftest.er1
20608 grep -v '^
*+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest.$ac_objext; then
20616 ac_lo=$ac_mid; break
20618 echo "$as_me: failed program was:" >&5
20619 sed 's
/^
/|
/' conftest.$ac_ext >&5
20621 ac_hi=`expr '(' $ac_mid ')' - 1`
20622 if test $ac_mid -le $ac_hi; then
20626 ac_mid=`expr 2 '*' $ac_mid`
20629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632 echo "$as_me: failed program was:" >&5
20633 sed 's
/^
/|
/' conftest.$ac_ext >&5
20638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 # Binary search between lo and hi bounds.
20643 while test "x$ac_lo" != "x$ac_hi"; do
20644 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20645 cat >conftest.$ac_ext <<_ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h. */
20651 $ac_includes_default
20652 typedef unsigned long ac__type_sizeof_;
20656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_compile") 2>conftest.er1
20672 grep -v '^
*+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest.$ac_objext; then
20682 echo "$as_me: failed program was:" >&5
20683 sed 's
/^
/|
/' conftest.$ac_ext >&5
20685 ac_lo=`expr '(' $ac_mid ')' + 1`
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20692 '') if test "$ac_cv_type_unsigned_long" = yes; then
20693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20694 See \`config.log' for more details.
" >&5
20695 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
20696 See \
`config.log' for more details." >&2;}
20697 { (exit 77); exit 77; }; }
20699 ac_cv_sizeof_unsigned_long=0
20703 cat >conftest.$ac_ext <<_ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 $ac_includes_default
20710 typedef unsigned long ac__type_sizeof_;
20711 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20712 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20714 #include <stdlib.h>
20719 FILE *f = fopen ("conftest.val", "w");
20722 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20724 long int i = longval ();
20725 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20727 fprintf (f, "%ld\n", i);
20731 unsigned long int i = ulongval ();
20732 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20734 fprintf (f, "%lu\n", i);
20736 return ferror (f) || fclose (f) != 0;
20742 rm -f conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20746 *) ac_try_echo
=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20753 { (case "(($ac_try" in
20754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
20764 echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ( exit $ac_status )
20769 if test "$ac_cv_type_unsigned_long" = yes; then
20770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20771 See \`config.log
' for more details." >&5
20772 echo "$as_me: error: cannot compute sizeof (unsigned long)
20773 See \`config.log' for more details.
" >&2;}
20774 { (exit 77); exit 77; }; }
20776 ac_cv_sizeof_unsigned_long=0
20779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20783 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
20784 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20788 cat >>confdefs.h <<_ACEOF
20789 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20794 # And one for the size of size_t (enables tweaks for > 32bit address space)
20795 { echo "$as_me:$LINENO: checking
for size_t
" >&5
20796 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
20797 if test "${ac_cv_type_size_t+set}" = set; then
20798 echo $ECHO_N "(cached
) $ECHO_C" >&6
20800 cat >conftest.$ac_ext <<_ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806 $ac_includes_default
20807 typedef size_t ac__type_new_;
20811 if ((ac__type_new_ *) 0)
20813 if (sizeof (ac__type_new_))
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest.$ac_objext; then
20836 ac_cv_type_size_t=yes
20838 echo "$as_me: failed program was
:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_cv_type_size_t=no
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
20847 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20849 # The cast to long int works around a bug in the HP C Compiler
20850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20852 # This bug is HP SR number 8606223364.
20853 { echo "$as_me:$LINENO: checking size of size_t
" >&5
20854 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
20855 if test "${ac_cv_sizeof_size_t+set}" = set; then
20856 echo $ECHO_N "(cached
) $ECHO_C" >&6
20858 if test "$cross_compiling" = yes; then
20859 # Depending upon the size, compute the lo and hi bounds.
20860 cat >conftest.$ac_ext <<_ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 $ac_includes_default
20867 typedef size_t ac__type_sizeof_;
20871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_compile") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest.$ac_objext; then
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 $ac_includes_default
20904 typedef size_t ac__type_sizeof_;
20908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_compile") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest.$ac_objext; then
20932 ac_hi=$ac_mid; break
20934 echo "$as_me: failed program was
:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_lo=`expr $ac_mid + 1`
20938 if test $ac_lo -le $ac_mid; then
20942 ac_mid=`expr 2 '*' $ac_mid + 1`
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 echo "$as_me: failed program was
:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 $ac_includes_default
20958 typedef size_t ac__type_sizeof_;
20962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_compile") 2>conftest.er1
20978 grep -v '^ *+' conftest.er1 >conftest.err
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20982 (exit $ac_status); } && {
20983 test -z "$ac_c_werror_flag" ||
20984 test ! -s conftest.err
20985 } && test -s conftest.$ac_objext; then
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 $ac_includes_default
20995 typedef size_t ac__type_sizeof_;
20999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_compile") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest.$ac_objext; then
21023 ac_lo=$ac_mid; break
21025 echo "$as_me: failed program was
:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_hi=`expr '(' $ac_mid ')' - 1`
21029 if test $ac_mid -le $ac_hi; then
21033 ac_mid=`expr 2 '*' $ac_mid`
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 echo "$as_me: failed program was
:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 # Binary search between lo and hi bounds.
21050 while test "x
$ac_lo" != "x
$ac_hi"; do
21051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 typedef size_t ac__type_sizeof_;
21063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21089 echo "$as_me: failed program was
:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 ac_lo=`expr '(' $ac_mid ')' + 1`
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21099 '') if test "$ac_cv_type_size_t" = yes; then
21100 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
21101 See \
`config.log' for more details." >&5
21102 echo "$as_me: error: cannot compute sizeof (size_t)
21103 See \`config.log
' for more details." >&2;}
21104 { (exit 77); exit 77; }; }
21106 ac_cv_sizeof_size_t=0
21110 cat >conftest.$ac_ext <<_ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 $ac_includes_default
21117 typedef size_t ac__type_sizeof_;
21118 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21119 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21121 #include <stdlib.h>
21126 FILE *f = fopen ("conftest.val", "w");
21129 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21131 long int i = longval ();
21132 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21134 fprintf (f, "%ld\n", i);
21138 unsigned long int i = ulongval ();
21139 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21141 fprintf (f, "%lu\n", i);
21143 return ferror (f) || fclose (f) != 0;
21149 rm -f conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_link") 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21160 { (case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_try") 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; }; then
21169 ac_cv_sizeof_size_t=`cat conftest.val`
21171 echo "$as_me: program exited with status $ac_status" >&5
21172 echo "$as_me: failed program was:" >&5
21173 sed 's
/^
/|
/' conftest.$ac_ext >&5
21175 ( exit $ac_status )
21176 if test "$ac_cv_type_size_t" = yes; then
21177 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21178 See \`config.log' for more details.
" >&5
21179 echo "$as_me: error
: cannot compute sizeof
(size_t
)
21180 See \
`config.log' for more details." >&2;}
21181 { (exit 77); exit 77; }; }
21183 ac_cv_sizeof_size_t=0
21186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21191 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21195 cat >>confdefs.h <<_ACEOF
21196 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21201 # Decide whether float4 is passed by value: user-selectable, enabled by default
21202 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21203 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21205 pgac_args="$pgac_args enable_float4_byval"
21207 # Check whether --enable-float4-byval was given.
21208 if test "${enable_float4_byval+set}" = set; then
21209 enableval=$enable_float4_byval;
21213 cat >>confdefs.h <<\_ACEOF
21214 #define USE_FLOAT4_BYVAL 1
21217 float4passbyval=true
21220 float4passbyval=false
21223 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21224 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21225 { (exit 1); exit 1; }; }
21230 enable_float4_byval=yes
21232 cat >>confdefs.h <<\_ACEOF
21233 #define USE_FLOAT4_BYVAL 1
21236 float4passbyval=true
21240 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21241 echo "${ECHO_T}$enable_float4_byval" >&6; }
21243 cat >>confdefs.h <<_ACEOF
21244 #define FLOAT4PASSBYVAL $float4passbyval
21248 # Decide whether float8 is passed by value.
21249 # Note: this setting also controls int8 and related types such as timestamp.
21250 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21251 # If not, trying to select it is an error.
21252 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21253 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21254 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21256 pgac_args="$pgac_args enable_float8_byval"
21258 # Check whether --enable-float8-byval was given.
21259 if test "${enable_float8_byval+set}" = set; then
21260 enableval=$enable_float8_byval;
21269 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21270 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21271 { (exit 1); exit 1; }; }
21276 enable_float8_byval=yes
21283 pgac_args="$pgac_args enable_float8_byval"
21285 # Check whether --enable-float8-byval was given.
21286 if test "${enable_float8_byval+set}" = set; then
21287 enableval=$enable_float8_byval;
21296 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21297 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21298 { (exit 1); exit 1; }; }
21303 enable_float8_byval=no
21308 if test "$enable_float8_byval" = yes ; then
21309 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21310 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21311 { (exit 1); exit 1; }; }
21314 if test "$enable_float8_byval" = yes ; then
21316 cat >>confdefs.h <<\_ACEOF
21317 #define USE_FLOAT8_BYVAL 1
21320 float8passbyval=true
21322 float8passbyval=false
21324 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21325 echo "${ECHO_T}$enable_float8_byval" >&6; }
21327 cat >>confdefs.h <<_ACEOF
21328 #define FLOAT8PASSBYVAL $float8passbyval
21332 # Determine memory alignment requirements for the basic C data types.
21334 { echo "$as_me:$LINENO: checking for short" >&5
21335 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21336 if test "${ac_cv_type_short+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 cat >conftest.$ac_ext <<_ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h. */
21345 $ac_includes_default
21346 typedef short ac__type_new_;
21350 if ((ac__type_new_ *) 0)
21352 if (sizeof (ac__type_new_))
21358 rm -f conftest.$ac_objext
21359 if { (ac_try="$ac_compile"
21360 case "(($ac_try" in
21361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21362 *) ac_try_echo
=$ac_try;;
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_compile") 2>conftest.er1
21367 grep -v '^ *+' conftest.er1
>conftest.err
21369 cat conftest.err
>&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } && {
21372 test -z "$ac_c_werror_flag" ||
21373 test ! -s conftest.err
21374 } && test -s conftest.
$ac_objext; then
21375 ac_cv_type_short
=yes
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.
$ac_ext >&5
21380 ac_cv_type_short
=no
21383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21386 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21388 # The cast to long int works around a bug in the HP C Compiler,
21389 # see AC_CHECK_SIZEOF for more information.
21390 { echo "$as_me:$LINENO: checking alignment of short" >&5
21391 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21392 if test "${ac_cv_alignof_short+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 if test "$cross_compiling" = yes; then
21396 # Depending upon the size, compute the lo and hi bounds.
21397 cat >conftest.
$ac_ext <<_ACEOF
21400 cat confdefs.h
>>conftest.
$ac_ext
21401 cat >>conftest.
$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21405 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21407 typedef struct { char x; short y; } ac__type_alignof_;
21411 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21418 rm -f conftest.
$ac_objext
21419 if { (ac_try
="$ac_compile"
21420 case "(($ac_try" in
21421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_compile") 2>conftest.er1
21427 grep -v '^ *+' conftest.er1 >conftest.err
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } && {
21432 test -z "$ac_c_werror_flag" ||
21433 test ! -s conftest.err
21434 } && test -s conftest.$ac_objext; then
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 $ac_includes_default
21445 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21447 typedef struct { char x; short y; } ac__type_alignof_;
21451 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
21460 case "(($ac_try" in
21461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21462 *) ac_try_echo
=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_compile") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1
>conftest.err
21469 cat conftest.err
>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest.
$ac_objext; then
21475 ac_hi
=$ac_mid; break
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.
$ac_ext >&5
21480 ac_lo
=`expr $ac_mid + 1`
21481 if test $ac_lo -le $ac_mid; then
21485 ac_mid
=`expr 2 '*' $ac_mid + 1`
21488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.
$ac_ext >&5
21494 cat >conftest.
$ac_ext <<_ACEOF
21497 cat confdefs.h
>>conftest.
$ac_ext
21498 cat >>conftest.
$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 $ac_includes_default
21502 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21504 typedef struct { char x; short y; } ac__type_alignof_;
21508 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21515 rm -f conftest.
$ac_objext
21516 if { (ac_try
="$ac_compile"
21517 case "(($ac_try" in
21518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_compile") 2>conftest.er1
21524 grep -v '^ *+' conftest.er1 >conftest.err
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && {
21529 test -z "$ac_c_werror_flag" ||
21530 test ! -s conftest.err
21531 } && test -s conftest.$ac_objext; then
21534 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 $ac_includes_default
21542 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21544 typedef struct { char x; short y; } ac__type_alignof_;
21548 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21559 *) ac_try_echo
=$ac_try;;
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1
>conftest.err
21566 cat conftest.err
>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.
$ac_objext; then
21572 ac_lo
=$ac_mid; break
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.
$ac_ext >&5
21577 ac_hi
=`expr '(' $ac_mid ')' - 1`
21578 if test $ac_mid -le $ac_hi; then
21582 ac_mid
=`expr 2 '*' $ac_mid`
21585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.
$ac_ext >&5
21594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21598 # Binary search between lo and hi bounds.
21599 while test "x$ac_lo" != "x$ac_hi"; do
21600 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21601 cat >conftest.
$ac_ext <<_ACEOF
21604 cat confdefs.h
>>conftest.
$ac_ext
21605 cat >>conftest.
$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 $ac_includes_default
21609 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21611 typedef struct { char x; short y; } ac__type_alignof_;
21615 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21622 rm -f conftest.
$ac_objext
21623 if { (ac_try
="$ac_compile"
21624 case "(($ac_try" in
21625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_compile") 2>conftest.er1
21631 grep -v '^ *+' conftest.er1 >conftest.err
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && {
21636 test -z "$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 } && test -s conftest.$ac_objext; then
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_lo=`expr '(' $ac_mid ')' + 1`
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 ?*) ac_cv_alignof_short=$ac_lo;;
21651 '') if test "$ac_cv_type_short" = yes; then
21652 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21653 See \`config.log
' for more details." >&5
21654 echo "$as_me: error: cannot compute alignment of short
21655 See \`config.log' for more details.
" >&2;}
21656 { (exit 77); exit 77; }; }
21658 ac_cv_alignof_short=0
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 $ac_includes_default
21670 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21672 typedef struct { char x; short y; } ac__type_alignof_;
21673 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21674 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21676 #include <stdlib.h>
21681 FILE *f = fopen ("conftest.val
", "w
");
21684 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21686 long int i = longval ();
21687 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21689 fprintf (f, "%ld
\n", i);
21693 unsigned long int i = ulongval ();
21694 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21696 fprintf (f, "%lu
\n", i);
21698 return ferror (f) || fclose (f) != 0;
21704 rm -f conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_link") 2>&5
21713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21715 { (case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_try") 2>&5
21722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_cv_alignof_short=`cat conftest.val`
21726 echo "$as_me: program exited with status
$ac_status" >&5
21727 echo "$as_me: failed program was
:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ( exit $ac_status )
21731 if test "$ac_cv_type_short" = yes; then
21732 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
21733 See \
`config.log' for more details." >&5
21734 echo "$as_me: error: cannot compute alignment of short
21735 See \`config.log
' for more details." >&2;}
21736 { (exit 77); exit 77; }; }
21738 ac_cv_alignof_short=0
21741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21746 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21750 cat >>confdefs.h <<_ACEOF
21751 #define ALIGNOF_SHORT $ac_cv_alignof_short
21755 { echo "$as_me:$LINENO: checking for int" >&5
21756 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21757 if test "${ac_cv_type_int+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 cat >conftest.$ac_ext <<_ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 $ac_includes_default
21767 typedef int ac__type_new_;
21771 if ((ac__type_new_ *) 0)
21773 if (sizeof (ac__type_new_))
21779 rm -f conftest.$ac_objext
21780 if { (ac_try="$ac_compile"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_compile") 2>conftest.er1
21788 grep -v '^
*+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest.$ac_objext; then
21798 echo "$as_me: failed program was:" >&5
21799 sed 's
/^
/|
/' conftest.$ac_ext >&5
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21807 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21809 # The cast to long int works around a bug in the HP C Compiler,
21810 # see AC_CHECK_SIZEOF for more information.
21811 { echo "$as_me:$LINENO: checking alignment of int" >&5
21812 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21813 if test "${ac_cv_alignof_int+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 if test "$cross_compiling" = yes; then
21817 # Depending upon the size, compute the lo and hi bounds.
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21826 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21828 typedef struct { char x; int y; } ac__type_alignof_;
21832 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21839 rm -f conftest.$ac_objext
21840 if { (ac_try="$ac_compile"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_compile") 2>conftest.er1
21848 grep -v '^
*+' conftest.er1 >conftest.err
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest.$ac_objext; then
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 $ac_includes_default
21866 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21868 typedef struct { char x; int y; } ac__type_alignof_;
21872 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21888 grep -v '^
*+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21896 ac_hi=$ac_mid; break
21898 echo "$as_me: failed program was:" >&5
21899 sed 's
/^
/|
/' conftest.$ac_ext >&5
21901 ac_lo=`expr $ac_mid + 1`
21902 if test $ac_lo -le $ac_mid; then
21906 ac_mid=`expr 2 '*' $ac_mid + 1`
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912 echo "$as_me: failed program was:" >&5
21913 sed 's
/^
/|
/' conftest.$ac_ext >&5
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 $ac_includes_default
21923 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21925 typedef struct { char x; int y; } ac__type_alignof_;
21929 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21936 rm -f conftest.$ac_objext
21937 if { (ac_try="$ac_compile"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_compile") 2>conftest.er1
21945 grep -v '^
*+' conftest.er1 >conftest.err
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && {
21950 test -z "$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 } && test -s conftest.$ac_objext; then
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21963 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21965 typedef struct { char x; int y; } ac__type_alignof_;
21969 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21985 grep -v '^
*+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21993 ac_lo=$ac_mid; break
21995 echo "$as_me: failed program was:" >&5
21996 sed 's
/^
/|
/' conftest.$ac_ext >&5
21998 ac_hi=`expr '(' $ac_mid ')' - 1`
21999 if test $ac_mid -le $ac_hi; then
22003 ac_mid=`expr 2 '*' $ac_mid`
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 echo "$as_me: failed program was:" >&5
22010 sed 's
/^
/|
/' conftest.$ac_ext >&5
22015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 # Binary search between lo and hi bounds.
22020 while test "x$ac_lo" != "x$ac_hi"; do
22021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 $ac_includes_default
22030 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22032 typedef struct { char x; int y; } ac__type_alignof_;
22036 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22052 grep -v '^
*+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.$ac_objext; then
22062 echo "$as_me: failed program was:" >&5
22063 sed 's
/^
/|
/' conftest.$ac_ext >&5
22065 ac_lo=`expr '(' $ac_mid ')' + 1`
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 ?*) ac_cv_alignof_int=$ac_lo;;
22072 '') if test "$ac_cv_type_int" = yes; then
22073 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22074 See \`config.log' for more details.
" >&5
22075 echo "$as_me: error
: cannot compute alignment of int
22076 See \
`config.log' for more details." >&2;}
22077 { (exit 77); exit 77; }; }
22079 ac_cv_alignof_int=0
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 $ac_includes_default
22091 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22093 typedef struct { char x; int y; } ac__type_alignof_;
22094 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22095 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22097 #include <stdlib.h>
22102 FILE *f = fopen ("conftest.val", "w");
22105 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22107 long int i = longval ();
22108 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22110 fprintf (f, "%ld\n", i);
22114 unsigned long int i = ulongval ();
22115 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22117 fprintf (f, "%lu\n", i);
22119 return ferror (f) || fclose (f) != 0;
22125 rm -f conftest$ac_exeext
22126 if { (ac_try="$ac_link"
22127 case "(($ac_try" in
22128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22129 *) ac_try_echo
=$ac_try;;
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_link") 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22136 { (case "(($ac_try" in
22137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_try") 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 ac_cv_alignof_int=`cat conftest.val
`
22147 echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ( exit $ac_status )
22152 if test "$ac_cv_type_int" = yes; then
22153 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22154 See \`config.log
' for more details." >&5
22155 echo "$as_me: error: cannot compute alignment of int
22156 See \`config.log' for more details.
" >&2;}
22157 { (exit 77); exit 77; }; }
22159 ac_cv_alignof_int=0
22162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
22167 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22171 cat >>confdefs.h <<_ACEOF
22172 #define ALIGNOF_INT $ac_cv_alignof_int
22176 { echo "$as_me:$LINENO: checking
for long
" >&5
22177 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
22178 if test "${ac_cv_type_long+set}" = set; then
22179 echo $ECHO_N "(cached
) $ECHO_C" >&6
22181 cat >conftest.$ac_ext <<_ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h. */
22187 $ac_includes_default
22188 typedef long ac__type_new_;
22192 if ((ac__type_new_ *) 0)
22194 if (sizeof (ac__type_new_))
22200 rm -f conftest.$ac_objext
22201 if { (ac_try="$ac_compile"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_compile") 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22213 (exit $ac_status); } && {
22214 test -z "$ac_c_werror_flag" ||
22215 test ! -s conftest.err
22216 } && test -s conftest.$ac_objext; then
22217 ac_cv_type_long=yes
22219 echo "$as_me: failed program was
:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
22228 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22230 # The cast to long int works around a bug in the HP C Compiler,
22231 # see AC_CHECK_SIZEOF for more information.
22232 { echo "$as_me:$LINENO: checking alignment of long
" >&5
22233 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
22234 if test "${ac_cv_alignof_long+set}" = set; then
22235 echo $ECHO_N "(cached
) $ECHO_C" >&6
22237 if test "$cross_compiling" = yes; then
22238 # Depending upon the size, compute the lo and hi bounds.
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 $ac_includes_default
22247 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22249 typedef struct { char x; long y; } ac__type_alignof_;
22253 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_compile") 2>conftest.er1
22269 grep -v '^ *+' conftest.er1 >conftest.err
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest.$ac_objext; then
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 $ac_includes_default
22287 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22289 typedef struct { char x; long y; } ac__type_alignof_;
22293 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22300 rm -f conftest.$ac_objext
22301 if { (ac_try="$ac_compile"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_compile") 2>conftest.er1
22309 grep -v '^ *+' conftest.er1 >conftest.err
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22313 (exit $ac_status); } && {
22314 test -z "$ac_c_werror_flag" ||
22315 test ! -s conftest.err
22316 } && test -s conftest.$ac_objext; then
22317 ac_hi=$ac_mid; break
22319 echo "$as_me: failed program was
:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 ac_lo=`expr $ac_mid + 1`
22323 if test $ac_lo -le $ac_mid; then
22327 ac_mid=`expr 2 '*' $ac_mid + 1`
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 echo "$as_me: failed program was
:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 cat >conftest.$ac_ext <<_ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 $ac_includes_default
22344 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22346 typedef struct { char x; long y; } ac__type_alignof_;
22350 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_compile") 2>conftest.er1
22366 grep -v '^ *+' conftest.er1 >conftest.err
22368 cat conftest.err >&5
22369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22370 (exit $ac_status); } && {
22371 test -z "$ac_c_werror_flag" ||
22372 test ! -s conftest.err
22373 } && test -s conftest.$ac_objext; then
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 $ac_includes_default
22384 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22386 typedef struct { char x; long y; } ac__type_alignof_;
22390 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_compile") 2>conftest.er1
22406 grep -v '^ *+' conftest.er1 >conftest.err
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest.$ac_objext; then
22414 ac_lo=$ac_mid; break
22416 echo "$as_me: failed program was
:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_hi=`expr '(' $ac_mid ')' - 1`
22420 if test $ac_mid -le $ac_hi; then
22424 ac_mid=`expr 2 '*' $ac_mid`
22427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22430 echo "$as_me: failed program was
:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 # Binary search between lo and hi bounds.
22441 while test "x
$ac_lo" != "x
$ac_hi"; do
22442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449 $ac_includes_default
22451 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22453 typedef struct { char x; long y; } ac__type_alignof_;
22457 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_compile") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest.$ac_objext; then
22483 echo "$as_me: failed program was
:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_lo=`expr '(' $ac_mid ')' + 1`
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 ?*) ac_cv_alignof_long=$ac_lo;;
22493 '') if test "$ac_cv_type_long" = yes; then
22494 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22495 See \
`config.log' for more details." >&5
22496 echo "$as_me: error: cannot compute alignment of long
22497 See \`config.log
' for more details." >&2;}
22498 { (exit 77); exit 77; }; }
22500 ac_cv_alignof_long=0
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 $ac_includes_default
22512 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22514 typedef struct { char x; long y; } ac__type_alignof_;
22515 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22516 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22518 #include <stdlib.h>
22523 FILE *f = fopen ("conftest.val", "w");
22526 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22528 long int i = longval ();
22529 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22531 fprintf (f, "%ld\n", i);
22535 unsigned long int i = ulongval ();
22536 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22538 fprintf (f, "%lu\n", i);
22540 return ferror (f) || fclose (f) != 0;
22546 rm -f conftest$ac_exeext
22547 if { (ac_try="$ac_link"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_link") 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22557 { (case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_try") 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566 ac_cv_alignof_long=`cat conftest.val`
22568 echo "$as_me: program exited with status $ac_status" >&5
22569 echo "$as_me: failed program was:" >&5
22570 sed 's
/^
/|
/' conftest.$ac_ext >&5
22572 ( exit $ac_status )
22573 if test "$ac_cv_type_long" = yes; then
22574 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22575 See \`config.log' for more details.
" >&5
22576 echo "$as_me: error
: cannot compute alignment of long
22577 See \
`config.log' for more details." >&2;}
22578 { (exit 77); exit 77; }; }
22580 ac_cv_alignof_long=0
22583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22587 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22588 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22592 cat >>confdefs.h <<_ACEOF
22593 #define ALIGNOF_LONG $ac_cv_alignof_long
22597 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22598 { echo "$as_me:$LINENO: checking for long long int" >&5
22599 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22600 if test "${ac_cv_type_long_long_int+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 cat >conftest.$ac_ext <<_ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22609 $ac_includes_default
22610 typedef long long int ac__type_new_;
22614 if ((ac__type_new_ *) 0)
22616 if (sizeof (ac__type_new_))
22622 rm -f conftest.$ac_objext
22623 if { (ac_try="$ac_compile"
22624 case "(($ac_try" in
22625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22626 *) ac_try_echo
=$ac_try;;
22628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22629 (eval "$ac_compile") 2>conftest.er1
22631 grep -v '^ *+' conftest.er1
>conftest.err
22633 cat conftest.err
>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); } && {
22636 test -z "$ac_c_werror_flag" ||
22637 test ! -s conftest.err
22638 } && test -s conftest.
$ac_objext; then
22639 ac_cv_type_long_long_int
=yes
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.
$ac_ext >&5
22644 ac_cv_type_long_long_int
=no
22647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22649 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22650 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22652 # The cast to long int works around a bug in the HP C Compiler,
22653 # see AC_CHECK_SIZEOF for more information.
22654 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22655 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22656 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 if test "$cross_compiling" = yes; then
22660 # Depending upon the size, compute the lo and hi bounds.
22661 cat >conftest.
$ac_ext <<_ACEOF
22664 cat confdefs.h
>>conftest.
$ac_ext
22665 cat >>conftest.
$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 $ac_includes_default
22669 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22671 typedef struct { char x; long long int y; } ac__type_alignof_;
22675 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22682 rm -f conftest.
$ac_objext
22683 if { (ac_try
="$ac_compile"
22684 case "(($ac_try" in
22685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 $ac_includes_default
22709 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22711 typedef struct { char x; long long int y; } ac__type_alignof_;
22715 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22726 *) ac_try_echo
=$ac_try;;
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1
>conftest.err
22733 cat conftest.err
>&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest.
$ac_objext; then
22739 ac_hi
=$ac_mid; break
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.
$ac_ext >&5
22744 ac_lo
=`expr $ac_mid + 1`
22745 if test $ac_lo -le $ac_mid; then
22749 ac_mid
=`expr 2 '*' $ac_mid + 1`
22752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.
$ac_ext >&5
22758 cat >conftest.
$ac_ext <<_ACEOF
22761 cat confdefs.h
>>conftest.
$ac_ext
22762 cat >>conftest.
$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 $ac_includes_default
22766 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22768 typedef struct { char x; long long int y; } ac__type_alignof_;
22772 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22779 rm -f conftest.
$ac_objext
22780 if { (ac_try
="$ac_compile"
22781 case "(($ac_try" in
22782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_compile") 2>conftest.er1
22788 grep -v '^ *+' conftest.er1 >conftest.err
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest.$ac_objext; then
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22804 $ac_includes_default
22806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22808 typedef struct { char x; long long int y; } ac__type_alignof_;
22812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22819 rm -f conftest.$ac_objext
22820 if { (ac_try="$ac_compile"
22821 case "(($ac_try" in
22822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22823 *) ac_try_echo
=$ac_try;;
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_compile") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1
>conftest.err
22830 cat conftest.err
>&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest.
$ac_objext; then
22836 ac_lo
=$ac_mid; break
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.
$ac_ext >&5
22841 ac_hi
=`expr '(' $ac_mid ')' - 1`
22842 if test $ac_mid -le $ac_hi; then
22846 ac_mid
=`expr 2 '*' $ac_mid`
22849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.
$ac_ext >&5
22858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22862 # Binary search between lo and hi bounds.
22863 while test "x$ac_lo" != "x$ac_hi"; do
22864 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22865 cat >conftest.
$ac_ext <<_ACEOF
22868 cat confdefs.h
>>conftest.
$ac_ext
22869 cat >>conftest.
$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 $ac_includes_default
22873 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22875 typedef struct { char x; long long int y; } ac__type_alignof_;
22879 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22886 rm -f conftest.
$ac_objext
22887 if { (ac_try
="$ac_compile"
22888 case "(($ac_try" in
22889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_compile") 2>conftest.er1
22895 grep -v '^ *+' conftest.er1 >conftest.err
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } && {
22900 test -z "$ac_c_werror_flag" ||
22901 test ! -s conftest.err
22902 } && test -s conftest.$ac_objext; then
22905 echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22908 ac_lo=`expr '(' $ac_mid ')' + 1`
22911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22915 '') if test "$ac_cv_type_long_long_int" = yes; then
22916 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22917 See \`config.log
' for more details." >&5
22918 echo "$as_me: error: cannot compute alignment of long long int
22919 See \`config.log' for more details.
" >&2;}
22920 { (exit 77); exit 77; }; }
22922 ac_cv_alignof_long_long_int=0
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 $ac_includes_default
22934 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22936 typedef struct { char x; long long int y; } ac__type_alignof_;
22937 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22938 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22940 #include <stdlib.h>
22945 FILE *f = fopen ("conftest.val
", "w
");
22948 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22950 long int i = longval ();
22951 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22953 fprintf (f, "%ld
\n", i);
22957 unsigned long int i = ulongval ();
22958 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22960 fprintf (f, "%lu
\n", i);
22962 return ferror (f) || fclose (f) != 0;
22968 rm -f conftest$ac_exeext
22969 if { (ac_try="$ac_link"
22970 case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_link") 2>&5
22977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22979 { (case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_try") 2>&5
22986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22987 (exit $ac_status); }; }; then
22988 ac_cv_alignof_long_long_int=`cat conftest.val`
22990 echo "$as_me: program exited with status
$ac_status" >&5
22991 echo "$as_me: failed program was
:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ( exit $ac_status )
22995 if test "$ac_cv_type_long_long_int" = yes; then
22996 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
22997 See \
`config.log' for more details." >&5
22998 echo "$as_me: error: cannot compute alignment of long long int
22999 See \`config.log
' for more details." >&2;}
23000 { (exit 77); exit 77; }; }
23002 ac_cv_alignof_long_long_int=0
23005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23010 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23014 cat >>confdefs.h <<_ACEOF
23015 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23020 { echo "$as_me:$LINENO: checking for double" >&5
23021 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23022 if test "${ac_cv_type_double+set}" = set; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 $ac_includes_default
23032 typedef double ac__type_new_;
23036 if ((ac__type_new_ *) 0)
23038 if (sizeof (ac__type_new_))
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051 (eval "$ac_compile") 2>conftest.er1
23053 grep -v '^
*+' conftest.er1 >conftest.err
23055 cat conftest.err >&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } && {
23058 test -z "$ac_c_werror_flag" ||
23059 test ! -s conftest.err
23060 } && test -s conftest.$ac_objext; then
23061 ac_cv_type_double=yes
23063 echo "$as_me: failed program was:" >&5
23064 sed 's
/^
/|
/' conftest.$ac_ext >&5
23066 ac_cv_type_double=no
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23072 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23074 # The cast to long int works around a bug in the HP C Compiler,
23075 # see AC_CHECK_SIZEOF for more information.
23076 { echo "$as_me:$LINENO: checking alignment of double" >&5
23077 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23078 if test "${ac_cv_alignof_double+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23081 if test "$cross_compiling" = yes; then
23082 # Depending upon the size, compute the lo and hi bounds.
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23091 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23093 typedef struct { char x; double y; } ac__type_alignof_;
23097 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111 (eval "$ac_compile") 2>conftest.er1
23113 grep -v '^
*+' conftest.er1 >conftest.err
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } && {
23118 test -z "$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23120 } && test -s conftest.$ac_objext; then
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 $ac_includes_default
23131 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23133 typedef struct { char x; double y; } ac__type_alignof_;
23137 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23144 rm -f conftest.$ac_objext
23145 if { (ac_try="$ac_compile"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151 (eval "$ac_compile") 2>conftest.er1
23153 grep -v '^
*+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } && {
23158 test -z "$ac_c_werror_flag" ||
23159 test ! -s conftest.err
23160 } && test -s conftest.$ac_objext; then
23161 ac_hi=$ac_mid; break
23163 echo "$as_me: failed program was:" >&5
23164 sed 's
/^
/|
/' conftest.$ac_ext >&5
23166 ac_lo=`expr $ac_mid + 1`
23167 if test $ac_lo -le $ac_mid; then
23171 ac_mid=`expr 2 '*' $ac_mid + 1`
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23177 echo "$as_me: failed program was:" >&5
23178 sed 's
/^
/|
/' conftest.$ac_ext >&5
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 $ac_includes_default
23188 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23190 typedef struct { char x; double y; } ac__type_alignof_;
23194 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23210 grep -v '^
*+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 $ac_includes_default
23228 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23230 typedef struct { char x; double y; } ac__type_alignof_;
23234 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23241 rm -f conftest.$ac_objext
23242 if { (ac_try="$ac_compile"
23243 case "(($ac_try" in
23244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245 *) ac_try_echo=$ac_try;;
23247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248 (eval "$ac_compile") 2>conftest.er1
23250 grep -v '^
*+' conftest.er1 >conftest.err
23252 cat conftest.err >&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } && {
23255 test -z "$ac_c_werror_flag" ||
23256 test ! -s conftest.err
23257 } && test -s conftest.$ac_objext; then
23258 ac_lo=$ac_mid; break
23260 echo "$as_me: failed program was:" >&5
23261 sed 's
/^
/|
/' conftest.$ac_ext >&5
23263 ac_hi=`expr '(' $ac_mid ')' - 1`
23264 if test $ac_mid -le $ac_hi; then
23268 ac_mid=`expr 2 '*' $ac_mid`
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 echo "$as_me: failed program was:" >&5
23275 sed 's
/^
/|
/' conftest.$ac_ext >&5
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 # Binary search between lo and hi bounds.
23285 while test "x$ac_lo" != "x$ac_hi"; do
23286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23287 cat >conftest.$ac_ext <<_ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23293 $ac_includes_default
23295 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23297 typedef struct { char x; double y; } ac__type_alignof_;
23301 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23308 rm -f conftest.$ac_objext
23309 if { (ac_try="$ac_compile"
23310 case "(($ac_try" in
23311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312 *) ac_try_echo=$ac_try;;
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315 (eval "$ac_compile") 2>conftest.er1
23317 grep -v '^
*+' conftest.er1 >conftest.err
23319 cat conftest.err >&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && {
23322 test -z "$ac_c_werror_flag" ||
23323 test ! -s conftest.err
23324 } && test -s conftest.$ac_objext; then
23327 echo "$as_me: failed program was:" >&5
23328 sed 's
/^
/|
/' conftest.$ac_ext >&5
23330 ac_lo=`expr '(' $ac_mid ')' + 1`
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336 ?*) ac_cv_alignof_double=$ac_lo;;
23337 '') if test "$ac_cv_type_double" = yes; then
23338 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23339 See \`config.log' for more details.
" >&5
23340 echo "$as_me: error
: cannot compute alignment of double
23341 See \
`config.log' for more details." >&2;}
23342 { (exit 77); exit 77; }; }
23344 ac_cv_alignof_double=0
23348 cat >conftest.$ac_ext <<_ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 $ac_includes_default
23356 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23358 typedef struct { char x; double y; } ac__type_alignof_;
23359 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23360 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23362 #include <stdlib.h>
23367 FILE *f = fopen ("conftest.val", "w");
23370 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23372 long int i = longval ();
23373 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23375 fprintf (f, "%ld\n", i);
23379 unsigned long int i = ulongval ();
23380 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23382 fprintf (f, "%lu\n", i);
23384 return ferror (f) || fclose (f) != 0;
23390 rm -f conftest$ac_exeext
23391 if { (ac_try="$ac_link"
23392 case "(($ac_try" in
23393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23394 *) ac_try_echo
=$ac_try;;
23396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397 (eval "$ac_link") 2>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23401 { (case "(($ac_try" in
23402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23403 *) ac_try_echo=$ac_try;;
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406 (eval "$ac_try") 2>&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_alignof_double=`cat conftest.val
`
23412 echo "$as_me: program exited with status $ac_status" >&5
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 ( exit $ac_status )
23417 if test "$ac_cv_type_double" = yes; then
23418 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23419 See \`config.log
' for more details." >&5
23420 echo "$as_me: error: cannot compute alignment of double
23421 See \`config.log' for more details.
" >&2;}
23422 { (exit 77); exit 77; }; }
23424 ac_cv_alignof_double=0
23427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23431 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23432 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23436 cat >>confdefs.h <<_ACEOF
23437 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23442 # Compute maximum alignment of any basic type.
23443 # We assume long's alignment is at least as strong as char, short, or int;
23444 # but we must check long long (if it exists) and double.
23446 MAX_ALIGNOF=$ac_cv_alignof_long
23447 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23448 MAX_ALIGNOF=$ac_cv_alignof_double
23450 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23451 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23454 cat >>confdefs.h <<_ACEOF
23455 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23460 # Some platforms predefine the types int8, int16, etc. Only check
23461 # a (hopefully) representative subset.
23462 { echo "$as_me:$LINENO: checking
for int8
" >&5
23463 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23464 if test "${ac_cv_type_int8+set}" = set; then
23465 echo $ECHO_N "(cached
) $ECHO_C" >&6
23467 cat >conftest.$ac_ext <<_ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23474 #ifdef HAVE_SUPPORTDEFS_H
23475 #include <SupportDefs.h>
23478 typedef int8 ac__type_new_;
23482 if ((ac__type_new_ *) 0)
23484 if (sizeof (ac__type_new_))
23490 rm -f conftest.$ac_objext
23491 if { (ac_try="$ac_compile"
23492 case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23499 grep -v '^ *+' conftest.er1 >conftest.err
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23503 (exit $ac_status); } && {
23504 test -z "$ac_c_werror_flag" ||
23505 test ! -s conftest.err
23506 } && test -s conftest.$ac_objext; then
23507 ac_cv_type_int8=yes
23509 echo "$as_me: failed program was
:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23518 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23519 if test $ac_cv_type_int8 = yes; then
23521 cat >>confdefs.h <<_ACEOF
23522 #define HAVE_INT8 1
23527 { echo "$as_me:$LINENO: checking
for uint8
" >&5
23528 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
23529 if test "${ac_cv_type_uint8+set}" = set; then
23530 echo $ECHO_N "(cached
) $ECHO_C" >&6
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23539 #ifdef HAVE_SUPPORTDEFS_H
23540 #include <SupportDefs.h>
23543 typedef uint8 ac__type_new_;
23547 if ((ac__type_new_ *) 0)
23549 if (sizeof (ac__type_new_))
23555 rm -f conftest.$ac_objext
23556 if { (ac_try="$ac_compile"
23557 case "(($ac_try" in
23558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_compile") 2>conftest.er1
23564 grep -v '^ *+' conftest.er1 >conftest.err
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23568 (exit $ac_status); } && {
23569 test -z "$ac_c_werror_flag" ||
23570 test ! -s conftest.err
23571 } && test -s conftest.$ac_objext; then
23572 ac_cv_type_uint8=yes
23574 echo "$as_me: failed program was
:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_cv_type_uint8=no
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
23583 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23584 if test $ac_cv_type_uint8 = yes; then
23586 cat >>confdefs.h <<_ACEOF
23587 #define HAVE_UINT8 1
23592 { echo "$as_me:$LINENO: checking
for int64
" >&5
23593 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
23594 if test "${ac_cv_type_int64+set}" = set; then
23595 echo $ECHO_N "(cached
) $ECHO_C" >&6
23597 cat >conftest.$ac_ext <<_ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23604 #ifdef HAVE_SUPPORTDEFS_H
23605 #include <SupportDefs.h>
23608 typedef int64 ac__type_new_;
23612 if ((ac__type_new_ *) 0)
23614 if (sizeof (ac__type_new_))
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_compile") 2>conftest.er1
23629 grep -v '^ *+' conftest.er1 >conftest.err
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23633 (exit $ac_status); } && {
23634 test -z "$ac_c_werror_flag" ||
23635 test ! -s conftest.err
23636 } && test -s conftest.$ac_objext; then
23637 ac_cv_type_int64=yes
23639 echo "$as_me: failed program was
:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 ac_cv_type_int64=no
23645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
23648 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23649 if test $ac_cv_type_int64 = yes; then
23651 cat >>confdefs.h <<_ACEOF
23652 #define HAVE_INT64 1
23657 { echo "$as_me:$LINENO: checking
for uint64
" >&5
23658 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
23659 if test "${ac_cv_type_uint64+set}" = set; then
23660 echo $ECHO_N "(cached
) $ECHO_C" >&6
23662 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23669 #ifdef HAVE_SUPPORTDEFS_H
23670 #include <SupportDefs.h>
23673 typedef uint64 ac__type_new_;
23677 if ((ac__type_new_ *) 0)
23679 if (sizeof (ac__type_new_))
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_cv_type_uint64=yes
23704 echo "$as_me: failed program was
:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_cv_type_uint64=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
23713 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23714 if test $ac_cv_type_uint64 = yes; then
23716 cat >>confdefs.h <<_ACEOF
23717 #define HAVE_UINT64 1
23724 # We also check for sig_atomic_t, which *should* be defined per ANSI
23725 # C, but is missing on some old platforms.
23726 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
23727 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
23728 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23729 echo $ECHO_N "(cached
) $ECHO_C" >&6
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 #include <signal.h>
23739 typedef sig_atomic_t ac__type_new_;
23743 if ((ac__type_new_ *) 0)
23745 if (sizeof (ac__type_new_))
23751 rm -f conftest.$ac_objext
23752 if { (ac_try="$ac_compile"
23753 case "(($ac_try" in
23754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755 *) ac_try_echo=$ac_try;;
23757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23758 (eval "$ac_compile") 2>conftest.er1
23760 grep -v '^ *+' conftest.er1 >conftest.err
23762 cat conftest.err >&5
23763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23764 (exit $ac_status); } && {
23765 test -z "$ac_c_werror_flag" ||
23766 test ! -s conftest.err
23767 } && test -s conftest.$ac_objext; then
23768 ac_cv_type_sig_atomic_t=yes
23770 echo "$as_me: failed program was
:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 ac_cv_type_sig_atomic_t=no
23776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
23779 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23780 if test $ac_cv_type_sig_atomic_t = yes; then
23782 cat >>confdefs.h <<_ACEOF
23783 #define HAVE_SIG_ATOMIC_T 1
23791 # If the user did not disable integer datetimes, check that
23792 # there is a working 64-bit integral type to use.
23793 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23794 test x"$HAVE_LONG_INT_64" = x"no
" &&
23795 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
23796 test x"$HAVE_INT64" = x"no
" ; then
23797 { { echo "$as_me:$LINENO: error
:
23798 Integer-based datetime support requires a
64-bit integer
type,
23799 but no such
type could be found. The
--disable-integer-datetimes
23800 configure option can be used to disable integer-based storage
23801 of datetime values.
" >&5
23802 echo "$as_me: error
:
23803 Integer-based datetime support requires a
64-bit integer
type,
23804 but no such
type could be found. The
--disable-integer-datetimes
23805 configure option can be used to disable integer-based storage
23806 of datetime values.
" >&2;}
23807 { (exit 1); exit 1; }; }
23811 if test "$PORTNAME" != "win32
"
23813 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
23814 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
23815 if test "${pgac_cv_func_posix_signals+set}" = set; then
23816 echo $ECHO_N "(cached
) $ECHO_C" >&6
23818 cat >conftest.$ac_ext <<_ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h. */
23824 #include <signal.h>
23829 struct sigaction act, oact;
23830 sigemptyset(&act.sa_mask);
23831 act.sa_flags = SA_RESTART;
23832 sigaction(0, &act, &oact);
23837 rm -f conftest.$ac_objext conftest$ac_exeext
23838 if { (ac_try="$ac_link"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23844 (eval "$ac_link") 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest$ac_exeext &&
23854 $as_test_x conftest$ac_exeext; then
23855 pgac_cv_func_posix_signals=yes
23857 echo "$as_me: failed program was
:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 pgac_cv_func_posix_signals=no
23863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23864 conftest$ac_exeext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
23867 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23868 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23870 cat >>confdefs.h <<\_ACEOF
23871 #define HAVE_POSIX_SIGNALS
23875 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23877 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23878 { { echo "$as_me:$LINENO: error
:
23879 Thread-safety requires POSIX signals
, which are not supported by this
23880 operating system.
" >&5
23881 echo "$as_me: error
:
23882 Thread-safety requires POSIX signals
, which are not supported by this
23883 operating system.
" >&2;}
23884 { (exit 1); exit 1; }; }
23888 if test $ac_cv_func_fseeko = yes; then
23889 # Check whether --enable-largefile was given.
23890 if test "${enable_largefile+set}" = set; then
23891 enableval=$enable_largefile;
23894 if test "$enable_largefile" != no; then
23896 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
23897 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
23898 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23899 echo $ECHO_N "(cached
) $ECHO_C" >&6
23901 ac_cv_sys_largefile_CC=no
23902 if test "$GCC" != yes; then
23905 # IRIX 6.2 and later do not support large files by default,
23906 # so use the C compiler's -n32 option if that helps.
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 #include <sys/types.h>
23914 /* Check that off_t can represent 2**63 - 1 correctly.
23915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23916 since some C++ compilers masquerading as C compilers
23917 incorrectly reject 9223372036854775807. */
23918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23920 && LARGE_OFF_T % 2147483647 == 1)
23930 rm -f conftest.$ac_objext
23931 if { (ac_try="$ac_compile"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_compile") 2>conftest.er1
23939 grep -v '^ *+' conftest.er1 >conftest.err
23941 cat conftest.err >&5
23942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23943 (exit $ac_status); } && {
23944 test -z "$ac_c_werror_flag" ||
23945 test ! -s conftest.err
23946 } && test -s conftest.$ac_objext; then
23949 echo "$as_me: failed program was
:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23955 rm -f core conftest.err conftest.$ac_objext
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961 *) ac_try_echo=$ac_try;;
23963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23964 (eval "$ac_compile") 2>conftest.er1
23966 grep -v '^ *+' conftest.er1 >conftest.err
23968 cat conftest.err >&5
23969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23970 (exit $ac_status); } && {
23971 test -z "$ac_c_werror_flag" ||
23972 test ! -s conftest.err
23973 } && test -s conftest.$ac_objext; then
23974 ac_cv_sys_largefile_CC=' -n32'; break
23976 echo "$as_me: failed program was
:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23982 rm -f core conftest.err conftest.$ac_objext
23986 rm -f conftest.$ac_ext
23989 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
23990 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23991 if test "$ac_cv_sys_largefile_CC" != no; then
23992 CC=$CC$ac_cv_sys_largefile_CC
23995 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
23996 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
23997 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23998 echo $ECHO_N "(cached
) $ECHO_C" >&6
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 #include <sys/types.h>
24008 /* Check that off_t can represent 2**63 - 1 correctly.
24009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24010 since some C++ compilers masquerading as C compilers
24011 incorrectly reject 9223372036854775807. */
24012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24014 && LARGE_OFF_T % 2147483647 == 1)
24024 rm -f conftest.$ac_objext
24025 if { (ac_try="$ac_compile"
24026 case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_compile") 2>conftest.er1
24033 grep -v '^ *+' conftest.er1 >conftest.err
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24037 (exit $ac_status); } && {
24038 test -z "$ac_c_werror_flag" ||
24039 test ! -s conftest.err
24040 } && test -s conftest.$ac_objext; then
24041 ac_cv_sys_file_offset_bits=no; break
24043 echo "$as_me: failed program was
:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 cat >conftest.$ac_ext <<_ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h. */
24056 #define _FILE_OFFSET_BITS 64
24057 #include <sys/types.h>
24058 /* Check that off_t can represent 2**63 - 1 correctly.
24059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24060 since some C++ compilers masquerading as C compilers
24061 incorrectly reject 9223372036854775807. */
24062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24064 && LARGE_OFF_T % 2147483647 == 1)
24074 rm -f conftest.$ac_objext
24075 if { (ac_try="$ac_compile"
24076 case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_compile") 2>conftest.er1
24083 grep -v '^ *+' conftest.er1 >conftest.err
24085 cat conftest.err >&5
24086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24087 (exit $ac_status); } && {
24088 test -z "$ac_c_werror_flag" ||
24089 test ! -s conftest.err
24090 } && test -s conftest.$ac_objext; then
24091 ac_cv_sys_file_offset_bits=64; break
24093 echo "$as_me: failed program was
:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100 ac_cv_sys_file_offset_bits=unknown
24104 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
24105 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24106 case $ac_cv_sys_file_offset_bits in #(
24109 cat >>confdefs.h <<_ACEOF
24110 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24115 if test $ac_cv_sys_file_offset_bits = unknown; then
24116 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
24117 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
24118 if test "${ac_cv_sys_large_files+set}" = set; then
24119 echo $ECHO_N "(cached
) $ECHO_C" >&6
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 #include <sys/types.h>
24129 /* Check that off_t can represent 2**63 - 1 correctly.
24130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24131 since some C++ compilers masquerading as C compilers
24132 incorrectly reject 9223372036854775807. */
24133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24135 && LARGE_OFF_T % 2147483647 == 1)
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_compile") 2>conftest.er1
24154 grep -v '^ *+' conftest.er1 >conftest.err
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24158 (exit $ac_status); } && {
24159 test -z "$ac_c_werror_flag" ||
24160 test ! -s conftest.err
24161 } && test -s conftest.$ac_objext; then
24162 ac_cv_sys_large_files=no; break
24164 echo "$as_me: failed program was
:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 cat >conftest.$ac_ext <<_ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 #define _LARGE_FILES 1
24178 #include <sys/types.h>
24179 /* Check that off_t can represent 2**63 - 1 correctly.
24180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24181 since some C++ compilers masquerading as C compilers
24182 incorrectly reject 9223372036854775807. */
24183 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24185 && LARGE_OFF_T % 2147483647 == 1)
24195 rm -f conftest.$ac_objext
24196 if { (ac_try="$ac_compile"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_compile") 2>conftest.er1
24204 grep -v '^ *+' conftest.er1 >conftest.err
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24208 (exit $ac_status); } && {
24209 test -z "$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 } && test -s conftest.$ac_objext; then
24212 ac_cv_sys_large_files=1; break
24214 echo "$as_me: failed program was
:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221 ac_cv_sys_large_files=unknown
24225 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
24226 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24227 case $ac_cv_sys_large_files in #(
24230 cat >>confdefs.h <<_ACEOF
24231 #define _LARGE_FILES $ac_cv_sys_large_files
24241 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24242 { echo "$as_me:$LINENO: checking
for off_t
" >&5
24243 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
24244 if test "${ac_cv_type_off_t+set}" = set; then
24245 echo $ECHO_N "(cached
) $ECHO_C" >&6
24247 cat >conftest.$ac_ext <<_ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 $ac_includes_default
24254 typedef off_t ac__type_new_;
24258 if ((ac__type_new_ *) 0)
24260 if (sizeof (ac__type_new_))
24266 rm -f conftest.$ac_objext
24267 if { (ac_try="$ac_compile"
24268 case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24273 (eval "$ac_compile") 2>conftest.er1
24275 grep -v '^ *+' conftest.er1 >conftest.err
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24279 (exit $ac_status); } && {
24280 test -z "$ac_c_werror_flag" ||
24281 test ! -s conftest.err
24282 } && test -s conftest.$ac_objext; then
24283 ac_cv_type_off_t=yes
24285 echo "$as_me: failed program was
:" >&5
24286 sed 's/^/| /' conftest.$ac_ext >&5
24288 ac_cv_type_off_t=no
24291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24293 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
24294 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24296 # The cast to long int works around a bug in the HP C Compiler
24297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24299 # This bug is HP SR number 8606223364.
24300 { echo "$as_me:$LINENO: checking size of off_t
" >&5
24301 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
24302 if test "${ac_cv_sizeof_off_t+set}" = set; then
24303 echo $ECHO_N "(cached
) $ECHO_C" >&6
24305 if test "$cross_compiling" = yes; then
24306 # Depending upon the size, compute the lo and hi bounds.
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24314 typedef off_t ac__type_sizeof_;
24318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_compile") 2>conftest.er1
24334 grep -v '^ *+' conftest.er1 >conftest.err
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24338 (exit $ac_status); } && {
24339 test -z "$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 } && test -s conftest.$ac_objext; then
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 $ac_includes_default
24351 typedef off_t ac__type_sizeof_;
24355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_compile") 2>conftest.er1
24371 grep -v '^ *+' conftest.er1 >conftest.err
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24375 (exit $ac_status); } && {
24376 test -z "$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24378 } && test -s conftest.$ac_objext; then
24379 ac_hi=$ac_mid; break
24381 echo "$as_me: failed program was
:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24384 ac_lo=`expr $ac_mid + 1`
24385 if test $ac_lo -le $ac_mid; then
24389 ac_mid=`expr 2 '*' $ac_mid + 1`
24392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24395 echo "$as_me: failed program was
:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24398 cat >conftest.$ac_ext <<_ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24404 $ac_includes_default
24405 typedef off_t ac__type_sizeof_;
24409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24416 rm -f conftest.$ac_objext
24417 if { (ac_try="$ac_compile"
24418 case "(($ac_try" in
24419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_compile") 2>conftest.er1
24425 grep -v '^ *+' conftest.er1 >conftest.err
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24429 (exit $ac_status); } && {
24430 test -z "$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24432 } && test -s conftest.$ac_objext; then
24435 cat >conftest.$ac_ext <<_ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h. */
24441 $ac_includes_default
24442 typedef off_t ac__type_sizeof_;
24446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24453 rm -f conftest.$ac_objext
24454 if { (ac_try="$ac_compile"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_compile") 2>conftest.er1
24462 grep -v '^ *+' conftest.er1 >conftest.err
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest.$ac_objext; then
24470 ac_lo=$ac_mid; break
24472 echo "$as_me: failed program was
:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ac_hi=`expr '(' $ac_mid ')' - 1`
24476 if test $ac_mid -le $ac_hi; then
24480 ac_mid=`expr 2 '*' $ac_mid`
24483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24486 echo "$as_me: failed program was
:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24496 # Binary search between lo and hi bounds.
24497 while test "x
$ac_lo" != "x
$ac_hi"; do
24498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24499 cat >conftest.$ac_ext <<_ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h. */
24505 $ac_includes_default
24506 typedef off_t ac__type_sizeof_;
24510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24517 rm -f conftest.$ac_objext
24518 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24526 grep -v '^ *+' conftest.er1 >conftest.err
24528 cat conftest.err >&5
24529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24536 echo "$as_me: failed program was
:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 ac_lo=`expr '(' $ac_mid ')' + 1`
24542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24546 '') if test "$ac_cv_type_off_t" = yes; then
24547 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
24548 See \
`config.log' for more details." >&5
24549 echo "$as_me: error: cannot compute sizeof (off_t)
24550 See \`config.log
' for more details." >&2;}
24551 { (exit 77); exit 77; }; }
24553 ac_cv_sizeof_off_t=0
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 $ac_includes_default
24564 typedef off_t ac__type_sizeof_;
24565 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24566 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24568 #include <stdlib.h>
24573 FILE *f = fopen ("conftest.val", "w");
24576 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24578 long int i = longval ();
24579 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24581 fprintf (f, "%ld\n", i);
24585 unsigned long int i = ulongval ();
24586 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24588 fprintf (f, "%lu\n", i);
24590 return ferror (f) || fclose (f) != 0;
24596 rm -f conftest$ac_exeext
24597 if { (ac_try="$ac_link"
24598 case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_link") 2>&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24607 { (case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612 (eval "$ac_try") 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24616 ac_cv_sizeof_off_t=`cat conftest.val`
24618 echo "$as_me: program exited with status $ac_status" >&5
24619 echo "$as_me: failed program was:" >&5
24620 sed 's
/^
/|
/' conftest.$ac_ext >&5
24622 ( exit $ac_status )
24623 if test "$ac_cv_type_off_t" = yes; then
24624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24625 See \`config.log' for more details.
" >&5
24626 echo "$as_me: error
: cannot compute sizeof
(off_t
)
24627 See \
`config.log' for more details." >&2;}
24628 { (exit 77); exit 77; }; }
24630 ac_cv_sizeof_off_t=0
24633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24637 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24638 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24642 cat >>confdefs.h <<_ACEOF
24643 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24648 # If we don't have largefile support, can't handle segsize >= 2GB.
24649 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24650 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24651 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24652 { (exit 1); exit 1; }; }
24655 # SunOS doesn't handle negative byte comparisons properly with +/- return
24656 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24657 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24658 if test "${ac_cv_func_memcmp_working+set}" = set; then
24659 echo $ECHO_N "(cached) $ECHO_C" >&6
24661 if test "$cross_compiling" = yes; then
24662 ac_cv_func_memcmp_working=no
24664 cat >conftest.$ac_ext <<_ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24670 $ac_includes_default
24675 /* Some versions of memcmp are not 8-bit clean. */
24676 char c0 = '\100', c1 = '\200', c2 = '\201';
24677 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24680 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24681 or more and with at least one buffer not starting on a 4-byte boundary.
24682 William Lewis provided this test program. */
24687 for (i = 0; i < 4; i++)
24691 strcpy (a, "--------01111111");
24692 strcpy (b, "--------10000000");
24693 if (memcmp (a, b, 16) >= 0)
24703 rm -f conftest$ac_exeext
24704 if { (ac_try="$ac_link"
24705 case "(($ac_try" in
24706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24707 *) ac_try_echo
=$ac_try;;
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_link") 2>&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24714 { (case "(($ac_try" in
24715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_try") 2>&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 ac_cv_func_memcmp_working=yes
24725 echo "$as_me: program exited with status $ac_status" >&5
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24729 ( exit $ac_status )
24730 ac_cv_func_memcmp_working=no
24732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24737 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24738 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24739 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24740 *" memcmp.$ac_objext "* ) ;;
24741 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24748 # Select semaphore implementation type.
24749 if test "$PORTNAME" != "win32"; then
24750 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24752 cat >>confdefs.h <<\_ACEOF
24753 #define USE_NAMED_POSIX_SEMAPHORES 1
24756 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24758 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24760 cat >>confdefs.h <<\_ACEOF
24761 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24764 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24767 cat >>confdefs.h <<\_ACEOF
24768 #define USE_SYSV_SEMAPHORES 1
24771 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24776 cat >>confdefs.h <<\_ACEOF
24777 #define USE_WIN32_SEMAPHORES 1
24780 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24784 # Select shared-memory implementation type.
24785 if test "$PORTNAME" != "win32"; then
24787 cat >>confdefs.h <<\_ACEOF
24788 #define USE_SYSV_SHARED_MEMORY 1
24791 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24794 cat >>confdefs.h <<\_ACEOF
24795 #define USE_WIN32_SHARED_MEMORY 1
24798 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24801 # If not set in template file, set bytes to use libc memset()
24802 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24803 MEMSET_LOOP_LIMIT=1024
24806 cat >>confdefs.h <<_ACEOF
24807 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24812 if test "$enable_nls" = yes ; then
24814 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24815 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24816 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24819 ac_func_search_save_LIBS=$LIBS
24820 cat >conftest.$ac_ext <<_ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24827 /* Override any GCC internal prototype to avoid an error.
24828 Use char because int might match the return type of a GCC
24829 builtin and then its argument prototype would still apply. */
24833 char bind_textdomain_codeset ();
24837 return bind_textdomain_codeset ();
24842 for ac_lib in '' intl; do
24843 if test -z "$ac_lib"; then
24844 ac_res="none required"
24847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24849 rm -f conftest.$ac_objext conftest$ac_exeext
24850 if { (ac_try="$ac_link"
24851 case "(($ac_try" in
24852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24853 *) ac_try_echo
=$ac_try;;
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_link") 2>conftest.er1
24858 grep -v '^ *+' conftest.er1
>conftest.err
24860 cat conftest.err
>&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest
$ac_exeext &&
24866 $as_test_x conftest
$ac_exeext; then
24867 ac_cv_search_bind_textdomain_codeset
=$ac_res
24869 echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.
$ac_ext >&5
24875 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24877 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24881 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24884 ac_cv_search_bind_textdomain_codeset
=no
24886 rm conftest.
$ac_ext
24887 LIBS
=$ac_func_search_save_LIBS
24889 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24890 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24891 ac_res
=$ac_cv_search_bind_textdomain_codeset
24892 if test "$ac_res" != no
; then
24893 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24896 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24897 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24898 { (exit 1); exit 1; }; }
24901 if test "${ac_cv_header_libintl_h+set}" = set; then
24902 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24903 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24904 if test "${ac_cv_header_libintl_h+set}" = set; then
24905 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24908 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24910 # Is the header compilable?
24911 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24912 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24913 cat >conftest.
$ac_ext <<_ACEOF
24916 cat confdefs.h
>>conftest.
$ac_ext
24917 cat >>conftest.
$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24919 $ac_includes_default
24920 #include <libintl.h>
24922 rm -f conftest.
$ac_objext
24923 if { (ac_try
="$ac_compile"
24924 case "(($ac_try" in
24925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929 (eval "$ac_compile") 2>conftest.er1
24931 grep -v '^ *+' conftest.er1 >conftest.err
24933 cat conftest.err >&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } && {
24936 test -z "$ac_c_werror_flag" ||
24937 test ! -s conftest.err
24938 } && test -s conftest.$ac_objext; then
24939 ac_header_compiler=yes
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 ac_header_compiler=no
24947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24949 echo "${ECHO_T}$ac_header_compiler" >&6; }
24951 # Is the header present?
24952 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24953 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24954 cat >conftest.$ac_ext <<_ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h. */
24960 #include <libintl.h>
24962 if { (ac_try="$ac_cpp conftest.$ac_ext"
24963 case "(($ac_try" in
24964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24965 *) ac_try_echo
=$ac_try;;
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24970 grep -v '^ *+' conftest.er1
>conftest.err
24972 cat conftest.err
>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } >/dev
/null
&& {
24975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24978 ac_header_preproc
=yes
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.
$ac_ext >&5
24983 ac_header_preproc
=no
24986 rm -f conftest.err conftest.
$ac_ext
24987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24988 echo "${ECHO_T}$ac_header_preproc" >&6; }
24990 # So? What about this header?
24991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24993 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24994 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24996 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24997 ac_header_preproc
=yes
25000 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25001 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25002 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25003 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25004 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25005 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25006 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25007 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25008 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25009 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25011 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25013 ## ---------------------------------------- ##
25014 ## Report this to pgsql-bugs@postgresql.org ##
25015 ## ---------------------------------------- ##
25017 ) |
sed "s/^/$as_me: WARNING: /" >&2
25020 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25021 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25022 if test "${ac_cv_header_libintl_h+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 ac_cv_header_libintl_h
=$ac_header_preproc
25027 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25028 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25031 if test $ac_cv_header_libintl_h = yes; then
25034 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25035 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25036 { (exit 1); exit 1; }; }
25040 for ac_prog
in msgfmt
25042 # Extract the first word of "$ac_prog", so it can be a program name with args.
25043 set dummy
$ac_prog; ac_word
=$2
25044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25046 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25047 echo $ECHO_N "(cached) $ECHO_C" >&6
25049 if test -n "$MSGFMT"; then
25050 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
25052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25053 for as_dir
in $PATH
25056 test -z "$as_dir" && as_dir
=.
25057 for ac_exec_ext
in '' $ac_executable_extensions; do
25058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25059 ac_cv_prog_MSGFMT
="$ac_prog"
25060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25069 MSGFMT
=$ac_cv_prog_MSGFMT
25070 if test -n "$MSGFMT"; then
25071 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25072 echo "${ECHO_T}$MSGFMT" >&6; }
25074 { echo "$as_me:$LINENO: result: no" >&5
25075 echo "${ECHO_T}no" >&6; }
25079 test -n "$MSGFMT" && break
25082 if test -z "$MSGFMT"; then
25083 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25084 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25085 { (exit 1); exit 1; }; }
25087 for ac_prog
in msgmerge
25089 # Extract the first word of "$ac_prog", so it can be a program name with args.
25090 set dummy
$ac_prog; ac_word
=$2
25091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25093 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25096 if test -n "$MSGMERGE"; then
25097 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
25099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25100 for as_dir
in $PATH
25103 test -z "$as_dir" && as_dir
=.
25104 for ac_exec_ext
in '' $ac_executable_extensions; do
25105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25106 ac_cv_prog_MSGMERGE
="$ac_prog"
25107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25116 MSGMERGE
=$ac_cv_prog_MSGMERGE
25117 if test -n "$MSGMERGE"; then
25118 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25119 echo "${ECHO_T}$MSGMERGE" >&6; }
25121 { echo "$as_me:$LINENO: result: no" >&5
25122 echo "${ECHO_T}no" >&6; }
25126 test -n "$MSGMERGE" && break
25129 for ac_prog
in xgettext
25131 # Extract the first word of "$ac_prog", so it can be a program name with args.
25132 set dummy
$ac_prog; ac_word
=$2
25133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25135 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 if test -n "$XGETTEXT"; then
25139 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
25141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25142 for as_dir
in $PATH
25145 test -z "$as_dir" && as_dir
=.
25146 for ac_exec_ext
in '' $ac_executable_extensions; do
25147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25148 ac_cv_prog_XGETTEXT
="$ac_prog"
25149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25158 XGETTEXT
=$ac_cv_prog_XGETTEXT
25159 if test -n "$XGETTEXT"; then
25160 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25161 echo "${ECHO_T}$XGETTEXT" >&6; }
25163 { echo "$as_me:$LINENO: result: no" >&5
25164 echo "${ECHO_T}no" >&6; }
25168 test -n "$XGETTEXT" && break
25174 # Check for Tcl configuration script tclConfig.sh
25175 if test "$with_tcl" = yes; then
25176 for ac_prog
in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25178 # Extract the first word of "$ac_prog", so it can be a program name with args.
25179 set dummy
$ac_prog; ac_word
=$2
25180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25182 if test "${ac_cv_path_TCLSH+set}" = set; then
25183 echo $ECHO_N "(cached) $ECHO_C" >&6
25187 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
25190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25191 for as_dir
in $PATH
25194 test -z "$as_dir" && as_dir
=.
25195 for ac_exec_ext
in '' $ac_executable_extensions; do
25196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25197 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
25198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25208 TCLSH
=$ac_cv_path_TCLSH
25209 if test -n "$TCLSH"; then
25210 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25211 echo "${ECHO_T}$TCLSH" >&6; }
25213 { echo "$as_me:$LINENO: result: no" >&5
25214 echo "${ECHO_T}no" >&6; }
25218 test -n "$TCLSH" && break
25221 if test x
"$TCLSH" = x
""; then
25222 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25223 echo "$as_me: error: Tcl shell not found" >&2;}
25224 { (exit 1); exit 1; }; }
25227 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25228 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25229 # Let user override test
25230 if test -z "$TCL_CONFIG_SH"; then
25231 pgac_test_dirs
="$with_tclconfig"
25233 set X
$pgac_test_dirs; shift
25234 if test $# -eq 0; then
25235 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25236 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25237 { (exit 1); exit 1; }; }
25238 set X
`echo 'puts $auto_path' | $TCLSH`; shift
25242 if test -r "$pgac_dir/tclConfig.sh"; then
25243 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
25249 if test -z "$TCL_CONFIG_SH"; then
25250 { echo "$as_me:$LINENO: result: no" >&5
25251 echo "${ECHO_T}no" >&6; }
25252 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25253 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25254 { (exit 1); exit 1; }; }
25256 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25257 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25263 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
25264 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
25265 eval TCL_LIBS
=\"$TCL_LIBS\"
25266 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
25267 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
25269 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25270 ac_save_CPPFLAGS
=$CPPFLAGS
25271 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
25272 if test "${ac_cv_header_tcl_h+set}" = set; then
25273 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25274 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25275 if test "${ac_cv_header_tcl_h+set}" = set; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25279 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25281 # Is the header compilable?
25282 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25283 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25284 cat >conftest.
$ac_ext <<_ACEOF
25287 cat confdefs.h
>>conftest.
$ac_ext
25288 cat >>conftest.
$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 $ac_includes_default
25293 rm -f conftest.
$ac_objext
25294 if { (ac_try
="$ac_compile"
25295 case "(($ac_try" in
25296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_compile") 2>conftest.er1
25302 grep -v '^ *+' conftest.er1 >conftest.err
25304 cat conftest.err >&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } && {
25307 test -z "$ac_c_werror_flag" ||
25308 test ! -s conftest.err
25309 } && test -s conftest.$ac_objext; then
25310 ac_header_compiler=yes
25312 echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25315 ac_header_compiler=no
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25320 echo "${ECHO_T}$ac_header_compiler" >&6; }
25322 # Is the header present?
25323 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25324 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25325 cat >conftest.$ac_ext <<_ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25333 if { (ac_try="$ac_cpp conftest.$ac_ext"
25334 case "(($ac_try" in
25335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25336 *) ac_try_echo
=$ac_try;;
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25341 grep -v '^ *+' conftest.er1
>conftest.err
25343 cat conftest.err
>&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); } >/dev
/null
&& {
25346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25347 test ! -s conftest.err
25349 ac_header_preproc
=yes
25351 echo "$as_me: failed program was:" >&5
25352 sed 's/^/| /' conftest.
$ac_ext >&5
25354 ac_header_preproc
=no
25357 rm -f conftest.err conftest.
$ac_ext
25358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25359 echo "${ECHO_T}$ac_header_preproc" >&6; }
25361 # So? What about this header?
25362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25364 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25365 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25366 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25367 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25368 ac_header_preproc
=yes
25371 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25372 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25374 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25375 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25376 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25377 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25378 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25379 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25380 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25381 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25382 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25384 ## ---------------------------------------- ##
25385 ## Report this to pgsql-bugs@postgresql.org ##
25386 ## ---------------------------------------- ##
25388 ) |
sed "s/^/$as_me: WARNING: /" >&2
25391 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25392 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25393 if test "${ac_cv_header_tcl_h+set}" = set; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 ac_cv_header_tcl_h
=$ac_header_preproc
25398 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25399 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25402 if test $ac_cv_header_tcl_h = yes; then
25405 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25406 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25407 { (exit 1); exit 1; }; }
25411 CPPFLAGS
=$ac_save_CPPFLAGS
25415 # Check for DocBook and tools
25417 for ac_prog
in onsgmls nsgmls
25419 # Extract the first word of "$ac_prog", so it can be a program name with args.
25420 set dummy
$ac_prog; ac_word
=$2
25421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25423 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 if test -n "$NSGMLS"; then
25427 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25430 for as_dir
in $PATH
25433 test -z "$as_dir" && as_dir
=.
25434 for ac_exec_ext
in '' $ac_executable_extensions; do
25435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25436 ac_cv_prog_NSGMLS
="$ac_prog"
25437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25446 NSGMLS
=$ac_cv_prog_NSGMLS
25447 if test -n "$NSGMLS"; then
25448 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25449 echo "${ECHO_T}$NSGMLS" >&6; }
25451 { echo "$as_me:$LINENO: result: no" >&5
25452 echo "${ECHO_T}no" >&6; }
25456 test -n "$NSGMLS" && break
25459 for ac_prog
in openjade jade
25461 # Extract the first word of "$ac_prog", so it can be a program name with args.
25462 set dummy
$ac_prog; ac_word
=$2
25463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25465 if test "${ac_cv_prog_JADE+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25468 if test -n "$JADE"; then
25469 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25472 for as_dir
in $PATH
25475 test -z "$as_dir" && as_dir
=.
25476 for ac_exec_ext
in '' $ac_executable_extensions; do
25477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25478 ac_cv_prog_JADE
="$ac_prog"
25479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25488 JADE
=$ac_cv_prog_JADE
25489 if test -n "$JADE"; then
25490 { echo "$as_me:$LINENO: result: $JADE" >&5
25491 echo "${ECHO_T}$JADE" >&6; }
25493 { echo "$as_me:$LINENO: result: no" >&5
25494 echo "${ECHO_T}no" >&6; }
25498 test -n "$JADE" && break
25502 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25503 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25504 if test "${pgac_cv_check_docbook+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25507 cat >conftest.sgml
<<EOF
25508 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25510 <title>test</title>
25512 <title>random</title>
25514 <title>testsect</title>
25521 pgac_cv_check_docbook
=no
25523 if test -n "$NSGMLS"; then
25524 $NSGMLS -s conftest.sgml
1>&5 2>&1
25525 if test $?
-eq 0; then
25526 pgac_cv_check_docbook
=yes
25529 rm -f conftest.sgml
25531 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25532 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25534 have_docbook
=$pgac_cv_check_docbook
25537 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25538 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25539 if test "${pgac_cv_path_stylesheets+set}" = set; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 if test -n "$DOCBOOKSTYLE"; then
25543 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
25545 for pgac_prefix
in /usr
/usr
/local /opt
/sw
; do
25546 for pgac_infix
in share lib
; do
25547 for pgac_postfix
in \
25548 sgml
/stylesheets
/nwalsh-modular \
25549 sgml
/stylesheets
/docbook \
25550 sgml
/stylesheets
/dsssl
/docbook \
25551 sgml
/docbook-dsssl \
25552 sgml
/docbook
/dsssl
/modular \
25553 sgml
/docbook
/stylesheet
/dsssl
/modular \
25554 sgml
/docbook
/dsssl-stylesheets \
25555 sgml
/dsssl
/docbook-dsssl-nwalsh
25557 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
25558 if test -r "$pgac_candidate/html/docbook.dsl" \
25559 && test -r "$pgac_candidate/print/docbook.dsl"
25561 pgac_cv_path_stylesheets
=$pgac_candidate
25570 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
25572 if test -n "$DOCBOOKSTYLE"; then
25573 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25574 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25576 { echo "$as_me:$LINENO: result: no" >&5
25577 echo "${ECHO_T}no" >&6; }
25579 if test -n "$DOCBOOKSTYLE"; then
25580 for ac_prog
in collateindex.pl
25582 # Extract the first word of "$ac_prog", so it can be a program name with args.
25583 set dummy
$ac_prog; ac_word
=$2
25584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25586 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25587 echo $ECHO_N "(cached) $ECHO_C" >&6
25589 case $COLLATEINDEX in
25591 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25595 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
25598 test -z "$as_dir" && as_dir
=.
25599 for ac_exec_ext
in '' $ac_executable_extensions; do
25600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25601 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25612 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25613 if test -n "$COLLATEINDEX"; then
25614 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25615 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25617 { echo "$as_me:$LINENO: result: no" >&5
25618 echo "${ECHO_T}no" >&6; }
25622 test -n "$COLLATEINDEX" && break
25626 for ac_prog
in collateindex.pl
25628 # Extract the first word of "$ac_prog", so it can be a program name with args.
25629 set dummy
$ac_prog; ac_word
=$2
25630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25632 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25633 echo $ECHO_N "(cached) $ECHO_C" >&6
25635 case $COLLATEINDEX in
25637 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25641 for as_dir
in $PATH
25644 test -z "$as_dir" && as_dir
=.
25645 for ac_exec_ext
in '' $ac_executable_extensions; do
25646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25647 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25658 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25659 if test -n "$COLLATEINDEX"; then
25660 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25661 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25663 { echo "$as_me:$LINENO: result: no" >&5
25664 echo "${ECHO_T}no" >&6; }
25668 test -n "$COLLATEINDEX" && break
25672 for ac_prog
in sgmlspl
25674 # Extract the first word of "$ac_prog", so it can be a program name with args.
25675 set dummy
$ac_prog; ac_word
=$2
25676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25678 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25679 echo $ECHO_N "(cached) $ECHO_C" >&6
25681 if test -n "$SGMLSPL"; then
25682 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
25684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25685 for as_dir
in $PATH
25688 test -z "$as_dir" && as_dir
=.
25689 for ac_exec_ext
in '' $ac_executable_extensions; do
25690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25691 ac_cv_prog_SGMLSPL
="$ac_prog"
25692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25701 SGMLSPL
=$ac_cv_prog_SGMLSPL
25702 if test -n "$SGMLSPL"; then
25703 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25704 echo "${ECHO_T}$SGMLSPL" >&6; }
25706 { echo "$as_me:$LINENO: result: no" >&5
25707 echo "${ECHO_T}no" >&6; }
25711 test -n "$SGMLSPL" && break
25717 # We have to run the thread test near the end so we have all our symbols
25718 # defined. Cross compiling throws a warning.
25720 if test "$enable_thread_safety_force" = yes; then
25721 if test "$PORTNAME" != "win32"
25723 { echo "$as_me:$LINENO: WARNING:
25724 *** Skipping thread test program. --enable-thread-safety-force was used.
25725 *** Run the program in src/test/thread on the your machine and add proper
25726 *** locking function calls to your applications to guarantee thread safety.
25728 echo "$as_me: WARNING:
25729 *** Skipping thread test program. --enable-thread-safety-force was used.
25730 *** Run the program in src/test/thread on the your machine and add proper
25731 *** locking function calls to your applications to guarantee thread safety.
25734 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25735 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25737 elif test "$enable_thread_safety" = yes; then
25738 if test "$PORTNAME" != "win32"
25740 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25741 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25745 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25746 LIBS
="$LIBS $PTHREAD_LIBS"
25747 if test "$cross_compiling" = yes; then
25748 { echo "$as_me:$LINENO: result: maybe" >&5
25749 echo "${ECHO_T}maybe" >&6; }
25750 { echo "$as_me:$LINENO: WARNING:
25751 *** Skipping thread test program because of cross-compile build.
25752 *** Run the program in src/test/thread on the target machine.
25754 echo "$as_me: WARNING:
25755 *** Skipping thread test program because of cross-compile build.
25756 *** Run the program in src/test/thread on the target machine.
25759 cat >conftest.
$ac_ext <<_ACEOF
25762 cat confdefs.h
>>conftest.
$ac_ext
25763 cat >>conftest.
$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25765 #include "$srcdir/src/test/thread/thread_test.c"
25767 rm -f conftest
$ac_exeext
25768 if { (ac_try
="$ac_link"
25769 case "(($ac_try" in
25770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25771 *) ac_try_echo=$ac_try;;
25773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25774 (eval "$ac_link") 2>&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25778 { (case "(($ac_try" in
25779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25780 *) ac_try_echo
=$ac_try;;
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_try") 2>&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 { echo "$as_me:$LINENO: result: yes" >&5
25788 echo "${ECHO_T}yes" >&6; }
25790 echo "$as_me: program exited with status $ac_status" >&5
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.
$ac_ext >&5
25794 ( exit $ac_status )
25795 { echo "$as_me:$LINENO: result: no" >&5
25796 echo "${ECHO_T}no" >&6; }
25797 { { echo "$as_me:$LINENO: error: thread test program failed
25798 This platform is not thread-safe. Check the file 'config.log'for the
25801 You can use the configure option --enable-thread-safety-force to force
25802 threads to be enabled. But you must then run the program in
25803 src/test/thread and add locking function calls to your applications to
25804 guarantee thread safety." >&5
25805 echo "$as_me: error: thread test program failed
25806 This platform is not thread-safe. Check the file 'config.log'for the
25809 You can use the configure option --enable-thread-safety-force to force
25810 threads to be enabled. But you must then run the program in
25811 src/test/thread and add locking function calls to your applications to
25812 guarantee thread safety." >&2;}
25813 { (exit 1); exit 1; }; }
25815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25822 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25823 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25827 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25828 # This is much easier than trying to filter LIBS to the minimum for each
25829 # executable. (Note that shared library links won't use this switch, though.)
25830 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25831 # libreadline; therefore we postpone testing it until we know what library
25832 # dependencies readline has. The test code will try to link with $LIBS.
25833 if test "$with_readline" = yes; then
25834 link_test_func
=readline
25836 link_test_func
=exit
25838 if test "$PORTNAME" != "darwin"; then
25839 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25840 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25841 pgac_save_LDFLAGS
=$LDFLAGS
25842 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
25843 if test "$cross_compiling" = yes; then
25844 LDFLAGS
="$pgac_save_LDFLAGS"
25845 { echo "$as_me:$LINENO: result: assuming no" >&5
25846 echo "${ECHO_T}assuming no" >&6; }
25848 cat >conftest.
$ac_ext <<_ACEOF
25851 cat confdefs.h
>>conftest.
$ac_ext
25852 cat >>conftest.
$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25863 rm -f conftest
$ac_exeext
25864 if { (ac_try
="$ac_link"
25865 case "(($ac_try" in
25866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870 (eval "$ac_link") 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25874 { (case "(($ac_try" in
25875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25876 *) ac_try_echo
=$ac_try;;
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879 (eval "$ac_try") 2>&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; }; then
25883 { echo "$as_me:$LINENO: result: yes" >&5
25884 echo "${ECHO_T}yes" >&6; }
25886 echo "$as_me: program exited with status $ac_status" >&5
25887 echo "$as_me: failed program was:" >&5
25888 sed 's/^/| /' conftest.
$ac_ext >&5
25890 ( exit $ac_status )
25891 LDFLAGS
="$pgac_save_LDFLAGS"
25892 { echo "$as_me:$LINENO: result: no" >&5
25893 echo "${ECHO_T}no" >&6; }
25895 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25901 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25902 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25903 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25904 pgac_save_LDFLAGS
=$LDFLAGS
25905 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25906 if test "$cross_compiling" = yes; then
25907 LDFLAGS
="$pgac_save_LDFLAGS"
25908 { echo "$as_me:$LINENO: result: assuming no" >&5
25909 echo "${ECHO_T}assuming no" >&6; }
25911 cat >conftest.
$ac_ext <<_ACEOF
25914 cat confdefs.h
>>conftest.
$ac_ext
25915 cat >>conftest.
$ac_ext <<_ACEOF
25916 /* end confdefs.h. */
25917 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25926 rm -f conftest
$ac_exeext
25927 if { (ac_try
="$ac_link"
25928 case "(($ac_try" in
25929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25930 *) ac_try_echo=$ac_try;;
25932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25933 (eval "$ac_link") 2>&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25937 { (case "(($ac_try" in
25938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25939 *) ac_try_echo
=$ac_try;;
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942 (eval "$ac_try") 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; }; then
25946 { echo "$as_me:$LINENO: result: yes" >&5
25947 echo "${ECHO_T}yes" >&6; }
25949 echo "$as_me: program exited with status $ac_status" >&5
25950 echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.
$ac_ext >&5
25953 ( exit $ac_status )
25954 LDFLAGS
="$pgac_save_LDFLAGS"
25955 { echo "$as_me:$LINENO: result: no" >&5
25956 echo "${ECHO_T}no" >&6; }
25958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25966 # Begin output steps
25968 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
25969 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
25970 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
25971 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
25972 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
25973 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
25975 # prepare build tree if outside source tree
25976 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25977 # Note 2: /bin/pwd might be better than shell's built-in at getting
25978 # a symlink-free name.
25979 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25983 if test "$no_create" != yes; then
25984 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25985 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
25986 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25987 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
25988 echo "$as_me: error: failed" >&2;}
25989 { (exit 1); exit 1; }; }
25990 { echo "$as_me:$LINENO: result: done" >&5
25991 echo "${ECHO_T}done" >&6; }
25997 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
26000 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}"
26003 if test "$PORTNAME" = "win32"; then
26004 ac_config_commands
="$ac_config_commands check_win32_symlinks"
26008 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
26011 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26014 cat >confcache
<<\_ACEOF
26015 # This file is a shell script that caches the results of configure
26016 # tests run on this system so they can be shared between configure
26017 # scripts and configure runs, see configure's option --config-cache.
26018 # It is not useful on other systems. If it contains results you don't
26019 # want to keep, you may remove or edit it.
26021 # config.status only pays attention to the cache file if you give it
26022 # the --recheck option to rerun configure.
26024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26026 # following values.
26030 # The following way of writing the cache mishandles newlines in values,
26031 # but we know of no workaround that is simple, portable, and efficient.
26032 # So, we kill variables containing newlines.
26033 # Ultrix sh set writes to stderr and can't be redirected directly,
26034 # and sets the high bit in the cache file unless we assign to the vars.
26036 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26037 eval ac_val
=\$
$ac_var
26041 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26042 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26045 _ | IFS | as_nl
) ;; #(
26046 *) $as_unset $ac_var ;;
26052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26053 *${as_nl}ac_space
=\
*)
26054 # `set' does not quote correctly, so add quotes (double-quote
26055 # substitution turns \\\\ into \\, and sed turns \\ into \).
26058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26061 # `set' quotes correctly as required by POSIX, so do not add quotes.
26062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26075 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26076 if test -w "$cache_file"; then
26077 test "x$cache_file" != "x/dev/null" &&
26078 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26079 echo "$as_me: updating cache $cache_file" >&6;}
26080 cat confcache
>$cache_file
26082 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26083 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26088 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26089 # Let make expand exec_prefix.
26090 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26092 DEFS
=-DHAVE_CONFIG_H
26096 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26097 # 1. Remove the extension, and $U if already installed.
26098 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26099 ac_i
=`echo "$ac_i" | sed "$ac_script"`
26100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26101 # will be set to the directory where LIBOBJS objects are built.
26102 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26103 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26105 LIBOBJS
=$ac_libobjs
26107 LTLIBOBJS
=$ac_ltlibobjs
26111 : ${CONFIG_STATUS=./config.status}
26112 ac_clean_files_save
=$ac_clean_files
26113 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26114 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26115 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26116 cat >$CONFIG_STATUS <<_ACEOF
26118 # Generated by $as_me.
26119 # Run this file to recreate the current configuration.
26120 # Compiler output produced by configure, useful for debugging
26121 # configure, is in config.log if it exists.
26124 ac_cs_recheck=false
26126 SHELL=\${CONFIG_SHELL-$SHELL}
26129 cat >>$CONFIG_STATUS <<\_ACEOF
26130 ## --------------------- ##
26131 ## M4sh Initialization. ##
26132 ## --------------------- ##
26134 # Be more Bourne compatible
26135 DUALCASE
=1; export DUALCASE
# for MKS sh
26136 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26139 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26140 # is contrary to our usage. Disable this feature.
26141 alias -g '${1+"$@"}'='"$@"'
26142 setopt NO_GLOB_SUBST
26144 case `(set -o) 2>/dev/null` in
26145 *posix
*) set -o posix
;;
26154 # Avoid depending upon Character Ranges.
26155 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26156 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26157 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26158 as_cr_digits
='0123456789'
26159 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26161 # The user is always right.
26162 if test "${PATH_SEPARATOR+set}" != set; then
26163 echo "#! /bin/sh" >conf$$.sh
26164 echo "exit 0" >>conf$$.sh
26166 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26174 # Support unset when possible.
26175 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26183 # We need space, tab and new line, in precisely that order. Quoting is
26184 # there to prevent editors from complaining about space-tab.
26185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26186 # splitting by setting IFS to empty value.)
26191 # Find who we are. Look in the path if we contain no directory separator.
26193 *[\\/]* ) as_myself
=$0 ;;
26194 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26195 for as_dir
in $PATH
26198 test -z "$as_dir" && as_dir
=.
26199 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26205 # We did not find ourselves, most probably we were run as `sh COMMAND'
26206 # in which case we are not to be found in the path.
26207 if test "x$as_myself" = x
; then
26210 if test ! -f "$as_myself"; then
26211 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26212 { (exit 1); exit 1; }
26215 # Work around bugs in pre-3.0 UWIN ksh.
26216 for as_var
in ENV MAIL MAILPATH
26217 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26225 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26226 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26227 LC_TELEPHONE LC_TIME
26229 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26230 eval $as_var=C
; export $as_var
26232 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26236 # Required to use basename.
26237 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26238 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26244 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26245 as_basename
=basename
26251 # Name of the executable.
26252 as_me
=`$as_basename -- "$0" ||
26253 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26254 X"$0" : 'X\(//\)$' \| \
26255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26257 sed '/^.*\/\([^/][^/]*\)\/*$/{
26276 as_lineno_1
=$LINENO
26277 as_lineno_2
=$LINENO
26278 test "x$as_lineno_1" != "x$as_lineno_2" &&
26279 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26281 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26282 # uniformly replaced by the line number. The first 'sed' inserts a
26283 # line-number line after each line using $LINENO; the second 'sed'
26284 # does the real work. The second script uses 'N' to pair each
26285 # line-number line with the line containing $LINENO, and appends
26286 # trailing '-' during substitution so that $LINENO is not a special
26287 # case at line end.
26288 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26289 # scripts with optimization help from Paolo Bonzini. Blame Lee
26290 # E. McMahon (1931-1989) for sed's syntax. :-)
26302 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26305 ' >$as_me.lineno
&&
26306 chmod +x
"$as_me.lineno" ||
26307 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26308 { (exit 1); exit 1; }; }
26310 # Don't try to exec as it changes $[0], causing all sort of problems
26311 # (the dirname of $[0] is not the place where we might find the
26312 # original and so on. Autoconf is especially sensitive to this).
26313 .
"./$as_me.lineno"
26314 # Exit status is that of the last command.
26319 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26325 ECHO_C
= ECHO_N
= ECHO_T
=
26326 case `echo -n x` in
26328 case `echo 'x\c'` in
26329 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26336 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26337 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26343 rm -f conf$$ conf$$.exe conf$$.
file
26344 if test -d conf$$.dir
; then
26345 rm -f conf$$.dir
/conf$$.
file
26351 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26353 # ... but there are two gotchas:
26354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26356 # In both cases, we have to default to `cp -p'.
26357 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26359 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26364 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26365 rmdir conf$$.dir
2>/dev
/null
26367 if mkdir
-p .
2>/dev
/null
; then
26370 test -d .
/-p && rmdir .
/-p
26374 if test -x / >/dev
/null
2>&1; then
26375 as_test_x
='test -x'
26377 if ls -dL / >/dev
/null
2>&1; then
26384 if test -d "$1"; then
26390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26391 ???[sx]*):;;*)false;;esac;fi
26395 as_executable_p
=$as_test_x
26397 # Sed expression to map a string onto a valid CPP name.
26398 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26400 # Sed expression to map a string onto a valid variable name.
26401 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26406 # Save the log message, to keep $[0] and so on meaningful, and to
26407 # report actual input values of CONFIG_FILES etc. instead of their
26408 # values after options handling.
26410 This file was extended by PostgreSQL $as_me 8.4devel, which was
26411 generated by GNU Autoconf 2.61. Invocation command line was
26413 CONFIG_FILES = $CONFIG_FILES
26414 CONFIG_HEADERS = $CONFIG_HEADERS
26415 CONFIG_LINKS = $CONFIG_LINKS
26416 CONFIG_COMMANDS = $CONFIG_COMMANDS
26419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26424 cat >>$CONFIG_STATUS <<_ACEOF
26425 # Files that config.status was made for.
26426 config_files="$ac_config_files"
26427 config_headers="$ac_config_headers"
26428 config_links="$ac_config_links"
26429 config_commands="$ac_config_commands"
26433 cat >>$CONFIG_STATUS <<\_ACEOF
26435 \`$as_me' instantiates files from templates according to the
26436 current configuration.
26438 Usage: $0 [OPTIONS] [FILE]...
26440 -h, --help print this help, then exit
26441 -V, --version print version number and configuration settings, then exit
26442 -q, --quiet do not print progress messages
26443 -d, --debug don't remove temporary files
26444 --recheck update $as_me by reconfiguring in the same conditions
26445 --file=FILE[:TEMPLATE]
26446 instantiate the configuration file FILE
26447 --header=FILE[:TEMPLATE]
26448 instantiate the configuration header FILE
26450 Configuration files:
26453 Configuration headers:
26456 Configuration links:
26459 Configuration commands:
26462 Report bugs to <bug-autoconf@gnu.org>."
26465 cat >>$CONFIG_STATUS <<_ACEOF
26467 PostgreSQL config.status 8.4devel
26468 configured by $0, generated by GNU Autoconf 2.61,
26469 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26471 Copyright (C) 2006 Free Software Foundation, Inc.
26472 This config.status script is free software; the Free Software Foundation
26473 gives unlimited permission to copy, distribute and modify it."
26479 cat >>$CONFIG_STATUS <<\_ACEOF
26480 # If no file are specified by the user, then we need to provide default
26481 # value. By we need to know if files were specified by the user.
26487 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26488 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26499 # Handling of the options.
26500 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26502 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26503 echo "$ac_cs_version"; exit ;;
26504 --debug |
--debu |
--deb |
--de |
--d |
-d )
26506 --file |
--fil |
--fi |
--f )
26508 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26509 ac_need_defaults
=false
;;
26510 --header |
--heade |
--head |
--hea )
26512 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26513 ac_need_defaults
=false
;;
26515 # Conflict between --help and --header
26516 { echo "$as_me: error: ambiguous option: $1
26517 Try \`$0 --help' for more information." >&2
26518 { (exit 1); exit 1; }; };;
26519 --help |
--hel |
-h )
26520 echo "$ac_cs_usage"; exit ;;
26521 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26522 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26525 # This is an error.
26526 -*) { echo "$as_me: error: unrecognized option: $1
26527 Try \`$0 --help' for more information." >&2
26528 { (exit 1); exit 1; }; } ;;
26530 *) ac_config_targets
="$ac_config_targets $1"
26531 ac_need_defaults
=false
;;
26537 ac_configure_extra_args
=
26539 if $ac_cs_silent; then
26541 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26545 cat >>$CONFIG_STATUS <<_ACEOF
26546 if \$ac_cs_recheck; then
26547 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26548 CONFIG_SHELL=$SHELL
26549 export CONFIG_SHELL
26550 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26554 cat >>$CONFIG_STATUS <<\_ACEOF
26558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26559 ## Running $as_me. ##
26565 cat >>$CONFIG_STATUS <<_ACEOF
26568 cat >>$CONFIG_STATUS <<\_ACEOF
26570 # Handling of arguments.
26571 for ac_config_target
in $ac_config_targets
26573 case $ac_config_target in
26574 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26575 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
26576 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
26577 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26578 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26579 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26580 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26581 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26582 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26583 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
26584 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
26585 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26587 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26588 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26589 { (exit 1); exit 1; }; };;
26594 # If the user did not use the arguments to specify the items to instantiate,
26595 # then the envvar interface is used. Set only those that are not.
26596 # We use the long form for the default assignment because of an extremely
26597 # bizarre bug on SunOS 4.1.3.
26598 if $ac_need_defaults; then
26599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26600 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26601 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
26602 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26605 # Have a temporary directory for convenience. Make it in the build tree
26606 # simply because there is no reason against having it here, and in addition,
26607 # creating and moving files from /tmp can sometimes cause problems.
26608 # Hook for its removal unless debugging.
26609 # Note that there is a small window in which the directory will not be cleaned:
26610 # after its creation but before its name has been assigned to `$tmp'.
26614 trap 'exit_status=$?
26615 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26617 trap '{ (exit 1); exit 1; }' 1 2 13 15
26619 # Create a (secure) tmp directory for tmp files.
26622 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26623 test -n "$tmp" && test -d "$tmp"
26626 tmp
=.
/conf$$
-$RANDOM
26627 (umask 077 && mkdir
"$tmp")
26630 echo "$me: cannot create a temporary directory in ." >&2
26631 { (exit 1); exit 1; }
26635 # Set up the sed scripts for CONFIG_FILES section.
26638 # No need to generate the scripts if there are no CONFIG_FILES.
26639 # This happens for instance when ./config.status config.h
26640 if test -n "$CONFIG_FILES"; then
26647 for ac_last_try
in false false false false false
:; do
26648 cat >conf$
$subs.
sed <<_ACEOF
26649 SHELL!$SHELL$ac_delim
26650 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26651 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26652 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26653 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26654 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26655 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26656 exec_prefix!$exec_prefix$ac_delim
26657 prefix!$prefix$ac_delim
26658 program_transform_name!$program_transform_name$ac_delim
26659 bindir!$bindir$ac_delim
26660 sbindir!$sbindir$ac_delim
26661 libexecdir!$libexecdir$ac_delim
26662 datarootdir!$datarootdir$ac_delim
26663 datadir!$datadir$ac_delim
26664 sysconfdir!$sysconfdir$ac_delim
26665 sharedstatedir!$sharedstatedir$ac_delim
26666 localstatedir!$localstatedir$ac_delim
26667 includedir!$includedir$ac_delim
26668 oldincludedir!$oldincludedir$ac_delim
26669 docdir!$docdir$ac_delim
26670 infodir!$infodir$ac_delim
26671 htmldir!$htmldir$ac_delim
26672 dvidir!$dvidir$ac_delim
26673 pdfdir!$pdfdir$ac_delim
26674 psdir!$psdir$ac_delim
26675 libdir!$libdir$ac_delim
26676 localedir!$localedir$ac_delim
26677 mandir!$mandir$ac_delim
26678 DEFS!$DEFS$ac_delim
26679 ECHO_C!$ECHO_C$ac_delim
26680 ECHO_N!$ECHO_N$ac_delim
26681 ECHO_T!$ECHO_T$ac_delim
26682 LIBS!$LIBS$ac_delim
26683 build_alias!$build_alias$ac_delim
26684 host_alias!$host_alias$ac_delim
26685 target_alias!$target_alias$ac_delim
26686 configure_args!$configure_args$ac_delim
26687 build!$build$ac_delim
26688 build_cpu!$build_cpu$ac_delim
26689 build_vendor!$build_vendor$ac_delim
26690 build_os!$build_os$ac_delim
26691 host!$host$ac_delim
26692 host_cpu!$host_cpu$ac_delim
26693 host_vendor!$host_vendor$ac_delim
26694 host_os!$host_os$ac_delim
26695 PORTNAME!$PORTNAME$ac_delim
26696 enable_nls!$enable_nls$ac_delim
26697 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26698 default_port!$default_port$ac_delim
26699 enable_shared!$enable_shared$ac_delim
26700 enable_rpath!$enable_rpath$ac_delim
26701 enable_debug!$enable_debug$ac_delim
26702 enable_profiling!$enable_profiling$ac_delim
26703 GCOV!$GCOV$ac_delim
26704 LCOV!$LCOV$ac_delim
26705 GENHTML!$GENHTML$ac_delim
26706 enable_coverage!$enable_coverage$ac_delim
26707 DTRACE!$DTRACE$ac_delim
26708 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26709 enable_dtrace!$enable_dtrace$ac_delim
26711 CFLAGS!$CFLAGS$ac_delim
26712 LDFLAGS!$LDFLAGS$ac_delim
26713 CPPFLAGS!$CPPFLAGS$ac_delim
26714 ac_ct_CC!$ac_ct_CC$ac_delim
26715 EXEEXT!$EXEEXT$ac_delim
26716 OBJEXT!$OBJEXT$ac_delim
26720 autodepend!$autodepend$ac_delim
26721 INCLUDES!$INCLUDES$ac_delim
26722 enable_thread_safety!$enable_thread_safety$ac_delim
26723 with_tcl!$with_tcl$ac_delim
26724 with_perl!$with_perl$ac_delim
26725 with_python!$with_python$ac_delim
26726 with_gssapi!$with_gssapi$ac_delim
26727 with_krb5!$with_krb5$ac_delim
26728 krb_srvtab!$krb_srvtab$ac_delim
26729 with_pam!$with_pam$ac_delim
26730 with_ldap!$with_ldap$ac_delim
26731 with_bonjour!$with_bonjour$ac_delim
26732 with_openssl!$with_openssl$ac_delim
26733 with_ossp_uuid!$with_ossp_uuid$ac_delim
26734 XML2_CONFIG!$XML2_CONFIG$ac_delim
26735 with_libxml!$with_libxml$ac_delim
26736 with_libxslt!$with_libxslt$ac_delim
26737 with_system_tzdata!$with_system_tzdata$ac_delim
26738 with_zlib!$with_zlib$ac_delim
26739 GREP!$GREP$ac_delim
26740 EGREP!$EGREP$ac_delim
26741 ELF_SYS!$ELF_SYS$ac_delim
26742 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26744 with_gnu_ld!$with_gnu_ld$ac_delim
26745 ld_R_works!$ld_R_works$ac_delim
26748 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26750 elif $ac_last_try; then
26751 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26752 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26753 { (exit 1); exit 1; }; }
26755 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26759 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26760 if test -n "$ac_eof"; then
26761 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26762 ac_eof
=`expr $ac_eof + 1`
26765 cat >>$CONFIG_STATUS <<_ACEOF
26766 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26770 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26771 s/^/s,@/; s/!/@,|#_!!_#|/
26774 s/'"$ac_delim"'$/,g/; t
26776 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26777 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26778 rm -f conf$
$subs.
sed
26779 cat >>$CONFIG_STATUS <<_ACEOF
26785 for ac_last_try
in false false false false false
:; do
26786 cat >conf$
$subs.
sed <<_ACEOF
26787 RANLIB!$RANLIB$ac_delim
26788 STRIP!$STRIP$ac_delim
26789 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26790 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26792 LN_S!$LN_S$ac_delim
26794 BISON!$BISON$ac_delim
26795 BISONFLAGS!$BISONFLAGS$ac_delim
26796 FLEX!$FLEX$ac_delim
26797 FLEXFLAGS!$FLEXFLAGS$ac_delim
26798 PERL!$PERL$ac_delim
26799 perl_archlibexp!$perl_archlibexp$ac_delim
26800 perl_privlibexp!$perl_privlibexp$ac_delim
26801 perl_useshrplib!$perl_useshrplib$ac_delim
26802 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26803 PYTHON!$PYTHON$ac_delim
26804 python_version!$python_version$ac_delim
26805 python_configdir!$python_configdir$ac_delim
26806 python_includespec!$python_includespec$ac_delim
26807 python_libdir!$python_libdir$ac_delim
26808 python_libspec!$python_libspec$ac_delim
26809 python_additional_libs!$python_additional_libs$ac_delim
26810 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26811 HAVE_IPV6!$HAVE_IPV6$ac_delim
26812 LIBOBJS!$LIBOBJS$ac_delim
26813 acx_pthread_config!$acx_pthread_config$ac_delim
26814 PTHREAD_CC!$PTHREAD_CC$ac_delim
26815 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26816 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26817 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26818 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26819 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26820 MSGFMT!$MSGFMT$ac_delim
26821 MSGMERGE!$MSGMERGE$ac_delim
26822 XGETTEXT!$XGETTEXT$ac_delim
26823 TCLSH!$TCLSH$ac_delim
26824 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26825 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26826 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26827 TCL_LIBS!$TCL_LIBS$ac_delim
26828 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26829 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26830 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26831 NSGMLS!$NSGMLS$ac_delim
26832 JADE!$JADE$ac_delim
26833 have_docbook!$have_docbook$ac_delim
26834 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26835 COLLATEINDEX!$COLLATEINDEX$ac_delim
26836 SGMLSPL!$SGMLSPL$ac_delim
26837 vpath_build!$vpath_build$ac_delim
26838 LTLIBOBJS!$LTLIBOBJS$ac_delim
26841 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
26843 elif $ac_last_try; then
26844 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26845 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26846 { (exit 1); exit 1; }; }
26848 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26852 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26853 if test -n "$ac_eof"; then
26854 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26855 ac_eof
=`expr $ac_eof + 1`
26858 cat >>$CONFIG_STATUS <<_ACEOF
26859 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26863 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26864 s/^/s,@/; s/!/@,|#_!!_#|/
26867 s/'"$ac_delim"'$/,g/; t
26869 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26870 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26871 rm -f conf$
$subs.
sed
26872 cat >>$CONFIG_STATUS <<_ACEOF
26879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26881 # trailing colons and then remove the whole line if VPATH becomes empty
26882 # (actually we leave an empty line to preserve line numbers).
26883 if test "x$srcdir" = x.
; then
26884 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26885 s/:*\$(srcdir):*/:/
26886 s/:*\${srcdir}:*/:/
26888 s/^\([^=]*=[ ]*\):*/\1/
26894 cat >>$CONFIG_STATUS <<\_ACEOF
26895 fi # test -n "$CONFIG_FILES"
26898 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
26901 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26903 case $ac_mode$ac_tag in
26905 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26906 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26907 { (exit 1); exit 1; }; };;
26908 :[FH
]-) ac_tag
=-:-;;
26909 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26926 -) ac_f
="$tmp/stdin";;
26927 *) # Look for the file first in the build tree, then in the source tree
26928 # (if the path is not absolute). The absolute path cannot be DOS-style,
26929 # because $ac_f cannot contain `:'.
26933 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26935 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26936 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26937 { (exit 1); exit 1; }; };;
26939 ac_file_inputs
="$ac_file_inputs $ac_f"
26942 # Let's still pretend it is `configure' which instantiates (i.e., don't
26943 # use $as_me), people would be surprised to read:
26944 # /* config.h. Generated by config.status. */
26945 configure_input
="Generated from "`IFS=:
26946 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26947 if test x
"$ac_file" != x-
; then
26948 configure_input
="$ac_file. $configure_input"
26949 { echo "$as_me:$LINENO: creating $ac_file" >&5
26950 echo "$as_me: creating $ac_file" >&6;}
26954 *:-:* |
*:-) cat >"$tmp/stdin";;
26959 ac_dir
=`$as_dirname -- "$ac_file" ||
26960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26961 X"$ac_file" : 'X\(//\)[^/]' \| \
26962 X"$ac_file" : 'X\(//\)$' \| \
26963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26969 /^X\(\/\/\)[^/].*/{
26984 -*) as_dir
=.
/$as_dir;;
26986 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26990 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26991 *) as_qdir
=$as_dir;;
26993 as_dirs
="'$as_qdir' $as_dirs"
26994 as_dir
=`$as_dirname -- "$as_dir" ||
26995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26996 X"$as_dir" : 'X\(//\)[^/]' \| \
26997 X"$as_dir" : 'X\(//\)$' \| \
26998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27004 /^X\(\/\/\)[^/].*/{
27017 test -d "$as_dir" && break
27019 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27020 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27021 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27022 { (exit 1); exit 1; }; }; }
27026 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27028 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27029 # A ".." for each directory in $ac_dir_suffix.
27030 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27031 case $ac_top_builddir_sub in
27032 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27033 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27036 ac_abs_top_builddir
=$ac_pwd
27037 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27038 # for backward compatibility:
27039 ac_top_builddir
=$ac_top_build_prefix
27042 .
) # We are building in place.
27044 ac_top_srcdir
=$ac_top_builddir_sub
27045 ac_abs_top_srcdir
=$ac_pwd ;;
27046 [\\/]* | ?
:[\\/]* ) # Absolute name.
27047 ac_srcdir
=$srcdir$ac_dir_suffix;
27048 ac_top_srcdir
=$srcdir
27049 ac_abs_top_srcdir
=$srcdir ;;
27050 *) # Relative name.
27051 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27052 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27053 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27055 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27066 cat >>$CONFIG_STATUS <<\_ACEOF
27067 # If the template does not know about datarootdir, expand it.
27068 # FIXME: This hack should be removed a few years after 2.60.
27069 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27071 case `sed -n '/datarootdir/ {
27080 ' $ac_file_inputs` in
27081 *datarootdir
*) ac_datarootdir_seen
=yes;;
27082 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27083 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27084 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27086 cat >>$CONFIG_STATUS <<_ACEOF
27087 ac_datarootdir_hack='
27088 s&@datadir@&$datadir&g
27089 s&@docdir@&$docdir&g
27090 s&@infodir@&$infodir&g
27091 s&@localedir@&$localedir&g
27092 s&@mandir@&$mandir&g
27093 s&\\\${datarootdir}&$datarootdir&g' ;;
27097 # Neutralize VPATH when `$srcdir' = `.'.
27098 # Shell code in configure.ac might set extrasub.
27099 # FIXME: do we really want to maintain this feature?
27100 cat >>$CONFIG_STATUS <<_ACEOF
27104 cat >>$CONFIG_STATUS <<\_ACEOF
27106 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27107 s
&@configure_input@
&$configure_input&;t t
27108 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27109 s
&@srcdir@
&$ac_srcdir&;t t
27110 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27111 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27112 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27113 s
&@builddir@
&$ac_builddir&;t t
27114 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27115 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27116 $ac_datarootdir_hack
27117 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27120 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27122 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27123 which seems to be undefined. Please make sure it is defined." >&5
27124 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27125 which seems to be undefined. Please make sure it is defined." >&2;}
27129 -) cat "$tmp/out"; rm -f "$tmp/out";;
27130 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27139 # Transform confdefs.h into a sed script `conftest.defines', that
27140 # substitutes the proper values into config.h.in to produce config.h.
27141 rm -f conftest.defines conftest.
tail
27142 # First, append a space to every undef/define line, to ease matching.
27143 echo 's/$/ /' >conftest.defines
27144 # Then, protect against being on the right side of a sed subst, or in
27145 # an unquoted here document, in config.status. If some macros were
27146 # called several times there might be several #defines for the same
27147 # symbol, which is useless. But do not sort them, since the last
27148 # AC_DEFINE must be honored.
27149 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27150 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27151 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27152 # PARAMS is the parameter list in the macro definition--in most cases, it's
27153 # just an empty string.
27154 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27155 ac_dB
='\\)[ (].*,\\1define\\2'
27163 s/^[ ]*#[ ]*define[ ][ ]*//
27168 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27169 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27170 ' >>conftest.defines
27172 # Remove the space that was appended to ease matching.
27173 # Then replace #undef with comments. This is necessary, for
27174 # example, in the case of _POSIX_SOURCE, which is predefined and required
27175 # on some systems where configure will not decide to define it.
27176 # (The regexp can be short, since the line contains either #define or #undef.)
27178 s,^[ #]*u.*,/* & */,' >>conftest.defines
27180 # Break up conftest.defines:
27181 ac_max_sed_lines
=50
27183 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27184 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27185 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27187 ac_in
='$ac_file_inputs'
27188 ac_out
='"$tmp/out1"'
27189 ac_nxt
='"$tmp/out2"'
27193 # Write a here document:
27194 cat >>$CONFIG_STATUS <<_ACEOF
27195 # First, check the format of the line:
27196 cat >"\$tmp/defines.sed" <<\\CEOF
27197 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27198 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27202 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27204 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27205 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27206 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27207 grep . conftest.
tail >/dev
/null ||
break
27208 rm -f conftest.defines
27209 mv conftest.
tail conftest.defines
27211 rm -f conftest.defines conftest.
tail
27213 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27214 cat >>$CONFIG_STATUS <<\_ACEOF
27215 if test x
"$ac_file" != x-
; then
27216 echo "/* $configure_input */" >"$tmp/config.h"
27217 cat "$ac_result" >>"$tmp/config.h"
27218 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27219 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27220 echo "$as_me: $ac_file is unchanged" >&6;}
27223 mv "$tmp/config.h" $ac_file
27226 echo "/* $configure_input */"
27236 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27237 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27239 if test ! -r "$srcdir/$ac_source"; then
27240 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27241 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27242 { (exit 1); exit 1; }; }
27246 # Try a relative symlink, then a hard link, then a copy.
27248 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
27249 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
27251 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
27252 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
27253 cp -p "$srcdir/$ac_source" "$ac_file" ||
27254 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27255 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27256 { (exit 1); exit 1; }; }
27258 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27259 echo "$as_me: executing $ac_file commands" >&6;}
27264 case $ac_file$ac_mode in
27265 "check_win32_symlinks":C
)
27266 # Links sometimes fail undetected on Mingw -
27267 # so here we detect it and warn the user
27268 for FILE
in $CONFIG_LINKS
27270 # test -e works for symlinks in the MinGW console
27271 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27272 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27275 "src/include/pg_config.h":H
)
27276 # Update timestamp for pg_config.h (see Makefile.global)
27277 echo >src
/include
/stamp-h
27284 { (exit 0); exit 0; }
27286 chmod +x
$CONFIG_STATUS
27287 ac_clean_files
=$ac_clean_files_save
27290 # configure is writing to config.log, and then calls config.status.
27291 # config.status does its own redirection, appending to config.log.
27292 # Unfortunately, on DOS this fails, as config.log is still kept open
27293 # by configure, so config.status won't be able to write to it; its
27294 # output is simply discarded. So we exec the FD to /dev/null,
27295 # effectively closing config.log, so it can be properly (re)opened and
27296 # appended to by config.status. When coming back to configure, we
27297 # need to make the FD available again.
27298 if test "$no_create" != yes; then
27300 ac_config_status_args
=
27301 test "$silent" = yes &&
27302 ac_config_status_args
="$ac_config_status_args --quiet"
27304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27307 # would make configure fail if this is the last instruction.
27308 $ac_cs_success ||
{ (exit 1); exit 1; }
27312 # Warn about unknown options
27313 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27314 for pgac_arg
in $pgac_args with_gnu_ld
; do
27315 if test "$pgac_var" = "$pgac_arg"; then
27319 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
27320 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27321 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}